@tbox.cn/app-module-ai-payment 0.1.3 → 0.1.5
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.
|
@@ -112,7 +112,10 @@
|
|
|
112
112
|
animation: ap-cashier-enter 180ms ease-out;
|
|
113
113
|
}
|
|
114
114
|
.ap-cashier-notice {
|
|
115
|
-
|
|
115
|
+
display: flex;
|
|
116
|
+
align-items: center;
|
|
117
|
+
gap: 12px;
|
|
118
|
+
margin: 0 0 16px;
|
|
116
119
|
padding: 18px 24px;
|
|
117
120
|
border-radius: 999px;
|
|
118
121
|
background: var(--tbox-bg-card, #fff);
|
|
@@ -121,6 +124,13 @@
|
|
|
121
124
|
line-height: 1.5;
|
|
122
125
|
text-align: left;
|
|
123
126
|
}
|
|
127
|
+
.ap-cashier-avatar {
|
|
128
|
+
width: 40px;
|
|
129
|
+
height: 40px;
|
|
130
|
+
flex-shrink: 0;
|
|
131
|
+
border-radius: 50%;
|
|
132
|
+
object-fit: cover;
|
|
133
|
+
}
|
|
124
134
|
.ap-cashier-panel {
|
|
125
135
|
min-height: min(50dvh, 840px);
|
|
126
136
|
box-sizing: border-box;
|
package/dist/client/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// src/client/index.ts
|
|
2
|
-
import "../ai-payment-
|
|
2
|
+
import "../ai-payment-T4BAVWU6.css";
|
|
3
3
|
|
|
4
4
|
// src/client/cards/payment-order/index.tsx
|
|
5
5
|
import { useEffect, useRef, useState } from "react";
|
|
@@ -101,7 +101,10 @@ function PaymentOrderCard(props) {
|
|
|
101
101
|
/* @__PURE__ */ jsx("button", { type: "button", className: "ap-card__btn ap-order-pay", disabled, onClick: () => void pay(), children: completed ? "\u5DF2\u652F\u4ED8" : pending ? "\u652F\u4ED8\u5904\u7406\u4E2D\u2026" : "\u53BB\u652F\u4ED8" }),
|
|
102
102
|
message && /* @__PURE__ */ jsx("p", { role: "status", className: "ap-card__hint", children: message }),
|
|
103
103
|
cashier && /* @__PURE__ */ jsxs("dialog", { ref: cashierRef, className: "ap-cashier", "aria-label": "\u6A21\u62DF\u652F\u4ED8\u5B9D\u6536\u94F6\u53F0", onCancel: () => setCashier(false), children: [
|
|
104
|
-
/* @__PURE__ */
|
|
104
|
+
/* @__PURE__ */ jsxs("p", { className: "ap-cashier-notice", children: [
|
|
105
|
+
/* @__PURE__ */ jsx("img", { className: "ap-cashier-avatar", src: "https://mdn.alipayobjects.com/agt_content/afts/img/rK3vQJFsoeEAAAAAAAAAAAAADhe3AQBr/original", alt: "" }),
|
|
106
|
+
/* @__PURE__ */ jsx("span", { children: "\u4F53\u9A8C\u667A\u80FD\u4F53\u6B63\u5728\u4E3A\u60A8\u4E0B\u5355\uFF0C\u8BF7\u786E\u8BA4" })
|
|
107
|
+
] }),
|
|
105
108
|
/* @__PURE__ */ jsxs("div", { className: "ap-cashier-panel", children: [
|
|
106
109
|
/* @__PURE__ */ jsxs("header", { className: "ap-cashier-header", children: [
|
|
107
110
|
/* @__PURE__ */ jsx("button", { type: "button", className: "ap-cashier-close", "aria-label": "\u5173\u95ED\u6536\u94F6\u53F0", onClick: () => setCashier(false), children: "\xD7" }),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tbox.cn/app-module-ai-payment",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "AI 支付体验:Web 模拟收银台与端内云容器创单",
|
|
6
6
|
"exports": {
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
"./package.json": "./package.json"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@tbox.cn/app-agent-sdk-client": "0.
|
|
23
|
-
"@tbox.cn/app-agent-sdk-server": "0.
|
|
24
|
-
"@tbox.cn/app-contracts": "0.13.
|
|
25
|
-
"@tbox.cn/app-contracts-mall": "0.13.
|
|
22
|
+
"@tbox.cn/app-agent-sdk-client": "0.2.0",
|
|
23
|
+
"@tbox.cn/app-agent-sdk-server": "0.3.0",
|
|
24
|
+
"@tbox.cn/app-contracts": "0.13.1",
|
|
25
|
+
"@tbox.cn/app-contracts-mall": "0.13.1"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"zod": "3.25.76",
|
|
@@ -81,7 +81,10 @@ export function PaymentOrderCard(props: { data: PaymentOrderCardData; cardId: st
|
|
|
81
81
|
{message && <p role="status" className="ap-card__hint">{message}</p>}
|
|
82
82
|
{cashier && (
|
|
83
83
|
<dialog ref={cashierRef} className="ap-cashier" aria-label="模拟支付宝收银台" onCancel={() => setCashier(false)}>
|
|
84
|
-
<p className="ap-cashier-notice"
|
|
84
|
+
<p className="ap-cashier-notice">
|
|
85
|
+
<img className="ap-cashier-avatar" src="https://mdn.alipayobjects.com/agt_content/afts/img/rK3vQJFsoeEAAAAAAAAAAAAADhe3AQBr/original" alt="" />
|
|
86
|
+
<span>体验智能体正在为您下单,请确认</span>
|
|
87
|
+
</p>
|
|
85
88
|
<div className="ap-cashier-panel">
|
|
86
89
|
<header className="ap-cashier-header">
|
|
87
90
|
<button type="button" className="ap-cashier-close" aria-label="关闭收银台" onClick={() => setCashier(false)}>×</button>
|
|
@@ -112,7 +112,10 @@
|
|
|
112
112
|
animation: ap-cashier-enter 180ms ease-out;
|
|
113
113
|
}
|
|
114
114
|
.ap-cashier-notice {
|
|
115
|
-
|
|
115
|
+
display: flex;
|
|
116
|
+
align-items: center;
|
|
117
|
+
gap: 12px;
|
|
118
|
+
margin: 0 0 16px;
|
|
116
119
|
padding: 18px 24px;
|
|
117
120
|
border-radius: 999px;
|
|
118
121
|
background: var(--tbox-bg-card, #fff);
|
|
@@ -121,6 +124,13 @@
|
|
|
121
124
|
line-height: 1.5;
|
|
122
125
|
text-align: left;
|
|
123
126
|
}
|
|
127
|
+
.ap-cashier-avatar {
|
|
128
|
+
width: 40px;
|
|
129
|
+
height: 40px;
|
|
130
|
+
flex-shrink: 0;
|
|
131
|
+
border-radius: 50%;
|
|
132
|
+
object-fit: cover;
|
|
133
|
+
}
|
|
124
134
|
.ap-cashier-panel {
|
|
125
135
|
min-height: min(50dvh, 840px);
|
|
126
136
|
box-sizing: border-box;
|