@sparkelf/dsh-client-ui-skill-center 0.2.2-alpha.2.3 → 0.2.2-alpha.2.4
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/lib/client.js +60 -4
- package/lib/types/client/glyphs.d.ts +28 -0
- package/package.json +1 -1
package/lib/client.js
CHANGED
|
@@ -115,6 +115,62 @@ window.__ModuleLoader__.load({
|
|
|
115
115
|
"workspaceBadge": "DGiSta_workspaceBadge"
|
|
116
116
|
};
|
|
117
117
|
//#endregion
|
|
118
|
+
//#region src/client/glyphs.tsx
|
|
119
|
+
/**
|
|
120
|
+
* The chain-link glyph on a connector card.
|
|
121
|
+
* @returns a 16px current-color SVG.
|
|
122
|
+
*/
|
|
123
|
+
function ConnectorGlyph() {
|
|
124
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
|
|
125
|
+
width: "16",
|
|
126
|
+
height: "16",
|
|
127
|
+
viewBox: "0 0 16 16",
|
|
128
|
+
fill: "none",
|
|
129
|
+
"aria-hidden": "true",
|
|
130
|
+
"data-connector-glyph": true,
|
|
131
|
+
children: [
|
|
132
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
|
|
133
|
+
d: "M6.6 9.4 9.4 6.6",
|
|
134
|
+
stroke: "currentColor",
|
|
135
|
+
strokeWidth: "1.4",
|
|
136
|
+
strokeLinecap: "round"
|
|
137
|
+
}),
|
|
138
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
|
|
139
|
+
d: "m7.4 4.9 1-1a2.7 2.7 0 0 1 3.8 3.8l-1 1",
|
|
140
|
+
stroke: "currentColor",
|
|
141
|
+
strokeWidth: "1.4",
|
|
142
|
+
strokeLinecap: "round"
|
|
143
|
+
}),
|
|
144
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
|
|
145
|
+
d: "m8.6 11.1-1 1a2.7 2.7 0 0 1-3.8-3.8l1-1",
|
|
146
|
+
stroke: "currentColor",
|
|
147
|
+
strokeWidth: "1.4",
|
|
148
|
+
strokeLinecap: "round"
|
|
149
|
+
})
|
|
150
|
+
]
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* The close glyph shared by the dialog header and the search clear control.
|
|
155
|
+
* @param props.size - rendered edge length in pixels.
|
|
156
|
+
* @returns a current-color SVG.
|
|
157
|
+
*/
|
|
158
|
+
function CloseGlyph({ size = 14 }) {
|
|
159
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", {
|
|
160
|
+
width: size,
|
|
161
|
+
height: size,
|
|
162
|
+
viewBox: "0 0 16 16",
|
|
163
|
+
fill: "none",
|
|
164
|
+
"aria-hidden": "true",
|
|
165
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
|
|
166
|
+
d: "m4 4 8 8M12 4l-8 8",
|
|
167
|
+
stroke: "currentColor",
|
|
168
|
+
strokeWidth: "1.4",
|
|
169
|
+
strokeLinecap: "round"
|
|
170
|
+
})
|
|
171
|
+
});
|
|
172
|
+
}
|
|
173
|
+
//#endregion
|
|
118
174
|
//#region src/client/api.ts
|
|
119
175
|
/**
|
|
120
176
|
* Skill center API client. Talks to the host route family over same-origin
|
|
@@ -650,8 +706,7 @@ window.__ModuleLoader__.load({
|
|
|
650
706
|
children: [
|
|
651
707
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
652
708
|
className: SkillCenterPage_module_css_default.connectorIcon,
|
|
653
|
-
|
|
654
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconLinkOutline16, { size: 16 })
|
|
709
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ConnectorGlyph, {})
|
|
655
710
|
}),
|
|
656
711
|
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
657
712
|
className: SkillCenterPage_module_css_default.connectorIdentity,
|
|
@@ -755,6 +810,7 @@ window.__ModuleLoader__.load({
|
|
|
755
810
|
if (state.kind === "failed") return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
756
811
|
className: SkillCenterPage_module_css_default.connectorFailed,
|
|
757
812
|
role: "alert",
|
|
813
|
+
"data-connector-failed": true,
|
|
758
814
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", { children: [
|
|
759
815
|
t("connector.failed"),
|
|
760
816
|
":",
|
|
@@ -1695,7 +1751,7 @@ window.__ModuleLoader__.load({
|
|
|
1695
1751
|
className: SkillCenterPage_module_css_default.dialogClose,
|
|
1696
1752
|
"aria-label": t("action.close"),
|
|
1697
1753
|
onClick: closeShare,
|
|
1698
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
1754
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CloseGlyph, { size: 14 })
|
|
1699
1755
|
})]
|
|
1700
1756
|
}),
|
|
1701
1757
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
@@ -1833,7 +1889,7 @@ window.__ModuleLoader__.load({
|
|
|
1833
1889
|
variant: "ghost",
|
|
1834
1890
|
className: SkillCenterPage_module_css_default.searchClear,
|
|
1835
1891
|
"aria-label": t("search.clear"),
|
|
1836
|
-
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
1892
|
+
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CloseGlyph, {}),
|
|
1837
1893
|
onClick: () => {
|
|
1838
1894
|
setQuery("");
|
|
1839
1895
|
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Package-local glyphs for controls whose primitives icon has no stable name.
|
|
3
|
+
*
|
|
4
|
+
* The shell owns `@deepseek-ai/dsh-client-ui-primitives`, and its icon exports
|
|
5
|
+
* are renamed between releases (`IconLinkOutline16` in one, `IconLinkOutline`
|
|
6
|
+
* and `IconLinkOutlineRegular` in the next). A client plugin is loaded against
|
|
7
|
+
* whatever primitives the running shell bundles, so a missing export reaches
|
|
8
|
+
* React as an undefined component and unmounts the whole slot. These two
|
|
9
|
+
* glyphs are drawn here instead of imported so the connector tab and the
|
|
10
|
+
* dialog close control render on every shell that mounts the plugin.
|
|
11
|
+
*
|
|
12
|
+
* @module @sparkelf/dsh-client-ui-skill-center/client/glyphs
|
|
13
|
+
*/
|
|
14
|
+
import type { ReactNode } from 'react';
|
|
15
|
+
/**
|
|
16
|
+
* The chain-link glyph on a connector card.
|
|
17
|
+
* @returns a 16px current-color SVG.
|
|
18
|
+
*/
|
|
19
|
+
export declare function ConnectorGlyph(): ReactNode;
|
|
20
|
+
/**
|
|
21
|
+
* The close glyph shared by the dialog header and the search clear control.
|
|
22
|
+
* @param props.size - rendered edge length in pixels.
|
|
23
|
+
* @returns a current-color SVG.
|
|
24
|
+
*/
|
|
25
|
+
export declare function CloseGlyph({ size }: {
|
|
26
|
+
size?: number;
|
|
27
|
+
}): ReactNode;
|
|
28
|
+
//# sourceMappingURL=glyphs.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sparkelf/dsh-client-ui-skill-center",
|
|
3
|
-
"version": "0.2.2-alpha.2.
|
|
3
|
+
"version": "0.2.2-alpha.2.4",
|
|
4
4
|
"description": "Skill center for the dsh web client: browses loaded skills grouped by source, enables or disables model invocation, creates skills, and deletes them into a recoverable trash",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|