@axium/contacts 0.2.0 → 0.2.2
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/lib/InitForm.svelte
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import ContactPicture from './ContactPicture.svelte';
|
|
7
7
|
import DateSelect from './DateSelect.svelte';
|
|
8
8
|
import { contactDiscovery } from './discovery.svelte';
|
|
9
|
-
import {
|
|
9
|
+
import { format, getContact } from '@axium/contacts/client';
|
|
10
10
|
|
|
11
11
|
let showDetailed = $state(false);
|
|
12
12
|
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
{#if init.id}
|
|
66
66
|
<div class="contact-init-header">
|
|
67
67
|
<ContactPicture contact={init as typeof init & { id: string }} --size="150px" />
|
|
68
|
-
<span class="contact-name-title">{
|
|
68
|
+
<span class="contact-name-title">{format.name(init)}</span>
|
|
69
69
|
</div>
|
|
70
70
|
{/if}
|
|
71
71
|
|
|
@@ -144,6 +144,7 @@
|
|
|
144
144
|
sources={[contactDiscovery]}
|
|
145
145
|
exclude={target =>
|
|
146
146
|
[init.id, ...init.relationships.map(r => r.to)].filter((v): v is string => !!v).includes(target.contact.id)}
|
|
147
|
+
initialValue={format.name(await getContact(rel.to))}
|
|
147
148
|
/>
|
|
148
149
|
<ZodInput
|
|
149
150
|
bind:rootValue={init}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@axium/contacts",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"author": "James Prevett <axium@jamespre.dev>",
|
|
5
5
|
"description": "Contacts for Axium",
|
|
6
6
|
"funding": {
|
|
@@ -38,11 +38,11 @@
|
|
|
38
38
|
"build": "tsc"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"@axium/client": ">=0.23.
|
|
41
|
+
"@axium/client": ">=0.23.1",
|
|
42
42
|
"@axium/core": ">=0.26.0",
|
|
43
43
|
"@axium/server": ">=0.42.0",
|
|
44
44
|
"@sveltejs/kit": "^2.27.3",
|
|
45
|
-
"utilium": "^
|
|
45
|
+
"utilium": "^3.0.0"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"zod": "^4.0.5"
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import { toVCard } from '@axium/contacts';
|
|
6
6
|
import { format, getContact } from '@axium/contacts/client';
|
|
7
7
|
import { ContactPicture, Field } from '@axium/contacts/components';
|
|
8
|
-
import { download, upload } from 'utilium/dom
|
|
8
|
+
import { download, upload } from 'utilium/dom';
|
|
9
9
|
|
|
10
10
|
const { data } = $props();
|
|
11
11
|
const { contact } = data;
|