@admin-layout/ai-chat-ext-browser 12.2.4-alpha.94 → 12.2.5-alpha.12
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/components/MessageWidgets/MessageFlights.d.ts +47 -0
- package/lib/components/MessageWidgets/MessageFlights.d.ts.map +1 -0
- package/lib/components/MessageWidgets/MessageFlights.js +321 -0
- package/lib/components/MessageWidgets/MessageFlights.js.map +1 -0
- package/lib/components/MessageWidgets/MessageMedia.d.ts +7 -5
- package/lib/components/MessageWidgets/MessageMedia.d.ts.map +1 -1
- package/lib/components/MessageWidgets/MessageMedia.js +86 -54
- package/lib/components/MessageWidgets/MessageMedia.js.map +1 -1
- package/lib/components/MessageWidgets/MessageResults.d.ts +54 -0
- package/lib/components/MessageWidgets/MessageResults.d.ts.map +1 -0
- package/lib/components/MessageWidgets/MessageResults.js +163 -0
- package/lib/components/MessageWidgets/MessageResults.js.map +1 -0
- package/lib/components/MessageWidgets/MessageTravel.d.ts +2 -0
- package/lib/components/MessageWidgets/MessageTravel.d.ts.map +1 -1
- package/lib/components/MessageWidgets/MessageTravel.js +22 -2
- package/lib/components/MessageWidgets/MessageTravel.js.map +1 -1
- package/lib/components/MessageWidgets/ResultCards.d.ts +19 -0
- package/lib/components/MessageWidgets/ResultCards.d.ts.map +1 -0
- package/lib/components/MessageWidgets/ResultCards.js +543 -0
- package/lib/components/MessageWidgets/ResultCards.js.map +1 -0
- package/lib/components/MessageWidgets/ResultRow.d.ts +57 -0
- package/lib/components/MessageWidgets/ResultRow.d.ts.map +1 -0
- package/lib/components/MessageWidgets/ResultRow.js +216 -0
- package/lib/components/MessageWidgets/ResultRow.js.map +1 -0
- package/lib/components/MessageWidgets/index.d.ts +7 -0
- package/lib/components/MessageWidgets/index.d.ts.map +1 -1
- package/lib/components/MessageWidgets/mediaUtils.d.ts +21 -0
- package/lib/components/MessageWidgets/mediaUtils.d.ts.map +1 -0
- package/lib/components/MessageWidgets/mediaUtils.js +76 -0
- package/lib/components/MessageWidgets/mediaUtils.js.map +1 -0
- package/lib/components/index.d.ts +2 -1
- package/lib/components/index.d.ts.map +1 -1
- package/lib/index.d.ts +7 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -1
- package/lib/interfaces/ai-chat.interface.d.ts +11 -1
- package/lib/interfaces/ai-chat.interface.d.ts.map +1 -1
- package/lib/interfaces/index.d.ts +1 -1
- package/lib/interfaces/index.d.ts.map +1 -1
- package/lib/module.d.ts.map +1 -1
- package/lib/module.js +13 -1
- package/lib/module.js.map +1 -1
- package/lib/slot-fill/chat-settings-fill.js +1 -1
- package/lib/slot-fill/chat-settings-fill.js.map +1 -1
- package/lib/slot-fill/index.d.ts +4 -0
- package/lib/slot-fill/index.d.ts.map +1 -1
- package/lib/slot-fill/message-ai-assistant-fill.js +1 -1
- package/lib/slot-fill/message-ai-assistant-fill.js.map +1 -1
- package/lib/slot-fill/message-codeblock-fill.js +1 -1
- package/lib/slot-fill/message-codeblock-fill.js.map +1 -1
- package/lib/slot-fill/message-connector-fill.js +1 -1
- package/lib/slot-fill/message-connector-fill.js.map +1 -1
- package/lib/slot-fill/message-generic-fill.js +1 -1
- package/lib/slot-fill/message-generic-fill.js.map +1 -1
- package/lib/slot-fill/message-jobs-fill.d.ts +4 -0
- package/lib/slot-fill/message-jobs-fill.d.ts.map +1 -0
- package/lib/slot-fill/message-jobs-fill.js +6 -0
- package/lib/slot-fill/message-jobs-fill.js.map +1 -0
- package/lib/slot-fill/message-media-fill.js +1 -1
- package/lib/slot-fill/message-media-fill.js.map +1 -1
- package/lib/slot-fill/message-movies-fill.d.ts +4 -0
- package/lib/slot-fill/message-movies-fill.d.ts.map +1 -0
- package/lib/slot-fill/message-movies-fill.js +6 -0
- package/lib/slot-fill/message-movies-fill.js.map +1 -0
- package/lib/slot-fill/message-resume-fill.d.ts +4 -0
- package/lib/slot-fill/message-resume-fill.d.ts.map +1 -0
- package/lib/slot-fill/message-resume-fill.js +6 -0
- package/lib/slot-fill/message-resume-fill.js.map +1 -0
- package/lib/slot-fill/message-service-fill.js +1 -1
- package/lib/slot-fill/message-service-fill.js.map +1 -1
- package/lib/slot-fill/message-shopping-fill.d.ts +4 -0
- package/lib/slot-fill/message-shopping-fill.d.ts.map +1 -0
- package/lib/slot-fill/message-shopping-fill.js +6 -0
- package/lib/slot-fill/message-shopping-fill.js.map +1 -0
- package/lib/slot-fill/message-thinking-fill.js +1 -1
- package/lib/slot-fill/message-thinking-fill.js.map +1 -1
- package/lib/slot-fill/message-tooluse-fill.js +1 -1
- package/lib/slot-fill/message-tooluse-fill.js.map +1 -1
- package/lib/slot-fill/message-travel-fill.js +1 -1
- package/lib/slot-fill/message-travel-fill.js.map +1 -1
- package/lib/slot-fill/message-workflow-fill.js +1 -1
- package/lib/slot-fill/message-workflow-fill.js.map +1 -1
- package/lib/utils/parseWidgetPost.d.ts.map +1 -1
- package/lib/utils/parseWidgetPost.js +1 -1
- package/lib/utils/parseWidgetPost.js.map +1 -1
- package/package.json +7 -5
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
import React,{useRef,useState,useCallback,useEffect}from'react';import {FiChevronLeft}from'@react-icons/all-files/fi/FiChevronLeft.js';import {FiChevronRight}from'@react-icons/all-files/fi/FiChevronRight.js';/**
|
|
2
|
+
* The frame every list-shaped chat widget shares (stays, cars, trains, buses,
|
|
3
|
+
* products, showtimes, jobs): the result set named once, quick picks that
|
|
4
|
+
* jump to their card, and a swipeable row with the next card peeking in.
|
|
5
|
+
* Flights draw the same frame in MessageFlights; this is its reusable twin.
|
|
6
|
+
*/
|
|
7
|
+
const BADGE_STYLE = {
|
|
8
|
+
cheapest: {
|
|
9
|
+
pill: 'bg-emerald-50 text-emerald-700 ring-emerald-200 dark:bg-emerald-500/15 dark:text-emerald-300 dark:ring-emerald-500/30',
|
|
10
|
+
text: 'text-emerald-600 dark:text-emerald-400'
|
|
11
|
+
},
|
|
12
|
+
fastest: {
|
|
13
|
+
pill: 'bg-violet-50 text-violet-700 ring-violet-200 dark:bg-violet-500/15 dark:text-violet-300 dark:ring-violet-500/30',
|
|
14
|
+
text: 'text-violet-600 dark:text-violet-400'
|
|
15
|
+
},
|
|
16
|
+
'top-rated': {
|
|
17
|
+
pill: 'bg-amber-50 text-amber-700 ring-amber-200 dark:bg-amber-500/15 dark:text-amber-300 dark:ring-amber-500/30',
|
|
18
|
+
text: 'text-amber-600 dark:text-amber-400'
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
const BADGE_TEXT = {
|
|
22
|
+
cheapest: 'Cheapest',
|
|
23
|
+
fastest: 'Fastest',
|
|
24
|
+
'top-rated': 'Top rated'
|
|
25
|
+
};
|
|
26
|
+
const ResultBadgePill = ({
|
|
27
|
+
badge,
|
|
28
|
+
floating = false
|
|
29
|
+
}) => React.createElement("span", {
|
|
30
|
+
className: `inline-flex shrink-0 items-center rounded-full px-2 py-0.5 text-[11px] font-semibold leading-4 ring-1 ring-inset ${BADGE_STYLE[badge].pill} ${floating ? 'shadow-sm backdrop-blur' : ''}`
|
|
31
|
+
}, BADGE_TEXT[badge]);
|
|
32
|
+
/** Card chrome shared by every result card; width comes from the row or the list. */
|
|
33
|
+
const RESULT_CARD_CLASS = 'group/card relative flex flex-col overflow-hidden rounded-2xl border bg-white text-left shadow-sm transition-all duration-200 ' + 'hover:-translate-y-0.5 hover:border-blue-300 hover:shadow-lg hover:shadow-blue-500/10 ' + 'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2 ' + 'dark:bg-gray-800 dark:hover:border-blue-500/60 dark:hover:shadow-black/30 dark:focus-visible:ring-offset-gray-900';
|
|
34
|
+
const resultCardBorder = highlighted => highlighted ? 'border-blue-400 ring-2 ring-blue-500/40 dark:border-blue-400' : 'border-gray-200 dark:border-gray-700';
|
|
35
|
+
/** In-row width: about a card and a half on a phone, three on a wide chat. */
|
|
36
|
+
const IN_ROW = 'w-[min(18rem,82%)] shrink-0 snap-start';
|
|
37
|
+
/**
|
|
38
|
+
* A card as a link to its seller when it has one, a button that opens the
|
|
39
|
+
* rail when it does not, and plain content when neither applies.
|
|
40
|
+
*/
|
|
41
|
+
const CardShell = ({
|
|
42
|
+
url,
|
|
43
|
+
onOpen,
|
|
44
|
+
label,
|
|
45
|
+
className,
|
|
46
|
+
cardKey,
|
|
47
|
+
children
|
|
48
|
+
}) => {
|
|
49
|
+
const common = {
|
|
50
|
+
'aria-label': label,
|
|
51
|
+
className,
|
|
52
|
+
'data-result-card': '',
|
|
53
|
+
'data-result-key': cardKey
|
|
54
|
+
};
|
|
55
|
+
if (url && /^https?:\/\//i.test(url)) {
|
|
56
|
+
return React.createElement("a", {
|
|
57
|
+
href: url,
|
|
58
|
+
target: "_blank",
|
|
59
|
+
rel: "noopener noreferrer",
|
|
60
|
+
...common
|
|
61
|
+
}, children);
|
|
62
|
+
}
|
|
63
|
+
if (onOpen) {
|
|
64
|
+
return React.createElement("button", {
|
|
65
|
+
type: "button",
|
|
66
|
+
onClick: onOpen,
|
|
67
|
+
...common
|
|
68
|
+
}, children);
|
|
69
|
+
}
|
|
70
|
+
return React.createElement("div", {
|
|
71
|
+
role: "group",
|
|
72
|
+
...common
|
|
73
|
+
}, children);
|
|
74
|
+
};
|
|
75
|
+
/** An image that steps aside for a fallback when it fails to load. */
|
|
76
|
+
const SafeImage = ({
|
|
77
|
+
src,
|
|
78
|
+
alt,
|
|
79
|
+
className,
|
|
80
|
+
fallback,
|
|
81
|
+
fit = 'cover'
|
|
82
|
+
}) => {
|
|
83
|
+
const [failed, setFailed] = useState(false);
|
|
84
|
+
if (!src || failed) return React.createElement(React.Fragment, null, fallback);
|
|
85
|
+
return (
|
|
86
|
+
// eslint-disable-next-line @next/next/no-img-element
|
|
87
|
+
React.createElement("img", {
|
|
88
|
+
src: src,
|
|
89
|
+
alt: alt,
|
|
90
|
+
loading: "lazy",
|
|
91
|
+
onError: () => setFailed(true),
|
|
92
|
+
className: `${className} ${fit === 'contain' ? 'object-contain' : 'object-cover'}`
|
|
93
|
+
})
|
|
94
|
+
);
|
|
95
|
+
};
|
|
96
|
+
const HIGHLIGHT_MS = 1600;
|
|
97
|
+
const ResultRow = ({
|
|
98
|
+
icon,
|
|
99
|
+
title,
|
|
100
|
+
subtitle,
|
|
101
|
+
picks = [],
|
|
102
|
+
count,
|
|
103
|
+
onViewAll,
|
|
104
|
+
viewAllLabel,
|
|
105
|
+
ariaLabel,
|
|
106
|
+
children
|
|
107
|
+
}) => {
|
|
108
|
+
const rowRef = useRef(null);
|
|
109
|
+
const [edges, setEdges] = useState({
|
|
110
|
+
atStart: true,
|
|
111
|
+
atEnd: true
|
|
112
|
+
});
|
|
113
|
+
const [highlighted, setHighlighted] = useState(null);
|
|
114
|
+
const measure = useCallback(() => {
|
|
115
|
+
const el = rowRef.current;
|
|
116
|
+
if (!el) return;
|
|
117
|
+
setEdges({
|
|
118
|
+
atStart: el.scrollLeft <= 1,
|
|
119
|
+
atEnd: el.scrollLeft + el.clientWidth >= el.scrollWidth - 1
|
|
120
|
+
});
|
|
121
|
+
}, []);
|
|
122
|
+
useEffect(() => {
|
|
123
|
+
measure();
|
|
124
|
+
const el = rowRef.current;
|
|
125
|
+
if (!el || typeof ResizeObserver === 'undefined') return undefined;
|
|
126
|
+
const ro = new ResizeObserver(measure);
|
|
127
|
+
ro.observe(el);
|
|
128
|
+
return () => ro.disconnect();
|
|
129
|
+
}, [measure]);
|
|
130
|
+
useEffect(() => {
|
|
131
|
+
if (!highlighted) return undefined;
|
|
132
|
+
const t = setTimeout(() => setHighlighted(null), HIGHLIGHT_MS);
|
|
133
|
+
return () => clearTimeout(t);
|
|
134
|
+
}, [highlighted]);
|
|
135
|
+
const step = dir => {
|
|
136
|
+
const el = rowRef.current;
|
|
137
|
+
const card = el?.querySelector('[data-result-card]');
|
|
138
|
+
if (!el || !card) return;
|
|
139
|
+
el.scrollBy({
|
|
140
|
+
left: dir * (card.offsetWidth + 12),
|
|
141
|
+
behavior: 'smooth'
|
|
142
|
+
});
|
|
143
|
+
};
|
|
144
|
+
const jumpTo = key => {
|
|
145
|
+
const el = rowRef.current;
|
|
146
|
+
const safe = typeof CSS !== 'undefined' && CSS.escape ? CSS.escape(key) : key.replace(/"/g, '\\"');
|
|
147
|
+
const card = el?.querySelector(`[data-result-key="${safe}"]`);
|
|
148
|
+
if (!el || !card) return;
|
|
149
|
+
el.scrollTo({
|
|
150
|
+
left: card.offsetLeft - 8,
|
|
151
|
+
behavior: 'smooth'
|
|
152
|
+
});
|
|
153
|
+
setHighlighted(key);
|
|
154
|
+
};
|
|
155
|
+
const arrow = 'absolute top-1/2 z-10 hidden h-9 w-9 -translate-y-1/2 items-center justify-center rounded-full border border-gray-200 bg-white/95 text-gray-700 shadow-md transition hover:bg-white ' + 'opacity-0 group-hover/row:opacity-100 focus-visible:opacity-100 disabled:pointer-events-none disabled:!opacity-0 [@media(pointer:fine)]:flex ' + 'dark:border-gray-600 dark:bg-gray-800/95 dark:text-gray-200';
|
|
156
|
+
return React.createElement("div", {
|
|
157
|
+
className: "my-2 w-full",
|
|
158
|
+
role: "group",
|
|
159
|
+
"aria-label": ariaLabel
|
|
160
|
+
}, React.createElement("div", {
|
|
161
|
+
className: "mx-2 mb-2 flex items-center justify-between gap-3"
|
|
162
|
+
}, React.createElement("div", {
|
|
163
|
+
className: "flex min-w-0 items-center gap-2.5"
|
|
164
|
+
}, React.createElement("span", {
|
|
165
|
+
"aria-hidden": "true",
|
|
166
|
+
className: "flex h-9 w-9 shrink-0 items-center justify-center rounded-xl bg-blue-50 text-blue-600 dark:bg-blue-500/15 dark:text-blue-300"
|
|
167
|
+
}, icon), React.createElement("div", {
|
|
168
|
+
className: "min-w-0"
|
|
169
|
+
}, React.createElement("p", {
|
|
170
|
+
className: "truncate text-sm font-semibold leading-5 text-gray-900 dark:text-gray-50"
|
|
171
|
+
}, title), subtitle ? React.createElement("p", {
|
|
172
|
+
className: "truncate text-xs leading-4 text-gray-500 dark:text-gray-400"
|
|
173
|
+
}, subtitle) : null)), onViewAll && count > 1 ? React.createElement("button", {
|
|
174
|
+
type: "button",
|
|
175
|
+
onClick: onViewAll,
|
|
176
|
+
className: "inline-flex shrink-0 items-center gap-0.5 rounded-full px-2.5 py-1 text-xs font-semibold text-blue-600 transition hover:bg-blue-50 dark:text-blue-400 dark:hover:bg-blue-500/10"
|
|
177
|
+
}, viewAllLabel || `View all ${count}`, React.createElement(FiChevronRight, {
|
|
178
|
+
className: "h-3.5 w-3.5"
|
|
179
|
+
})) : null), picks.length > 0 ? React.createElement("div", {
|
|
180
|
+
className: "mx-2 mb-2 flex flex-wrap gap-1.5",
|
|
181
|
+
"aria-label": "Quick picks"
|
|
182
|
+
}, picks.map(p => React.createElement("button", {
|
|
183
|
+
key: p.badge,
|
|
184
|
+
type: "button",
|
|
185
|
+
onClick: () => jumpTo(p.key),
|
|
186
|
+
className: "inline-flex max-w-full items-center gap-1.5 rounded-full border border-gray-200 bg-white px-2.5 py-1 text-xs transition hover:border-blue-300 hover:bg-blue-50/60 dark:border-gray-700 dark:bg-gray-800 dark:hover:border-blue-500/60 dark:hover:bg-blue-500/10"
|
|
187
|
+
}, React.createElement("span", {
|
|
188
|
+
className: `shrink-0 font-semibold ${BADGE_STYLE[p.badge].text}`
|
|
189
|
+
}, p.label), p.value ? React.createElement("span", {
|
|
190
|
+
className: "shrink-0 font-semibold tabular-nums text-gray-900 dark:text-gray-50"
|
|
191
|
+
}, p.value) : null, p.name ? React.createElement("span", {
|
|
192
|
+
className: "truncate text-gray-500 dark:text-gray-400"
|
|
193
|
+
}, "\u00B7 ", p.name) : null))) : null, React.createElement("div", {
|
|
194
|
+
className: "group/row relative"
|
|
195
|
+
}, React.createElement("div", {
|
|
196
|
+
ref: rowRef,
|
|
197
|
+
onScroll: measure,
|
|
198
|
+
className: "flex snap-x snap-mandatory scroll-px-2 gap-3 overflow-x-auto scroll-smooth px-2 pb-2 pt-1 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden"
|
|
199
|
+
}, children(highlighted)), React.createElement("button", {
|
|
200
|
+
type: "button",
|
|
201
|
+
"aria-label": "Previous results",
|
|
202
|
+
onClick: () => step(-1),
|
|
203
|
+
disabled: edges.atStart,
|
|
204
|
+
className: `${arrow} left-0`
|
|
205
|
+
}, React.createElement(FiChevronLeft, {
|
|
206
|
+
className: "h-5 w-5"
|
|
207
|
+
})), React.createElement("button", {
|
|
208
|
+
type: "button",
|
|
209
|
+
"aria-label": "More results",
|
|
210
|
+
onClick: () => step(1),
|
|
211
|
+
disabled: edges.atEnd,
|
|
212
|
+
className: `${arrow} right-0`
|
|
213
|
+
}, React.createElement(FiChevronRight, {
|
|
214
|
+
className: "h-5 w-5"
|
|
215
|
+
}))));
|
|
216
|
+
};export{BADGE_STYLE,CardShell,IN_ROW,RESULT_CARD_CLASS,ResultBadgePill,ResultRow,SafeImage,resultCardBorder};//# sourceMappingURL=ResultRow.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ResultRow.js","sources":["../../../src/components/MessageWidgets/ResultRow.tsx"],"sourcesContent":[null],"names":[],"mappings":"gNAKA;;;;;AAKG;AAEI,MAAM,WAAW,GAAwD;AAC5E,EAAA,QAAA,EAAQ;AACJ,IAAA,IAAA,EAAA,uHAAM;AACN,IAAA,IAAA,EAAA;AACH,GAAA;AACD,EAAA,OAAA,EAAO;AACH,IAAA,IAAA,EAAA,iHAAM;AACN,IAAA,IAAA,EAAA;AACH,GAAA;AACD,EAAA,WAAA,EAAW;AACP,IAAA,IAAA,EAAA,2GAAM;AACN,IAAA,IAAA,EAAA;AACH;;AAGL,MAAM,UAAU,GAAgC;AAEhD,EAAA,oBAAa;AAUb,EAAA,OAAA,EAAA,SAAA;AACA,EAAA,WAAa,EAAA;;AAGT,MAAA,eAAA,GAAA,CAAA;AACA,EAAA,KAAA;AAEJ,EAAA,WAAa;AAEL,CAAA,KAAE,KAAA,CAAA,aAAA,CAAA,MAAA,EAAA;+HACuC,EAAA,WAAA,CAAA,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B,CAAA,KAAA,CAAA,QAAsB,EAAA,IAAA,EAAA,QAAA,CAAA;AAClE,EAAA;;SACA,CAAE,mBAAkB,EAAG;AAC3B,MAAE,GAAA,EAAA,GAAA;AAEF,MAAA,GAAA,EAAM,GAAA;AACF,MAAA,OAAA,EAAM,MAAK;AACX,MAAA,OAAA,EAAM,MAAO,SAAO,CAAG,IAAA,CAAK;eACtB,EAAA,CAAI,EAAA,SAAO,CAAA,CAAA,EAAA,GAAA,KAA2B,SAAA,GAAA,gBAA8B,GAAC,cAAA,CAAA;AAC3E,KAAA;;AACA;kBACA,GAAA,IAAe;AACjB,MAAA,SAAA,GAAA,CAAA;MAEF;;AAGI,EAAA,QAAA;OAEJ,GAAA,EACI;;;AAGY,EAAA,YAAA;;AAOI,EAAA;AAGC,CAAA,KAAA;AAKR,EAAA,MAAA,MAAA,GAAA,WAAa,CAAA;gBAML,QAAA,CAAA,GAAY,QAAI,CAAA;AACjB,IAAA,OAAA,EAAA,IAAA;SAKX,EAAA;AASe,GAAA,CAAA;AACC,EAAA,MAAA,CAAA,WAAQ,EAAE,+BACD,CAAA;kBAIH,WACH,CAAA,MAAA;;AAA+D,IAAA,IAAA,CAAA,EAAA,EAAA;YAOnF,CAAA;AACI,MAAA,OAAA,EAAA,EAAA,CAAA,UAAA,IAAA,CAAA;aAOA,EAAA,CAAA,UAAA,GAAA,EAAA,CAAA,WAAA,IACI,EAAI,CAAC,WAAQ,GAAA;AAMb,KAAA,CAAA;;kBASA;AAKpB,IAAE,OAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -12,10 +12,17 @@ export { MessageMedia } from './MessageMedia';
|
|
|
12
12
|
export type { IMessageMediaProps } from './MessageMedia';
|
|
13
13
|
export { MessageTravel } from './MessageTravel';
|
|
14
14
|
export type { IMessageTravelProps } from './MessageTravel';
|
|
15
|
+
export { MessageFlights } from './MessageFlights';
|
|
16
|
+
export { FlightCardList, FlightCard } from './MessageFlights';
|
|
17
|
+
export type { IMessageFlightsProps, IFlightCardListProps, IFlightCardProps } from './MessageFlights';
|
|
15
18
|
export { MessageWorkflow } from './MessageWorkflow';
|
|
16
19
|
export type { IMessageWorkflowProps } from './MessageWorkflow';
|
|
17
20
|
export { MessageGeneric } from './MessageGeneric';
|
|
18
21
|
export type { IMessageGenericProps } from './MessageGeneric';
|
|
19
22
|
export { MessageConnector } from './MessageConnector';
|
|
20
23
|
export type { IMessageConnectorProps } from './MessageConnector';
|
|
24
|
+
export { MessageResults, MessageShopping, MessageMovies, MessageJobs, MessageResume, ResultCardList, VERTICALS, RESULT_SORT_LABELS, travelVertical, resultSummaryOf, resultIconOf, } from './MessageResults';
|
|
25
|
+
export type { ResultVertical, IMessageResultsProps, IResultCardListProps, IMessageVerticalProps, } from './MessageResults';
|
|
26
|
+
export { StayCard, CarCard, GroundCard, ProductCard, MovieCard, JobCard, ResumeCard } from './ResultCards';
|
|
27
|
+
export { ResultRow } from './ResultRow';
|
|
21
28
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/MessageWidgets/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,YAAY,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AACrE,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,YAAY,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,YAAY,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,YAAY,EAAE,oBAAoB,EAAE,MAAM,kBAAkB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} from '../../interfaces';
|
|
2
|
+
export type MediaKind = MediaItem['kind'];
|
|
3
|
+
/** Human label for each asset kind. */
|
|
4
|
+
export declare const MEDIA_KIND_LABEL: Record<MediaKind, string>;
|
|
5
|
+
/**
|
|
6
|
+
* Normalise an attachment into a flat list of assets. Agents emit two shapes:
|
|
7
|
+
* a single top-level `url`, or a nested `items[]` array — this tolerates both.
|
|
8
|
+
*/
|
|
9
|
+
export declare const deriveMediaItems: (attachment: MediaAttachmentsInterface) => MediaItem[];
|
|
10
|
+
/** Seconds → `m:ss` (hours fold into minutes). `65` → `"1:05"`, `8` → `"0:08"`. */
|
|
11
|
+
export declare const formatDuration: (seconds?: number) => string | undefined;
|
|
12
|
+
/** Intrinsic dimensions → `"1920×1080"`; undefined until both are known. */
|
|
13
|
+
export declare const formatDimensions: (width?: number, height?: number) => string | undefined;
|
|
14
|
+
/**
|
|
15
|
+
* Short uppercase format label from the mime subtype, falling back to the file
|
|
16
|
+
* extension. `"video/mp4"` → `"MP4"`, `"image/png"` → `"PNG"`, `foo.webp` → `"WEBP"`.
|
|
17
|
+
*/
|
|
18
|
+
export declare const formatMediaFormat: (mimeType?: string, fileName?: string) => string | undefined;
|
|
19
|
+
/** The attribution line: `connector · model`, omitting whichever is absent. */
|
|
20
|
+
export declare const formatAttribution: (attachment: MediaAttachmentsInterface) => string | undefined;
|
|
21
|
+
//# sourceMappingURL=mediaUtils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mediaUtils.d.ts","sourceRoot":"","sources":["../../../src/components/MessageWidgets/mediaUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAExE,MAAM,MAAM,SAAS,GAAG,SAAS,CAAC,MAAM,CAAC,CAAC;AAE1C,uCAAuC;AACvC,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,CAItD,CAAC;AAuBF;;;GAGG;AACH,eAAO,MAAM,gBAAgB,GAAI,YAAY,yBAAyB,KAAG,SAAS,EAcjF,CAAC;AAEF,mFAAmF;AACnF,eAAO,MAAM,cAAc,GAAI,UAAU,MAAM,KAAG,MAAM,GAAG,SAM1D,CAAC;AAEF,4EAA4E;AAC5E,eAAO,MAAM,gBAAgB,GAAI,QAAQ,MAAM,EAAE,SAAS,MAAM,KAAG,MAAM,GAAG,SACtB,CAAC;AAUvD;;;GAGG;AACH,eAAO,MAAM,iBAAiB,GAAI,WAAW,MAAM,EAAE,WAAW,MAAM,KAAG,MAAM,GAAG,SAMjF,CAAC;AAEF,+EAA+E;AAC/E,eAAO,MAAM,iBAAiB,GAAI,YAAY,yBAAyB,KAAG,MAAM,GAAG,SAGlF,CAAC"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/** Human label for each asset kind. */
|
|
2
|
+
const MEDIA_KIND_LABEL = {
|
|
3
|
+
image: 'Image',
|
|
4
|
+
video: 'Video',
|
|
5
|
+
audio: 'Audio'
|
|
6
|
+
};
|
|
7
|
+
/** Extensions worth recognising when an item names no kind — the rest fall through to image. */
|
|
8
|
+
const VIDEO_EXTENSIONS = ['mp4', 'webm', 'mov', 'm4v', 'mkv'];
|
|
9
|
+
const AUDIO_EXTENSIONS = ['mp3', 'wav', 'ogg', 'm4a', 'aac', 'flac'];
|
|
10
|
+
/**
|
|
11
|
+
* The kind an item renders as. `MediaAsset` picks `<img>` for anything it does not
|
|
12
|
+
* recognise, so an item that names no kind renders a clip or a track as a broken
|
|
13
|
+
* image — hence the fallbacks: the attachment's own kind, then the mime type, then
|
|
14
|
+
* the URL's extension.
|
|
15
|
+
*/
|
|
16
|
+
const itemKind = (item, attachment) => {
|
|
17
|
+
if (item.kind) return item.kind;
|
|
18
|
+
if (attachment.kind) return attachment.kind;
|
|
19
|
+
const mime = item.mimeType?.split('/')[0]?.toLowerCase();
|
|
20
|
+
if (mime === 'video' || mime === 'audio' || mime === 'image') return mime;
|
|
21
|
+
const ext = item.url?.split(/[?#]/)[0]?.split('.').pop()?.toLowerCase() ?? '';
|
|
22
|
+
if (VIDEO_EXTENSIONS.includes(ext)) return 'video';
|
|
23
|
+
if (AUDIO_EXTENSIONS.includes(ext)) return 'audio';
|
|
24
|
+
return 'image';
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Normalise an attachment into a flat list of assets. Agents emit two shapes:
|
|
28
|
+
* a single top-level `url`, or a nested `items[]` array — this tolerates both.
|
|
29
|
+
*/
|
|
30
|
+
const deriveMediaItems = attachment => {
|
|
31
|
+
if (Array.isArray(attachment.items) && attachment.items.length > 0) {
|
|
32
|
+
return attachment.items.map(item => ({
|
|
33
|
+
...item,
|
|
34
|
+
kind: itemKind(item, attachment)
|
|
35
|
+
}));
|
|
36
|
+
}
|
|
37
|
+
if (!attachment.url) return [];
|
|
38
|
+
return [{
|
|
39
|
+
kind: itemKind(attachment, attachment),
|
|
40
|
+
url: attachment.url,
|
|
41
|
+
title: attachment.title,
|
|
42
|
+
mimeType: attachment.mimeType,
|
|
43
|
+
posterUrl: attachment.posterUrl
|
|
44
|
+
}];
|
|
45
|
+
};
|
|
46
|
+
/** Seconds → `m:ss` (hours fold into minutes). `65` → `"1:05"`, `8` → `"0:08"`. */
|
|
47
|
+
const formatDuration = seconds => {
|
|
48
|
+
if (seconds == null || !Number.isFinite(seconds) || seconds < 0) return undefined;
|
|
49
|
+
const total = Math.round(seconds);
|
|
50
|
+
const minutes = Math.floor(total / 60);
|
|
51
|
+
const secs = total % 60;
|
|
52
|
+
return `${minutes}:${secs.toString().padStart(2, '0')}`;
|
|
53
|
+
};
|
|
54
|
+
/** Intrinsic dimensions → `"1920×1080"`; undefined until both are known. */
|
|
55
|
+
const formatDimensions = (width, height) => width && height ? `${width}×${height}` : undefined;
|
|
56
|
+
/** Common mime subtypes that read better under a short alias than raw. */
|
|
57
|
+
const FORMAT_ALIASES = {
|
|
58
|
+
quicktime: 'MOV',
|
|
59
|
+
'x-matroska': 'MKV',
|
|
60
|
+
jpeg: 'JPG',
|
|
61
|
+
'svg+xml': 'SVG'
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* Short uppercase format label from the mime subtype, falling back to the file
|
|
65
|
+
* extension. `"video/mp4"` → `"MP4"`, `"image/png"` → `"PNG"`, `foo.webp` → `"WEBP"`.
|
|
66
|
+
*/
|
|
67
|
+
const formatMediaFormat = (mimeType, fileName) => {
|
|
68
|
+
const sub = mimeType?.split('/')[1]?.split(';')[0]?.trim().toLowerCase() || fileName?.split('.').pop()?.trim().toLowerCase();
|
|
69
|
+
if (!sub) return undefined;
|
|
70
|
+
return (FORMAT_ALIASES[sub] ?? sub).toUpperCase();
|
|
71
|
+
};
|
|
72
|
+
/** The attribution line: `connector · model`, omitting whichever is absent. */
|
|
73
|
+
const formatAttribution = attachment => {
|
|
74
|
+
const parts = [attachment.connector, attachment.model].filter(Boolean);
|
|
75
|
+
return parts.length ? parts.join(' · ') : undefined;
|
|
76
|
+
};export{MEDIA_KIND_LABEL,deriveMediaItems,formatAttribution,formatDimensions,formatDuration,formatMediaFormat};//# sourceMappingURL=mediaUtils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mediaUtils.js","sources":["../../../src/components/MessageWidgets/mediaUtils.ts"],"sourcesContent":[null],"names":[],"mappings":"AAIA;AACO,MAAM,gBAAgB,GAA8B;AACvD,EAAA,KAAA,EAAK,OAAE;AACP,EAAA,KAAA,EAAK,OAAE;AACP,EAAA,KAAA,EAAK;;AAGT;AACA,MAAM,gBAAgB,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC;AAC7D,MAAM,gBAAgB,GAAG,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,CAAC;AAEpE;;;;;AAKG;AACH,MAAM,QAAQ,GAAG,CAAC,IAAe,EAAE,UAAqC,KAAe;MACnF,IAAI,C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,CAAA,IAAK,CAAA,KAAM,CAAA,GAAG,SAAA;AACvC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export { MessageAiAssistant, MessageThinking, MessageCodeBlock, MessageToolUse, MessageService, MessageMedia, MessageTravel, MessageWorkflow, MessageGeneric, MessageConnector, } from './MessageWidgets';
|
|
1
|
+
export { MessageAiAssistant, MessageThinking, MessageCodeBlock, MessageToolUse, MessageService, MessageMedia, MessageTravel, MessageWorkflow, MessageGeneric, MessageConnector, MessageFlights, FlightCardList, } from './MessageWidgets';
|
|
2
|
+
export type { IMessageFlightsProps, IFlightCardListProps, IFlightCardProps } from './MessageWidgets';
|
|
2
3
|
export { ChatSettingsPanel, ConnectedChatSettingsPanel } from './ChatSettingsPanel';
|
|
3
4
|
export type { ChatSettingsPanelProps, SettingsEntry, ConnectedChatSettingsPanelProps } from './ChatSettingsPanel';
|
|
4
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,kBAAkB,EAClB,eAAe,EACf,gBAAgB,EAChB,cAAc,EACd,cAAc,EACd,YAAY,EACZ,aAAa,EACb,eAAe,EACf,cAAc,EACd,gBAAgB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,kBAAkB,EAClB,eAAe,EACf,gBAAgB,EAChB,cAAc,EACd,cAAc,EACd,YAAY,EACZ,aAAa,EACb,eAAe,EACf,cAAc,EACd,gBAAgB,EAChB,cAAc,EACd,cAAc,GACjB,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACrG,OAAO,EAAE,iBAAiB,EAAE,0BAA0B,EAAE,MAAM,qBAAqB,CAAC;AACpF,YAAY,EAAE,sBAAsB,EAAE,aAAa,EAAE,+BAA+B,EAAE,MAAM,qBAAqB,CAAC"}
|
package/lib/index.d.ts
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
1
|
export { feature as default } from './module';
|
|
2
2
|
export { parseWidgetPost } from './utils/parseWidgetPost';
|
|
3
|
+
export { MessageFlights, FlightCardList, FlightCard } from './components/MessageWidgets/MessageFlights';
|
|
4
|
+
export type { IMessageFlightsProps, IFlightCardListProps, IFlightCardProps, } from './components/MessageWidgets/MessageFlights';
|
|
5
|
+
export type { TravelAttachmentsInterface, TravelPropertyItem, TravelFlightDetails, TravelFlightSlice, } from './interfaces';
|
|
6
|
+
export { MessageResults, MessageShopping, MessageMovies, MessageJobs, MessageResume, ResultCardList, RESULT_SORT_LABELS, VERTICALS, travelVertical, resultSummaryOf, resultIconOf, } from './components/MessageWidgets/MessageResults';
|
|
7
|
+
export type { ResultVertical, IMessageResultsProps, IResultCardListProps, IMessageVerticalProps, } from './components/MessageWidgets/MessageResults';
|
|
8
|
+
export { StayCard, CarCard, GroundCard, ProductCard, MovieCard, JobCard, ResumeCard, } from './components/MessageWidgets/ResultCards';
|
|
9
|
+
export { ResultRow } from './components/MessageWidgets/ResultRow';
|
|
3
10
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,4CAA4C,CAAC;AACxG,YAAY,EACR,oBAAoB,EACpB,oBAAoB,EACpB,gBAAgB,GACnB,MAAM,4CAA4C,CAAC;AACpD,YAAY,EACR,0BAA0B,EAC1B,kBAAkB,EAClB,mBAAmB,EACnB,iBAAiB,GACpB,MAAM,cAAc,CAAC;AACtB,OAAO,EACH,cAAc,EACd,eAAe,EACf,aAAa,EACb,WAAW,EACX,aAAa,EACb,cAAc,EACd,kBAAkB,EAClB,SAAS,EACT,cAAc,EACd,eAAe,EACf,YAAY,GACf,MAAM,4CAA4C,CAAC;AACpD,YAAY,EACR,cAAc,EACd,oBAAoB,EACpB,oBAAoB,EACpB,qBAAqB,GACxB,MAAM,4CAA4C,CAAC;AACpD,OAAO,EACH,QAAQ,EACR,OAAO,EACP,UAAU,EACV,WAAW,EACX,SAAS,EACT,OAAO,EACP,UAAU,GACb,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,uCAAuC,CAAC"}
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{feature as default}from'./module.js';export{parseWidgetPost}from'./utils/parseWidgetPost.js';//# sourceMappingURL=index.js.map
|
|
1
|
+
export{feature as default}from'./module.js';export{parseWidgetPost}from'./utils/parseWidgetPost.js';export{FlightCard,FlightCardList,MessageFlights}from'./components/MessageWidgets/MessageFlights.js';export{MessageJobs,MessageMovies,MessageResults,MessageResume,MessageShopping,RESULT_SORT_LABELS,ResultCardList,VERTICALS,resultIconOf,resultSummaryOf,travelVertical}from'./components/MessageWidgets/MessageResults.js';export{CarCard,GroundCard,JobCard,MovieCard,ProductCard,ResumeCard,StayCard}from'./components/MessageWidgets/ResultCards.js';export{ResultRow}from'./components/MessageWidgets/ResultRow.js';//# sourceMappingURL=index.js.map
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { TravelFlightDetails } from '@admin-layout/client';
|
|
1
2
|
import type { MediaItem } from '@admin-layout/connector-widgets-browser';
|
|
2
3
|
export interface AiAssistantAttachmentsInterface {
|
|
3
4
|
/** The model that generated the response (e.g. "GPT-4o", "Claude 3.5") */
|
|
@@ -109,6 +110,7 @@ export interface MediaAttachmentsInterface {
|
|
|
109
110
|
/** Extra assets when a run returns more than one (image grid / variants). */
|
|
110
111
|
items?: MediaItem[];
|
|
111
112
|
}
|
|
113
|
+
export type { TravelFlightDetails, TravelFlightSlice } from '@admin-layout/client';
|
|
112
114
|
/** A single normalized stay (hotel / vacation rental) from the yantra-resortifi connector. */
|
|
113
115
|
export interface TravelPropertyItem {
|
|
114
116
|
id?: string;
|
|
@@ -129,6 +131,12 @@ export interface TravelPropertyItem {
|
|
|
129
131
|
url?: string;
|
|
130
132
|
/** Which data source produced this (airbnb / booking / priceline / resortifi). */
|
|
131
133
|
source?: string;
|
|
134
|
+
/**
|
|
135
|
+
* Present when the item is a flight offer. The chat card then renders a
|
|
136
|
+
* swipeable row of flight cards (times, airports, airline, stops, price)
|
|
137
|
+
* instead of the stay list; items without it keep the stay layout.
|
|
138
|
+
*/
|
|
139
|
+
flight?: TravelFlightDetails;
|
|
132
140
|
}
|
|
133
141
|
/**
|
|
134
142
|
* Travel listings attachment — rendered in chat as a compact button/card
|
|
@@ -147,8 +155,10 @@ export interface TravelAttachmentsInterface {
|
|
|
147
155
|
/** Lowest / highest nightly price, for the summary line. */
|
|
148
156
|
priceFrom?: number;
|
|
149
157
|
priceTo?: number;
|
|
150
|
-
/** Label for the open-in-side-panel action (default "View stays"). */
|
|
158
|
+
/** Label for the open-in-side-panel action (default "View stays", or "View flights"). */
|
|
151
159
|
actionLabel?: string;
|
|
160
|
+
/** ISO 4217 currency of the `price` values (default "USD"). */
|
|
161
|
+
currency?: string;
|
|
152
162
|
}
|
|
153
163
|
/** One labelled key-value row in the generic card. */
|
|
154
164
|
export interface GenericFieldItem {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ai-chat.interface.d.ts","s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CAAsC;IACtC,KAAK,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAC3B,mFAAmF;IACnF,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,2DAA2D;IAC3D,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB;AAGD;;;;GAIG;AACH,MAAM,WAAW,6BAA6B;IAC1C,qCAAqC;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,2CAA2C;IAC3C,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,2DAA2D;IAC3D,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { AiAssistantAttachmentsInterface, ThinkingAttachmentsInterface, CodeBlockAttachmentsInterface, ToolUseAttachmentsInterface, ServiceAttachmentsInterface, MediaAttachmentsInterface, MediaItem, TravelAttachmentsInterface, TravelPropertyItem, WorkflowAttachmentsInterface, WorkflowNodeItem, WorkflowEdgeItem, GenericAttachmentsInterface, GenericFieldItem, GenericListItem, ConnectorAttachmentsInterface, } from './ai-chat.interface';
|
|
1
|
+
export { AiAssistantAttachmentsInterface, ThinkingAttachmentsInterface, CodeBlockAttachmentsInterface, ToolUseAttachmentsInterface, ServiceAttachmentsInterface, MediaAttachmentsInterface, MediaItem, TravelAttachmentsInterface, TravelPropertyItem, TravelFlightDetails, TravelFlightSlice, WorkflowAttachmentsInterface, WorkflowNodeItem, WorkflowEdgeItem, GenericAttachmentsInterface, GenericFieldItem, GenericListItem, ConnectorAttachmentsInterface, } from './ai-chat.interface';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/interfaces/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,+BAA+B,EAC/B,4BAA4B,EAC5B,6BAA6B,EAC7B,2BAA2B,EAC3B,2BAA2B,EAC3B,yBAAyB,EACzB,SAAS,EACT,0BAA0B,EAC1B,kBAAkB,EAClB,4BAA4B,EAC5B,gBAAgB,EAChB,gBAAgB,EAChB,2BAA2B,EAC3B,gBAAgB,EAChB,eAAe,EACf,6BAA6B,GAChC,MAAM,qBAAqB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/interfaces/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,+BAA+B,EAC/B,4BAA4B,EAC5B,6BAA6B,EAC7B,2BAA2B,EAC3B,2BAA2B,EAC3B,yBAAyB,EACzB,SAAS,EACT,0BAA0B,EAC1B,kBAAkB,EAClB,mBAAmB,EACnB,iBAAiB,EACjB,4BAA4B,EAC5B,gBAAgB,EAChB,gBAAgB,EAChB,2BAA2B,EAC3B,gBAAgB,EAChB,eAAe,EACf,6BAA6B,GAChC,MAAM,qBAAqB,CAAC"}
|
package/lib/module.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../src/module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../src/module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAoBrD,eAAO,MAAM,OAAO,SAmDlB,CAAC"}
|
package/lib/module.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {Feature}from'@common-stack/client-react';import {PostTypeEnum}from'common';import {MessageAiAssistantFill}from'./slot-fill/message-ai-assistant-fill.js';import {MessageThinkingFill}from'./slot-fill/message-thinking-fill.js';import {MessageCodeBlockFill}from'./slot-fill/message-codeblock-fill.js';import {MessageToolUseFill}from'./slot-fill/message-tooluse-fill.js';import {MessageServiceFill}from'./slot-fill/message-service-fill.js';import {MessageMediaFill}from'./slot-fill/message-media-fill.js';import {MessageTravelFill}from'./slot-fill/message-travel-fill.js';import {MessageWorkflowFill}from'./slot-fill/message-workflow-fill.js';import {MessageGenericFill}from'./slot-fill/message-generic-fill.js';import {MessageConnectorFill}from'./slot-fill/message-connector-fill.js';import {ChatSettingsFill}from'./slot-fill/chat-settings-fill.js';const feature = new Feature({
|
|
1
|
+
import {Feature}from'@common-stack/client-react';import {PostTypeEnum}from'common';import {MessageAiAssistantFill}from'./slot-fill/message-ai-assistant-fill.js';import {MessageThinkingFill}from'./slot-fill/message-thinking-fill.js';import {MessageCodeBlockFill}from'./slot-fill/message-codeblock-fill.js';import {MessageToolUseFill}from'./slot-fill/message-tooluse-fill.js';import {MessageServiceFill}from'./slot-fill/message-service-fill.js';import {MessageMediaFill}from'./slot-fill/message-media-fill.js';import {MessageTravelFill}from'./slot-fill/message-travel-fill.js';import {MessageWorkflowFill}from'./slot-fill/message-workflow-fill.js';import {MessageGenericFill}from'./slot-fill/message-generic-fill.js';import {MessageConnectorFill}from'./slot-fill/message-connector-fill.js';import {ChatSettingsFill}from'./slot-fill/chat-settings-fill.js';import {MessageShoppingFill}from'./slot-fill/message-shopping-fill.js';import {MessageMoviesFill}from'./slot-fill/message-movies-fill.js';import {MessageJobsFill}from'./slot-fill/message-jobs-fill.js';import {MessageResumeFill}from'./slot-fill/message-resume-fill.js';const feature = new Feature({
|
|
2
2
|
componentFillPlugins: [{
|
|
3
3
|
name: PostTypeEnum.Aiassistant.toLowerCase(),
|
|
4
4
|
render: MessageAiAssistantFill
|
|
@@ -29,6 +29,18 @@ import {Feature}from'@common-stack/client-react';import {PostTypeEnum}from'commo
|
|
|
29
29
|
}, {
|
|
30
30
|
name: 'connector',
|
|
31
31
|
render: MessageConnectorFill
|
|
32
|
+
}, {
|
|
33
|
+
name: 'shopping',
|
|
34
|
+
render: MessageShoppingFill
|
|
35
|
+
}, {
|
|
36
|
+
name: 'movies',
|
|
37
|
+
render: MessageMoviesFill
|
|
38
|
+
}, {
|
|
39
|
+
name: 'jobs',
|
|
40
|
+
render: MessageJobsFill
|
|
41
|
+
}, {
|
|
42
|
+
name: 'resume',
|
|
43
|
+
render: MessageResumeFill
|
|
32
44
|
}, {
|
|
33
45
|
name: 'chat-settings',
|
|
34
46
|
render: ChatSettingsFill
|
package/lib/module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module.js","sources":["../src/module.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"module.js","sources":["../src/module.ts"],"sourcesContent":[null],"names":[],"mappings":"imCAoBO,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC;AAC/B,EAAA,oBAAA,EAAoB,CAAA;AAChB,IAAA,IAAA,EAAA,YAAA,CAAA,WAAA,CAAA,WAAA,EAAA;AACI,IAAA,MAAA,EAAA;AACA,GAAA,EAAA;AACH,IAAA,IAAA,EAAA,UAAA;AACD,IAAA,MAAA,EAAA;AACI,GAAA,EAAA;AACA,IAAA,IAAA,EAAA,WAAQ;AACX,IAAA,MAAA,EAAA;AACD,GAAA,EAAA;AACI,IAAA,IAAA,EAAA,SAAM;AACN,IAAA,MAAA,EAAA;AACH,GAAA,EAAA;AACD,IAAA,IAAA,EAAA,YAAA,CAAA,OAAA,CAAA,WAAA,EAAA;AACI,IAAA,MAAA,EAAA;AACA,GAAA,EAAA;AACH,IAAA,IAAA,EAAA,OAAA;AACD,IAAA,MAAA,EAAA;AACI,GAAA,EAAA;AACA,IAAA,IAAA,EAAA,QAAM;AACT,IAAA,MAAA,EAAA;AACD,GAAA,EAAA;AACI,IAAA,IAAA,EAAA,UAAM;AACN,IAAA,MAAA,EAAA;AACH,GAAA,EAAA;AACD,IAAA,IAAA,EAAA,SAAA;AACI,IAAA,MAAA,EAAA;AACA,GAAA,EAAA;AACH,IAAA,IAAA,EAAA,WAAA;AACD,IAAA,MAAA,EAAA;AACI,GAAA,EAAA;AACA,IAAA,IAAA,EAAA,UAAQ;AACX,IAAA,MAAA,EAAA;AACD,GAAA,EAAA;AACI,IAAA,IAAA,EAAA,QAAM;AACN,IAAA,MAAA,EAAA;AACH,GAAA,EAAA;AACD,IAAA,IAAA,EAAA,MAAA;AACI,IAAA,MAAA,EAAA;AACA,GAAA,EAAA;AACH,IAAA,IAAA,EAAA,QAAA;AACD,IAAA,MAAE;AACF,GAAA,EAAA;AACA,IAAA,IAAA,EAAE,eAAc;AAChB,IAAA,MAAE;AACF,GAAA;AACI,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from'react';import {Fill}from'@common-stack/components-pro';import'@react-icons/all-files/fi/FiCpu.js';import'@react-icons/all-files/fi/FiChevronDown.js';import'@react-icons/all-files/fi/FiCopy.js';import'@react-icons/all-files/fi/FiCheck.js';import'@react-icons/all-files/fi/FiExternalLink.js';import'@react-icons/all-files/fi/FiCode.js';import'@react-icons/all-files/fi/FiFile.js';import'@react-icons/all-files/fi/FiTool.js';import'@react-icons/all-files/fi/FiAlertCircle.js';import'@react-icons/all-files/fi/FiLoader.js';import'@react-icons/all-files/fi/FiInfo.js';import'@react-icons/all-files/fi/FiAlertTriangle.js';import'@react-icons/all-files/fi/FiCheckCircle.js';import'html-react-parser';import'../components/MessageWidgets/MessageMedia.js';import'@react-icons/all-files/fi/FiMapPin.js';import'@react-icons/all-files/fi/FiStar.js';import'@react-icons/all-files/fi/FiChevronRight.js';import'@react-icons/all-files/fi/FiGitBranch.js';import'@react-icons/all-files/fi/FiArrowRight.js';import'@react-icons/all-files/fi/FiBox.js';import'@react-icons/all-files/fi/FiZap.js';import'@react-icons/all-files/fi/FiSearch.js';import'@react-icons/all-files/fi/FiX.js';import'@react-icons/all-files/fi/FiRefreshCw.js';import'@react-icons/all-files/fi/FiEdit2.js';import'@react-icons/all-files/fi/FiPlus.js';import'@react-icons/all-files/fi/FiTrash2.js';import {ConnectedChatSettingsPanel}from'../components/ChatSettingsPanel/ConnectedChatSettingsPanel.js';/**
|
|
1
|
+
import React from'react';import {Fill}from'@common-stack/components-pro';import'@react-icons/all-files/fi/FiCpu.js';import'@react-icons/all-files/fi/FiChevronDown.js';import'@react-icons/all-files/fi/FiCopy.js';import'@react-icons/all-files/fi/FiCheck.js';import'@react-icons/all-files/fi/FiExternalLink.js';import'@react-icons/all-files/fi/FiCode.js';import'@react-icons/all-files/fi/FiFile.js';import'@react-icons/all-files/fi/FiTool.js';import'@react-icons/all-files/fi/FiAlertCircle.js';import'@react-icons/all-files/fi/FiLoader.js';import'@react-icons/all-files/fi/FiInfo.js';import'@react-icons/all-files/fi/FiAlertTriangle.js';import'@react-icons/all-files/fi/FiCheckCircle.js';import'html-react-parser';import'../components/MessageWidgets/MessageMedia.js';import'@react-icons/all-files/fi/FiMapPin.js';import'@react-icons/all-files/fi/FiStar.js';import'@react-icons/all-files/fi/FiChevronRight.js';import'@react-icons/all-files/fa/FaPlane.js';import'@react-icons/all-files/fi/FiChevronLeft.js';import'@admin-layout/client';import'@react-icons/all-files/fa/FaBed.js';import'@react-icons/all-files/fa/FaBus.js';import'@react-icons/all-files/fa/FaCar.js';import'@react-icons/all-files/fa/FaTrain.js';import'@react-icons/all-files/fi/FiBriefcase.js';import'@react-icons/all-files/fi/FiFilm.js';import'@react-icons/all-files/fi/FiShoppingBag.js';import'@react-icons/all-files/fa/FaStar.js';import'@react-icons/all-files/fi/FiArrowUpRight.js';import'@react-icons/all-files/fi/FiClock.js';import'@react-icons/all-files/fi/FiDownload.js';import'@react-icons/all-files/fi/FiFileText.js';import'@react-icons/all-files/fi/FiGitBranch.js';import'@react-icons/all-files/fi/FiArrowRight.js';import'@react-icons/all-files/fi/FiBox.js';import'@react-icons/all-files/fi/FiZap.js';import'@react-icons/all-files/fi/FiSearch.js';import'@react-icons/all-files/fi/FiX.js';import'@react-icons/all-files/fi/FiRefreshCw.js';import'@react-icons/all-files/fi/FiEdit2.js';import'@react-icons/all-files/fi/FiPlus.js';import'@react-icons/all-files/fi/FiTrash2.js';import {ConnectedChatSettingsPanel}from'../components/ChatSettingsPanel/ConnectedChatSettingsPanel.js';/**
|
|
2
2
|
* Fill name: "chat-settings"
|
|
3
3
|
* Provides a <Slot name="chat-settings"> fill that renders the
|
|
4
4
|
* full chat configuration panel wherever asked for in the host app.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat-settings-fill.js","sources":["../../src/slot-fill/chat-settings-fill.tsx"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"chat-settings-fill.js","sources":["../../src/slot-fill/chat-settings-fill.tsx"],"sourcesContent":[null],"names":[],"mappings":"imEAIA;;;;;;AAMG;AACH,MAAM,kBAAkB,GAAG,eAAe;AAEnC,MAAM,gBAAgB,GAAG,MAAK;SACjC,KACI,CAAA,aAAA,CAAA,IAAC,EAAA;AAQO,IAAA,IAAA,EAAA;cACI;QAOJ,KAAC,CAAA,MAAA,EAAA;AACD,MAAA,OAAA,MAAW,aAAC,CAAA,0BAAA,EAAA;QAGtB,SAAA,EAAA,KAAA,CAAA,SAAA;AACN,QAAE,OAAA,EAAA,KAAA,CAAA,OAAA;;;;;;"}
|
package/lib/slot-fill/index.d.ts
CHANGED
|
@@ -9,4 +9,8 @@ export { MessageWorkflowFill } from './message-workflow-fill';
|
|
|
9
9
|
export { MessageGenericFill } from './message-generic-fill';
|
|
10
10
|
export { MessageConnectorFill } from './message-connector-fill';
|
|
11
11
|
export { ChatSettingsFill } from './chat-settings-fill';
|
|
12
|
+
export { MessageShoppingFill } from './message-shopping-fill';
|
|
13
|
+
export { MessageMoviesFill } from './message-movies-fill';
|
|
14
|
+
export { MessageJobsFill } from './message-jobs-fill';
|
|
15
|
+
export { MessageResumeFill } from './message-resume-fill';
|
|
12
16
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/slot-fill/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/slot-fill/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from'react';import {Fill}from'@common-stack/components-pro';import {PostTypeEnum}from'common';import {MessageAiAssistant}from'../components/MessageWidgets/MessageAiAssistant.js';import'@react-icons/all-files/fi/FiChevronDown.js';import'@react-icons/all-files/fi/FiCode.js';import'@react-icons/all-files/fi/FiCopy.js';import'@react-icons/all-files/fi/FiCheck.js';import'@react-icons/all-files/fi/FiFile.js';import'@react-icons/all-files/fi/FiTool.js';import'@react-icons/all-files/fi/FiAlertCircle.js';import'@react-icons/all-files/fi/FiLoader.js';import'@react-icons/all-files/fi/FiInfo.js';import'@react-icons/all-files/fi/FiAlertTriangle.js';import'@react-icons/all-files/fi/FiCheckCircle.js';import'@react-icons/all-files/fi/FiExternalLink.js';import'html-react-parser';import'../components/MessageWidgets/MessageMedia.js';import'@react-icons/all-files/fi/FiMapPin.js';import'@react-icons/all-files/fi/FiStar.js';import'@react-icons/all-files/fi/FiChevronRight.js';import'@react-icons/all-files/fi/FiGitBranch.js';import'@react-icons/all-files/fi/FiArrowRight.js';import'@react-icons/all-files/fi/FiBox.js';import'@react-icons/all-files/fi/FiZap.js';import'@react-icons/all-files/fi/FiSearch.js';import'@react-icons/all-files/fi/FiX.js';import'@react-icons/all-files/fi/FiRefreshCw.js';import'@react-icons/all-files/fi/FiEdit2.js';import'@react-icons/all-files/fi/FiPlus.js';import'@react-icons/all-files/fi/FiTrash2.js';import'../components/ChatSettingsPanel/ConnectedChatSettingsPanel.js';const MessageAiAssistantFill = () => {
|
|
1
|
+
import React from'react';import {Fill}from'@common-stack/components-pro';import {PostTypeEnum}from'common';import {MessageAiAssistant}from'../components/MessageWidgets/MessageAiAssistant.js';import'@react-icons/all-files/fi/FiChevronDown.js';import'@react-icons/all-files/fi/FiCode.js';import'@react-icons/all-files/fi/FiCopy.js';import'@react-icons/all-files/fi/FiCheck.js';import'@react-icons/all-files/fi/FiFile.js';import'@react-icons/all-files/fi/FiTool.js';import'@react-icons/all-files/fi/FiAlertCircle.js';import'@react-icons/all-files/fi/FiLoader.js';import'@react-icons/all-files/fi/FiInfo.js';import'@react-icons/all-files/fi/FiAlertTriangle.js';import'@react-icons/all-files/fi/FiCheckCircle.js';import'@react-icons/all-files/fi/FiExternalLink.js';import'html-react-parser';import'../components/MessageWidgets/MessageMedia.js';import'@react-icons/all-files/fi/FiMapPin.js';import'@react-icons/all-files/fi/FiStar.js';import'@react-icons/all-files/fi/FiChevronRight.js';import'@react-icons/all-files/fa/FaPlane.js';import'@react-icons/all-files/fi/FiChevronLeft.js';import'@admin-layout/client';import'@react-icons/all-files/fa/FaBed.js';import'@react-icons/all-files/fa/FaBus.js';import'@react-icons/all-files/fa/FaCar.js';import'@react-icons/all-files/fa/FaTrain.js';import'@react-icons/all-files/fi/FiBriefcase.js';import'@react-icons/all-files/fi/FiFilm.js';import'@react-icons/all-files/fi/FiShoppingBag.js';import'@react-icons/all-files/fa/FaStar.js';import'@react-icons/all-files/fi/FiArrowUpRight.js';import'@react-icons/all-files/fi/FiClock.js';import'@react-icons/all-files/fi/FiDownload.js';import'@react-icons/all-files/fi/FiFileText.js';import'@react-icons/all-files/fi/FiGitBranch.js';import'@react-icons/all-files/fi/FiArrowRight.js';import'@react-icons/all-files/fi/FiBox.js';import'@react-icons/all-files/fi/FiZap.js';import'@react-icons/all-files/fi/FiSearch.js';import'@react-icons/all-files/fi/FiX.js';import'@react-icons/all-files/fi/FiRefreshCw.js';import'@react-icons/all-files/fi/FiEdit2.js';import'@react-icons/all-files/fi/FiPlus.js';import'@react-icons/all-files/fi/FiTrash2.js';import'../components/ChatSettingsPanel/ConnectedChatSettingsPanel.js';const MessageAiAssistantFill = () => {
|
|
2
2
|
return React.createElement(Fill, {
|
|
3
3
|
name: PostTypeEnum.Aiassistant.toLowerCase()
|
|
4
4
|
}, props => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"message-ai-assistant-fill.js","sources":["../../src/slot-fill/message-ai-assistant-fill.tsx"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"message-ai-assistant-fill.js","sources":["../../src/slot-fill/message-ai-assistant-fill.tsx"],"sourcesContent":[null],"names":[],"mappings":"2oEAMO,MAAM,sBAAsB,GAAG,MAAK;AACvC,EAAA,OAAA,KACI,CAAA,aAAA,CAAA,IAAC,EAAA;AAEO,IAAA,IAAA,EAAA,YAAU,CAAA,WAAS,CAAA,WAAA;AACf,GAAA,EAAA,KAAA,IAAA;QACJ,KAAC,CAAA,MAAA,EAAA;AACD,MAAA,OAAA,MAAW,aAAC,CAAA,kBAAA,EAAA;QAGtB,GAAA;AACN,OAAE,CAAA;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from'react';import {Fill}from'@common-stack/components-pro';import'@react-icons/all-files/fi/FiCpu.js';import'@react-icons/all-files/fi/FiChevronDown.js';import'@react-icons/all-files/fi/FiCopy.js';import'@react-icons/all-files/fi/FiCheck.js';import'@react-icons/all-files/fi/FiExternalLink.js';import {MessageCodeBlock}from'../components/MessageWidgets/MessageCodeBlock.js';import'@react-icons/all-files/fi/FiTool.js';import'@react-icons/all-files/fi/FiAlertCircle.js';import'@react-icons/all-files/fi/FiLoader.js';import'@react-icons/all-files/fi/FiInfo.js';import'@react-icons/all-files/fi/FiAlertTriangle.js';import'@react-icons/all-files/fi/FiCheckCircle.js';import'html-react-parser';import'../components/MessageWidgets/MessageMedia.js';import'@react-icons/all-files/fi/FiMapPin.js';import'@react-icons/all-files/fi/FiStar.js';import'@react-icons/all-files/fi/FiChevronRight.js';import'@react-icons/all-files/fi/FiGitBranch.js';import'@react-icons/all-files/fi/FiArrowRight.js';import'@react-icons/all-files/fi/FiBox.js';import'@react-icons/all-files/fi/FiZap.js';import'@react-icons/all-files/fi/FiSearch.js';import'@react-icons/all-files/fi/FiX.js';import'@react-icons/all-files/fi/FiRefreshCw.js';import'@react-icons/all-files/fi/FiEdit2.js';import'@react-icons/all-files/fi/FiPlus.js';import'@react-icons/all-files/fi/FiTrash2.js';import'../components/ChatSettingsPanel/ConnectedChatSettingsPanel.js';/**
|
|
1
|
+
import React from'react';import {Fill}from'@common-stack/components-pro';import'@react-icons/all-files/fi/FiCpu.js';import'@react-icons/all-files/fi/FiChevronDown.js';import'@react-icons/all-files/fi/FiCopy.js';import'@react-icons/all-files/fi/FiCheck.js';import'@react-icons/all-files/fi/FiExternalLink.js';import {MessageCodeBlock}from'../components/MessageWidgets/MessageCodeBlock.js';import'@react-icons/all-files/fi/FiTool.js';import'@react-icons/all-files/fi/FiAlertCircle.js';import'@react-icons/all-files/fi/FiLoader.js';import'@react-icons/all-files/fi/FiInfo.js';import'@react-icons/all-files/fi/FiAlertTriangle.js';import'@react-icons/all-files/fi/FiCheckCircle.js';import'html-react-parser';import'../components/MessageWidgets/MessageMedia.js';import'@react-icons/all-files/fi/FiMapPin.js';import'@react-icons/all-files/fi/FiStar.js';import'@react-icons/all-files/fi/FiChevronRight.js';import'@react-icons/all-files/fa/FaPlane.js';import'@react-icons/all-files/fi/FiChevronLeft.js';import'@admin-layout/client';import'@react-icons/all-files/fa/FaBed.js';import'@react-icons/all-files/fa/FaBus.js';import'@react-icons/all-files/fa/FaCar.js';import'@react-icons/all-files/fa/FaTrain.js';import'@react-icons/all-files/fi/FiBriefcase.js';import'@react-icons/all-files/fi/FiFilm.js';import'@react-icons/all-files/fi/FiShoppingBag.js';import'@react-icons/all-files/fa/FaStar.js';import'@react-icons/all-files/fi/FiArrowUpRight.js';import'@react-icons/all-files/fi/FiClock.js';import'@react-icons/all-files/fi/FiDownload.js';import'@react-icons/all-files/fi/FiFileText.js';import'@react-icons/all-files/fi/FiGitBranch.js';import'@react-icons/all-files/fi/FiArrowRight.js';import'@react-icons/all-files/fi/FiBox.js';import'@react-icons/all-files/fi/FiZap.js';import'@react-icons/all-files/fi/FiSearch.js';import'@react-icons/all-files/fi/FiX.js';import'@react-icons/all-files/fi/FiRefreshCw.js';import'@react-icons/all-files/fi/FiEdit2.js';import'@react-icons/all-files/fi/FiPlus.js';import'@react-icons/all-files/fi/FiTrash2.js';import'../components/ChatSettingsPanel/ConnectedChatSettingsPanel.js';/**
|
|
2
2
|
* Fill name: "codeblock"
|
|
3
3
|
* Note: PostTypeEnum doesn't have "CodeBlock" yet — we use a custom string.
|
|
4
4
|
* When added to the enum, switch to PostTypeEnum.Codeblock.toLowerCase().
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"message-codeblock-fill.js","sources":["../../src/slot-fill/message-codeblock-fill.tsx"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"message-codeblock-fill.js","sources":["../../src/slot-fill/message-codeblock-fill.tsx"],"sourcesContent":[null],"names":[],"mappings":"wjEAKA;;;;AAIG;AACH,MAAM,mBAAmB,GAAG,WAAW;AAEhC,MAAM,oBAAoB,GAAG,MAAK;SACrC,KACI,CAAA,aAAA,CAAA,IAAC,EAAA;AAEO,IAAA,IAAA,EAAA;AACI,GAAA,EAAA,KAAA,IAAA;QACJ,KAAC,CAAA,MAAA,EAAA;AACD,MAAA,OAAA,MAAW,aAAC,CAAA,gBAAA,EAAA;QAGtB,GAAA;AACN,OAAE,CAAA;;;;"}
|