@amityco/ts-sdk 6.15.1-e3598c0.0 → 6.15.1-e4f6b1a.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/@types/domains/story.d.ts +3 -3
- package/dist/@types/domains/story.d.ts.map +1 -1
- package/dist/index.cjs.js +2 -2
- package/dist/index.esm.js +2 -2
- package/dist/index.umd.js +1 -1
- package/dist/storyRepository/api/createImageStory.d.ts +1 -1
- package/package.json +1 -1
- package/src/@types/domains/story.ts +3 -3
- package/src/storyRepository/api/createImageStory.ts +1 -1
- package/src/utils/linkedObject/storyLinkedObject.ts +1 -1
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* @param targetId The id of the target
|
|
10
10
|
* @param formData The form data
|
|
11
11
|
* @param metadata The metadata
|
|
12
|
-
* @param items The story items
|
|
13
12
|
* @param imageDisplayMode The image display mode
|
|
13
|
+
* @param items The story items
|
|
14
14
|
* @returns The created story
|
|
15
15
|
*/
|
|
16
16
|
export declare const createImageStory: (targetType: Amity.InternalStory['targetType'], targetId: Amity.InternalStory['targetId'], formData: FormData, metadata?: Amity.Metadata, imageDisplayMode?: Amity.ImageDisplayMode, items?: Amity.StoryItem[]) => Promise<Amity.Cached<Amity.Story | undefined>>;
|
package/package.json
CHANGED
|
@@ -52,13 +52,13 @@ declare global {
|
|
|
52
52
|
};
|
|
53
53
|
|
|
54
54
|
type StoryItemData<T extends StoryItemType> = T extends 'hyperlink'
|
|
55
|
-
? { url: string;
|
|
55
|
+
? { url: string; customText: string }
|
|
56
56
|
: never;
|
|
57
57
|
|
|
58
58
|
type StoryItem = {
|
|
59
59
|
type: StoryItemType;
|
|
60
60
|
data: StoryItemData<StoryItemType>;
|
|
61
|
-
placement
|
|
61
|
+
placement?: {
|
|
62
62
|
width: number;
|
|
63
63
|
height: number;
|
|
64
64
|
transform: {
|
|
@@ -80,7 +80,7 @@ declare global {
|
|
|
80
80
|
videoData?: Amity.File<'video'>;
|
|
81
81
|
imageData?: Amity.File<'image'>;
|
|
82
82
|
analytics: {
|
|
83
|
-
|
|
83
|
+
markAsSeen: () => void;
|
|
84
84
|
};
|
|
85
85
|
storyTarget?: Amity.StoryTarget;
|
|
86
86
|
community?: Amity.Community;
|
|
@@ -16,8 +16,8 @@ import { createStory } from '../internalApi/createStory';
|
|
|
16
16
|
* @param targetId The id of the target
|
|
17
17
|
* @param formData The form data
|
|
18
18
|
* @param metadata The metadata
|
|
19
|
-
* @param items The story items
|
|
20
19
|
* @param imageDisplayMode The image display mode
|
|
20
|
+
* @param items The story items
|
|
21
21
|
* @returns The created story
|
|
22
22
|
*/
|
|
23
23
|
export const createImageStory = async (
|
|
@@ -6,7 +6,7 @@ export const storyLinkedObject = (story: Amity.InternalStory): Amity.Story => {
|
|
|
6
6
|
return {
|
|
7
7
|
...story,
|
|
8
8
|
analytics: {
|
|
9
|
-
|
|
9
|
+
markAsSeen: () => {
|
|
10
10
|
if (!story.expiresAt) return;
|
|
11
11
|
if (story.syncState !== 'synced') return;
|
|
12
12
|
const analyticsEngineInstance = AnalyticsEngine.getInstance();
|