@fluid-app/portal-sdk 0.1.199 → 0.1.201
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-DvohvoOE.cjs → ContactsScreen-BQ6pvYOa.cjs} +291 -281
- package/dist/ContactsScreen-BQ6pvYOa.cjs.map +1 -0
- package/dist/{ContactsScreen-Cheiwaxn.cjs → ContactsScreen-Bw2GcYtk.cjs} +2 -2
- package/dist/{ContactsScreen-BtBNMZzG.mjs → ContactsScreen-BzRFTCBS.mjs} +17 -7
- package/dist/ContactsScreen-BzRFTCBS.mjs.map +1 -0
- package/dist/{FluidProvider-D177ez3m.cjs → FluidProvider-BRkRo8Wl.cjs} +12 -992
- package/dist/FluidProvider-BRkRo8Wl.cjs.map +1 -0
- package/dist/{FluidProvider-DiJy4Zve.mjs → FluidProvider-BTZAiT69.mjs} +9 -820
- package/dist/FluidProvider-BTZAiT69.mjs.map +1 -0
- package/dist/{MessagingScreen-Cu3tcpPs.mjs → MessagingScreen-Bk3Eh1dN.mjs} +2 -2
- package/dist/{MessagingScreen-Cu3tcpPs.mjs.map → MessagingScreen-Bk3Eh1dN.mjs.map} +1 -1
- package/dist/{MessagingScreen-Ysi48svi.cjs → MessagingScreen-DN2eQRxF.cjs} +6 -6
- package/dist/{MessagingScreen-gKidMcrr.cjs → MessagingScreen-DtDbS3VZ.cjs} +2 -2
- package/dist/{MessagingScreen-gKidMcrr.cjs.map → MessagingScreen-DtDbS3VZ.cjs.map} +1 -1
- package/dist/{PortalContentApiProvider-CPnqELEX.cjs → PortalContentApiProvider-BDbrZCyI.cjs} +115 -89
- package/dist/PortalContentApiProvider-BDbrZCyI.cjs.map +1 -0
- package/dist/{PortalContentApiProvider-CWRAw9kL.mjs → PortalContentApiProvider-CzLqEN5C.mjs} +116 -90
- package/dist/PortalContentApiProvider-CzLqEN5C.mjs.map +1 -0
- package/dist/{ProductsScreen-CQ5-A8AL.cjs → ProductsScreen-68jB202M.cjs} +2 -2
- package/dist/{ProductsScreen-CQ5-A8AL.cjs.map → ProductsScreen-68jB202M.cjs.map} +1 -1
- package/dist/{ProductsScreen-CexZ0gx9.mjs → ProductsScreen-BeNUsjh1.mjs} +2 -2
- package/dist/{ProductsScreen-Al6H4ujs.mjs → ProductsScreen-BidL3ZF5.mjs} +2 -2
- package/dist/{ProductsScreen-Al6H4ujs.mjs.map → ProductsScreen-BidL3ZF5.mjs.map} +1 -1
- package/dist/{ProductsScreen-BnwMOZ4-.cjs → ProductsScreen-Bq0f4pQL.cjs} +2 -2
- package/dist/{ProfileScreen-CGS7YkcT.cjs → ProfileScreen-BMNq0NEB.cjs} +6 -6
- package/dist/{ProfileScreen-hE1S_99P.mjs → ProfileScreen-D-pTegtY.mjs} +3 -3
- package/dist/{ProfileScreen-hE1S_99P.mjs.map → ProfileScreen-D-pTegtY.mjs.map} +1 -1
- package/dist/{ProfileScreen-DJZoMzE6.cjs → ProfileScreen-D5OxmzhM.cjs} +101 -101
- package/dist/{ProfileScreen-DJZoMzE6.cjs.map → ProfileScreen-D5OxmzhM.cjs.map} +1 -1
- package/dist/{QuickShareWidget-0GD4KWAr.cjs → QuickShareWidget-C_p3tPs5.cjs} +2 -2
- package/dist/QuickShareWidget-C_p3tPs5.cjs.map +1 -0
- package/dist/{QuickShareWidget-DZzrQjOx.mjs → QuickShareWidget-xKcV3ZQ5.mjs} +2 -2
- package/dist/QuickShareWidget-xKcV3ZQ5.mjs.map +1 -0
- package/dist/{ShareablesScreen-CzTU7e0l.mjs → ShareablesScreen-BRfgOnpL.mjs} +2 -2
- package/dist/{ShareablesScreen-CzTU7e0l.mjs.map → ShareablesScreen-BRfgOnpL.mjs.map} +1 -1
- package/dist/{ShareablesScreen-DujtMoAi.cjs → ShareablesScreen-BYP65ZnU.cjs} +2 -2
- package/dist/{ShareablesScreen-CmZ5CX99.cjs → ShareablesScreen-CCqADUXE.cjs} +2 -2
- package/dist/{ShareablesScreen-CmZ5CX99.cjs.map → ShareablesScreen-CCqADUXE.cjs.map} +1 -1
- package/dist/{ShareablesScreen-yscAsNpq.mjs → ShareablesScreen-YnNF0dD6.mjs} +2 -2
- package/dist/{ShopScreen-Bdo59te-.mjs → ShopScreen-BOJGcSyG.mjs} +3 -3
- package/dist/{ShopScreen-Bdo59te-.mjs.map → ShopScreen-BOJGcSyG.mjs.map} +1 -1
- package/dist/{ShopScreen-R9zk7d5d.cjs → ShopScreen-BzyBZ24D.cjs} +6 -6
- package/dist/{ShopScreen-DKlDKNom.cjs → ShopScreen-DeLp93hN.cjs} +3 -3
- package/dist/{ShopScreen-DKlDKNom.cjs.map → ShopScreen-DeLp93hN.cjs.map} +1 -1
- package/dist/{SpacerWidget-Da_sNa_X.mjs → SpacerWidget-BJFO-Xyh.mjs} +2 -2
- package/dist/SpacerWidget-BJFO-Xyh.mjs.map +1 -0
- package/dist/{SpacerWidget-CLFbkgoz.cjs → SpacerWidget-D9lOLPr5.cjs} +2 -2
- package/dist/SpacerWidget-D9lOLPr5.cjs.map +1 -0
- package/dist/{TableWidget-lKjTu7Go.cjs → TableWidget-C7qiWZc3.cjs} +1 -1
- package/dist/{TableWidget-B65hwjKS.mjs → TableWidget-DRByd9ig.mjs} +9 -9
- package/dist/TableWidget-DRByd9ig.mjs.map +1 -0
- package/dist/{TableWidget-FDbnEYZb.cjs → TableWidget-DUnz9hrD.cjs} +9 -9
- package/dist/TableWidget-DUnz9hrD.cjs.map +1 -0
- package/dist/index.cjs +68 -70
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +126 -133
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +126 -133
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +25 -25
- package/dist/src-BNcNh8fM.cjs +963 -0
- package/dist/src-BNcNh8fM.cjs.map +1 -0
- package/dist/src-BjCPR0aG.mjs +788 -0
- package/dist/src-BjCPR0aG.mjs.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/QuickShareWidget-0GD4KWAr.cjs.map +0 -1
- package/dist/QuickShareWidget-DZzrQjOx.mjs.map +0 -1
- package/dist/SpacerWidget-CLFbkgoz.cjs.map +0 -1
- package/dist/SpacerWidget-Da_sNa_X.mjs.map +0 -1
- package/dist/TableWidget-B65hwjKS.mjs.map +0 -1
- package/dist/TableWidget-FDbnEYZb.cjs.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-BNcNh8fM.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-BQ6pvYOa.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 { k as useCountriesApi, y as getContrastingTextColor } from "./src-BjCPR0aG.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-BzRFTCBS.mjs.map
|