realtimex-crm 0.16.0 → 0.17.0
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/assets/{DealList-DSSxOHlE.js → DealList-BDM22iSt.js} +2 -2
- package/dist/assets/{DealList-DSSxOHlE.js.map → DealList-BDM22iSt.js.map} +1 -1
- package/dist/assets/{index-BCVxqu9y.js → index-ClhQN0YK.js} +43 -43
- package/dist/assets/{index-BCVxqu9y.js.map → index-ClhQN0YK.js.map} +1 -1
- package/dist/index.html +1 -1
- package/dist/stats.html +1 -1
- package/package.json +1 -1
- package/src/components/atomic-crm/contacts/ContactInputs.tsx +14 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "realtimex-crm",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.17.0",
|
|
4
4
|
"description": "RealTimeX CRM - A full-featured CRM built with React, shadcn-admin-kit, and Supabase. Fork of Atomic CRM with RealTimeX App SDK integration.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { email, required } from "ra-core";
|
|
1
|
+
import { email, required, useRecordContext } from "ra-core";
|
|
2
2
|
import type { FocusEvent, ClipboardEventHandler } from "react";
|
|
3
3
|
import { useFormContext } from "react-hook-form";
|
|
4
4
|
import { Separator } from "@/components/ui/separator";
|
|
@@ -13,16 +13,26 @@ import { SimpleFormIterator } from "@/components/admin/simple-form-iterator";
|
|
|
13
13
|
|
|
14
14
|
import { isLinkedinUrl } from "../misc/isLinkedInUrl";
|
|
15
15
|
import { useConfigurationContext } from "../root/ConfigurationContext";
|
|
16
|
-
import type { Sale } from "../types";
|
|
17
|
-
import
|
|
16
|
+
import type { Contact, Sale } from "../types";
|
|
17
|
+
import ImageEditorField from "../misc/ImageEditorField";
|
|
18
18
|
import { AutocompleteCompanyInput } from "../companies/AutocompleteCompanyInput.tsx";
|
|
19
19
|
|
|
20
20
|
export const ContactInputs = () => {
|
|
21
21
|
const isMobile = useIsMobile();
|
|
22
|
+
const record = useRecordContext<Contact>();
|
|
22
23
|
|
|
23
24
|
return (
|
|
24
25
|
<div className="flex flex-col gap-2 p-1">
|
|
25
|
-
<
|
|
26
|
+
<div className="flex">
|
|
27
|
+
<ImageEditorField
|
|
28
|
+
source="avatar"
|
|
29
|
+
type="avatar"
|
|
30
|
+
width={60}
|
|
31
|
+
height={60}
|
|
32
|
+
emptyText={`${record?.first_name?.charAt(0) || ""}${record?.last_name?.charAt(0) || ""}`}
|
|
33
|
+
linkPosition="bottom"
|
|
34
|
+
/>
|
|
35
|
+
</div>
|
|
26
36
|
<div className={`flex gap-6 ${isMobile ? "flex-col" : "flex-row"}`}>
|
|
27
37
|
<div className="flex flex-col gap-10 flex-1">
|
|
28
38
|
<ContactIdentityInputs />
|