@admin-layout/ai-chat-ext-browser 12.2.5-alpha.34 → 12.2.5-alpha.36
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.
|
@@ -12,6 +12,7 @@ export interface IMessageBookingProps {
|
|
|
12
12
|
* items, the details, the charges and the total, and one button - the go-ahead ("Book it · $194"),
|
|
13
13
|
* or "Retry $194" after a declined payment. The go-ahead answers the agent word for word through
|
|
14
14
|
* the host (its `cardReplies`); money moves later, on the payment page, so it never says "pay".
|
|
15
|
+
* Once placed and waiting for payment, the one button is "Pay $16.78": a link to the vendor's page.
|
|
15
16
|
*/
|
|
16
17
|
export declare const MessageBooking: ({ message, onMessageClick }: IMessageBookingProps) => React.JSX.Element;
|
|
17
18
|
//# sourceMappingURL=MessageBooking.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageBooking.d.ts","sourceRoot":"","sources":["../../../src/components/MessageWidgets/MessageBooking.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"MessageBooking.d.ts","sourceRoot":"","sources":["../../../src/components/MessageWidgets/MessageBooking.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAOjD,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAI/B,MAAM,WAAW,oBAAoB;IACjC,OAAO,EAAE,KAAK,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,wFAAwF;IACxF,cAAc,CAAC,EAAE,CAAC,GAAG,EAAE,KAAK,KAAK,IAAI,CAAC;CACzC;AA+CD;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc,GAAI,6BAA6B,oBAAoB,sBAmL/E,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React,{useMemo,useState}from'react';import {FiAlertCircle}from'@react-icons/all-files/fi/FiAlertCircle.js';import {FiCheck}from'@react-icons/all-files/fi/FiCheck.js';import {FiLoader}from'@react-icons/all-files/fi/FiLoader.js';import {FiRotateCcw}from'@react-icons/all-files/fi/FiRotateCcw.js';import {toBookingView,isFallbackFavicon}from'@admin-layout/client';import {withWidgetAction}from'./ResultRow.js';const STATUS_TONES = {
|
|
1
|
+
import React,{useMemo,useState}from'react';import {FiAlertCircle}from'@react-icons/all-files/fi/FiAlertCircle.js';import {FiCheck}from'@react-icons/all-files/fi/FiCheck.js';import {FiClock}from'@react-icons/all-files/fi/FiClock.js';import {FiExternalLink}from'@react-icons/all-files/fi/FiExternalLink.js';import {FiLoader}from'@react-icons/all-files/fi/FiLoader.js';import {FiRotateCcw}from'@react-icons/all-files/fi/FiRotateCcw.js';import {toBookingView,isFallbackFavicon}from'@admin-layout/client';import {withWidgetAction}from'./ResultRow.js';const STATUS_TONES = {
|
|
2
2
|
declined: {
|
|
3
3
|
Icon: FiAlertCircle,
|
|
4
4
|
className: 'bg-rose-50 text-rose-700 dark:bg-rose-500/15 dark:text-rose-300'
|
|
@@ -10,6 +10,10 @@ import React,{useMemo,useState}from'react';import {FiAlertCircle}from'@react-ico
|
|
|
10
10
|
processing: {
|
|
11
11
|
Icon: FiLoader,
|
|
12
12
|
className: 'bg-gray-50 text-gray-600 dark:bg-gray-700/40 dark:text-gray-300'
|
|
13
|
+
},
|
|
14
|
+
payment_due: {
|
|
15
|
+
Icon: FiClock,
|
|
16
|
+
className: 'bg-amber-50 text-amber-800 dark:bg-amber-500/15 dark:text-amber-300'
|
|
13
17
|
}
|
|
14
18
|
};
|
|
15
19
|
const NEUTRAL_TONE = {
|
|
@@ -45,6 +49,7 @@ const ROW = 'border-t border-gray-100 px-4 py-3 dark:border-gray-700';
|
|
|
45
49
|
* items, the details, the charges and the total, and one button - the go-ahead ("Book it · $194"),
|
|
46
50
|
* or "Retry $194" after a declined payment. The go-ahead answers the agent word for word through
|
|
47
51
|
* the host (its `cardReplies`); money moves later, on the payment page, so it never says "pay".
|
|
52
|
+
* Once placed and waiting for payment, the one button is "Pay $16.78": a link to the vendor's page.
|
|
48
53
|
*/
|
|
49
54
|
const MessageBooking = ({
|
|
50
55
|
message,
|
|
@@ -155,7 +160,17 @@ const MessageBooking = ({
|
|
|
155
160
|
className: "text-[13px] font-semibold text-gray-900 dark:text-gray-50"
|
|
156
161
|
}, "Total"), React.createElement("span", {
|
|
157
162
|
className: "text-base font-bold tabular-nums text-gray-900 dark:text-white"
|
|
158
|
-
}, booking.total)) : null,
|
|
163
|
+
}, booking.total)) : null, booking.pay ? React.createElement("div", {
|
|
164
|
+
className: "flex items-center justify-end gap-3 border-t border-gray-100 bg-gray-50/70 px-4 py-3 dark:border-gray-700 dark:bg-gray-900/30"
|
|
165
|
+
}, React.createElement("a", {
|
|
166
|
+
href: booking.pay.url,
|
|
167
|
+
target: "_blank",
|
|
168
|
+
rel: "noopener noreferrer",
|
|
169
|
+
className: "inline-flex items-center gap-1.5 rounded-full bg-blue-600 px-4 py-2 text-[13px] font-semibold text-white shadow-sm transition hover:bg-blue-700 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2 dark:focus-visible:ring-offset-gray-900"
|
|
170
|
+
}, booking.pay.label, React.createElement(FiExternalLink, {
|
|
171
|
+
className: "h-3.5 w-3.5",
|
|
172
|
+
"aria-hidden": "true"
|
|
173
|
+
}))) : null, action && replies ? React.createElement("div", {
|
|
159
174
|
className: "flex items-center justify-end gap-3 border-t border-gray-100 bg-gray-50/70 px-4 py-3 dark:border-gray-700 dark:bg-gray-900/30"
|
|
160
175
|
}, sent ? React.createElement("span", {
|
|
161
176
|
className: "text-xs text-gray-500 dark:text-gray-400"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageBooking.js","sources":["../../../src/components/MessageWidgets/MessageBooking.tsx"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MessageBooking.js","sources":["../../../src/components/MessageWidgets/MessageBooking.tsx"],"sour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,GAAA,EAAA,KAAA,CAAA,aAAA,CAAA,GAAA,EAAA;AAMK,IAAA,SAAA,EAAA;mBACC,CAAA,EAAI,OAAI,CAAA,KAAQ,GAAA,MAAW,aAAa,CACtC,GAAA,EAAA;;AAQ5B,GAAE,EAAA,OAAA,CAAA,KAAA,CAAA,GAAA,IAAA,CAAA,CAAA,EAAA,OAAA,CAAA,IAAA,IAAA,IAAA,EAAA,KAAA,GAAA,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@admin-layout/ai-chat-ext-browser",
|
|
3
|
-
"version": "12.2.5-alpha.
|
|
3
|
+
"version": "12.2.5-alpha.36",
|
|
4
4
|
"description": "AI Chat extension for Messenger - supports AI assistant, thinking, code blocks, tool use, and service messages",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"author": "CDMBase LLC",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"watch": "npm run build:lib:watch"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@admin-layout/client": "12.2.5-alpha.
|
|
24
|
+
"@admin-layout/client": "12.2.5-alpha.36",
|
|
25
25
|
"@admin-layout/connector-widgets-browser": "12.2.5-alpha.2",
|
|
26
26
|
"@react-icons/all-files": "^4.1.0",
|
|
27
27
|
"html-react-parser": "^3.0.1"
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"typescript": {
|
|
42
42
|
"definition": "lib/index.d.ts"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "8b8524c278bf2436ce4f5c6879c847eefd0acedb"
|
|
45
45
|
}
|