@fluid-app/portal-sdk 0.1.199 → 0.1.200
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/{ContactsScreen-Cheiwaxn.cjs → ContactsScreen-BOMxeTG8.cjs} +2 -2
- package/dist/{ContactsScreen-BtBNMZzG.mjs → ContactsScreen-Bm9SlMY3.mjs} +17 -7
- package/dist/ContactsScreen-Bm9SlMY3.mjs.map +1 -0
- package/dist/{ContactsScreen-DvohvoOE.cjs → ContactsScreen-DflUjayA.cjs} +291 -281
- package/dist/ContactsScreen-DflUjayA.cjs.map +1 -0
- package/dist/{FluidProvider-D177ez3m.cjs → FluidProvider-ByBDIQeW.cjs} +6 -986
- package/dist/FluidProvider-ByBDIQeW.cjs.map +1 -0
- package/dist/{FluidProvider-DiJy4Zve.mjs → FluidProvider-DFZiXiqm.mjs} +3 -814
- package/dist/FluidProvider-DFZiXiqm.mjs.map +1 -0
- package/dist/{MessagingScreen-Cu3tcpPs.mjs → MessagingScreen-D6d83q2n.mjs} +2 -2
- package/dist/{MessagingScreen-Cu3tcpPs.mjs.map → MessagingScreen-D6d83q2n.mjs.map} +1 -1
- package/dist/{MessagingScreen-Ysi48svi.cjs → MessagingScreen-HT_HSiNW.cjs} +3 -3
- package/dist/{MessagingScreen-gKidMcrr.cjs → MessagingScreen-shEWzTmQ.cjs} +2 -2
- package/dist/{MessagingScreen-gKidMcrr.cjs.map → MessagingScreen-shEWzTmQ.cjs.map} +1 -1
- package/dist/{PortalContentApiProvider-CWRAw9kL.mjs → PortalContentApiProvider-CNYq1_OD.mjs} +114 -88
- package/dist/PortalContentApiProvider-CNYq1_OD.mjs.map +1 -0
- package/dist/{PortalContentApiProvider-CPnqELEX.cjs → PortalContentApiProvider-ChmcXmbv.cjs} +113 -87
- package/dist/PortalContentApiProvider-ChmcXmbv.cjs.map +1 -0
- package/dist/{ProductsScreen-Al6H4ujs.mjs → ProductsScreen-CDjpHF49.mjs} +2 -2
- package/dist/{ProductsScreen-Al6H4ujs.mjs.map → ProductsScreen-CDjpHF49.mjs.map} +1 -1
- package/dist/{ProductsScreen-CQ5-A8AL.cjs → ProductsScreen-CzfDX0xx.cjs} +2 -2
- package/dist/{ProductsScreen-CQ5-A8AL.cjs.map → ProductsScreen-CzfDX0xx.cjs.map} +1 -1
- package/dist/{ProductsScreen-CexZ0gx9.mjs → ProductsScreen-D6-ehQjh.mjs} +2 -2
- package/dist/{ProductsScreen-BnwMOZ4-.cjs → ProductsScreen-fN3fh3PB.cjs} +2 -2
- package/dist/{ProfileScreen-DJZoMzE6.cjs → ProfileScreen-B0EU-TLa.cjs} +101 -101
- package/dist/{ProfileScreen-DJZoMzE6.cjs.map → ProfileScreen-B0EU-TLa.cjs.map} +1 -1
- package/dist/{ProfileScreen-hE1S_99P.mjs → ProfileScreen-BIs70k9W.mjs} +3 -3
- package/dist/{ProfileScreen-hE1S_99P.mjs.map → ProfileScreen-BIs70k9W.mjs.map} +1 -1
- package/dist/{ProfileScreen-CGS7YkcT.cjs → ProfileScreen-Dqu2nK_2.cjs} +3 -3
- package/dist/{ShareablesScreen-CzTU7e0l.mjs → ShareablesScreen-B8rPq-_7.mjs} +2 -2
- package/dist/{ShareablesScreen-CzTU7e0l.mjs.map → ShareablesScreen-B8rPq-_7.mjs.map} +1 -1
- package/dist/{ShareablesScreen-DujtMoAi.cjs → ShareablesScreen-DFLAJxjs.cjs} +2 -2
- package/dist/{ShareablesScreen-CmZ5CX99.cjs → ShareablesScreen-DLXK1PAg.cjs} +2 -2
- package/dist/{ShareablesScreen-CmZ5CX99.cjs.map → ShareablesScreen-DLXK1PAg.cjs.map} +1 -1
- package/dist/{ShareablesScreen-yscAsNpq.mjs → ShareablesScreen-Dc57L9m8.mjs} +2 -2
- package/dist/{ShopScreen-Bdo59te-.mjs → ShopScreen-2yMsyFwk.mjs} +2 -2
- package/dist/{ShopScreen-Bdo59te-.mjs.map → ShopScreen-2yMsyFwk.mjs.map} +1 -1
- package/dist/{ShopScreen-DKlDKNom.cjs → ShopScreen-BmHSLZ7H.cjs} +2 -2
- package/dist/{ShopScreen-DKlDKNom.cjs.map → ShopScreen-BmHSLZ7H.cjs.map} +1 -1
- package/dist/{ShopScreen-R9zk7d5d.cjs → ShopScreen-kk4yLzrW.cjs} +3 -3
- package/dist/index.cjs +67 -67
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +132 -128
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +132 -128
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +21 -21
- package/dist/src-BRTXunU1.mjs +851 -0
- package/dist/src-BRTXunU1.mjs.map +1 -0
- package/dist/src-DvVPCD01.cjs +1038 -0
- package/dist/src-DvVPCD01.cjs.map +1 -0
- package/package.json +16 -16
- package/dist/ContactsScreen-BtBNMZzG.mjs.map +0 -1
- package/dist/ContactsScreen-DvohvoOE.cjs.map +0 -1
- package/dist/FluidProvider-D177ez3m.cjs.map +0 -1
- package/dist/FluidProvider-DiJy4Zve.mjs.map +0 -1
- package/dist/PortalContentApiProvider-CPnqELEX.cjs.map +0 -1
- package/dist/PortalContentApiProvider-CWRAw9kL.mjs.map +0 -1
- package/dist/countries-api-context-Dob_AzPO.mjs +0 -13
- package/dist/countries-api-context-Dob_AzPO.mjs.map +0 -1
- package/dist/countries-api-context-G-NW4BoH.cjs +0 -25
- package/dist/countries-api-context-G-NW4BoH.cjs.map +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
require("./chunk-9hOWP6kD.cjs");
|
|
2
|
-
require("./
|
|
2
|
+
require("./src-DvVPCD01.cjs");
|
|
3
3
|
require("./src-D57IFKXU.cjs");
|
|
4
4
|
require("./scroll-arrows-CzWtSS8l.cjs");
|
|
5
5
|
require("./ScreenHeaderContext-BXgWydjB.cjs");
|
|
6
6
|
require("./dist-CN_rfvBt.cjs");
|
|
7
|
-
const require_ContactsScreen = require("./ContactsScreen-
|
|
7
|
+
const require_ContactsScreen = require("./ContactsScreen-DflUjayA.cjs");
|
|
8
8
|
require("./SearchSort-CUDMZIkf.cjs");
|
|
9
9
|
require("./InfiniteScrollSentinel-CU801UfD.cjs");
|
|
10
10
|
require("./dist-bL3uiYn3.cjs");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as __exportAll } from "./es-BeIE2Uzn.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { b as getContrastingTextColor, j as useCountriesApi } from "./src-BRTXunU1.mjs";
|
|
3
3
|
import { t as parseApiErrors } from "./parse-api-errors-BLAAn3cQ.mjs";
|
|
4
4
|
import { n as usePortalTenantClient } from "./PortalTenantClientProvider-4ZmY6hac.mjs";
|
|
5
5
|
import { $ as DropdownMenuSeparator, $t as BreadcrumbPage, A as Select, C as Skeleton, D as SheetHeader, E as SheetFooter, Et as CardContent, G as FormMessage, H as FormField, J as DropdownMenuContent, L as Input, M as SelectItem, N as SelectTrigger, O as SheetTitle, P as SelectValue, Qt as BreadcrumbList, T as SheetContent, U as FormItem, V as FormControl, W as FormLabel, Xt as BreadcrumbItem, Y as DropdownMenuItem, Yt as Breadcrumb, Zt as BreadcrumbLink, an as AlertDialog, b as fluidToast, bn as useZodForm, cn as AlertDialogContent, ct as DialogFooter, d as Table$1, dn as AlertDialogHeader, en as BreadcrumbSeparator, f as TableBody, fn as AlertDialogTitle, ft as DialogTitle, g as TableRow, h as TableHeader, i as TooltipTrigger, in as AvatarImage, it as Dialog, j as SelectContent, ln as AlertDialogDescription, lt as DialogHeader, m as TableHead, n as TooltipContent, nn as Avatar, on as AlertDialogAction, ot as DialogContent, p as TableCell, pn as Button, q as DropdownMenu, r as TooltipProvider, rn as AvatarFallback, rt as DropdownMenuTrigger, sn as AlertDialogCancel, t as Tooltip, un as AlertDialogFooter, w as Sheet, wt as Card, xn as cn, y as Spinner } from "./src-BTbz18gY.mjs";
|
|
@@ -273,9 +273,14 @@ function RepContactCard({ contact, selected, onToggleSelect, onRowClick, onEditC
|
|
|
273
273
|
title: groupTitle,
|
|
274
274
|
children: [groupLabels.length > 0 ? groupLabels.slice(0, 2).map((label, index) => {
|
|
275
275
|
const group = groupsByName.get(label);
|
|
276
|
+
const backgroundColor = group?.avatar_background ?? "var(--color-muted)";
|
|
277
|
+
const textColor = group?.avatar_background ? getContrastingTextColor(group.avatar_background) : null;
|
|
276
278
|
return /* @__PURE__ */ jsxs("span", {
|
|
277
|
-
className: "
|
|
278
|
-
style: {
|
|
279
|
+
className: cn("border-border inline-flex max-w-[min(100%,10rem)] shrink items-center gap-1 truncate rounded-full border px-2 py-0.5 font-normal capitalize", !textColor && "text-foreground"),
|
|
280
|
+
style: {
|
|
281
|
+
backgroundColor,
|
|
282
|
+
...textColor ? { color: textColor } : {}
|
|
283
|
+
},
|
|
279
284
|
title: label,
|
|
280
285
|
children: [group?.avatar && /* @__PURE__ */ jsx("span", { children: group.avatar }), /* @__PURE__ */ jsx("span", {
|
|
281
286
|
className: "truncate",
|
|
@@ -2658,16 +2663,21 @@ function GroupsSection({ contactTags, availableGroups = [], onManageGroups, onAd
|
|
|
2658
2663
|
const group = getGroupDetails(tag);
|
|
2659
2664
|
const backgroundColor = group?.avatar_background ?? "var(--color-muted)";
|
|
2660
2665
|
const emoji = group?.avatar;
|
|
2666
|
+
const textColor = group?.avatar_background ? getContrastingTextColor(group.avatar_background) : null;
|
|
2661
2667
|
return /* @__PURE__ */ jsxs("span", {
|
|
2662
|
-
className: "
|
|
2663
|
-
style: {
|
|
2668
|
+
className: cn("border-border inline-flex items-center gap-2 rounded-full border px-3 py-1.5 text-xs", !textColor && "text-foreground"),
|
|
2669
|
+
style: {
|
|
2670
|
+
backgroundColor,
|
|
2671
|
+
...textColor ? { color: textColor } : {}
|
|
2672
|
+
},
|
|
2664
2673
|
children: [
|
|
2665
2674
|
emoji && /* @__PURE__ */ jsx("span", { children: emoji }),
|
|
2666
2675
|
tag,
|
|
2667
2676
|
/* @__PURE__ */ jsx("button", {
|
|
2668
2677
|
type: "button",
|
|
2669
2678
|
onClick: () => onRemoveGroup(tag),
|
|
2670
|
-
className: "
|
|
2679
|
+
className: "bg-background/25 hover:bg-background/50 flex h-4 w-4 items-center justify-center rounded-full transition-colors",
|
|
2680
|
+
style: textColor ? { color: textColor } : void 0,
|
|
2671
2681
|
"aria-label": `Remove ${tag}`,
|
|
2672
2682
|
children: /* @__PURE__ */ jsx(X, { className: "h-3 w-3" })
|
|
2673
2683
|
})
|
|
@@ -4592,4 +4602,4 @@ const contactsScreenPropertySchema = {
|
|
|
4592
4602
|
//#endregion
|
|
4593
4603
|
export { ContactsScreen_exports as n, contactsScreenPropertySchema as r, ContactsScreen as t };
|
|
4594
4604
|
|
|
4595
|
-
//# sourceMappingURL=ContactsScreen-
|
|
4605
|
+
//# sourceMappingURL=ContactsScreen-Bm9SlMY3.mjs.map
|