@kodaris/krubble-app-components 1.0.155 → 1.0.157
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/chatbot.d.ts +40 -7
- package/dist/chatbot.d.ts.map +1 -1
- package/dist/chatbot.js +417 -45
- package/dist/chatbot.js.map +1 -1
- package/dist/krubble-app.bundled.js +417 -45
- package/dist/krubble-app.bundled.js.map +1 -1
- package/dist/krubble-app.bundled.min.js +304 -37
- package/dist/krubble-app.bundled.min.js.map +1 -1
- package/dist/krubble-app.umd.js +417 -45
- package/dist/krubble-app.umd.js.map +1 -1
- package/dist/krubble-app.umd.min.js +304 -37
- package/dist/krubble-app.umd.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -3172,6 +3172,18 @@ class KRChatbot extends i$3 {
|
|
|
3172
3172
|
this._copiedIndex = -1;
|
|
3173
3173
|
/** Whether the "Browse all skills" dialog is open. */
|
|
3174
3174
|
this._skillBrowseOpened = false;
|
|
3175
|
+
/**
|
|
3176
|
+
* The skill whose detail view is showing inside the browse dialog, else null.
|
|
3177
|
+
* While set, the browse dialog shows that skill's summary, author, price, roles
|
|
3178
|
+
* and actions in place of the search field and tabs.
|
|
3179
|
+
*/
|
|
3180
|
+
this._skillBrowseDetail = null;
|
|
3181
|
+
/**
|
|
3182
|
+
* The billable global skill awaiting the user's install confirmation, else null.
|
|
3183
|
+
* Set when Install is clicked on a billable skill; the confirm dialog renders
|
|
3184
|
+
* while it is set and the request only fires once the user confirms.
|
|
3185
|
+
*/
|
|
3186
|
+
this._skillInstallConfirm = null;
|
|
3175
3187
|
/**
|
|
3176
3188
|
* Active tab in the browse dialog. `org` shows `_orgSkills` (this instance's
|
|
3177
3189
|
* skills); `kodaris` shows `_globalSkills` (the shared global catalog).
|
|
@@ -4170,9 +4182,11 @@ class KRChatbot extends i$3 {
|
|
|
4170
4182
|
* Enable or disable a global skill on this instance via
|
|
4171
4183
|
* `/aiskills/global/{code}/enabled`, then reflect the server's result on the
|
|
4172
4184
|
* matching card. Ignores clicks while a request for the same code is pending.
|
|
4185
|
+
* Installing a billable skill opens a confirmation instead; see
|
|
4186
|
+
* `_handleSkillInstallConfirm` for the request that runs once the user accepts.
|
|
4173
4187
|
*/
|
|
4174
4188
|
_handleGlobalSkillEnable(skill, e) {
|
|
4175
|
-
// The card body
|
|
4189
|
+
// The card body opens the detail view; the install button must not also do that.
|
|
4176
4190
|
e.stopPropagation();
|
|
4177
4191
|
// The button is shown to everyone so the catalog reads the same for all users,
|
|
4178
4192
|
// but the enable endpoint requires administrator/superuser/skillEdit. Without
|
|
@@ -4188,6 +4202,12 @@ class KRChatbot extends i$3 {
|
|
|
4188
4202
|
if (this._globalSkillPending.has(skill.code)) {
|
|
4189
4203
|
return;
|
|
4190
4204
|
}
|
|
4205
|
+
// Installing a billable skill charges the account, so confirm before sending.
|
|
4206
|
+
// Uninstalling is never billed and free installs are one click to undo.
|
|
4207
|
+
if (!skill.enabled && skill.billable) {
|
|
4208
|
+
this._skillInstallConfirm = skill;
|
|
4209
|
+
return;
|
|
4210
|
+
}
|
|
4191
4211
|
// Drive the clicked button's own spinner (KRButton disables itself while
|
|
4192
4212
|
// loading, so a second click can't fire until the request settles).
|
|
4193
4213
|
const btn = e.currentTarget;
|
|
@@ -4205,6 +4225,20 @@ class KRChatbot extends i$3 {
|
|
|
4205
4225
|
skill.enabled = res?.data?.enabled;
|
|
4206
4226
|
btn?.reset();
|
|
4207
4227
|
this.requestUpdate();
|
|
4228
|
+
if (skill.enabled) {
|
|
4229
|
+
KRSnackbar.show({
|
|
4230
|
+
title: 'Skill Installed',
|
|
4231
|
+
message: `${skill.name} is now available to use.`,
|
|
4232
|
+
type: 'success',
|
|
4233
|
+
});
|
|
4234
|
+
}
|
|
4235
|
+
else {
|
|
4236
|
+
KRSnackbar.show({
|
|
4237
|
+
title: 'Skill Uninstalled',
|
|
4238
|
+
message: `${skill.name} is no longer available to use.`,
|
|
4239
|
+
type: 'success',
|
|
4240
|
+
});
|
|
4241
|
+
}
|
|
4208
4242
|
})
|
|
4209
4243
|
.catch((error) => {
|
|
4210
4244
|
console.error('kr-chatbot: global skill enable failed', error);
|
|
@@ -4214,6 +4248,52 @@ class KRChatbot extends i$3 {
|
|
|
4214
4248
|
this._globalSkillPending.delete(skill.code);
|
|
4215
4249
|
});
|
|
4216
4250
|
}
|
|
4251
|
+
/** Cancel the billable install confirmation without sending anything. */
|
|
4252
|
+
_handleSkillInstallCancel() {
|
|
4253
|
+
this._skillInstallConfirm = null;
|
|
4254
|
+
}
|
|
4255
|
+
/**
|
|
4256
|
+
* The user accepted the charge: run the install with the dialog's own Install
|
|
4257
|
+
* button spinning, and close the dialog once the server confirms. On failure
|
|
4258
|
+
* the button shows the error and the dialog stays open so they can retry or cancel.
|
|
4259
|
+
*/
|
|
4260
|
+
_handleSkillInstallConfirm(e) {
|
|
4261
|
+
if (!this._skillInstallConfirm) {
|
|
4262
|
+
return;
|
|
4263
|
+
}
|
|
4264
|
+
if (this._globalSkillPending.has(this._skillInstallConfirm.code)) {
|
|
4265
|
+
return;
|
|
4266
|
+
}
|
|
4267
|
+
const skill = this._skillInstallConfirm;
|
|
4268
|
+
const btn = e.currentTarget;
|
|
4269
|
+
this._globalSkillPending.add(skill.code);
|
|
4270
|
+
btn?.showLoading();
|
|
4271
|
+
KRHttp.fetch({
|
|
4272
|
+
url: `/api/system/opensearch/aiskills/global/${encodeURIComponent(skill.code)}/enabled`,
|
|
4273
|
+
method: 'POST',
|
|
4274
|
+
body: { enabled: true },
|
|
4275
|
+
})
|
|
4276
|
+
.then((r) => r.json())
|
|
4277
|
+
.then((res) => {
|
|
4278
|
+
// Reflect the server's returned flag on the card and close the confirmation.
|
|
4279
|
+
skill.enabled = res?.data?.enabled;
|
|
4280
|
+
btn?.reset();
|
|
4281
|
+
this._skillInstallConfirm = null;
|
|
4282
|
+
this.requestUpdate();
|
|
4283
|
+
KRSnackbar.show({
|
|
4284
|
+
title: 'Skill Installed',
|
|
4285
|
+
message: `${skill.name} is now available to use.`,
|
|
4286
|
+
type: 'success',
|
|
4287
|
+
});
|
|
4288
|
+
})
|
|
4289
|
+
.catch((error) => {
|
|
4290
|
+
console.error('kr-chatbot: global skill install failed', error);
|
|
4291
|
+
btn?.showError('Error');
|
|
4292
|
+
})
|
|
4293
|
+
.finally(() => {
|
|
4294
|
+
this._globalSkillPending.delete(skill.code);
|
|
4295
|
+
});
|
|
4296
|
+
}
|
|
4217
4297
|
/** The `+` button toggles the skill/attachment menu open (showing all skills). */
|
|
4218
4298
|
_handlePlusClick() {
|
|
4219
4299
|
if (this._skillMenuOpened) {
|
|
@@ -4369,11 +4449,11 @@ class KRChatbot extends i$3 {
|
|
|
4369
4449
|
this._skillBrowseOpened = false;
|
|
4370
4450
|
this._inputEl?.focus();
|
|
4371
4451
|
}
|
|
4372
|
-
/**
|
|
4452
|
+
/** Open a skill card via keyboard (Enter/Space), since it's a div role=button. */
|
|
4373
4453
|
_handleSkillCardKeydown(e, skill) {
|
|
4374
4454
|
if (e.key === 'Enter' || e.key === ' ') {
|
|
4375
4455
|
e.preventDefault();
|
|
4376
|
-
this.
|
|
4456
|
+
this._handleSkillCardOpen(skill);
|
|
4377
4457
|
}
|
|
4378
4458
|
}
|
|
4379
4459
|
/**
|
|
@@ -4411,6 +4491,29 @@ class KRChatbot extends i$3 {
|
|
|
4411
4491
|
}
|
|
4412
4492
|
_handleSkillBrowseClose() {
|
|
4413
4493
|
this._skillBrowseOpened = false;
|
|
4494
|
+
this._skillBrowseDetail = null;
|
|
4495
|
+
}
|
|
4496
|
+
/** Open a skill's detail view inside the browse dialog. */
|
|
4497
|
+
_handleSkillCardOpen(skill) {
|
|
4498
|
+
this._skillBrowseDetail = skill;
|
|
4499
|
+
}
|
|
4500
|
+
/** Return from the detail view to the grid, keeping the tab and search text. */
|
|
4501
|
+
_handleSkillDetailBack() {
|
|
4502
|
+
this._skillBrowseDetail = null;
|
|
4503
|
+
}
|
|
4504
|
+
/** Try It on the detail view: insert the open skill into the composer. */
|
|
4505
|
+
_handleSkillDetailTry() {
|
|
4506
|
+
if (!this._skillBrowseDetail) {
|
|
4507
|
+
return;
|
|
4508
|
+
}
|
|
4509
|
+
this._handleSkillSelect(this._skillBrowseDetail);
|
|
4510
|
+
}
|
|
4511
|
+
/** Install/Uninstall on the detail view for the open global skill. */
|
|
4512
|
+
_handleSkillDetailEnable(e) {
|
|
4513
|
+
if (!this._skillBrowseDetail) {
|
|
4514
|
+
return;
|
|
4515
|
+
}
|
|
4516
|
+
this._handleGlobalSkillEnable(this._skillBrowseDetail, e);
|
|
4414
4517
|
}
|
|
4415
4518
|
_handleSkillBrowseSearch(e) {
|
|
4416
4519
|
this._skillBrowseQuery = e.target.value;
|
|
@@ -5908,8 +6011,8 @@ class KRChatbot extends i$3 {
|
|
|
5908
6011
|
@click=${() => this._handleSkillSelect(skill)}
|
|
5909
6012
|
>
|
|
5910
6013
|
<span class="skill-menu__name">${skill.name}</span>
|
|
5911
|
-
${skill.
|
|
5912
|
-
<span class="skill-menu__desc">${skill.
|
|
6014
|
+
${skill.summary ? b `
|
|
6015
|
+
<span class="skill-menu__desc">${skill.summary}</span>
|
|
5913
6016
|
` : A}
|
|
5914
6017
|
</button>
|
|
5915
6018
|
</li>
|
|
@@ -5931,43 +6034,134 @@ class KRChatbot extends i$3 {
|
|
|
5931
6034
|
return b `
|
|
5932
6035
|
<kr-dialog
|
|
5933
6036
|
opened
|
|
5934
|
-
label="Browse Skills"
|
|
5935
6037
|
width="720px"
|
|
5936
6038
|
@close=${this._handleSkillBrowseClose}
|
|
5937
6039
|
>
|
|
6040
|
+
<kr-dialog-header>
|
|
6041
|
+
<div class="skill-browse__header">
|
|
6042
|
+
${this._skillBrowseDetail ? b `
|
|
6043
|
+
<button
|
|
6044
|
+
type="button"
|
|
6045
|
+
class="skill-browse__back"
|
|
6046
|
+
aria-label="Back"
|
|
6047
|
+
@click=${this._handleSkillDetailBack}
|
|
6048
|
+
>
|
|
6049
|
+
<svg
|
|
6050
|
+
width="22"
|
|
6051
|
+
height="22"
|
|
6052
|
+
viewBox="0 0 24 24"
|
|
6053
|
+
fill="none"
|
|
6054
|
+
stroke="currentColor"
|
|
6055
|
+
stroke-width="2"
|
|
6056
|
+
stroke-linecap="round"
|
|
6057
|
+
stroke-linejoin="round"
|
|
6058
|
+
>
|
|
6059
|
+
<path d="M19 12H5M12 19l-7-7 7-7"/>
|
|
6060
|
+
</svg>
|
|
6061
|
+
</button>
|
|
6062
|
+
` : b `
|
|
6063
|
+
<h2>Browse Skills</h2>
|
|
6064
|
+
`}
|
|
6065
|
+
<button
|
|
6066
|
+
type="button"
|
|
6067
|
+
class="skill-browse__close"
|
|
6068
|
+
aria-label="Close"
|
|
6069
|
+
@click=${this._handleSkillBrowseClose}
|
|
6070
|
+
>
|
|
6071
|
+
<svg
|
|
6072
|
+
viewBox="0 0 24 24"
|
|
6073
|
+
fill="none"
|
|
6074
|
+
stroke="currentColor"
|
|
6075
|
+
stroke-width="1.5"
|
|
6076
|
+
stroke-linecap="round"
|
|
6077
|
+
stroke-linejoin="round"
|
|
6078
|
+
>
|
|
6079
|
+
<path d="M6 18 18 6M6 6l12 12"/>
|
|
6080
|
+
</svg>
|
|
6081
|
+
</button>
|
|
6082
|
+
</div>
|
|
6083
|
+
</kr-dialog-header>
|
|
5938
6084
|
<div class="skill-browse">
|
|
5939
|
-
|
|
5940
|
-
|
|
5941
|
-
|
|
5942
|
-
|
|
5943
|
-
|
|
5944
|
-
|
|
5945
|
-
|
|
5946
|
-
|
|
5947
|
-
|
|
5948
|
-
|
|
5949
|
-
|
|
5950
|
-
|
|
5951
|
-
|
|
5952
|
-
|
|
5953
|
-
|
|
6085
|
+
${this._skillBrowseDetail ? b `
|
|
6086
|
+
<div class="skill-detail">
|
|
6087
|
+
<div class="skill-detail__body">
|
|
6088
|
+
<div class="skill-detail__section">
|
|
6089
|
+
<span class="skill-detail__title">${this._skillBrowseDetail.name}</span>
|
|
6090
|
+
${this._skillBrowseDetail.summary ? b `
|
|
6091
|
+
<p class="skill-detail__summary">${this._skillBrowseDetail.summary}</p>
|
|
6092
|
+
` : A}
|
|
6093
|
+
</div>
|
|
6094
|
+
<div class="skill-detail__row">
|
|
6095
|
+
<span class="skill-detail__label">Author</span>
|
|
6096
|
+
<span class="skill-detail__value">${this._skillBrowseDetail.global ? 'Kodaris' : 'Your organization'}</span>
|
|
6097
|
+
</div>
|
|
6098
|
+
${this._skillBrowseDetail.global ? b `
|
|
6099
|
+
<div class="skill-detail__row">
|
|
6100
|
+
<span class="skill-detail__label">Price</span>
|
|
6101
|
+
<span class="skill-detail__value">${this._skillBrowseDetail.priceLabel}</span>
|
|
6102
|
+
</div>
|
|
6103
|
+
` : A}
|
|
6104
|
+
${this._skillBrowseDetail.allowedRoles?.length ? b `
|
|
6105
|
+
<div class="skill-detail__row">
|
|
6106
|
+
<span class="skill-detail__label">Roles</span>
|
|
6107
|
+
<div class="skill-detail__chips">
|
|
6108
|
+
${this._skillBrowseDetail.allowedRoles.map((role) => b `
|
|
6109
|
+
<span class="skill-detail__chip">${role}</span>
|
|
6110
|
+
`)}
|
|
6111
|
+
</div>
|
|
6112
|
+
</div>
|
|
6113
|
+
` : A}
|
|
6114
|
+
</div>
|
|
6115
|
+
<div class="skill-detail__footer">
|
|
6116
|
+
${this._skillBrowseDetail.canRun !== false && (!this._skillBrowseDetail.global || this._skillBrowseDetail.enabled) ? b `
|
|
6117
|
+
<kr-button
|
|
6118
|
+
variant="flat"
|
|
6119
|
+
color="primary"
|
|
6120
|
+
@click=${this._handleSkillDetailTry}
|
|
6121
|
+
>Try It</kr-button>
|
|
6122
|
+
` : A}
|
|
6123
|
+
${this._skillBrowseDetail.global ? b `
|
|
6124
|
+
<kr-button
|
|
6125
|
+
variant=${this._skillBrowseDetail.enabled ? 'outline' : 'flat'}
|
|
6126
|
+
color=${this._skillBrowseDetail.enabled ? 'secondary' : 'primary'}
|
|
6127
|
+
@click=${this._handleSkillDetailEnable}
|
|
6128
|
+
>${this._skillBrowseDetail.enabled ? 'Uninstall' : 'Install'}</kr-button>
|
|
6129
|
+
` : A}
|
|
6130
|
+
</div>
|
|
6131
|
+
</div>
|
|
6132
|
+
` : b `
|
|
6133
|
+
<kr-text-field
|
|
6134
|
+
placeholder="Search skills..."
|
|
6135
|
+
.value=${this._skillBrowseQuery}
|
|
6136
|
+
@input=${this._handleSkillBrowseSearch}
|
|
6137
|
+
></kr-text-field>
|
|
6138
|
+
<kr-tab-group
|
|
6139
|
+
active-tab-id=${this._skillBrowseSource}
|
|
6140
|
+
@tab-change=${this._handleSkillBrowseTabChange}
|
|
6141
|
+
>
|
|
6142
|
+
<kr-tab id="org" label="Your Org">
|
|
6143
|
+
${this._renderSkillGrid()}
|
|
5954
6144
|
</kr-tab>
|
|
5955
|
-
|
|
5956
|
-
|
|
6145
|
+
${this._aiFrameworkConfig.registryServer === true ? A : b `
|
|
6146
|
+
<kr-tab id="kodaris" label="Kodaris">
|
|
6147
|
+
${this._renderSkillGrid(true)}
|
|
6148
|
+
</kr-tab>
|
|
6149
|
+
`}
|
|
6150
|
+
</kr-tab-group>
|
|
6151
|
+
`}
|
|
5957
6152
|
</div>
|
|
5958
6153
|
</kr-dialog>
|
|
5959
6154
|
`;
|
|
5960
6155
|
}
|
|
5961
6156
|
/**
|
|
5962
6157
|
* The card grid of skill search results for the browse dialog. Clicking a card
|
|
5963
|
-
*
|
|
5964
|
-
* card also gets a footer row with an
|
|
6158
|
+
* opens its detail view inside `_renderSkillBrowse`, which is where Try It lives.
|
|
6159
|
+
* In the shared-Kodaris (`global`) tab each card also gets a footer row with an
|
|
6160
|
+
* Install/Uninstall button as a shortcut.
|
|
5965
6161
|
*
|
|
5966
6162
|
* The Kodaris tab is the whole published catalog, deliberately NOT role-filtered so
|
|
5967
|
-
* users can discover skills they don't have yet.
|
|
5968
|
-
*
|
|
5969
|
-
* installed here (not `enabled`). Neither looks clickable; clicking either explains
|
|
5970
|
-
* why via `_handleSkillSelect`.
|
|
6163
|
+
* users can discover skills they don't have yet. Every card is clickable; the detail
|
|
6164
|
+
* view lists the roles and shows Install when the skill isn't installed here.
|
|
5971
6165
|
*/
|
|
5972
6166
|
_renderSkillGrid(global = false) {
|
|
5973
6167
|
let skills = this._orgSkills;
|
|
@@ -5981,18 +6175,15 @@ class KRChatbot extends i$3 {
|
|
|
5981
6175
|
<div class="skill-browse__grid">
|
|
5982
6176
|
${skills.map((skill) => b `
|
|
5983
6177
|
<div
|
|
5984
|
-
class
|
|
5985
|
-
'skill-card': true,
|
|
5986
|
-
'skill-card--unavailable': skill.canRun === false || (!!skill.global && !skill.enabled),
|
|
5987
|
-
})}
|
|
6178
|
+
class="skill-card"
|
|
5988
6179
|
role="button"
|
|
5989
6180
|
tabindex="0"
|
|
5990
|
-
@click=${() => this.
|
|
6181
|
+
@click=${() => this._handleSkillCardOpen(skill)}
|
|
5991
6182
|
@keydown=${(e) => this._handleSkillCardKeydown(e, skill)}
|
|
5992
6183
|
>
|
|
5993
6184
|
<span class="skill-card__name">${skill.name}</span>
|
|
5994
|
-
${skill.
|
|
5995
|
-
<span class="skill-card__desc">${skill.
|
|
6185
|
+
${skill.summary ? b `
|
|
6186
|
+
<span class="skill-card__desc">${skill.summary}</span>
|
|
5996
6187
|
` : A}
|
|
5997
6188
|
${!global && skill.global ? b `
|
|
5998
6189
|
<span class="skill-card__badge">Global</span>
|
|
@@ -7264,6 +7455,32 @@ class KRChatbot extends i$3 {
|
|
|
7264
7455
|
</div>
|
|
7265
7456
|
</div>
|
|
7266
7457
|
${this._skillBrowseOpened ? this._renderSkillBrowse() : A}
|
|
7458
|
+
${this._skillInstallConfirm ? b `
|
|
7459
|
+
<kr-dialog
|
|
7460
|
+
opened
|
|
7461
|
+
label="Install Paid Skill"
|
|
7462
|
+
width="480px"
|
|
7463
|
+
@close=${this._handleSkillInstallCancel}
|
|
7464
|
+
>
|
|
7465
|
+
<kr-dialog-content>
|
|
7466
|
+
<div class="skill-install-confirm">
|
|
7467
|
+
<p>
|
|
7468
|
+
<strong>${this._skillInstallConfirm.name}</strong> is a paid skill. Installing it will
|
|
7469
|
+
charge your account <strong>${this._skillInstallConfirm.priceLabel}</strong>.
|
|
7470
|
+
</p>
|
|
7471
|
+
<p>Please confirm you would like to proceed.</p>
|
|
7472
|
+
</div>
|
|
7473
|
+
</kr-dialog-content>
|
|
7474
|
+
<kr-dialog-footer>
|
|
7475
|
+
<kr-button color="secondary" @click=${this._handleSkillInstallCancel}>Cancel</kr-button>
|
|
7476
|
+
<kr-button
|
|
7477
|
+
variant="flat"
|
|
7478
|
+
color="primary"
|
|
7479
|
+
@click=${this._handleSkillInstallConfirm}
|
|
7480
|
+
>Install</kr-button>
|
|
7481
|
+
</kr-dialog-footer>
|
|
7482
|
+
</kr-dialog>
|
|
7483
|
+
` : A}
|
|
7267
7484
|
${this._renderDrawer()}
|
|
7268
7485
|
</div>
|
|
7269
7486
|
`;
|
|
@@ -9011,6 +9228,70 @@ KRChatbot.styles = i$6 `
|
|
|
9011
9228
|
height: 70vh;
|
|
9012
9229
|
}
|
|
9013
9230
|
|
|
9231
|
+
/* Slotted replacement for the dialog's built-in header so the detail view can
|
|
9232
|
+
put its back control where the title normally sits. Mirrors kr-dialog's
|
|
9233
|
+
own header: title left, close on the right. */
|
|
9234
|
+
.skill-browse__header {
|
|
9235
|
+
display: flex;
|
|
9236
|
+
flex: 1;
|
|
9237
|
+
align-items: center;
|
|
9238
|
+
justify-content: space-between;
|
|
9239
|
+
gap: 16px;
|
|
9240
|
+
}
|
|
9241
|
+
|
|
9242
|
+
.skill-browse__header h2 {
|
|
9243
|
+
margin: 0;
|
|
9244
|
+
font-size: 18px;
|
|
9245
|
+
font-weight: 600;
|
|
9246
|
+
}
|
|
9247
|
+
|
|
9248
|
+
.skill-browse__back {
|
|
9249
|
+
display: flex;
|
|
9250
|
+
align-items: center;
|
|
9251
|
+
justify-content: center;
|
|
9252
|
+
width: 36px;
|
|
9253
|
+
height: 36px;
|
|
9254
|
+
margin-left: -8px;
|
|
9255
|
+
padding: 0;
|
|
9256
|
+
border: none;
|
|
9257
|
+
border-radius: 6px;
|
|
9258
|
+
background: none;
|
|
9259
|
+
color: #000000;
|
|
9260
|
+
cursor: pointer;
|
|
9261
|
+
transition: background-color 0.15s;
|
|
9262
|
+
}
|
|
9263
|
+
|
|
9264
|
+
.skill-browse__back:hover {
|
|
9265
|
+
background: rgba(0, 0, 0, 0.06);
|
|
9266
|
+
}
|
|
9267
|
+
|
|
9268
|
+
.skill-browse__close {
|
|
9269
|
+
flex-shrink: 0;
|
|
9270
|
+
display: flex;
|
|
9271
|
+
align-items: center;
|
|
9272
|
+
justify-content: center;
|
|
9273
|
+
width: 36px;
|
|
9274
|
+
height: 36px;
|
|
9275
|
+
margin-right: -8px;
|
|
9276
|
+
padding: 0;
|
|
9277
|
+
background: none;
|
|
9278
|
+
border: none;
|
|
9279
|
+
border-radius: 6px;
|
|
9280
|
+
color: #000000;
|
|
9281
|
+
cursor: pointer;
|
|
9282
|
+
transition: background-color 0.15s, color 0.15s;
|
|
9283
|
+
}
|
|
9284
|
+
|
|
9285
|
+
.skill-browse__close:hover {
|
|
9286
|
+
background: rgba(0, 0, 0, 0.06);
|
|
9287
|
+
color: #000000;
|
|
9288
|
+
}
|
|
9289
|
+
|
|
9290
|
+
.skill-browse__close svg {
|
|
9291
|
+
width: 22px;
|
|
9292
|
+
height: 22px;
|
|
9293
|
+
}
|
|
9294
|
+
|
|
9014
9295
|
.skill-browse kr-text-field {
|
|
9015
9296
|
display: block;
|
|
9016
9297
|
margin: 20px 20px 16px;
|
|
@@ -9059,15 +9340,6 @@ KRChatbot.styles = i$6 `
|
|
|
9059
9340
|
/* A Kodaris-tab card the user can't invoke — not in their roles, or not installed
|
|
9060
9341
|
here yet. Clicking it does nothing, so it drops the pointer cursor and the hover
|
|
9061
9342
|
highlight. The Install button inside keeps its own pointer cursor. */
|
|
9062
|
-
.skill-card--unavailable {
|
|
9063
|
-
cursor: default;
|
|
9064
|
-
}
|
|
9065
|
-
|
|
9066
|
-
.skill-card--unavailable:hover {
|
|
9067
|
-
border-color: #e5e7eb;
|
|
9068
|
-
box-shadow: none;
|
|
9069
|
-
}
|
|
9070
|
-
|
|
9071
9343
|
/* Marks a globally-published skill listed on the Your Org tab — only happens on
|
|
9072
9344
|
kodaris.com, which has no Kodaris tab for its own published skills. */
|
|
9073
9345
|
.skill-card__badge {
|
|
@@ -9103,6 +9375,18 @@ KRChatbot.styles = i$6 `
|
|
|
9103
9375
|
color: #000000;
|
|
9104
9376
|
}
|
|
9105
9377
|
|
|
9378
|
+
.skill-install-confirm {
|
|
9379
|
+
display: flex;
|
|
9380
|
+
flex-direction: column;
|
|
9381
|
+
gap: 12px;
|
|
9382
|
+
font-size: 14px;
|
|
9383
|
+
line-height: 1.5;
|
|
9384
|
+
}
|
|
9385
|
+
|
|
9386
|
+
.skill-install-confirm p {
|
|
9387
|
+
margin: 0;
|
|
9388
|
+
}
|
|
9389
|
+
|
|
9106
9390
|
.skill-card__name {
|
|
9107
9391
|
font-weight: 600;
|
|
9108
9392
|
}
|
|
@@ -9118,6 +9402,88 @@ KRChatbot.styles = i$6 `
|
|
|
9118
9402
|
overflow: hidden;
|
|
9119
9403
|
}
|
|
9120
9404
|
|
|
9405
|
+
.skill-detail {
|
|
9406
|
+
display: flex;
|
|
9407
|
+
flex-direction: column;
|
|
9408
|
+
flex: 1;
|
|
9409
|
+
min-height: 0;
|
|
9410
|
+
}
|
|
9411
|
+
|
|
9412
|
+
.skill-detail__body {
|
|
9413
|
+
display: flex;
|
|
9414
|
+
flex-direction: column;
|
|
9415
|
+
flex: 1;
|
|
9416
|
+
min-height: 0;
|
|
9417
|
+
gap: 18px;
|
|
9418
|
+
padding: 24px;
|
|
9419
|
+
overflow-y: auto;
|
|
9420
|
+
}
|
|
9421
|
+
|
|
9422
|
+
/* Pinned to the bottom of the fixed-height dialog, mirroring kr-dialog-footer
|
|
9423
|
+
but left-aligned. */
|
|
9424
|
+
.skill-detail__footer {
|
|
9425
|
+
display: flex;
|
|
9426
|
+
justify-content: flex-start;
|
|
9427
|
+
flex-shrink: 0;
|
|
9428
|
+
gap: 8px;
|
|
9429
|
+
padding: 16px 24px;
|
|
9430
|
+
border-top: 1px solid rgba(0, 0, 0, 0.1);
|
|
9431
|
+
}
|
|
9432
|
+
|
|
9433
|
+
.skill-detail__section {
|
|
9434
|
+
display: flex;
|
|
9435
|
+
flex-direction: column;
|
|
9436
|
+
gap: 6px;
|
|
9437
|
+
}
|
|
9438
|
+
|
|
9439
|
+
.skill-detail__row {
|
|
9440
|
+
display: flex;
|
|
9441
|
+
align-items: baseline;
|
|
9442
|
+
gap: 8px;
|
|
9443
|
+
}
|
|
9444
|
+
|
|
9445
|
+
/* Fixed label width so the Author and Price values start in the same column. */
|
|
9446
|
+
.skill-detail__row .skill-detail__label {
|
|
9447
|
+
flex-shrink: 0;
|
|
9448
|
+
width: 60px;
|
|
9449
|
+
}
|
|
9450
|
+
|
|
9451
|
+
.skill-detail__title {
|
|
9452
|
+
font-size: 16px;
|
|
9453
|
+
font-weight: 600;
|
|
9454
|
+
color: #000000;
|
|
9455
|
+
}
|
|
9456
|
+
|
|
9457
|
+
.skill-detail__label {
|
|
9458
|
+
font-size: 14px;
|
|
9459
|
+
font-weight: 600;
|
|
9460
|
+
color: #000000;
|
|
9461
|
+
}
|
|
9462
|
+
|
|
9463
|
+
.skill-detail__summary {
|
|
9464
|
+
margin: 0;
|
|
9465
|
+
color: #000000;
|
|
9466
|
+
white-space: pre-wrap;
|
|
9467
|
+
}
|
|
9468
|
+
|
|
9469
|
+
.skill-detail__value {
|
|
9470
|
+
color: #000000;
|
|
9471
|
+
}
|
|
9472
|
+
|
|
9473
|
+
.skill-detail__chips {
|
|
9474
|
+
display: flex;
|
|
9475
|
+
flex-wrap: wrap;
|
|
9476
|
+
gap: 6px;
|
|
9477
|
+
}
|
|
9478
|
+
|
|
9479
|
+
.skill-detail__chip {
|
|
9480
|
+
padding: 2px 8px;
|
|
9481
|
+
border-radius: 6px;
|
|
9482
|
+
background: #f3f4f6;
|
|
9483
|
+
font-size: 12px;
|
|
9484
|
+
color: #000000;
|
|
9485
|
+
}
|
|
9486
|
+
|
|
9121
9487
|
.skill-browse__empty {
|
|
9122
9488
|
height: 100%;
|
|
9123
9489
|
padding: 32px;
|
|
@@ -9415,6 +9781,12 @@ __decorate$5([
|
|
|
9415
9781
|
__decorate$5([
|
|
9416
9782
|
r()
|
|
9417
9783
|
], KRChatbot.prototype, "_skillBrowseOpened", void 0);
|
|
9784
|
+
__decorate$5([
|
|
9785
|
+
r()
|
|
9786
|
+
], KRChatbot.prototype, "_skillBrowseDetail", void 0);
|
|
9787
|
+
__decorate$5([
|
|
9788
|
+
r()
|
|
9789
|
+
], KRChatbot.prototype, "_skillInstallConfirm", void 0);
|
|
9418
9790
|
__decorate$5([
|
|
9419
9791
|
r()
|
|
9420
9792
|
], KRChatbot.prototype, "_skillBrowseSource", void 0);
|