cozy-sharing 12.1.0 → 12.3.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/CHANGELOG.md +22 -0
- package/dist/components/Avatar/AvatarList.js +13 -2
- package/dist/components/Avatar/AvatarList.spec.js +11 -6
- package/dist/components/Avatar/AvatarList.stories.js +13 -1
- package/dist/components/Avatar/GroupAvatar.js +4 -2
- package/dist/components/ContactSuggestion.js +3 -14
- package/dist/components/ContactSuggestion.spec.js +22 -104
- package/dist/components/ShareAutosuggest.js +0 -3
- package/dist/components/ShareRecipientsInput.js +23 -1
- package/dist/components/ShareRecipientsInput.spec.js +206 -115
- package/jest.config.js +2 -1
- package/package.json +2 -2
- package/src/components/Avatar/AvatarList.jsx +33 -14
- package/src/components/Avatar/AvatarList.spec.jsx +11 -6
- package/src/components/Avatar/AvatarList.stories.jsx +19 -1
- package/src/components/Avatar/GroupAvatar.jsx +2 -2
- package/src/components/ContactSuggestion.jsx +3 -17
- package/src/components/ContactSuggestion.spec.jsx +16 -99
- package/src/components/ShareAutosuggest.jsx +1 -6
- package/src/components/ShareRecipientsInput.jsx +19 -1
- package/src/components/ShareRecipientsInput.spec.jsx +170 -108
- package/src/components/__snapshots__/ContactSuggestion.spec.jsx.snap +0 -1192
- package/src/components/__snapshots__/ShareRecipientsInput.spec.jsx.snap +0 -99
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`ShareRecipientsInput component should include groups only if all contacts are loaded 1`] = `
|
|
4
|
-
<ShareAutocomplete
|
|
5
|
-
contactsAndGroups={
|
|
6
|
-
Array [
|
|
7
|
-
Object {
|
|
8
|
-
"_id": "df563cc4-6440",
|
|
9
|
-
"_type": "io.cozy.contacts",
|
|
10
|
-
"id": "df563cc4-6440",
|
|
11
|
-
"name": Object {
|
|
12
|
-
"familyName": "Russel",
|
|
13
|
-
"givenName": "Michale",
|
|
14
|
-
},
|
|
15
|
-
},
|
|
16
|
-
Object {
|
|
17
|
-
"_id": "5a3b4ccf-c257",
|
|
18
|
-
"_type": "io.cozy.contacts",
|
|
19
|
-
"id": "5a3b4ccf-c257",
|
|
20
|
-
"name": Object {
|
|
21
|
-
"familyName": "Wolf",
|
|
22
|
-
"givenName": "Teagan",
|
|
23
|
-
},
|
|
24
|
-
},
|
|
25
|
-
]
|
|
26
|
-
}
|
|
27
|
-
loading={false}
|
|
28
|
-
onFocus={[Function]}
|
|
29
|
-
onPick={[MockFunction onPick]}
|
|
30
|
-
onRemove={[MockFunction onRemove]}
|
|
31
|
-
placeholder="Enter recipients here"
|
|
32
|
-
recipients={
|
|
33
|
-
Array [
|
|
34
|
-
Object {
|
|
35
|
-
"id": "5a3b4ccf-c257",
|
|
36
|
-
"name": Object {
|
|
37
|
-
"familyName": "Wolf",
|
|
38
|
-
"givenName": "Teagan",
|
|
39
|
-
},
|
|
40
|
-
},
|
|
41
|
-
]
|
|
42
|
-
}
|
|
43
|
-
/>
|
|
44
|
-
`;
|
|
45
|
-
|
|
46
|
-
exports[`ShareRecipientsInput component should match snapshot 1`] = `
|
|
47
|
-
<ShareAutocomplete
|
|
48
|
-
contactsAndGroups={
|
|
49
|
-
Array [
|
|
50
|
-
Object {
|
|
51
|
-
"_id": "df563cc4-6440",
|
|
52
|
-
"_type": "io.cozy.contacts",
|
|
53
|
-
"id": "df563cc4-6440",
|
|
54
|
-
"name": Object {
|
|
55
|
-
"familyName": "Russel",
|
|
56
|
-
"givenName": "Michale",
|
|
57
|
-
},
|
|
58
|
-
},
|
|
59
|
-
Object {
|
|
60
|
-
"_id": "5a3b4ccf-c257",
|
|
61
|
-
"_type": "io.cozy.contacts",
|
|
62
|
-
"id": "5a3b4ccf-c257",
|
|
63
|
-
"name": Object {
|
|
64
|
-
"familyName": "Wolf",
|
|
65
|
-
"givenName": "Teagan",
|
|
66
|
-
},
|
|
67
|
-
},
|
|
68
|
-
Object {
|
|
69
|
-
"_id": "fe86af20-c6c5",
|
|
70
|
-
"_type": "io.cozy.contacts.groups",
|
|
71
|
-
"id": "fe86af20-c6c5",
|
|
72
|
-
"name": "The Night's Watch",
|
|
73
|
-
},
|
|
74
|
-
Object {
|
|
75
|
-
"_id": "3d8193ab-2ce4",
|
|
76
|
-
"_type": "io.cozy.contacts.groups",
|
|
77
|
-
"id": "3d8193ab-2ce4",
|
|
78
|
-
"name": "The North",
|
|
79
|
-
},
|
|
80
|
-
]
|
|
81
|
-
}
|
|
82
|
-
loading={false}
|
|
83
|
-
onFocus={[Function]}
|
|
84
|
-
onPick={[MockFunction onPick]}
|
|
85
|
-
onRemove={[MockFunction onRemove]}
|
|
86
|
-
placeholder="Enter recipients here"
|
|
87
|
-
recipients={
|
|
88
|
-
Array [
|
|
89
|
-
Object {
|
|
90
|
-
"id": "5a3b4ccf-c257",
|
|
91
|
-
"name": Object {
|
|
92
|
-
"familyName": "Wolf",
|
|
93
|
-
"givenName": "Teagan",
|
|
94
|
-
},
|
|
95
|
-
},
|
|
96
|
-
]
|
|
97
|
-
}
|
|
98
|
-
/>
|
|
99
|
-
`;
|