@40rty/ams-ui 0.5.5 → 0.5.7
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/dist/agent.js +3 -2
- package/dist/{chunk-H6MSAD5M.js → chunk-434KIH5P.js} +17 -10
- package/dist/{chunk-2HM6EVDV.js → chunk-4ZX4IRC6.js} +241 -389
- package/dist/chunk-FSY7MEP5.js +843 -0
- package/dist/{chunk-WVD2Y2N2.js → chunk-G3IXNKXL.js} +15 -8
- package/dist/{chunk-CKNELL6G.js → chunk-URUKPL57.js} +109 -79
- package/dist/{chunk-432XYPDT.js → chunk-ZP27BQQE.js} +1 -1
- package/dist/conversation.js +24 -21
- package/dist/css/preset/motion.css +4 -1
- package/dist/css/shell/spacefront-island.css +8 -6
- package/dist/css/shell/spacefront-presence.css +9 -4
- package/dist/css/shell/spacefront-thread-panel.css +12 -5
- package/dist/index.js +473 -403
- package/dist/island.js +18 -11
- package/dist/motion.js +1 -1
- package/dist/presence.js +20 -11
- package/dist/shell.js +6 -5
- package/dist/thread-panel.js +19 -9
- package/dist/types/catalog-data/ecommerce.d.ts +42 -0
- package/dist/types/catalog-data/social.d.ts +14 -0
- package/dist/types/components/content/article/BlogPosts.d.ts +1 -1
- package/dist/types/components/ecommerce/cart/cart-format.d.ts +3 -2
- package/dist/types/components/ecommerce/collection/CollectionList.d.ts +1 -1
- package/dist/types/components/ecommerce/product/AddToRegistry.d.ts +1 -1
- package/dist/types/components/ecommerce/product/ProductPrice.d.ts +1 -0
- package/dist/types/components/feedback/HydrationNotice.d.ts +9 -0
- package/dist/types/components/layout/Drawer.d.ts +2 -0
- package/dist/types/conversation/blocks/schemas.d.ts +40 -0
- package/dist/types/index.d.ts +3 -2
- package/dist/types/labels/en/agent.d.ts +2 -0
- package/dist/types/labels/en/commerce.d.ts +2 -0
- package/dist/types/labels/en/content.d.ts +2 -0
- package/dist/types/labels/en/notices.d.ts +2 -0
- package/dist/types/labels/en/shell.d.ts +2 -0
- package/dist/types/labels/he/agent.d.ts +2 -0
- package/dist/types/labels/he/commerce.d.ts +2 -0
- package/dist/types/labels/he/content.d.ts +2 -0
- package/dist/types/labels/he/count.d.ts +17 -0
- package/dist/types/labels/he/notices.d.ts +2 -0
- package/dist/types/labels/he/shell.d.ts +2 -0
- package/dist/types/labels/index.d.ts +34 -0
- package/dist/types/{labels.d.ts → labels/types-agent.d.ts} +4 -120
- package/dist/types/labels/types-commerce.d.ts +252 -0
- package/dist/types/labels/types-content.d.ts +28 -0
- package/dist/types/labels/types-notices.d.ts +9 -0
- package/dist/types/labels/types-shell.d.ts +137 -0
- package/dist/types/labels-context.d.ts +19 -5
- package/dist/types/primitives/Money/index.d.ts +1 -1
- package/dist/types/shell/Composer.d.ts +1 -1
- package/dist/types/shell/SideDock.d.ts +1 -1
- package/dist/types/shell/SpacefrontIsland.d.ts +1 -1
- package/dist/types/shell/SpacefrontPresence.d.ts +1 -1
- package/dist/types/shell/VoiceIsland.d.ts +1 -1
- package/dist/types/utils/format-money.d.ts +3 -1
- package/dist/types/utils/mirror-x.d.ts +8 -0
- package/package.json +2 -2
|
@@ -3,11 +3,14 @@ import {
|
|
|
3
3
|
Spinner,
|
|
4
4
|
cn
|
|
5
5
|
} from "./chunk-WDL5PHO2.js";
|
|
6
|
+
import {
|
|
7
|
+
useLabels
|
|
8
|
+
} from "./chunk-FSY7MEP5.js";
|
|
6
9
|
import {
|
|
7
10
|
AnimatePresence,
|
|
8
11
|
motion,
|
|
9
12
|
pressPresets
|
|
10
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-ZP27BQQE.js";
|
|
11
14
|
|
|
12
15
|
// src/shell/ListeningWaveform.tsx
|
|
13
16
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -67,15 +70,17 @@ function DictationButton({
|
|
|
67
70
|
className,
|
|
68
71
|
style
|
|
69
72
|
}) {
|
|
73
|
+
const copy = useLabels().composer;
|
|
70
74
|
if (!supported) return null;
|
|
75
|
+
const name = listening ? copy.stopDictation : copy.dictate;
|
|
71
76
|
return /* @__PURE__ */ jsx2(
|
|
72
77
|
motion.button,
|
|
73
78
|
{
|
|
74
79
|
type: "button",
|
|
75
80
|
onClick: onToggle,
|
|
76
|
-
"aria-label":
|
|
81
|
+
"aria-label": name,
|
|
77
82
|
"aria-pressed": listening,
|
|
78
|
-
title:
|
|
83
|
+
title: name,
|
|
79
84
|
className: cn(MIC_CLASS, className),
|
|
80
85
|
whileHover: pressPresets.icon.whileHover,
|
|
81
86
|
whileTap: pressPresets.icon.whileTap,
|
|
@@ -165,6 +170,7 @@ function AttachmentStrip({
|
|
|
165
170
|
attachments,
|
|
166
171
|
onRemove
|
|
167
172
|
}) {
|
|
173
|
+
const copy = useLabels().composer;
|
|
168
174
|
if (attachments.length === 0) return null;
|
|
169
175
|
return /* @__PURE__ */ jsx3(
|
|
170
176
|
"div",
|
|
@@ -179,7 +185,7 @@ function AttachmentStrip({
|
|
|
179
185
|
animate: { opacity: 1, scale: 1 },
|
|
180
186
|
exit: { opacity: 0, scale: 0.9 },
|
|
181
187
|
transition: { duration: 0.18, ease: [0.22, 1, 0.36, 1] },
|
|
182
|
-
title: a.
|
|
188
|
+
title: a.failure !== null ? copy.attachmentFailure(a.failure) : a.name,
|
|
183
189
|
style: {
|
|
184
190
|
position: "relative",
|
|
185
191
|
width: THUMB,
|
|
@@ -226,11 +232,11 @@ function AttachmentStrip({
|
|
|
226
232
|
{
|
|
227
233
|
type: "button",
|
|
228
234
|
onClick: () => onRemove(a.localId),
|
|
229
|
-
"aria-label":
|
|
235
|
+
"aria-label": copy.removeAttachment(a.name),
|
|
230
236
|
style: {
|
|
231
237
|
position: "absolute",
|
|
232
238
|
top: 2,
|
|
233
|
-
|
|
239
|
+
insetInlineEnd: 2,
|
|
234
240
|
width: 16,
|
|
235
241
|
height: 16,
|
|
236
242
|
display: "inline-flex",
|
|
@@ -263,6 +269,7 @@ var ATTACH_CLASS = "fourty-composer-attach";
|
|
|
263
269
|
var ATTACH_COLOR = "var(--fourty-attach-color, var(--color-text-muted))";
|
|
264
270
|
function AttachButton({ onFiles, className, style }) {
|
|
265
271
|
const inputRef = React2.useRef(null);
|
|
272
|
+
const attachLabel = useLabels().composer.attach;
|
|
266
273
|
return /* @__PURE__ */ jsxs2(Fragment, { children: [
|
|
267
274
|
/* @__PURE__ */ jsx4(
|
|
268
275
|
"input",
|
|
@@ -284,8 +291,8 @@ function AttachButton({ onFiles, className, style }) {
|
|
|
284
291
|
{
|
|
285
292
|
type: "button",
|
|
286
293
|
onClick: () => inputRef.current?.click(),
|
|
287
|
-
"aria-label":
|
|
288
|
-
title:
|
|
294
|
+
"aria-label": attachLabel,
|
|
295
|
+
title: attachLabel,
|
|
289
296
|
className: cn(ATTACH_CLASS, className),
|
|
290
297
|
whileHover: pressPresets.icon.whileHover,
|
|
291
298
|
whileTap: pressPresets.icon.whileTap,
|