@fluid-app/portal-sdk 0.1.454 → 0.1.456
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/{AlertWidget-CdWJXZn1.mjs → AlertWidget-BtkVIGr9.mjs} +2 -2
- package/dist/{AlertWidget-CdWJXZn1.mjs.map → AlertWidget-BtkVIGr9.mjs.map} +1 -1
- package/dist/{AlertWidget-BJekf1r1.cjs → AlertWidget-C5sAMhqU.cjs} +2 -2
- package/dist/{AlertWidget-BJekf1r1.cjs.map → AlertWidget-C5sAMhqU.cjs.map} +1 -1
- package/dist/{ContactsScreen-DsHXXYfF.cjs → ContactsScreen-BTCUeDHl.cjs} +1 -1
- package/dist/{ContactsScreen-TO0LAuHz.cjs → ContactsScreen-Cu6-ckm9.cjs} +23 -13
- package/dist/ContactsScreen-Cu6-ckm9.cjs.map +1 -0
- package/dist/{ContactsScreen-DhMQm4w2.mjs → ContactsScreen-D0l3-Xof.mjs} +23 -13
- package/dist/ContactsScreen-D0l3-Xof.mjs.map +1 -0
- package/dist/{FluidProvider-CA_HAl9a.mjs → FluidProvider-CbA8KrhD.mjs} +2 -2
- package/dist/{FluidProvider-CA_HAl9a.mjs.map → FluidProvider-CbA8KrhD.mjs.map} +1 -1
- package/dist/{FluidProvider-BULkBuyn.cjs → FluidProvider-JiGJqJQe.cjs} +2 -2
- package/dist/{FluidProvider-BULkBuyn.cjs.map → FluidProvider-JiGJqJQe.cjs.map} +1 -1
- package/dist/{MessagingScreen-DWH9xBbq.cjs → MessagingScreen-BeUhzBWr.cjs} +2 -2
- package/dist/{MessagingScreen-DWH9xBbq.cjs.map → MessagingScreen-BeUhzBWr.cjs.map} +1 -1
- package/dist/{MessagingScreen-CYOGaqKX.mjs → MessagingScreen-BtdVeSR5.mjs} +2 -2
- package/dist/{MessagingScreen-CYOGaqKX.mjs.map → MessagingScreen-BtdVeSR5.mjs.map} +1 -1
- package/dist/{MessagingScreen-B_nyIg2b.cjs → MessagingScreen-D6Bxoq0a.cjs} +5 -5
- package/dist/{MessagingScreen-C7I7XHfu.mjs → MessagingScreen-Dt6Rwk7_.mjs} +5 -8
- package/dist/{OrdersScreen-Dl38EYap.mjs → OrdersScreen-1kPmXJga.mjs} +5 -8
- package/dist/{OrdersScreen-Dh_nsi8j.cjs → OrdersScreen-BSwESoF3.cjs} +2 -2
- package/dist/{OrdersScreen-Dh_nsi8j.cjs.map → OrdersScreen-BSwESoF3.cjs.map} +1 -1
- package/dist/{OrdersScreen-CfchcnYB.cjs → OrdersScreen-BirJq38x.cjs} +5 -5
- package/dist/{OrdersScreen-CBF6uZSk.mjs → OrdersScreen-fZFg1l1W.mjs} +2 -2
- package/dist/{OrdersScreen-CBF6uZSk.mjs.map → OrdersScreen-fZFg1l1W.mjs.map} +1 -1
- package/dist/{ProfileScreen-LtvHt0SJ.mjs → ProfileScreen-Bqv7MNPH.mjs} +6 -9
- package/dist/{ProfileScreen-CXqMOEza.cjs → ProfileScreen-BvxuA9P4.cjs} +3 -3
- package/dist/{ProfileScreen-CXqMOEza.cjs.map → ProfileScreen-BvxuA9P4.cjs.map} +1 -1
- package/dist/{ProfileScreen-t2V-W4Dv.cjs → ProfileScreen-CirvTBwX.cjs} +6 -6
- package/dist/{ProfileScreen-DlPK9S_Q.mjs → ProfileScreen-Dj1pTzLz.mjs} +3 -3
- package/dist/{ProfileScreen-DlPK9S_Q.mjs.map → ProfileScreen-Dj1pTzLz.mjs.map} +1 -1
- package/dist/{ShareablesScreen-CRTLiIps.mjs → ShareablesScreen-u6O-4LI4.mjs} +0 -3
- package/dist/{ShopScreen-BWDYXw4Q.cjs → ShopScreen-3ryiBWeh.cjs} +5 -5
- package/dist/{ShopScreen-BnuiYHKY.mjs → ShopScreen-BKWFrPHB.mjs} +2 -2
- package/dist/{ShopScreen-BnuiYHKY.mjs.map → ShopScreen-BKWFrPHB.mjs.map} +1 -1
- package/dist/{ShopScreen-CrObPeSv.cjs → ShopScreen-C3vwiETG.cjs} +2 -2
- package/dist/{ShopScreen-CrObPeSv.cjs.map → ShopScreen-C3vwiETG.cjs.map} +1 -1
- package/dist/{ShopScreen-B335EpgE.mjs → ShopScreen-CfvCqYJ9.mjs} +5 -8
- package/dist/{SubscriptionsScreen-BlB3Ppoa.cjs → SubscriptionsScreen-COBaRHDG.cjs} +6 -6
- package/dist/{SubscriptionsScreen-Bjdz5fx-.cjs → SubscriptionsScreen-DWB0E5Hu.cjs} +3 -3
- package/dist/{SubscriptionsScreen-Bjdz5fx-.cjs.map → SubscriptionsScreen-DWB0E5Hu.cjs.map} +1 -1
- package/dist/{SubscriptionsScreen-DyjmAOvJ.mjs → SubscriptionsScreen-Dv7PjXwb.mjs} +3 -3
- package/dist/{SubscriptionsScreen-DyjmAOvJ.mjs.map → SubscriptionsScreen-Dv7PjXwb.mjs.map} +1 -1
- package/dist/{SubscriptionsScreen-DXewLpHS.mjs → SubscriptionsScreen-G64lYG5v.mjs} +6 -9
- package/dist/{TextWidget-CY71e66E.cjs → TextWidget-CNks2l1S.cjs} +4 -3
- package/dist/TextWidget-CNks2l1S.cjs.map +1 -0
- package/dist/{TextWidget-B-2RFD_g.mjs → TextWidget-cnDl92rJ.mjs} +4 -3
- package/dist/TextWidget-cnDl92rJ.mjs.map +1 -0
- package/dist/{build-widget-registry-L8a9-O3A.cjs → build-widget-registry-7slNHtKU.cjs} +5 -5
- package/dist/{build-widget-registry-L8a9-O3A.cjs.map → build-widget-registry-7slNHtKU.cjs.map} +1 -1
- package/dist/{build-widget-registry-Dy8S7Ggy.mjs → build-widget-registry-BZjLacQ8.mjs} +5 -5
- package/dist/{build-widget-registry-Dy8S7Ggy.mjs.map → build-widget-registry-BZjLacQ8.mjs.map} +1 -1
- package/dist/index.cjs +36 -29
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -0
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +7 -0
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +38 -31
- package/dist/index.mjs.map +1 -1
- package/dist/{use-portal-card-add-3ds-flow-Dt29-X8z.cjs → use-portal-card-add-3ds-flow-C_Frj80d.cjs} +2 -2
- package/dist/{use-portal-card-add-3ds-flow-Dt29-X8z.cjs.map → use-portal-card-add-3ds-flow-C_Frj80d.cjs.map} +1 -1
- package/dist/{use-portal-card-add-3ds-flow-B4wqRVNt.mjs → use-portal-card-add-3ds-flow-tvSUKAvl.mjs} +2 -2
- package/dist/{use-portal-card-add-3ds-flow-B4wqRVNt.mjs.map → use-portal-card-add-3ds-flow-tvSUKAvl.mjs.map} +1 -1
- package/dist/utils/build-remote-widget-plugin-manifests.cjs +3 -3
- package/dist/utils/build-remote-widget-plugin-manifests.mjs +3 -5
- package/dist/utils/build-remote-widget-plugin-manifests.mjs.map +1 -1
- package/package.json +11 -11
- package/dist/ContactsScreen-DhMQm4w2.mjs.map +0 -1
- package/dist/ContactsScreen-TO0LAuHz.cjs.map +0 -1
- package/dist/TextWidget-B-2RFD_g.mjs.map +0 -1
- package/dist/TextWidget-CY71e66E.cjs.map +0 -1
|
@@ -300,6 +300,7 @@ function ContactsSidebarRow({ contact, isSelected, highlight, revealed = false,
|
|
|
300
300
|
const id = String(contact.id);
|
|
301
301
|
const secondary = contact.email ?? contact.status?.trim() ?? null;
|
|
302
302
|
const cardRef = useRef(null);
|
|
303
|
+
const deleteLayerRef = useRef(null);
|
|
303
304
|
const offsetRef = useRef(0);
|
|
304
305
|
const animateCloseRef = useRef(false);
|
|
305
306
|
const startXRef = useRef(0);
|
|
@@ -317,6 +318,11 @@ function ContactsSidebarRow({ contact, isSelected, highlight, revealed = false,
|
|
|
317
318
|
}, []);
|
|
318
319
|
const setOffset = useCallback((value, animate) => {
|
|
319
320
|
offsetRef.current = value;
|
|
321
|
+
const layer = deleteLayerRef.current;
|
|
322
|
+
if (layer) {
|
|
323
|
+
layer.style.opacity = value === 0 ? "0" : "1";
|
|
324
|
+
layer.style.pointerEvents = value <= -REVEAL_WIDTH ? "auto" : "none";
|
|
325
|
+
}
|
|
320
326
|
const el = cardRef.current;
|
|
321
327
|
if (!el) return;
|
|
322
328
|
if (animate === "open") el.style.transition = "transform 0.15s cubic-bezier(0.25, 0.1, 0.25, 1)";
|
|
@@ -476,9 +482,11 @@ function ContactsSidebarRow({ contact, isSelected, highlight, revealed = false,
|
|
|
476
482
|
onPointerTarget?.(contact);
|
|
477
483
|
}, [onPointerTarget, contact]);
|
|
478
484
|
const handleDelete = useCallback(() => {
|
|
485
|
+
if (!revealed) return;
|
|
479
486
|
onRevealChange?.(id, false);
|
|
480
487
|
onDelete?.(contact);
|
|
481
488
|
}, [
|
|
489
|
+
revealed,
|
|
482
490
|
onDelete,
|
|
483
491
|
onRevealChange,
|
|
484
492
|
contact,
|
|
@@ -486,21 +494,23 @@ function ContactsSidebarRow({ contact, isSelected, highlight, revealed = false,
|
|
|
486
494
|
]);
|
|
487
495
|
return /* @__PURE__ */ jsxs("div", {
|
|
488
496
|
className: "relative overflow-hidden rounded-xl",
|
|
489
|
-
children: [onDelete && /* @__PURE__ */ jsxs("
|
|
490
|
-
|
|
497
|
+
children: [onDelete && /* @__PURE__ */ jsxs("button", {
|
|
498
|
+
ref: deleteLayerRef,
|
|
499
|
+
style: {
|
|
500
|
+
opacity: revealed ? 1 : 0,
|
|
501
|
+
pointerEvents: revealed ? "auto" : "none"
|
|
502
|
+
},
|
|
503
|
+
type: "button",
|
|
504
|
+
disabled: !revealed,
|
|
505
|
+
"aria-hidden": !revealed,
|
|
506
|
+
className: "bg-destructive text-destructive-foreground absolute inset-y-0 right-0 flex w-[88px] cursor-pointer appearance-none flex-col items-center justify-center gap-1 border-0 p-0 pl-2 transition-opacity disabled:cursor-default",
|
|
491
507
|
onPointerDown: (e) => {
|
|
492
508
|
e.stopPropagation();
|
|
493
|
-
e.preventDefault();
|
|
494
|
-
handleDelete();
|
|
495
509
|
},
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
handleDelete();
|
|
500
|
-
}
|
|
510
|
+
onClick: (e) => {
|
|
511
|
+
e.stopPropagation();
|
|
512
|
+
handleDelete();
|
|
501
513
|
},
|
|
502
|
-
role: "button",
|
|
503
|
-
tabIndex: 0,
|
|
504
514
|
"aria-label": t("delete_contact_aria", { name }),
|
|
505
515
|
children: [/* @__PURE__ */ jsx(Trash2, { className: "size-5" }), /* @__PURE__ */ jsx("span", {
|
|
506
516
|
className: "text-xs font-medium",
|
|
@@ -525,7 +535,7 @@ function ContactsSidebarRow({ contact, isSelected, highlight, revealed = false,
|
|
|
525
535
|
handleActivate();
|
|
526
536
|
}
|
|
527
537
|
},
|
|
528
|
-
className: cn("group relative flex w-full cursor-pointer items-center gap-3.5 rounded-
|
|
538
|
+
className: cn("group relative flex w-full cursor-pointer items-center gap-3.5 rounded-xl px-3 py-3 text-left select-none", isSelected ? "bg-muted" : "bg-background hover:bg-muted", highlight && "animate-highlight-fade"),
|
|
529
539
|
children: [
|
|
530
540
|
/* @__PURE__ */ jsx("div", {
|
|
531
541
|
className: cn("text-muted-foreground relative flex size-12 shrink-0 items-center justify-center overflow-hidden rounded-xl text-base font-semibold transition-colors", isSelected ? "bg-background" : "bg-muted"),
|
|
@@ -4765,4 +4775,4 @@ const contactsScreenPropertySchema = {
|
|
|
4765
4775
|
//#endregion
|
|
4766
4776
|
export { ContactsScreen_exports as n, contactsScreenPropertySchema as r, ContactsScreen as t };
|
|
4767
4777
|
|
|
4768
|
-
//# sourceMappingURL=ContactsScreen-
|
|
4778
|
+
//# sourceMappingURL=ContactsScreen-D0l3-Xof.mjs.map
|