@amityco/react-native-social-uikit 4.1.1-fe2678f6.0 → 4.2.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/README.md +7 -0
- package/lib/commonjs/core/assets/icons/post.js +1 -1
- package/lib/commonjs/core/assets/icons/post.js.map +1 -1
- package/lib/commonjs/core/assets/icons/story.js +1 -1
- package/lib/commonjs/core/assets/icons/story.js.map +1 -1
- package/lib/commonjs/core/assets/icons/xml.js +16 -2
- package/lib/commonjs/core/assets/icons/xml.js.map +1 -1
- package/lib/commonjs/core/legacy/file.js +145 -62
- package/lib/commonjs/core/legacy/file.js.map +1 -1
- package/lib/commonjs/core/stores/slices/feedSlice.js +3 -0
- package/lib/commonjs/core/stores/slices/feedSlice.js.map +1 -1
- package/lib/commonjs/core/stores/slices/globalfeedSlice.js +5 -0
- package/lib/commonjs/core/stores/slices/globalfeedSlice.js.map +1 -1
- package/lib/commonjs/core/stores/slices/localVideoThumbnailSlice.js +46 -0
- package/lib/commonjs/core/stores/slices/localVideoThumbnailSlice.js.map +1 -0
- package/lib/commonjs/core/stores/slices/uiSlice.js +5 -1
- package/lib/commonjs/core/stores/slices/uiSlice.js.map +1 -1
- package/lib/commonjs/core/stores/store/index.js +3 -1
- package/lib/commonjs/core/stores/store/index.js.map +1 -1
- package/lib/commonjs/social/components/LoadingImage/index.js +73 -12
- package/lib/commonjs/social/components/LoadingImage/index.js.map +1 -1
- package/lib/commonjs/social/components/LoadingImage/styles.js +8 -3
- package/lib/commonjs/social/components/LoadingImage/styles.js.map +1 -1
- package/lib/commonjs/social/components/LoadingVideo/index.js +90 -16
- package/lib/commonjs/social/components/LoadingVideo/index.js.map +1 -1
- package/lib/commonjs/social/components/LoadingVideo/styles.js +14 -5
- package/lib/commonjs/social/components/LoadingVideo/styles.js.map +1 -1
- package/lib/commonjs/social/components/MediaViewer/MediaViewer.js +13 -13
- package/lib/commonjs/social/components/MediaViewer/MediaViewer.js.map +1 -1
- package/lib/commonjs/social/components/MediaViewer/styles.js +11 -1
- package/lib/commonjs/social/components/MediaViewer/styles.js.map +1 -1
- package/lib/commonjs/social/components/PostContent/index.js +8 -29
- package/lib/commonjs/social/components/PostContent/index.js.map +1 -1
- package/lib/commonjs/social/components/SelectedMediaComponent/SelectedMediaComponent.js +109 -17
- package/lib/commonjs/social/components/SelectedMediaComponent/SelectedMediaComponent.js.map +1 -1
- package/lib/commonjs/social/components/legacy/LoadingVideo/index.js +17 -6
- package/lib/commonjs/social/components/legacy/LoadingVideo/index.js.map +1 -1
- package/lib/commonjs/social/elements/PostMediaElement/PostMediaElement.js +121 -23
- package/lib/commonjs/social/elements/PostMediaElement/PostMediaElement.js.map +1 -1
- package/lib/commonjs/social/elements/PostMediaElement/styles.js +7 -0
- package/lib/commonjs/social/elements/PostMediaElement/styles.js.map +1 -1
- package/lib/commonjs/social/features/community/PendingRequest/components/PendingPostList/PendingPostList.js +11 -5
- package/lib/commonjs/social/features/community/PendingRequest/components/PendingPostList/PendingPostList.js.map +1 -1
- package/lib/commonjs/social/features/feed/components/NewsFeed/NewsFeed.js +14 -0
- package/lib/commonjs/social/features/feed/components/NewsFeed/NewsFeed.js.map +1 -1
- package/lib/commonjs/social/features/post/Composer/PostComposer.js +234 -86
- package/lib/commonjs/social/features/post/Composer/PostComposer.js.map +1 -1
- package/lib/commonjs/social/hooks/index.js +11 -0
- package/lib/commonjs/social/hooks/index.js.map +1 -1
- package/lib/commonjs/social/hooks/useCommunities.js +5 -3
- package/lib/commonjs/social/hooks/useCommunities.js.map +1 -1
- package/lib/commonjs/social/hooks/useCommunityPermission.js +43 -0
- package/lib/commonjs/social/hooks/useCommunityPermission.js.map +1 -0
- package/lib/commonjs/social/hooks/useCustomRankingGlobalFeed.js +10 -1
- package/lib/commonjs/social/hooks/useCustomRankingGlobalFeed.js.map +1 -1
- package/lib/commonjs/social/hooks/useFile.js +11 -0
- package/lib/commonjs/social/hooks/useFile.js.map +1 -1
- package/lib/commonjs/social/screens/CommunityProfile/components/Header/Header.js +18 -7
- package/lib/commonjs/social/screens/CommunityProfile/components/Header/Header.js.map +1 -1
- package/lib/commonjs/social/utils/mediaAttachments.js +150 -0
- package/lib/commonjs/social/utils/mediaAttachments.js.map +1 -0
- package/lib/commonjs/social/utils/postChildren.js +72 -0
- package/lib/commonjs/social/utils/postChildren.js.map +1 -0
- package/lib/module/core/assets/icons/post.js +1 -1
- package/lib/module/core/assets/icons/post.js.map +1 -1
- package/lib/module/core/assets/icons/story.js +1 -1
- package/lib/module/core/assets/icons/story.js.map +1 -1
- package/lib/module/core/assets/icons/xml.js +13 -0
- package/lib/module/core/assets/icons/xml.js.map +1 -1
- package/lib/module/core/legacy/file.js +145 -62
- package/lib/module/core/legacy/file.js.map +1 -1
- package/lib/module/core/stores/slices/feedSlice.js +3 -0
- package/lib/module/core/stores/slices/feedSlice.js.map +1 -1
- package/lib/module/core/stores/slices/globalfeedSlice.js +5 -0
- package/lib/module/core/stores/slices/globalfeedSlice.js.map +1 -1
- package/lib/module/core/stores/slices/localVideoThumbnailSlice.js +41 -0
- package/lib/module/core/stores/slices/localVideoThumbnailSlice.js.map +1 -0
- package/lib/module/core/stores/slices/uiSlice.js +5 -1
- package/lib/module/core/stores/slices/uiSlice.js.map +1 -1
- package/lib/module/core/stores/store/index.js +3 -1
- package/lib/module/core/stores/store/index.js.map +1 -1
- package/lib/module/social/components/LoadingImage/index.js +74 -14
- package/lib/module/social/components/LoadingImage/index.js.map +1 -1
- package/lib/module/social/components/LoadingImage/styles.js +8 -3
- package/lib/module/social/components/LoadingImage/styles.js.map +1 -1
- package/lib/module/social/components/LoadingVideo/index.js +91 -17
- package/lib/module/social/components/LoadingVideo/index.js.map +1 -1
- package/lib/module/social/components/LoadingVideo/styles.js +14 -5
- package/lib/module/social/components/LoadingVideo/styles.js.map +1 -1
- package/lib/module/social/components/MediaViewer/MediaViewer.js +13 -13
- package/lib/module/social/components/MediaViewer/MediaViewer.js.map +1 -1
- package/lib/module/social/components/MediaViewer/styles.js +11 -1
- package/lib/module/social/components/MediaViewer/styles.js.map +1 -1
- package/lib/module/social/components/PostContent/index.js +8 -29
- package/lib/module/social/components/PostContent/index.js.map +1 -1
- package/lib/module/social/components/SelectedMediaComponent/SelectedMediaComponent.js +110 -18
- package/lib/module/social/components/SelectedMediaComponent/SelectedMediaComponent.js.map +1 -1
- package/lib/module/social/components/legacy/LoadingVideo/index.js +17 -6
- package/lib/module/social/components/legacy/LoadingVideo/index.js.map +1 -1
- package/lib/module/social/elements/PostMediaElement/PostMediaElement.js +123 -25
- package/lib/module/social/elements/PostMediaElement/PostMediaElement.js.map +1 -1
- package/lib/module/social/elements/PostMediaElement/styles.js +7 -0
- package/lib/module/social/elements/PostMediaElement/styles.js.map +1 -1
- package/lib/module/social/features/community/PendingRequest/components/PendingPostList/PendingPostList.js +12 -6
- package/lib/module/social/features/community/PendingRequest/components/PendingPostList/PendingPostList.js.map +1 -1
- package/lib/module/social/features/feed/components/NewsFeed/NewsFeed.js +15 -1
- package/lib/module/social/features/feed/components/NewsFeed/NewsFeed.js.map +1 -1
- package/lib/module/social/features/post/Composer/PostComposer.js +236 -89
- package/lib/module/social/features/post/Composer/PostComposer.js.map +1 -1
- package/lib/module/social/hooks/index.js +1 -0
- package/lib/module/social/hooks/index.js.map +1 -1
- package/lib/module/social/hooks/useCommunities.js +5 -3
- package/lib/module/social/hooks/useCommunities.js.map +1 -1
- package/lib/module/social/hooks/useCommunityPermission.js +37 -0
- package/lib/module/social/hooks/useCommunityPermission.js.map +1 -0
- package/lib/module/social/hooks/useCustomRankingGlobalFeed.js +10 -1
- package/lib/module/social/hooks/useCustomRankingGlobalFeed.js.map +1 -1
- package/lib/module/social/hooks/useFile.js +11 -0
- package/lib/module/social/hooks/useFile.js.map +1 -1
- package/lib/module/social/screens/CommunityProfile/components/Header/Header.js +19 -8
- package/lib/module/social/screens/CommunityProfile/components/Header/Header.js.map +1 -1
- package/lib/module/social/utils/mediaAttachments.js +139 -0
- package/lib/module/social/utils/mediaAttachments.js.map +1 -0
- package/lib/module/social/utils/postChildren.js +66 -0
- package/lib/module/social/utils/postChildren.js.map +1 -0
- package/lib/typescript/core/assets/icons/xml.d.ts +1 -0
- package/lib/typescript/core/assets/icons/xml.d.ts.map +1 -1
- package/lib/typescript/core/legacy/file.d.ts +32 -0
- package/lib/typescript/core/legacy/file.d.ts.map +1 -1
- package/lib/typescript/core/stores/slices/feedSlice.d.ts.map +1 -1
- package/lib/typescript/core/stores/slices/globalfeedSlice.d.ts.map +1 -1
- package/lib/typescript/core/stores/slices/localVideoThumbnailSlice.d.ts +35 -0
- package/lib/typescript/core/stores/slices/localVideoThumbnailSlice.d.ts.map +1 -0
- package/lib/typescript/core/stores/slices/uiSlice.d.ts +5 -0
- package/lib/typescript/core/stores/slices/uiSlice.d.ts.map +1 -1
- package/lib/typescript/core/stores/store/index.d.ts.map +1 -1
- package/lib/typescript/core/types/mention.d.ts +34 -0
- package/lib/typescript/core/types/mention.d.ts.map +1 -1
- package/lib/typescript/social/components/LoadingImage/index.d.ts +8 -2
- package/lib/typescript/social/components/LoadingImage/index.d.ts.map +1 -1
- package/lib/typescript/social/components/LoadingImage/styles.d.ts.map +1 -1
- package/lib/typescript/social/components/LoadingVideo/index.d.ts +9 -2
- package/lib/typescript/social/components/LoadingVideo/index.d.ts.map +1 -1
- package/lib/typescript/social/components/LoadingVideo/styles.d.ts +1 -0
- package/lib/typescript/social/components/LoadingVideo/styles.d.ts.map +1 -1
- package/lib/typescript/social/components/MediaViewer/MediaViewer.d.ts.map +1 -1
- package/lib/typescript/social/components/MediaViewer/styles.d.ts +1 -0
- package/lib/typescript/social/components/MediaViewer/styles.d.ts.map +1 -1
- package/lib/typescript/social/components/PostContent/index.d.ts.map +1 -1
- package/lib/typescript/social/components/SelectedMediaComponent/SelectedMediaComponent.d.ts +2 -2
- package/lib/typescript/social/components/SelectedMediaComponent/SelectedMediaComponent.d.ts.map +1 -1
- package/lib/typescript/social/components/legacy/LoadingVideo/index.d.ts.map +1 -1
- package/lib/typescript/social/elements/PostMediaElement/PostMediaElement.d.ts.map +1 -1
- package/lib/typescript/social/elements/PostMediaElement/styles.d.ts +4 -0
- package/lib/typescript/social/elements/PostMediaElement/styles.d.ts.map +1 -1
- package/lib/typescript/social/features/community/PendingRequest/components/PendingPostList/PendingPostList.d.ts.map +1 -1
- package/lib/typescript/social/features/feed/components/NewsFeed/NewsFeed.d.ts.map +1 -1
- package/lib/typescript/social/features/post/Composer/PostComposer.d.ts.map +1 -1
- package/lib/typescript/social/hooks/index.d.ts +1 -0
- package/lib/typescript/social/hooks/index.d.ts.map +1 -1
- package/lib/typescript/social/hooks/useCommunities.d.ts +2 -1
- package/lib/typescript/social/hooks/useCommunities.d.ts.map +1 -1
- package/lib/typescript/social/hooks/useCommunityPermission.d.ts +14 -0
- package/lib/typescript/social/hooks/useCommunityPermission.d.ts.map +1 -0
- package/lib/typescript/social/hooks/useCustomRankingGlobalFeed.d.ts.map +1 -1
- package/lib/typescript/social/hooks/useFile.d.ts +11 -0
- package/lib/typescript/social/hooks/useFile.d.ts.map +1 -1
- package/lib/typescript/social/screens/CommunityProfile/components/Header/Header.d.ts.map +1 -1
- package/lib/typescript/social/utils/mediaAttachments.d.ts +91 -0
- package/lib/typescript/social/utils/mediaAttachments.d.ts.map +1 -0
- package/lib/typescript/social/utils/postChildren.d.ts +38 -0
- package/lib/typescript/social/utils/postChildren.d.ts.map +1 -0
- package/package.json +3 -3
- package/src/core/assets/icons/post.tsx +1 -1
- package/src/core/assets/icons/story.tsx +1 -1
- package/src/core/assets/icons/xml.ts +15 -0
- package/src/core/legacy/file.tsx +169 -84
- package/src/core/stores/slices/feedSlice.ts +3 -0
- package/src/core/stores/slices/globalfeedSlice.ts +5 -0
- package/src/core/stores/slices/localVideoThumbnailSlice.ts +58 -0
- package/src/core/stores/slices/uiSlice.ts +8 -0
- package/src/core/stores/store/index.ts +2 -0
- package/src/core/types/mention.ts +34 -0
- package/src/social/components/LoadingImage/index.tsx +81 -12
- package/src/social/components/LoadingImage/styles.ts +8 -3
- package/src/social/components/LoadingVideo/index.tsx +111 -21
- package/src/social/components/LoadingVideo/styles.ts +13 -4
- package/src/social/components/MediaViewer/MediaViewer.tsx +11 -12
- package/src/social/components/MediaViewer/styles.ts +9 -1
- package/src/social/components/PostContent/index.tsx +3 -35
- package/src/social/components/SelectedMediaComponent/SelectedMediaComponent.tsx +103 -13
- package/src/social/components/legacy/LoadingVideo/index.tsx +26 -15
- package/src/social/elements/PostMediaElement/PostMediaElement.tsx +139 -29
- package/src/social/elements/PostMediaElement/styles.ts +7 -0
- package/src/social/features/community/PendingRequest/components/PendingPostList/PendingPostList.tsx +11 -6
- package/src/social/features/feed/components/NewsFeed/NewsFeed.tsx +16 -1
- package/src/social/features/post/Composer/PostComposer.tsx +304 -91
- package/src/social/hooks/index.ts +1 -0
- package/src/social/hooks/useCommunities.ts +4 -2
- package/src/social/hooks/useCommunityPermission.ts +40 -0
- package/src/social/hooks/useCustomRankingGlobalFeed.ts +8 -1
- package/src/social/hooks/useFile.ts +11 -0
- package/src/social/screens/CommunityProfile/components/Header/Header.tsx +19 -10
- package/src/social/utils/mediaAttachments.ts +158 -0
- package/src/social/utils/postChildren.ts +85 -0
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/** A post child as the feed resolves it: the child post plus its own payload. */
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Sort a post's resolved children into what each surface needs.
|
|
5
|
+
*
|
|
6
|
+
* Every hop into a child's payload is guarded, because the cost of being wrong
|
|
7
|
+
* is out of proportion to the saving: an ErrorBoundary sits around the whole
|
|
8
|
+
* UIKit without an onError, so one TypeError in here replaces the entire app
|
|
9
|
+
* with a generic error page and takes its own stack down with it.
|
|
10
|
+
*
|
|
11
|
+
* `ContentDataVideo` types `videoFileId` as always present but every size
|
|
12
|
+
* inside it as optional, so `original` is the hop that can legitimately be
|
|
13
|
+
* missing. The keys above it are guarded on the same principle rather than on
|
|
14
|
+
* evidence that they go missing.
|
|
15
|
+
*/
|
|
16
|
+
export function classifyPostChildren(children, apiRegion) {
|
|
17
|
+
const images = [];
|
|
18
|
+
const videos = [];
|
|
19
|
+
const polls = [];
|
|
20
|
+
const livestreams = [];
|
|
21
|
+
const media = [];
|
|
22
|
+
children.forEach(item => {
|
|
23
|
+
var _item$data, _item$data2, _item$data4, _item$data6;
|
|
24
|
+
if ((item === null || item === void 0 ? void 0 : item.dataType) === 'image' && item !== null && item !== void 0 && (_item$data = item.data) !== null && _item$data !== void 0 && _item$data.fileId) {
|
|
25
|
+
const url = `https://api.${apiRegion}.amity.co/api/v3/files/${item.data.fileId}/download?size=medium`;
|
|
26
|
+
if (!images.includes(url)) {
|
|
27
|
+
images.push(url);
|
|
28
|
+
if (item.post) media.push(item.post);
|
|
29
|
+
}
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
if ((item === null || item === void 0 ? void 0 : item.dataType) === 'video' && item !== null && item !== void 0 && (_item$data2 = item.data) !== null && _item$data2 !== void 0 && (_item$data2 = _item$data2.videoFileId) !== null && _item$data2 !== void 0 && _item$data2.original) {
|
|
33
|
+
const isExisted = videos.some(video => {
|
|
34
|
+
var _video$videoFileId, _item$data3;
|
|
35
|
+
return ((_video$videoFileId = video.videoFileId) === null || _video$videoFileId === void 0 ? void 0 : _video$videoFileId.original) === ((_item$data3 = item.data) === null || _item$data3 === void 0 || (_item$data3 = _item$data3.videoFileId) === null || _item$data3 === void 0 ? void 0 : _item$data3.original);
|
|
36
|
+
});
|
|
37
|
+
if (!isExisted) {
|
|
38
|
+
videos.push(item.data);
|
|
39
|
+
if (item.post) media.push(item.post);
|
|
40
|
+
}
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
if ((item === null || item === void 0 ? void 0 : item.dataType) === 'poll' && item !== null && item !== void 0 && (_item$data4 = item.data) !== null && _item$data4 !== void 0 && _item$data4.pollId) {
|
|
44
|
+
if (!polls.some(poll => {
|
|
45
|
+
var _item$data5;
|
|
46
|
+
return poll.pollId === ((_item$data5 = item.data) === null || _item$data5 === void 0 ? void 0 : _item$data5.pollId);
|
|
47
|
+
})) {
|
|
48
|
+
polls.push(item.data);
|
|
49
|
+
}
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
if ((item === null || item === void 0 ? void 0 : item.dataType) === 'room' && item !== null && item !== void 0 && (_item$data6 = item.data) !== null && _item$data6 !== void 0 && _item$data6.roomId) {
|
|
53
|
+
if (!livestreams.includes(item.data.roomId)) {
|
|
54
|
+
livestreams.push(item.data.roomId);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
return {
|
|
59
|
+
images,
|
|
60
|
+
videos,
|
|
61
|
+
polls,
|
|
62
|
+
livestreams,
|
|
63
|
+
media
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
//# sourceMappingURL=postChildren.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["classifyPostChildren","children","apiRegion","images","videos","polls","livestreams","media","forEach","item","_item$data","_item$data2","_item$data4","_item$data6","dataType","data","fileId","url","includes","push","post","videoFileId","original","isExisted","some","video","_video$videoFileId","_item$data3","pollId","poll","_item$data5","roomId"],"sourceRoot":"../../../../src","sources":["social/utils/postChildren.ts"],"mappings":"AAEA;;AAsBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASA,oBAAoBA,CAClCC,QAA6B,EAC7BC,SAAiB,EACO;EACxB,MAAMC,MAAgB,GAAG,EAAE;EAC3B,MAAMC,MAAoB,GAAG,EAAE;EAC/B,MAAMC,KAA2B,GAAG,EAAE;EACtC,MAAMC,WAAmC,GAAG,EAAE;EAC9C,MAAMC,KAAmB,GAAG,EAAE;EAE9BN,QAAQ,CAACO,OAAO,CAAEC,IAAI,IAAK;IAAA,IAAAC,UAAA,EAAAC,WAAA,EAAAC,WAAA,EAAAC,WAAA;IACzB,IAAI,CAAAJ,I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I,CAAC;MACtC;MACA;IACF;IAEA,IAAI,CAAAX,IAAI,aAAJA,IAAI,uBAAJA,IAAI,CAAEK,QAAQ,MAAK,MAAM,IAAIL,IAAI,aAAJA,IAAI,gBAAAG,WAAA,GAAJH,IAAI,CAAEM,IAAI,cAAAH,WAAA,eAAVA,WAAA,CAAYgB,MAAM,EAAE;MACnD,IAAI,CAACvB,KAAK,CAACmB,IAAI,CAAEK,IAAI;QAAA,IAAAC,WAAA;QAAA,OAAKD,IAAI,CAACD,MAAM,OAAAE,WAAA,GAAKrB,IAAI,CAACM,IAAI,cAAAe,WAAA,uBAATA,WAAA,CAAWF,MAAM;MAAA,EAAC,EAAE;QAC5DvB,KAAK,CAACc,IAAI,CAACV,IAAI,CAACM,IAA0B,CAAC;MAC7C;MACA;IACF;IAEA,IAAI,CAAAN,IAAI,aAAJA,IAAI,uBAAJA,IAAI,CAAEK,QAAQ,MAAK,MAAM,IAAIL,IAAI,aAAJA,IAAI,gBAAAI,WAAA,GAAJJ,IAAI,CAAEM,IAAI,cAAAF,WAAA,eAAVA,WAAA,CAAYkB,MAAM,EAAE;MACnD,IAAI,CAACzB,WAAW,CAACY,QAAQ,CAACT,IAAI,CAACM,IAAI,CAACgB,MAAM,CAAC,EAAE;QAC3CzB,WAAW,CAACa,IAAI,CAACV,IAAI,CAACM,IAAI,CAACgB,MAAM,CAAC;MACpC;IACF;EACF,CAAC,CAAC;EAEF,OAAO;IAAE5B,MAAM;IAAEC,MAAM;IAAEC,KAAK;IAAEC,WAAW;IAAEC;EAAM,CAAC;AACtD","ignoreList":[]}
|
|
@@ -9,6 +9,7 @@ export declare const replyIcon: string;
|
|
|
9
9
|
export declare const postIcon: (color?: string) => string;
|
|
10
10
|
export declare const postIconOutlined: (color?: string) => string;
|
|
11
11
|
export declare const closeIcon: (color?: string) => string;
|
|
12
|
+
export declare const mediaRemoveIcon: (color?: string) => string;
|
|
12
13
|
export declare const soundOnIcon: (color?: string) => string;
|
|
13
14
|
export declare const soundOffIcon: (color?: string) => string;
|
|
14
15
|
export declare const videoControlIcon: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"xml.d.ts","sourceRoot":"","sources":["../../../../../src/core/assets/icons/xml.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,EAAE,MAEf,CAAC;AACR,eAAO,MAAM,SAAS,EAAE,MAIvB,CAAC;AACF,eAAO,MAAM,UAAU,EAAE,MAGxB,CAAC;AACF,eAAO,MAAM,QAAQ,GACnB,QAAO,MAAkB,KACxB,MAEI,CAAC;AACR,eAAO,MAAM,QAAQ,EAAE,MAEhB,CAAC;AACR,eAAO,MAAM,aAAa,GACxB,QAAO,MAAkB,KACxB,MAGF,CAAC;AACF,eAAO,MAAM,OAAO,EAAE,MAcrB,CAAC;AACF,eAAO,MAAM,SAAS,EAAE,MAGvB,CAAC;AACF,eAAO,MAAM,QAAQ,GACnB,QAAO,MAAkB,KACxB,MAGF,CAAC;AACF,eAAO,MAAM,gBAAgB,GAC3B,QAAO,MAAkB,KACxB,MAGF,CAAC;AACF,eAAO,MAAM,SAAS,GACpB,QAAO,MAAkB,KACxB,MAEI,CAAC;AAGR,eAAO,MAAM,WAAW,GACtB,QAAO,MAAkB,KACxB,MAEI,CAAC;AAGR,eAAO,MAAM,YAAY,GACvB,QAAO,MAAkB,KACxB,MAEI,CAAC;AAGR,eAAO,MAAM,gBAAgB,EAAE,MAUxB,CAAC;AAGR,eAAO,MAAM,eAAe,GAC1B,QAAO,MAAkB,KACxB,MAOI,CAAC;AAGR,eAAO,MAAM,SAAS,GACpB,QAAO,MAAkB,KACxB,MAEI,CAAC;AAGR,eAAO,MAAM,eAAe,GAC1B,QAAO,MAAkB,KACxB,MAEI,CAAC;AAGR,eAAO,MAAM,gBAAgB,GAC3B,QAAO,MAAkB,KACxB,MAEI,CAAC;AACR,eAAO,MAAM,UAAU,EAAE,MAIxB,CAAC;AACF,eAAO,MAAM,WAAW,EAAE,MAKzB,CAAC;AACF,eAAO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AO,MAAkB,WAC6V,CAAC;AAEhZ,eAAO,MAAM,QAAQ,GAAI,QAAO,MAAkB,WAG3C,CAAC;AACR,eAAO,MAAM,YAAY,GACvB,QAAO,MAAe,WAGjB,CAAC;AACR,eAAO,MAAM,IAAI,GACf,QAAO,MAAe,WAIvB,CAAC;AACF,eAAO,MAAM,QAAQ,GACnB,QAAO,MAAkB,KACxB,MAEI,CAAC;AACR,eAAO,MAAM,SAAS,GACpB,QAAO,MAAe,KACrB,MAGI,CAAC"}
|
|
@@ -1,3 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The rejection shape every uploader in this module throws.
|
|
3
|
+
*
|
|
4
|
+
* `LoadingImage` / `LoadingVideo` currently ignore the thrown value and show a
|
|
5
|
+
* generic toast, so the contract is deliberately loose — but keeping one shape
|
|
6
|
+
* means a caller that *does* want to branch (e.g. the `INVALID_IMAGE`
|
|
7
|
+
* moderation case) can read `code` instead of sniffing strings.
|
|
8
|
+
*/
|
|
9
|
+
export type UploadError = {
|
|
10
|
+
message: string;
|
|
11
|
+
details?: string;
|
|
12
|
+
code?: string;
|
|
13
|
+
originalError?: unknown;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Every uploader below is a plain `async` function with try/catch,
|
|
17
|
+
* NOT `new Promise(async (resolve, reject) => …)`.
|
|
18
|
+
*
|
|
19
|
+
* The old wrapper was actively harmful, not merely redundant. An `async`
|
|
20
|
+
* executor returns a promise that `new Promise` neither awaits nor observes, so
|
|
21
|
+
* anything the executor threw — and a mid-upload network drop makes
|
|
22
|
+
* `FileRepository.upload*` throw — settled only that orphaned promise. The
|
|
23
|
+
* outer promise stayed **pending forever**: `LoadingVideo.uploadFileToAmity`
|
|
24
|
+
* sat awaiting it, its `catch` never ran, `handleLoadEnd()` was never called,
|
|
25
|
+
* `loading` stayed `true`, and the frame kept spinning even after the
|
|
26
|
+
* connection came back, so the tappable retry overlay was unreachable.
|
|
27
|
+
*
|
|
28
|
+
* Throwing from an `async` function has no such hole: a `throw` anywhere in the
|
|
29
|
+
* body — including from code the function `await`ed — settles the promise it
|
|
30
|
+
* returned. `uploadImageFile` already had the try/catch, which is
|
|
31
|
+
* why the image path showed a failed state while the video path hung.
|
|
32
|
+
*/
|
|
1
33
|
export declare function uploadFile(filePath: string, perCentCallback?: (percent: number) => void): Promise<Amity.File<any>[]>;
|
|
2
34
|
export declare function uploadImageFile(filePath: string, perCentCallback?: (percent: number) => void): Promise<Amity.File<'image'>[]>;
|
|
3
35
|
export declare function uploadVideoFile(filePath: string, perCentCallback?: (percent: number) => void): Promise<Amity.File<any>[]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file.d.ts","sourceRoot":"","sources":["../../../../src/core/legacy/file.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"file.d.ts","sourceRoot":"","sources":["../../../../src/core/legacy/file.tsx"],"names":[],"mappings":"AAMA;;;;;;;GAOG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,CAAC;AA2DF;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAsB,UAAU,CAC9B,QAAQ,EAAE,MAAM,EAChB,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,GAC1C,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CA0B5B;AAED,wBAAsB,eAAe,CACnC,QAAQ,EAAE,MAAM,EAChB,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,GAC1C,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,CAoChC;AAED,wBAAsB,eAAe,CACnC,QAAQ,EAAE,MAAM,EAChB,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,GAC1C,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CA0B5B;AAED,wBAAsB,eAAe,CACnC,MAAM,EAAE,MAAM,GACb,OAAO,CAAC;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC,CAY/B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"feedSlice.d.ts","sourceRoot":"","sources":["../../../../../src/core/stores/slices/feedSlice.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAe,MAAM,kBAAkB,CAAC;AAE9D,UAAU,SAAS;IACjB,QAAQ,EAAE,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;CAC7B;AAKD,QAAA,MAAM,SAAS;wFAIiB,aAAa,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;2FAU7B,aAAa,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;4FAKnD,aAAa,CAAC;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;KAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"feedSlice.d.ts","sourceRoot":"","sources":["../../../../../src/core/stores/slices/feedSlice.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAe,MAAM,kBAAkB,CAAC;AAE9D,UAAU,SAAS;IACjB,QAAQ,EAAE,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;CAC7B;AAKD,QAAA,MAAM,SAAS;wFAIiB,aAAa,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;2FAU7B,aAAa,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;4FAKnD,aAAa,CAAC;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;KAAE,CAAC;4FASxC,aAAa,CAAC;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;;UAanE,CAAC;AAGH,eAAe,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"globalfeedSlice.d.ts","sourceRoot":"","sources":["../../../../../src/core/stores/slices/globalfeedSlice.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAe,MAAM,kBAAkB,CAAC;AAG9D,UAAU,eAAe;IACvB,QAAQ,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC,EAAE,CAAC,EAAE,CAAC;IACzC,cAAc,EAAE;QACd,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;QACpB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;KACzB,CAAC;CACH;AASD,QAAA,MAAM,eAAe;oGAIiB,aAAa,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;oGAQhC,aAAa,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;qGAkBxD,aAAa,CAAC;QAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;QAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE,CAAC;uGAIpC,aAAa,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;kGAUzD,aAAa,CAAC;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;KAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"globalfeedSlice.d.ts","sourceRoot":"","sources":["../../../../../src/core/stores/slices/globalfeedSlice.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAe,MAAM,kBAAkB,CAAC;AAG9D,UAAU,eAAe;IACvB,QAAQ,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC,EAAE,CAAC,EAAE,CAAC;IACzC,cAAc,EAAE;QACd,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;QACpB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;KACzB,CAAC;CACH;AASD,QAAA,MAAM,eAAe;oGAIiB,aAAa,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;oGAQhC,aAAa,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;qGAkBxD,aAAa,CAAC;QAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;QAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE,CAAC;uGAIpC,aAAa,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;kGAUzD,aAAa,CAAC;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;KAAE,CAAC;kGAaxC,aAAa,CAAC;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;;gBAcnE,CAAC;AAEH,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { PayloadAction } from '@reduxjs/toolkit';
|
|
2
|
+
/**
|
|
3
|
+
* A video post has no server-side thumbnail until the backend finishes
|
|
4
|
+
* transcoding, so for the first stretch of a new post's life the feed has
|
|
5
|
+
* nothing to render. The composer has already decoded a frame locally to show
|
|
6
|
+
* its own preview, so keep that frame around and let the feed borrow it until
|
|
7
|
+
* the real one exists.
|
|
8
|
+
*
|
|
9
|
+
* Keyed by the ORIGINAL video's fileId, which is what the created post carries
|
|
10
|
+
* in `data.videoFileId.original`. Mirrors web's LayoutProvider `videoThumbnail`
|
|
11
|
+
* + the VideoContent fallback.
|
|
12
|
+
*
|
|
13
|
+
* Only the most recently created post is kept — the same bound web has — so
|
|
14
|
+
* this never grows with session length. These are local file uris, valid only
|
|
15
|
+
* for this process; nothing persists them.
|
|
16
|
+
*/
|
|
17
|
+
export type LocalVideoThumbnail = {
|
|
18
|
+
/** fileId of the original (untranscoded) video */
|
|
19
|
+
fileId: string;
|
|
20
|
+
/** local uri of the frame the composer decoded */
|
|
21
|
+
thumbnailUrl: string;
|
|
22
|
+
};
|
|
23
|
+
interface LocalVideoThumbnailState {
|
|
24
|
+
postId: string | null;
|
|
25
|
+
videos: LocalVideoThumbnail[];
|
|
26
|
+
}
|
|
27
|
+
declare const localVideoThumbnailSlice: import("@reduxjs/toolkit").Slice<LocalVideoThumbnailState, {
|
|
28
|
+
setLocalVideoThumbnails: (state: import("immer/dist/internal").WritableDraft<LocalVideoThumbnailState>, action: PayloadAction<{
|
|
29
|
+
postId: string;
|
|
30
|
+
videos: LocalVideoThumbnail[];
|
|
31
|
+
}>) => void;
|
|
32
|
+
clearLocalVideoThumbnails: (state: import("immer/dist/internal").WritableDraft<LocalVideoThumbnailState>) => void;
|
|
33
|
+
}, "localVideoThumbnail">;
|
|
34
|
+
export default localVideoThumbnailSlice;
|
|
35
|
+
//# sourceMappingURL=localVideoThumbnailSlice.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"localVideoThumbnailSlice.d.ts","sourceRoot":"","sources":["../../../../../src/core/stores/slices/localVideoThumbnailSlice.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAe,MAAM,kBAAkB,CAAC;AAE9D;;;;;;;;;;;;;;GAcG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC,kDAAkD;IAClD,MAAM,EAAE,MAAM,CAAC;IACf,kDAAkD;IAClD,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,UAAU,wBAAwB;IAChC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,MAAM,EAAE,mBAAmB,EAAE,CAAC;CAC/B;AAOD,QAAA,MAAM,wBAAwB;oHAMhB,aAAa,CAAC;QACpB,MAAM,EAAE,MAAM,CAAC;QACf,MAAM,EAAE,mBAAmB,EAAE,CAAC;KAC/B,CAAC;;yBAYN,CAAC;AAEH,eAAe,wBAAwB,CAAC"}
|
|
@@ -17,6 +17,10 @@ interface UIState {
|
|
|
17
17
|
toastMessage?: string;
|
|
18
18
|
isLoadingToast?: boolean;
|
|
19
19
|
isSuccessToast?: boolean;
|
|
20
|
+
/** Bumped once per feed reload. Feed items are keyed by post id, so a reload
|
|
21
|
+
* reuses their component instances and any position they were holding
|
|
22
|
+
* survives it; anything that must start over on a reload watches this. */
|
|
23
|
+
feedReloadToken: number;
|
|
20
24
|
}
|
|
21
25
|
declare const uiSlice: import("@reduxjs/toolkit").Slice<UIState, {
|
|
22
26
|
openPostTypeChoiceModal: (state: import("immer/dist/internal").WritableDraft<UIState>, action: PayloadAction<{
|
|
@@ -38,6 +42,7 @@ declare const uiSlice: import("@reduxjs/toolkit").Slice<UIState, {
|
|
|
38
42
|
isLoadingToast?: boolean;
|
|
39
43
|
isSuccessToast?: boolean;
|
|
40
44
|
}>) => void;
|
|
45
|
+
markFeedReloaded: (state: import("immer/dist/internal").WritableDraft<UIState>) => void;
|
|
41
46
|
hideToastMessage: (state: import("immer/dist/internal").WritableDraft<UIState>) => void;
|
|
42
47
|
}, "ui">;
|
|
43
48
|
export default uiSlice;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uiSlice.d.ts","sourceRoot":"","sources":["../../../../../src/core/stores/slices/uiSlice.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAe,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAE7C,UAAU,OAAO;IACf,uBAAuB,EAAE,OAAO,CAAC;IACjC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,UAAU,CAAC,EAAE,cA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,CAAC;IACzB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;8EAE0E;IAC1E,eAAe,EAAE,MAAM,CAAC;CACzB;AAaD,QAAA,MAAM,OAAO;mGAMC,aAAa,CAAC;QACpB,MAAM,EAAE,MAAM,CAAC;QACf,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,UAAU,CAAC,EAAE,cAAc,CAAC;QAC5B,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,WAAW,CAAC,EAAE,OAAO,CACnB,QAAQ,CAAC;YACP,mBAAmB,EAAE,qBAAqB,CAAC;YAC3C,0BAA0B,EAAE,4BAA4B,CAAC;YACzD,eAAe,EAAE,iBAAiB,CAAC;SACpC,CAAC,CACH,CAAC;QACF,0BAA0B,CAAC,EAAE,OAAO,CAAC;KACtC,CAAC;;4FAwBM,aAAa,CAAC;QACpB,YAAY,EAAE,MAAM,CAAC;QACrB,cAAc,CAAC,EAAE,OAAO,CAAC;QACzB,cAAc,CAAC,EAAE,OAAO,CAAC;KAC1B,CAAC;;;QAiBN,CAAC;AAEH,eAAe,OAAO,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/core/stores/store/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,KAAK,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/core/stores/store/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,KAAK,EAAE,MAAM,kBAAkB,CAAC;AASzD,OAAO,EAIL,sBAAsB,EACvB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,eAAO,MAAM,sBAAsB,iEAErB,CAAC;AAEf,eAAO,MAAM,aAAa,6EAAiD,CAAC;AAC5E,eAAO,MAAM,gBAAgB,4EAE5B,CAAC;AACF,eAAO,MAAM,gBAAgB,4CAE5B,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAclB,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,UAAU,CAAC,OAAO,KAAK,CAAC,QAAQ,CAAC,CAAC;AAE1D,MAAM,MAAM,WAAW,GAAG,OAAO,KAAK,CAAC,QAAQ,CAAC"}
|
|
@@ -10,7 +10,41 @@ export interface IDisplayImage {
|
|
|
10
10
|
fileId: string | undefined;
|
|
11
11
|
fileName: string;
|
|
12
12
|
isUploaded: boolean;
|
|
13
|
+
/** Stable local identity of a staged attachment, assigned once when the item
|
|
14
|
+
* is created (picker asset id / original file name / capture path) and
|
|
15
|
+
* carried unchanged through the upload. `url` and `fileName` are both
|
|
16
|
+
* rewritten the moment the upload finishes — the url becomes the remote
|
|
17
|
+
* `?size=medium` one and fileName becomes the SERVER's name — so neither can
|
|
18
|
+
* identify an item across its own upload. Two defects come out of that:
|
|
19
|
+
* de-duplicating a second pick against already-uploaded items compared local
|
|
20
|
+
* names to server names and never matched, and the completion
|
|
21
|
+
* handler had to fall back to the positional `index` it was rendered with,
|
|
22
|
+
* which lands on the wrong entry once the array's composition has moved
|
|
23
|
+
* underneath an in-flight upload. Optional because the legacy
|
|
24
|
+
* EditPostModal builds these objects too. */
|
|
25
|
+
localId?: string;
|
|
26
|
+
/** The local file path the item was picked or captured from, kept for
|
|
27
|
+
* DISPLAY only. `url` is replaced by the remote `?size=medium` url the
|
|
28
|
+
* instant the upload finishes, so the composer frame stops rendering the
|
|
29
|
+
* file on disk and starts fetching over the network — go offline and the
|
|
30
|
+
* already-uploaded frame turns grey, even though the local file
|
|
31
|
+
* is still sitting there. Rendering from this instead keeps the frame
|
|
32
|
+
* painted whatever the network is doing. Absent for edit-mode children,
|
|
33
|
+
* which have no local file, so callers fall back to `url`. */
|
|
34
|
+
localUrl?: string;
|
|
35
|
+
/** The picker's original `asset.fileName` for a library pick, kept as the
|
|
36
|
+
* secondary de-duplication key next to `localId`: `asset.id` is
|
|
37
|
+
* only populated on some picker configurations, so the name is what catches
|
|
38
|
+
* a re-pick when it is absent. Left unset for camera captures, whose temp
|
|
39
|
+
* path is unique per shot and must never de-duplicate against anything. */
|
|
40
|
+
localFileName?: string;
|
|
13
41
|
thumbNail?: string;
|
|
14
42
|
postId?: string;
|
|
43
|
+
/** Source dimensions used to classify the composer frame ratio. For video
|
|
44
|
+
* these are the STORED frame; `rotation` must be applied before classifying
|
|
45
|
+
* (SelectedMediaComponent REQ-003d1, AmityVideo REQ-SDK-002). */
|
|
46
|
+
width?: number;
|
|
47
|
+
height?: number;
|
|
48
|
+
rotation?: number;
|
|
15
49
|
}
|
|
16
50
|
//# sourceMappingURL=mention.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mention.d.ts","sourceRoot":"","sources":["../../../../src/core/types/mention.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,aAAa;IAC5B,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"mention.d.ts","sourceRoot":"","sources":["../../../../src/core/types/mention.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,aAAa;IAC5B,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,OAAO,CAAC;IACpB;;;;;;;;;;;iDAW6C;IAC7C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;;;;kEAO8D;IAC9D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;+EAI2E;IAC3E,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;qEAEiE;IACjE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB"}
|
|
@@ -5,13 +5,19 @@ interface OverlayImageProps {
|
|
|
5
5
|
onUploadError?: (hasError: boolean, source: string) => void;
|
|
6
6
|
index?: number;
|
|
7
7
|
isUploaded: boolean;
|
|
8
|
+
/** Local path to render from, when the item still has one. `source` stays
|
|
9
|
+
* the identity/bookkeeping key and becomes the remote url once the upload
|
|
10
|
+
* finishes; painting from that url means an already-uploaded frame goes
|
|
11
|
+
* grey the moment the device is offline. Falls back to `source`
|
|
12
|
+
* for edit-mode children, which have no local file. */
|
|
13
|
+
displayUri?: string;
|
|
8
14
|
fileId?: string;
|
|
9
15
|
isEditMode?: boolean;
|
|
10
16
|
fileCount?: number;
|
|
11
17
|
postId?: string;
|
|
12
|
-
|
|
18
|
+
onUploadingChange?: (isUploading: boolean, source: string) => void;
|
|
13
19
|
carousel?: boolean;
|
|
14
20
|
}
|
|
15
|
-
declare const LoadingImage: ({ source, onClose, index, onLoadFinish, onUploadError, isUploaded, fileId, isEditMode, fileCount, postId,
|
|
21
|
+
declare const LoadingImage: ({ source, onClose, index, onLoadFinish, onUploadError, isUploaded, displayUri, fileId, isEditMode, fileCount, postId, onUploadingChange, carousel, }: OverlayImageProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
22
|
export default LoadingImage;
|
|
17
23
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/social/components/LoadingImage/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/social/components/LoadingImage/index.tsx"],"names":[],"mappings":"AASA,UAAU,iBAAiB;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1E,YAAY,CAAC,EAAE,CACb,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,MAAM,EACb,YAAY,EAAE,MAAM,KACjB,IAAI,CAAC;IACV,aAAa,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,OAAO,CAAC;IACpB;;;;2DAIuD;IACvD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAKhB,iBAAiB,CAAC,EAAE,CAAC,WAAW,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACnE,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AACD,QAAA,MAAM,YAAY,GAAI,sJAcnB,iBAAiB,4CAiMnB,CAAC;AACF,eAAe,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/social/components/LoadingImage/styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/social/components/LoadingImage/styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoErB,CAAC"}
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
interface OverlayImageProps {
|
|
2
2
|
source: string;
|
|
3
|
+
/** Local path to render/decode from, when the item still has one. `source`
|
|
4
|
+
* stays the identity/bookkeeping key and becomes the remote url once the
|
|
5
|
+
* upload finishes; decoding the thumbnail from that url means an
|
|
6
|
+
* already-uploaded frame goes grey the moment the device is offline
|
|
7
|
+
* Falls back to `source` for edit-mode children, which have no
|
|
8
|
+
* local file. */
|
|
9
|
+
displayUri?: string;
|
|
3
10
|
onClose?: (originalPath: string, fileId?: string, postId?: string) => void;
|
|
4
11
|
onLoadFinish?: (fileId: string, fileUrl: string, fileName: string, index: number, originalPath: string, thumbNail: string) => void;
|
|
5
12
|
onUploadError?: (hasError: boolean, source: string) => void;
|
|
@@ -11,9 +18,9 @@ interface OverlayImageProps {
|
|
|
11
18
|
isEditMode?: boolean;
|
|
12
19
|
fileCount?: number;
|
|
13
20
|
postId?: string;
|
|
14
|
-
|
|
21
|
+
onUploadingChange?: (isUploading: boolean, source: string) => void;
|
|
15
22
|
carousel?: boolean;
|
|
16
23
|
}
|
|
17
|
-
declare const LoadingVideo: ({ source, onClose, index, onLoadFinish, onUploadError, isUploaded, thumbNail, onPlay, fileId, isEditMode, fileCount, postId,
|
|
24
|
+
declare const LoadingVideo: ({ source, onClose, index, onLoadFinish, onUploadError, isUploaded, displayUri, thumbNail, onPlay, fileId, isEditMode, fileCount, postId, onUploadingChange, carousel, }: OverlayImageProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
25
|
export default LoadingVideo;
|
|
19
26
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/social/components/LoadingVideo/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/social/components/LoadingVideo/index.tsx"],"names":[],"mappings":"AA0BA,UAAU,iBAAiB;IACzB,MAAM,EAAE,MAAM,CAAC;IACf;;;;;qBAKiB;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3E,YAAY,CAAC,EAAE,CACb,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,MAAM,EACb,YAAY,EAAE,MAAM,EACpB,SAAS,EAAE,MAAM,KACd,IAAI,CAAC;IACV,aAAa,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAKhB,iBAAiB,CAAC,EAAE,CAAC,WAAW,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACnE,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AACD,QAAA,MAAM,YAAY,GAAI,yKAgBnB,iBAAiB,4CA0QnB,CAAC;AACF,eAAe,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/social/components/LoadingVideo/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/D,eAAO,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/social/components/LoadingVideo/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/D,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmErB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MediaViewer.d.ts","sourceRoot":"","sources":["../../../../../src/social/components/MediaViewer/MediaViewer.tsx"],"names":[],"mappings":"AAkCA,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,EAAE,OAAO,GAAG,OAAO,CAAC;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,oEAAoE;IACpE,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,KAAK,gBAAgB,GAAG;IACtB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,eAAe,EAAE,CAAC;IACzB,YAAY,EAAE,MAAM,CAAC;IACrB;uEACmE;IACnE,OAAO,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;CACtC,CAAC;AAYF,wBAAgB,WAAW,CAAC,EAC1B,OAAO,EACP,KAAK,EACL,YAAY,EACZ,OAAO,GACR,EAAE,gBAAgB,
|
|
1
|
+
{"version":3,"file":"MediaViewer.d.ts","sourceRoot":"","sources":["../../../../../src/social/components/MediaViewer/MediaViewer.tsx"],"names":[],"mappings":"AAkCA,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,EAAE,OAAO,GAAG,OAAO,CAAC;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,oEAAoE;IACpE,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,KAAK,gBAAgB,GAAG;IACtB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,eAAe,EAAE,CAAC;IACzB,YAAY,EAAE,MAAM,CAAC;IACrB;uEACmE;IACnE,OAAO,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;CACtC,CAAC;AAYF,wBAAgB,WAAW,CAAC,EAC1B,OAAO,EACP,KAAK,EACL,YAAY,EACZ,OAAO,GACR,EAAE,gBAAgB,2CA6TlB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/social/components/MediaViewer/styles.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/social/components/MediaViewer/styles.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4CAA4C,CAAC;AAE7E,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+GrB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/social/components/PostContent/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/social/components/PostContent/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAKvD,UAAU,YAAY;IACpB,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,kBAAkB,CAAC,EAAE,gBAAgB,EAAE,CAAC;CACzC;;AAgOD,wBAAiC"}
|
|
@@ -6,7 +6,7 @@ export type SelectedMediaComponentProps = {
|
|
|
6
6
|
onLoadFinish?: (fileId: string, fileUrl: string, fileName: string, index: number, originalPath: string, thumbnail?: string) => void;
|
|
7
7
|
onUploadError?: (hasError: boolean, source: string) => void;
|
|
8
8
|
isEditMode?: boolean;
|
|
9
|
-
|
|
9
|
+
onUploadingChange?: (isUploading: boolean, source: string) => void;
|
|
10
10
|
};
|
|
11
|
-
export declare function SelectedMediaComponent({ mediaType, media, onClose, onLoadFinish, onUploadError, isEditMode,
|
|
11
|
+
export declare function SelectedMediaComponent({ mediaType, media, onClose, onLoadFinish, onUploadError, isEditMode, onUploadingChange, }: SelectedMediaComponentProps): import("react/jsx-runtime").JSX.Element;
|
|
12
12
|
//# sourceMappingURL=SelectedMediaComponent.d.ts.map
|
package/lib/typescript/social/components/SelectedMediaComponent/SelectedMediaComponent.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectedMediaComponent.d.ts","sourceRoot":"","sources":["../../../../../src/social/components/SelectedMediaComponent/SelectedMediaComponent.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SelectedMediaComponent.d.ts","sourceRoot":"","sources":["../../../../../src/social/components/SelectedMediaComponent/SelectedMediaComponent.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAkBpD,MAAM,MAAM,2BAA2B,GAAG;IACxC,SAAS,EAAE,OAAO,GAAG,OAAO,CAAC;IAC7B,KAAK,EAAE,aAAa,EAAE,CAAC;IACvB,OAAO,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3E,YAAY,CAAC,EAAE,CACb,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,MAAM,EACb,YAAY,EAAE,MAAM,EACpB,SAAS,CAAC,EAAE,MAAM,KACf,IAAI,CAAC;IACV,aAAa,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5D,UAAU,CAAC,EAAE,OAAO,CAAC;IAIrB,iBAAiB,CAAC,EAAE,CAAC,WAAW,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;CACpE,CAAC;AAEF,wBAAgB,sBAAsB,CAAC,EACrC,SAAS,EACT,KAAK,EACL,OAAO,EACP,YAAY,EACZ,aAAa,EACb,UAAkB,EAClB,iBAAiB,GAClB,EAAE,2BAA2B,2CAyO7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/social/components/legacy/LoadingVideo/index.tsx"],"names":[],"mappings":"AAoBA,UAAU,iBAAiB;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1D,YAAY,CAAC,EAAE,CACb,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,MAAM,EACb,YAAY,EAAE,MAAM,EACpB,SAAS,EAAE,MAAM,KACd,IAAI,CAAC;IACV,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AACD,QAAA,MAAM,YAAY,GAAI,8FAUnB,iBAAiB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/social/components/legacy/LoadingVideo/index.tsx"],"names":[],"mappings":"AAoBA,UAAU,iBAAiB;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1D,YAAY,CAAC,EAAE,CACb,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,MAAM,EACb,YAAY,EAAE,MAAM,EACpB,SAAS,EAAE,MAAM,KACd,IAAI,CAAC;IACV,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AACD,QAAA,MAAM,YAAY,GAAI,8FAUnB,iBAAiB,4CAoJnB,CAAC;AACF,eAAe,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PostMediaElement.d.ts","sourceRoot":"","sources":["../../../../../src/social/elements/PostMediaElement/PostMediaElement.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"PostMediaElement.d.ts","sourceRoot":"","sources":["../../../../../src/social/elements/PostMediaElement/PostMediaElement.tsx"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,gBAAgB,EACtB,MAAM,OAAO,CAAC;AA0Df,MAAM,MAAM,iBAAiB,GAAG;IAC9B,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CAClC,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC,KAAK,EAAE,KAAK,CAAC,IAAI,EAAE,CAAC;IACpB,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,WAAW,CAAC,EAAE,gBAAgB,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAAC;IACzD;sEACkE;IAClE,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,wBAAgB,gBAAgB,CAAC,EAC/B,KAAK,EACL,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,OAAe,GAChB,EAAE,qBAAqB,2CA6IvB"}
|
|
@@ -39,6 +39,10 @@ export declare const useStyles: () => StyleSheet.NamedStyles<any> | StyleSheet.N
|
|
|
39
39
|
justifyContent: "center";
|
|
40
40
|
backgroundColor: string;
|
|
41
41
|
};
|
|
42
|
+
postMedia__pending: {
|
|
43
|
+
flex: number;
|
|
44
|
+
backgroundColor: string;
|
|
45
|
+
};
|
|
42
46
|
postMedia__counter: {
|
|
43
47
|
position: "absolute";
|
|
44
48
|
top: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/social/elements/PostMediaElement/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAM1C,eAAO,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/social/elements/PostMediaElement/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAM1C,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmGrB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PendingPostList.d.ts","sourceRoot":"","sources":["../../../../../../../../src/social/features/community/PendingRequest/components/PendingPostList/PendingPostList.tsx"],"names":[],"mappings":"AA2BA,KAAK,oBAAoB,GAAG;IAC1B,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,wBAAwB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACpD,CAAC;
|
|
1
|
+
{"version":3,"file":"PendingPostList.d.ts","sourceRoot":"","sources":["../../../../../../../../src/social/features/community/PendingRequest/components/PendingPostList/PendingPostList.tsx"],"names":[],"mappings":"AA2BA,KAAK,oBAAoB,GAAG;IAC1B,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,wBAAwB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACpD,CAAC;AAwEF,QAAA,MAAM,eAAe,GAAI,0CAGtB,oBAAoB,4CAsJtB,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NewsFeed.d.ts","sourceRoot":"","sources":["../../../../../../../src/social/features/feed/components/NewsFeed/NewsFeed.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"NewsFeed.d.ts","sourceRoot":"","sources":["../../../../../../../src/social/features/feed/components/NewsFeed/NewsFeed.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAe,MAAM,EAAE,MAAM,+BAA+B,CAAC;AAUpE,KAAK,0BAA0B,GAAG;IAChC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,uBAAuB,CAAC,EAAE,MAAM,IAAI,CAAC;CACtC,CAAC;;AA6DF,wBAA4C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PostComposer.d.ts","sourceRoot":"","sources":["../../../../../../src/social/features/post/Composer/PostComposer.tsx"],"names":[],"mappings":"AA4BA,OAAO,EAEL,yBAAyB,EAC1B,MAAM,gBAAgB,CAAC;;
|
|
1
|
+
{"version":3,"file":"PostComposer.d.ts","sourceRoot":"","sources":["../../../../../../src/social/features/post/Composer/PostComposer.tsx"],"names":[],"mappings":"AA4BA,OAAO,EAEL,yBAAyB,EAC1B,MAAM,gBAAgB,CAAC;;AAoiCxB,wBAA2C"}
|
|
@@ -12,6 +12,7 @@ export * from './useUiKitConfig';
|
|
|
12
12
|
export * from './useAmityGlobalSearchViewModel';
|
|
13
13
|
export * from './useCommunities';
|
|
14
14
|
export * from './useCommunity';
|
|
15
|
+
export * from './useCommunityPermission';
|
|
15
16
|
export * from './useCategory';
|
|
16
17
|
export * from './useUiKitReference';
|
|
17
18
|
export * from './isModerator';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/social/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,WAAW,CAAC;AAC1B,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,cAAc,sBAAsB,CAAC;AACrC,cAAc,WAAW,CAAC;AAC1B,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iCAAiC,CAAC;AAChD,cAAc,kBAAkB,CAAC;AACjC,cAAc,gB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,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,iBAAiB,CAAC;AAChC,cAAc,uDAAuD,CAAC;AACtE,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
export declare const useCommunities: ({ categoryId, membership, limit, }?: {
|
|
1
|
+
export declare const useCommunities: ({ categoryId, membership, limit, sortBy, }?: {
|
|
2
2
|
membership?: "all" | "member" | "notMember";
|
|
3
3
|
categoryId?: string;
|
|
4
4
|
limit?: number;
|
|
5
|
+
sortBy?: Amity.CommunitySortBy;
|
|
5
6
|
}) => {
|
|
6
7
|
communities: Amity.Community[];
|
|
7
8
|
onNextCommunityPage: () => void | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCommunities.d.ts","sourceRoot":"","sources":["../../../../src/social/hooks/useCommunities.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,cAAc,GAAI,
|
|
1
|
+
{"version":3,"file":"useCommunities.d.ts","sourceRoot":"","sources":["../../../../src/social/hooks/useCommunities.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,cAAc,GAAI,6CAK5B;IACD,UAAU,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,WAAW,CAAC;IAC5C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,KAAK,CAAC,eAAe,CAAC;CAC3B;;+BAIa,IAAI,GAAG,IAAI;;CAoB7B,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Who may review a community's pending posts, resolved the way web resolves it
|
|
3
|
+
* (useCommunityPermission + useCommunityModeratorsCollection).
|
|
4
|
+
*
|
|
5
|
+
* Moderating a community is a property of the membership, not of the user: a
|
|
6
|
+
* moderator of one community carries no moderator role on their own user
|
|
7
|
+
* object. Reading the user's roles therefore misses every moderator who is not
|
|
8
|
+
* also a network-wide one.
|
|
9
|
+
*/
|
|
10
|
+
export declare const useCommunityPermission: (communityId?: Amity.Community["communityId"]) => {
|
|
11
|
+
isCommunityModerator: boolean;
|
|
12
|
+
canReviewCommunityPosts: boolean;
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=useCommunityPermission.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCommunityPermission.d.ts","sourceRoot":"","sources":["../../../../src/social/hooks/useCommunityPermission.ts"],"names":[],"mappings":"AAMA;;;;;;;;GAQG;AACH,eAAO,MAAM,sBAAsB,GACjC,cAAc,KAAK,CAAC,SAAS,CAAC,aAAa,CAAC;;;CAuB7C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCustomRankingGlobalFeed.d.ts","sourceRoot":"","sources":["../../../../src/social/hooks/useCustomRankingGlobalFeed.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useCustomRankingGlobalFeed.d.ts","sourceRoot":"","sources":["../../../../src/social/hooks/useCustomRankingGlobalFeed.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,QAAQ,EAAE,MAAM,yCAAyC,CAAC;AAGnE,eAAO,MAAM,SAAS,GACpB,MAAM,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC,EAAE,GAAG,QAAQ,KAC1C,IAAI,IAAI,KAAK,CAAC,EAEhB,CAAC;AAEF,KAAK,0BAA0B,GAAG;IAChC,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,0BAA0B,GAAI,eAExC,0BAA+B;;;;sBAIG,IAAI,GAAG,IAAI;;;CAkG/C,CAAC"}
|
|
@@ -4,6 +4,17 @@ interface useFileProps {
|
|
|
4
4
|
imageSize?: ImageSizeSubset;
|
|
5
5
|
type?: 'user' | 'community';
|
|
6
6
|
}
|
|
7
|
+
/**
|
|
8
|
+
* Resolves an **avatar** file to a display url.
|
|
9
|
+
*
|
|
10
|
+
* A miss — no id, no file, no url — answers with the default avatar (or
|
|
11
|
+
* community avatar) image, which is the right placeholder for a profile
|
|
12
|
+
* picture and the wrong one for anything else. Post media must not be resolved
|
|
13
|
+
* through here: handing an avatar back for a video whose thumbnail is still
|
|
14
|
+
* transcoding renders a person icon in the carousel as though it were the
|
|
15
|
+
* frame. Resolve media with FileRepository directly and let an unresolved file
|
|
16
|
+
* stay undefined.
|
|
17
|
+
*/
|
|
7
18
|
export declare const useFile: () => {
|
|
8
19
|
getImage: ({ fileId, imageSize, type, }: useFileProps) => Promise<string>;
|
|
9
20
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFile.d.ts","sourceRoot":"","sources":["../../../../src/social/hooks/useFile.ts"],"names":[],"mappings":"AAEA,OAAO,EAAkB,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAM1E,UAAU,YAAY;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,eAAe,CAAC;IAC5B,IAAI,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC;CAC7B;AAED,eAAO,MAAM,OAAO;6CAMb,YAAY;CAkBlB,CAAC"}
|
|
1
|
+
{"version":3,"file":"useFile.d.ts","sourceRoot":"","sources":["../../../../src/social/hooks/useFile.ts"],"names":[],"mappings":"AAEA,OAAO,EAAkB,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAM1E,UAAU,YAAY;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,eAAe,CAAC;IAC5B,IAAI,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC;CAC7B;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,OAAO;6CAMb,YAAY;CAkBlB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../../../../../src/social/screens/CommunityProfile/components/Header/Header.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAe,MAAM,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../../../../../src/social/screens/CommunityProfile/components/Header/Header.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAe,MAAM,EAAE,MAAM,mBAAmB,CAAC;AA0BxD,MAAM,WAAW,uBAAuB;IACtC,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,KAAK,kCAAkC,GAAG;IACxC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,CAAC;;AAgLF,wBAAmD"}
|