@epam/ai-dial-prompts 1.3.0-dev.9 → 1.3.0-dev.90
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/components/FavoritePromptsPanel/FavoritePromptsPanel.d.ts.map +1 -1
- package/hooks/usePromptSelectorOverlay/usePromptSelectorOverlay.d.ts +1 -1
- package/hooks/usePromptSelectorOverlay/usePromptSelectorOverlay.d.ts.map +1 -1
- package/index.css +2 -1
- package/index.js +66 -64
- package/models/favorite-prompts-panel-props.d.ts +2 -0
- package/models/favorite-prompts-panel-props.d.ts.map +1 -1
- package/models/prompt-selector-overlay.d.ts +2 -0
- package/models/prompt-selector-overlay.d.ts.map +1 -1
- package/package.json +4 -4
- package/parameters-popup.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FavoritePromptsPanel.d.ts","sourceRoot":"","sources":["../../../src/components/FavoritePromptsPanel/FavoritePromptsPanel.tsx"],"names":[],"mappings":"AAeA,OAAO,EAAgD,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAG9E,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,2CAA2C,CAAC;AAQ3F;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE,EAAE,CAAC,yBAAyB,
|
|
1
|
+
{"version":3,"file":"FavoritePromptsPanel.d.ts","sourceRoot":"","sources":["../../../src/components/FavoritePromptsPanel/FavoritePromptsPanel.tsx"],"names":[],"mappings":"AAeA,OAAO,EAAgD,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAG9E,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,2CAA2C,CAAC;AAQ3F;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE,EAAE,CAAC,yBAAyB,CA6M9D,CAAC"}
|
|
@@ -5,5 +5,5 @@ import { UsePromptSelectorOverlayOptions, UsePromptSelectorOverlayResult } from
|
|
|
5
5
|
* labels, insertion callback, and its own lazy-loaded browse-modal renderer — this hook never
|
|
6
6
|
* imports generated API DTOs, parent providers, routing, or i18n.
|
|
7
7
|
*/
|
|
8
|
-
export declare const usePromptSelectorOverlay: ({ isEnabled, prompts, favoriteIds, onToggleFavorite, onInsertText, labels, renderCatalog, }: UsePromptSelectorOverlayOptions) => UsePromptSelectorOverlayResult;
|
|
8
|
+
export declare const usePromptSelectorOverlay: ({ isEnabled, prompts, favoriteIds, onToggleFavorite, onInsertText, isRowTooltipHidden, labels, renderCatalog, }: UsePromptSelectorOverlayOptions) => UsePromptSelectorOverlayResult;
|
|
9
9
|
//# sourceMappingURL=usePromptSelectorOverlay.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usePromptSelectorOverlay.d.ts","sourceRoot":"","sources":["../../../src/hooks/usePromptSelectorOverlay/usePromptSelectorOverlay.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EACV,+BAA+B,EAC/B,8BAA8B,EAC/B,MAAM,sCAAsC,CAAC;AAE9C;;;;;GAKG;AACH,eAAO,MAAM,wBAAwB,GAAI,
|
|
1
|
+
{"version":3,"file":"usePromptSelectorOverlay.d.ts","sourceRoot":"","sources":["../../../src/hooks/usePromptSelectorOverlay/usePromptSelectorOverlay.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EACV,+BAA+B,EAC/B,8BAA8B,EAC/B,MAAM,sCAAsC,CAAC;AAE9C;;;;;GAKG;AACH,eAAO,MAAM,wBAAwB,GAAI,iHAStC,+BAA+B,KAAG,8BAyHpC,CAAC"}
|
package/index.css
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
._header_1pyx6_3{color:var(--fp-header-text,var(--text-tertiary,#848e9c))}._emptyHint_1pyx6_7{color:var(--fp-empty-hint-text,var(--text-icon-tertiary,#848e9c))}._star_1pyx6_11{color:var(--fp-star-color,var(--text-warning-icon,#eec840))}._footer_1pyx6_15{border-top-color:var(--fp-footer-border,var(--stroke-tertiary,#e0e6f0))}._rowEnter_1pyx6_23{animation:.2s ease-out _rowFadeIn_1pyx6_1}._rowLeaving_1pyx6_27{pointer-events:none;animation:.18s ease-out forwards _rowFadeOut_1pyx6_1}@keyframes _rowFadeIn_1pyx6_1{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}@keyframes _rowFadeOut_1pyx6_1{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.96)}}._listContent_1pyx6_55{transition:max-height .2s}@media (prefers-reduced-motion:reduce){._rowEnter_1pyx6_23,._rowLeaving_1pyx6_27{animation:none}._listContent_1pyx6_55{transition:none}}._card_p8vwa_1{background:var(--pp-card-bg,var(--bg-layer-sunken,#eef1f7));border-color:var(--pp-card-border,var(--stroke-tertiary,#e0e6f0))}
|
|
2
|
-
/*$vite$:1
|
|
2
|
+
/*$vite$:1*//*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
|
|
3
|
+
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style:solid;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1}}}.m-0{margin:0}.flex{display:flex}.grid{display:grid}.list-item{display:list-item}.h-\[72px\]{height:72px}.h-auto{height:auto}.min-h-0{min-height:0}.w-full{width:100%}.max-w-\[550px\]{max-width:550px}.min-w-\[240px\]{min-width:240px}.flex-1{flex:1}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.overflow-y-auto{overflow-y:auto}.rounded-lg{border-radius:.5rem}.border{border-style:var(--tw-border-style);border-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.px-1{padding-inline:.25rem}.px-2{padding-inline:.5rem}.px-3{padding-inline:.75rem}.px-4{padding-inline:1rem}.px-6{padding-inline:1.5rem}.py-1\.5{padding-block:.375rem}.py-3{padding-block:.75rem}.py-4{padding-block:1rem}.pt-2{padding-top:.5rem}.pb-0\.5{padding-bottom:.125rem}.pb-1{padding-bottom:.25rem}.pb-4{padding-bottom:1rem}.text-start{text-align:start}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,cubic-bezier(.4, 0, .2, 1));transition-duration:var(--tw-duration,.15s)}.rtl\:scale-x-\[-1\]:where(:dir(rtl),[dir=rtl],[dir=rtl] *){--tw-scale-x:-1;scale:var(--tw-scale-x) var(--tw-scale-y)}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}
|
package/index.js
CHANGED
|
@@ -17,46 +17,46 @@ var C = t(async () => ({ default: (await import("./parameters-popup.js")).Prompt
|
|
|
17
17
|
rowLeaving: "_rowLeaving_1pyx6_27",
|
|
18
18
|
rowFadeOut: "_rowFadeOut_1pyx6_1",
|
|
19
19
|
listContent: "_listContent_1pyx6_55"
|
|
20
|
-
}, D = "px-3 pb-0.5 pt-2", O = 180, k = ({ favorites: e, onSelect: t, onToggleFavorite: n, onBrowse: a,
|
|
21
|
-
let { myCollectionLabel:
|
|
22
|
-
"--fp-header-text":
|
|
23
|
-
"--fp-empty-hint-text":
|
|
24
|
-
"--fp-star-color":
|
|
25
|
-
"--fp-footer-border":
|
|
26
|
-
}), [
|
|
20
|
+
}, D = "px-3 pb-0.5 pt-2", O = 180, k = ({ favorites: e, onSelect: t, onToggleFavorite: n, onBrowse: a, isRowTooltipHidden: m = !1, labels: g = {}, colors: C, nameClassName: w = "dial-small-text", headerClassName: k = "dial-tiny-lead-semi-text", emptyHintClassName: A = "dial-small-text" }) => {
|
|
21
|
+
let { myCollectionLabel: j = "My Collection", emptyHintLabel: M = "Star a prompt to pin it here", browseLabel: N = "Browse", removeFromFavoritesLabel: P = "Remove from favorites" } = g, F = p({
|
|
22
|
+
"--fp-header-text": C?.headerText,
|
|
23
|
+
"--fp-empty-hint-text": C?.emptyHintText,
|
|
24
|
+
"--fp-star-color": C?.starColor,
|
|
25
|
+
"--fp-footer-border": C?.footerBorder
|
|
26
|
+
}), [I, L] = s(/* @__PURE__ */ new Set()), R = o(/* @__PURE__ */ new Map());
|
|
27
27
|
r(() => {
|
|
28
|
-
let e =
|
|
28
|
+
let e = R.current;
|
|
29
29
|
return () => {
|
|
30
30
|
e.forEach((e) => clearTimeout(e)), e.clear();
|
|
31
31
|
};
|
|
32
32
|
}, []);
|
|
33
|
-
let
|
|
33
|
+
let z = o(null), [B, V] = s();
|
|
34
34
|
i(() => {
|
|
35
|
-
|
|
35
|
+
z.current && V(Math.min(z.current.scrollHeight, f));
|
|
36
36
|
}, [e]);
|
|
37
|
-
let
|
|
38
|
-
|
|
37
|
+
let H = (e) => {
|
|
38
|
+
L((t) => new Set(t).add(e));
|
|
39
39
|
let t = setTimeout(() => {
|
|
40
|
-
n(e),
|
|
40
|
+
n(e), L((t) => {
|
|
41
41
|
let n = new Set(t);
|
|
42
42
|
return n.delete(e), n;
|
|
43
|
-
}),
|
|
43
|
+
}), R.current.delete(e);
|
|
44
44
|
}, O);
|
|
45
|
-
|
|
45
|
+
R.current.set(e, t);
|
|
46
46
|
};
|
|
47
47
|
return /* @__PURE__ */ l("div", {
|
|
48
48
|
className: h("flex min-w-[240px] flex-col", T.favoritesPanel),
|
|
49
|
-
style:
|
|
49
|
+
style: F,
|
|
50
50
|
children: [
|
|
51
51
|
/* @__PURE__ */ c("p", {
|
|
52
|
-
className: h(
|
|
53
|
-
children:
|
|
52
|
+
className: h(k, D, E.header),
|
|
53
|
+
children: j
|
|
54
54
|
}),
|
|
55
55
|
/* @__PURE__ */ c("div", {
|
|
56
56
|
className: h(d, "min-h-0 flex-1 overflow-y-auto", E.listContent),
|
|
57
|
-
style: { maxHeight:
|
|
57
|
+
style: { maxHeight: B },
|
|
58
58
|
children: /* @__PURE__ */ c("div", {
|
|
59
|
-
ref:
|
|
59
|
+
ref: z,
|
|
60
60
|
children: e.length > 0 ? /* @__PURE__ */ c("ul", {
|
|
61
61
|
role: "none",
|
|
62
62
|
className: "flex flex-col gap-1 px-1 pb-1",
|
|
@@ -69,7 +69,7 @@ var C = t(async () => ({ default: (await import("./parameters-popup.js")).Prompt
|
|
|
69
69
|
initialsName: e.name
|
|
70
70
|
}),
|
|
71
71
|
label: e.name,
|
|
72
|
-
labelClassName:
|
|
72
|
+
labelClassName: w,
|
|
73
73
|
onClick: () => t(e),
|
|
74
74
|
rightControl: /* @__PURE__ */ c(x, {
|
|
75
75
|
icon: /* @__PURE__ */ c(S, {
|
|
@@ -77,14 +77,14 @@ var C = t(async () => ({ default: (await import("./parameters-popup.js")).Prompt
|
|
|
77
77
|
className: E.star,
|
|
78
78
|
"aria-hidden": !0
|
|
79
79
|
}),
|
|
80
|
-
"aria-label":
|
|
80
|
+
"aria-label": P,
|
|
81
81
|
isSelected: !0,
|
|
82
|
-
onClick: () =>
|
|
82
|
+
onClick: () => H(e.id)
|
|
83
83
|
})
|
|
84
|
-
}), r = e.description != null && e.description !== "";
|
|
84
|
+
}), r = !m && e.description != null && e.description !== "";
|
|
85
85
|
return /* @__PURE__ */ c("li", {
|
|
86
86
|
role: "none",
|
|
87
|
-
className:
|
|
87
|
+
className: I.has(e.id) ? E.rowLeaving : E.rowEnter,
|
|
88
88
|
children: r ? /* @__PURE__ */ c(y, {
|
|
89
89
|
asChild: !0,
|
|
90
90
|
contentClassName: "max-w-[550px]",
|
|
@@ -97,8 +97,8 @@ var C = t(async () => ({ default: (await import("./parameters-popup.js")).Prompt
|
|
|
97
97
|
}, e.id);
|
|
98
98
|
})
|
|
99
99
|
}) : /* @__PURE__ */ c("p", {
|
|
100
|
-
className: h(
|
|
101
|
-
children:
|
|
100
|
+
className: h(A, "px-4 py-4 text-start", E.emptyHint),
|
|
101
|
+
children: M
|
|
102
102
|
})
|
|
103
103
|
})
|
|
104
104
|
}),
|
|
@@ -106,64 +106,66 @@ var C = t(async () => ({ default: (await import("./parameters-popup.js")).Prompt
|
|
|
106
106
|
className: h("border-t px-2 py-3", E.footer),
|
|
107
107
|
children: /* @__PURE__ */ c(v, {
|
|
108
108
|
role: "menuitem",
|
|
109
|
-
label:
|
|
109
|
+
label: N,
|
|
110
110
|
className: "w-full justify-center",
|
|
111
111
|
onClick: a
|
|
112
112
|
})
|
|
113
113
|
})
|
|
114
114
|
]
|
|
115
115
|
});
|
|
116
|
-
}, A = ({ isEnabled: e, prompts: t, favoriteIds: r, onToggleFavorite: i, onInsertText: o,
|
|
117
|
-
let { panelLabels:
|
|
116
|
+
}, A = ({ isEnabled: e, prompts: t, favoriteIds: r, onToggleFavorite: i, onInsertText: o, isRowTooltipHidden: l = !1, labels: u, renderCatalog: d }) => {
|
|
117
|
+
let { panelLabels: f, parametersLabels: p } = u ?? {}, [h, _] = s(!1), [v, y] = s(null), [b, x] = s(!1), S = a(() => t.filter((e) => r.has(e.id)), [t, r]), C = n((e, t) => {
|
|
118
118
|
if (m(e.content).length === 0) {
|
|
119
|
-
o(e.content),
|
|
119
|
+
o(e.content), _(!1);
|
|
120
120
|
return;
|
|
121
121
|
}
|
|
122
|
-
|
|
123
|
-
}, [o]),
|
|
124
|
-
favorites:
|
|
122
|
+
y(e), x(t);
|
|
123
|
+
}, [o]), T = n((e) => /* @__PURE__ */ c(k, {
|
|
124
|
+
favorites: S,
|
|
125
125
|
onSelect: (t) => {
|
|
126
|
-
|
|
126
|
+
C(t, !1), e();
|
|
127
127
|
},
|
|
128
128
|
onToggleFavorite: i,
|
|
129
129
|
onBrowse: () => {
|
|
130
|
-
e(),
|
|
130
|
+
e(), _(!0);
|
|
131
131
|
},
|
|
132
|
-
|
|
132
|
+
isRowTooltipHidden: l,
|
|
133
|
+
labels: f
|
|
133
134
|
}), [
|
|
134
|
-
x,
|
|
135
135
|
S,
|
|
136
|
+
C,
|
|
136
137
|
i,
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
v(null);
|
|
138
|
+
l,
|
|
139
|
+
f
|
|
140
|
+
]), E = d({
|
|
141
|
+
isOpen: h,
|
|
142
|
+
onSelect: (e) => C(e, !0),
|
|
143
|
+
onClose: () => _(!1)
|
|
144
|
+
}), D = n((e) => {
|
|
145
|
+
x(!1), y(e);
|
|
146
146
|
}, []), O = n(() => {
|
|
147
|
-
|
|
148
|
-
}, []), A = n((
|
|
149
|
-
|
|
150
|
-
}, [
|
|
147
|
+
y(null);
|
|
148
|
+
}, []), A = n(() => {
|
|
149
|
+
y(null), _(!0);
|
|
150
|
+
}, []), j = n((e) => {
|
|
151
|
+
v && o(g(v.content, e)), y(null), _(!1);
|
|
152
|
+
}, [v, o]), M = a(() => v == null ? [] : m(v.content), [v]), N = v != null && /* @__PURE__ */ c(w, {
|
|
151
153
|
open: !0,
|
|
152
|
-
promptName:
|
|
153
|
-
content:
|
|
154
|
-
description:
|
|
155
|
-
parameters:
|
|
156
|
-
onBack:
|
|
157
|
-
onClose:
|
|
158
|
-
onCancel:
|
|
159
|
-
onSubmit:
|
|
160
|
-
labels:
|
|
154
|
+
promptName: v.name,
|
|
155
|
+
content: v.content,
|
|
156
|
+
description: v.description,
|
|
157
|
+
parameters: M,
|
|
158
|
+
onBack: b ? A : void 0,
|
|
159
|
+
onClose: O,
|
|
160
|
+
onCancel: O,
|
|
161
|
+
onSubmit: j,
|
|
162
|
+
labels: p
|
|
161
163
|
});
|
|
162
164
|
return e ? {
|
|
163
|
-
renderOverlay:
|
|
164
|
-
promptCatalogModal:
|
|
165
|
-
parametersPopup:
|
|
166
|
-
openParametersPopup:
|
|
165
|
+
renderOverlay: T,
|
|
166
|
+
promptCatalogModal: E,
|
|
167
|
+
parametersPopup: N,
|
|
168
|
+
openParametersPopup: D
|
|
167
169
|
} : {
|
|
168
170
|
renderOverlay: void 0,
|
|
169
171
|
promptCatalogModal: null,
|
|
@@ -31,6 +31,8 @@ export interface FavoritePromptsPanelProps {
|
|
|
31
31
|
onToggleFavorite: (id: string) => void;
|
|
32
32
|
/** Called when the "Browse" button is clicked. */
|
|
33
33
|
onBrowse: () => void;
|
|
34
|
+
/** Whether rows render without the hover/focus description tooltip. Defaults to `false`. */
|
|
35
|
+
isRowTooltipHidden?: boolean;
|
|
34
36
|
/** Localizable string overrides. */
|
|
35
37
|
labels?: FavoritePromptsPanelLabels;
|
|
36
38
|
/** Color overrides applied as CSS custom properties. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"favorite-prompts-panel-props.d.ts","sourceRoot":"","sources":["../../src/models/favorite-prompts-panel-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAEjE,mFAAmF;AACnF,MAAM,WAAW,0BAA0B;IACzC,sEAAsE;IACtE,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,4FAA4F;IAC5F,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,kEAAkE;IAClE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,6GAA6G;IAC7G,wBAAwB,CAAC,EAAE,MAAM,CAAC;CACnC;AAED,6DAA6D;AAC7D,MAAM,WAAW,0BAA0B;IACzC,+EAA+E;IAC/E,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kFAAkF;IAClF,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,0EAA0E;IAC1E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sFAAsF;IACtF,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,+CAA+C;AAC/C,MAAM,WAAW,yBAAyB;IACxC,kEAAkE;IAClE,SAAS,EAAE,kBAAkB,EAAE,CAAC;IAChC,+DAA+D;IAC/D,QAAQ,EAAE,CAAC,IAAI,EAAE,kBAAkB,KAAK,IAAI,CAAC;IAC7C,mGAAmG;IACnG,gBAAgB,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,kDAAkD;IAClD,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,oCAAoC;IACpC,MAAM,CAAC,EAAE,0BAA0B,CAAC;IACpC,wDAAwD;IACxD,MAAM,CAAC,EAAE,0BAA0B,CAAC;IACpC,iFAAiF;IACjF,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,oIAAoI;IACpI,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,sFAAsF;IACtF,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B"}
|
|
1
|
+
{"version":3,"file":"favorite-prompts-panel-props.d.ts","sourceRoot":"","sources":["../../src/models/favorite-prompts-panel-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAEjE,mFAAmF;AACnF,MAAM,WAAW,0BAA0B;IACzC,sEAAsE;IACtE,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,4FAA4F;IAC5F,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,kEAAkE;IAClE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,6GAA6G;IAC7G,wBAAwB,CAAC,EAAE,MAAM,CAAC;CACnC;AAED,6DAA6D;AAC7D,MAAM,WAAW,0BAA0B;IACzC,+EAA+E;IAC/E,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kFAAkF;IAClF,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,0EAA0E;IAC1E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sFAAsF;IACtF,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,+CAA+C;AAC/C,MAAM,WAAW,yBAAyB;IACxC,kEAAkE;IAClE,SAAS,EAAE,kBAAkB,EAAE,CAAC;IAChC,+DAA+D;IAC/D,QAAQ,EAAE,CAAC,IAAI,EAAE,kBAAkB,KAAK,IAAI,CAAC;IAC7C,mGAAmG;IACnG,gBAAgB,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,kDAAkD;IAClD,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,4FAA4F;IAC5F,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,oCAAoC;IACpC,MAAM,CAAC,EAAE,0BAA0B,CAAC;IACpC,wDAAwD;IACxD,MAAM,CAAC,EAAE,0BAA0B,CAAC;IACpC,iFAAiF;IACjF,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,oIAAoI;IACpI,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,sFAAsF;IACtF,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B"}
|
|
@@ -30,6 +30,8 @@ export interface UsePromptSelectorOverlayOptions {
|
|
|
30
30
|
onToggleFavorite: (id: string) => void;
|
|
31
31
|
/** Called with the resolved prompt text (parameters already substituted, if any). */
|
|
32
32
|
onInsertText: (text: string) => void;
|
|
33
|
+
/** Forwarded to the favorites panel's `isRowTooltipHidden`. Defaults to `false`. */
|
|
34
|
+
isRowTooltipHidden?: boolean;
|
|
33
35
|
/** Labels forwarded to the rendered favorites panel and parameters popup. */
|
|
34
36
|
labels?: UsePromptSelectorOverlayLabels;
|
|
35
37
|
/** Renders the host's own lazy-loaded browse-modal content. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompt-selector-overlay.d.ts","sourceRoot":"","sources":["../../src/models/prompt-selector-overlay.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,KAAK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C,EAAE,8BAA8B,CAAC;IACxC,+DAA+D;IAC/D,aAAa,EAAE,CAAC,KAAK,EAAE,wBAAwB,KAAK,SAAS,CAAC;CAC/D;AAED,2DAA2D;AAC3D,MAAM,WAAW,8BAA8B;IAC7C;;;;OAIG;IACH,aAAa,EAAE,CAAC,CAAC,OAAO,EAAE,MAAM,IAAI,KAAK,SAAS,CAAC,GAAG,SAAS,CAAC;IAChE,0EAA0E;IAC1E,kBAAkB,EAAE,SAAS,CAAC;IAC9B,0EAA0E;IAC1E,eAAe,EAAE,SAAS,CAAC;IAC3B;;;;OAIG;IACH,mBAAmB,EAAE,CAAC,MAAM,EAAE,kBAAkB,KAAK,IAAI,CAAC;CAC3D"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epam/ai-dial-prompts",
|
|
3
3
|
"description": "Host-agnostic UI for picking a favorite prompt and resolving its {{parameter}} placeholders before it is inserted into a chat message",
|
|
4
|
-
"version": "1.3.0-dev.
|
|
4
|
+
"version": "1.3.0-dev.90",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./index.js",
|
|
@@ -23,11 +23,11 @@
|
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@tabler/icons-react": "^3.44.0",
|
|
26
|
-
"@epam/ai-dial-catalog": "1.3.0-dev.
|
|
26
|
+
"@epam/ai-dial-catalog": "1.3.0-dev.90"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
|
-
"@epam/ai-dial-chat-shared": "1.3.0-dev.
|
|
30
|
-
"@epam/ai-dial-ui-kit": "^0.
|
|
29
|
+
"@epam/ai-dial-chat-shared": "1.3.0-dev.90",
|
|
30
|
+
"@epam/ai-dial-ui-kit": "^0.16.0-dev.13",
|
|
31
31
|
"react": "^19.2.8"
|
|
32
32
|
},
|
|
33
33
|
"repository": {
|
package/parameters-popup.js
CHANGED
|
@@ -44,7 +44,7 @@ var v = { card: "_card_p8vwa_1" }, y = ({ open: y, promptName: b, content: x, de
|
|
|
44
44
|
}
|
|
45
45
|
}],
|
|
46
46
|
children: /* @__PURE__ */ r("div", {
|
|
47
|
-
className: "flex flex-col gap-4 px-6 pb-4
|
|
47
|
+
className: "flex flex-col gap-4 px-6 pt-2 pb-4",
|
|
48
48
|
children: [/* @__PURE__ */ n("div", {
|
|
49
49
|
className: s("flex h-[72px] w-full items-center rounded-lg border px-3", v.card),
|
|
50
50
|
style: q,
|