@fluid-app/portal-sdk 0.1.73 → 0.1.74
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-DspTqMml.mjs → ContactsScreen-CzvfANNV.mjs} +3 -8
- package/dist/{ContactsScreen-DspTqMml.mjs.map → ContactsScreen-CzvfANNV.mjs.map} +1 -1
- package/dist/{ContactsScreen-BbCjj8vV.cjs → ContactsScreen-fNFKA1nn.cjs} +2 -7
- package/dist/ContactsScreen-fNFKA1nn.cjs.map +1 -0
- package/dist/{ContactsScreen-CSWZMv-W.cjs → ContactsScreen-pCkw9htG.cjs} +1 -1
- package/dist/{MessagingScreen-Dam7Z2Rw.mjs → MessagingScreen-BHulaY7A.mjs} +1 -2
- package/dist/{MessagingScreen-Dam7Z2Rw.mjs.map → MessagingScreen-BHulaY7A.mjs.map} +1 -1
- package/dist/{MessagingScreen-T_9j-cSr.mjs → MessagingScreen-Bp5t4STI.mjs} +1 -2
- package/dist/{MessagingScreen-Bc93rUBN.cjs → MessagingScreen-DGttFuoB.cjs} +1 -2
- package/dist/{MessagingScreen-Bc93rUBN.cjs.map → MessagingScreen-DGttFuoB.cjs.map} +1 -1
- package/dist/{MessagingScreen-D7W9By7b.cjs → MessagingScreen-ms1wGWHQ.cjs} +1 -1
- package/dist/{ProductsScreen-BeFw6FoS.mjs → ProductsScreen-CI4XIK-8.mjs} +0 -1
- package/dist/{ProfileScreen--vA-Hnyb.cjs → ProfileScreen-D6ie-eDm.cjs} +44 -57
- package/dist/ProfileScreen-D6ie-eDm.cjs.map +1 -0
- package/dist/{ProfileScreen-brLpQhbW.cjs → ProfileScreen-VBlfOlav.cjs} +1 -1
- package/dist/{ProfileScreen-BrdvqFgQ.mjs → ProfileScreen-Y5zQgZL0.mjs} +46 -59
- package/dist/ProfileScreen-Y5zQgZL0.mjs.map +1 -0
- package/dist/{ShareablesScreen-B5HDyfiT.mjs → ShareablesScreen-htQIO4oW.mjs} +0 -1
- package/dist/index.cjs +9 -9
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +13 -13
- package/dist/src-77nf0QPD.mjs.map +1 -1
- package/dist/src-DGjAAfmN.cjs.map +1 -1
- package/package.json +14 -14
- package/dist/ContactsScreen-BbCjj8vV.cjs.map +0 -1
- package/dist/ProfileScreen--vA-Hnyb.cjs.map +0 -1
- package/dist/ProfileScreen-BrdvqFgQ.mjs.map +0 -1
|
@@ -11,8 +11,7 @@ import { keepPreviousData, useMutation, useQuery, useQueryClient } from "@tansta
|
|
|
11
11
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
12
12
|
import { z } from "zod";
|
|
13
13
|
import { AlignCenter, AlignJustify, AlignLeft, AlignRight, ArrowLeft, ArrowUpDown, Bell, Building, Calendar, CalendarDays, ChevronLeft, ChevronRight, CircleCheck, ClipboardList, EllipsisVertical, Eye, List, ListChecks, ListOrdered, Mail, MessageCircle, Paperclip, Pen, Pencil, Phone, Play, Plus, Repeat2, Rocket, Search, Share2, ShoppingCart, SquareCheckBig, Star, StickyNote, Trash2, Trophy, User, UserPlus, X } from "lucide-react";
|
|
14
|
-
import {
|
|
15
|
-
import { FormProvider, useController, useForm, useFormContext, useWatch } from "react-hook-form";
|
|
14
|
+
import { FormProvider, useController, useFormContext, useWatch } from "react-hook-form";
|
|
16
15
|
//#region ../../contacts/ui/src/shared/components/contacts/statusBadge.tsx
|
|
17
16
|
const statusStyles = {
|
|
18
17
|
new: "border-[var(--status-new-border)] bg-[var(--status-new)] text-[var(--status-new-foreground)]",
|
|
@@ -4243,7 +4242,6 @@ function ContactDetailView({ contactId, client, onNavigate }) {
|
|
|
4243
4242
|
})
|
|
4244
4243
|
});
|
|
4245
4244
|
}
|
|
4246
|
-
const createContactResolver = zodResolver(createContactFormSchema);
|
|
4247
4245
|
const CREATE_DEFAULT_VALUES = {
|
|
4248
4246
|
first_name: "",
|
|
4249
4247
|
last_name: "",
|
|
@@ -4273,10 +4271,7 @@ function ContactCreateView({ client, onNavigate, onCreateContact }) {
|
|
|
4273
4271
|
name: c.name,
|
|
4274
4272
|
value: c.iso ?? String(c.id)
|
|
4275
4273
|
})).sort((a, b) => a.name.localeCompare(b.name)), [countries]);
|
|
4276
|
-
const methods =
|
|
4277
|
-
resolver: createContactResolver,
|
|
4278
|
-
defaultValues: CREATE_DEFAULT_VALUES
|
|
4279
|
-
});
|
|
4274
|
+
const methods = useZodForm(createContactFormSchema, { defaultValues: CREATE_DEFAULT_VALUES });
|
|
4280
4275
|
const mutation = useCreateContactMutation(config, QUERY_KEY_PREFIX, { onSuccess: (data) => {
|
|
4281
4276
|
onCreateContact?.();
|
|
4282
4277
|
const newContactId = data?.contact?.id;
|
|
@@ -4356,4 +4351,4 @@ const contactsScreenPropertySchema = {
|
|
|
4356
4351
|
//#endregion
|
|
4357
4352
|
export { ContactsScreen_exports as n, contactsScreenPropertySchema as r, ContactsScreen as t };
|
|
4358
4353
|
|
|
4359
|
-
//# sourceMappingURL=ContactsScreen-
|
|
4354
|
+
//# sourceMappingURL=ContactsScreen-CzvfANNV.mjs.map
|