@linktr.ee/messaging-react 3.7.0-rc-1783331229 → 3.7.0-rc-1783333034
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/testing.d.ts +38 -0
- package/package.json +2 -2
- package/src/testing/index.ts +10 -0
package/dist/testing.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { Channel } from 'stream-chat';
|
|
2
2
|
import { StreamChat } from 'stream-chat';
|
|
3
3
|
|
|
4
|
+
declare type AgeSafetySystemType = 'SYSTEM_AGE_SAFETY_BLOCKED';
|
|
5
|
+
|
|
4
6
|
/**
|
|
5
7
|
* Builds an offline Stream client seeded with a single direct conversation, so
|
|
6
8
|
* consumers can render the **real** messaging UI (MessagingProvider →
|
|
@@ -35,6 +37,21 @@ export declare interface CreateMockMessagingClientOptions {
|
|
|
35
37
|
} | null | undefined;
|
|
36
38
|
}
|
|
37
39
|
|
|
40
|
+
declare type DmAgentSystemType = 'SYSTEM_DM_AGENT_PAUSED' | 'SYSTEM_DM_AGENT_RESUMED';
|
|
41
|
+
|
|
42
|
+
declare type MessageCustomType = 'MESSAGE_TIP' | 'MESSAGE_PAID' | 'MESSAGE_CHATBOT' | 'MESSAGE_ATTACHMENT' | AgeSafetySystemType | DmAgentSystemType;
|
|
43
|
+
|
|
44
|
+
export declare interface MessageMetadata {
|
|
45
|
+
custom_type?: MessageCustomType;
|
|
46
|
+
listing_id?: string;
|
|
47
|
+
amount_text?: string;
|
|
48
|
+
payment_status?: PaymentStatus;
|
|
49
|
+
attachment_title?: string;
|
|
50
|
+
attachment_mime_type?: string;
|
|
51
|
+
attachment_thumbnail?: string;
|
|
52
|
+
attachment_detail?: string;
|
|
53
|
+
}
|
|
54
|
+
|
|
38
55
|
/**
|
|
39
56
|
* A seed message, authored from the viewer's perspective. `from: 'me'` is the
|
|
40
57
|
* connected user (the viewer); `from: 'them'` is the other participant.
|
|
@@ -65,6 +82,27 @@ export declare interface MockMessagingUser {
|
|
|
65
82
|
image?: string;
|
|
66
83
|
}
|
|
67
84
|
|
|
85
|
+
/**
|
|
86
|
+
* Action intents supported by Linktree official CTA attachments.
|
|
87
|
+
*/
|
|
88
|
+
declare type OfficialCtaActionKind =
|
|
89
|
+
/** Open the existing share-to-socials flow for the current platform. */
|
|
90
|
+
'post_to_socials'
|
|
91
|
+
/** Navigate to an external URL when the CTA represents plain navigation. */
|
|
92
|
+
| 'open_external_url';
|
|
93
|
+
|
|
94
|
+
export declare interface OfficialCtaActionPayload {
|
|
95
|
+
kind?: OfficialCtaActionKind;
|
|
96
|
+
label?: string;
|
|
97
|
+
url?: string;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Message metadata for paid messaging and chatbot flows.
|
|
102
|
+
* Used to identify message types and payment status.
|
|
103
|
+
*/
|
|
104
|
+
declare type PaymentStatus = 'pending' | 'paid' | 'failed' | 'refunded';
|
|
105
|
+
|
|
68
106
|
export { }
|
|
69
107
|
|
|
70
108
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@linktr.ee/messaging-react",
|
|
3
|
-
"version": "3.7.0-rc-
|
|
3
|
+
"version": "3.7.0-rc-1783333034",
|
|
4
4
|
"description": "React messaging components built on messaging-core for web applications",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"@linktr.ee/component-library": "11.8.6",
|
|
53
|
-
"@linktr.ee/messaging-core": "2.3.0-rc-
|
|
53
|
+
"@linktr.ee/messaging-core": "2.3.0-rc-1783333034",
|
|
54
54
|
"@phosphor-icons/react": "^2.1.10"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
package/src/testing/index.ts
CHANGED
|
@@ -5,3 +5,13 @@ export {
|
|
|
5
5
|
type MockMessagingClient,
|
|
6
6
|
type MockMessagingUser,
|
|
7
7
|
} from './createMockMessagingClient'
|
|
8
|
+
|
|
9
|
+
// The rolled-up `testing.d.ts` hoists the ambient `declare module 'stream-chat'`
|
|
10
|
+
// augmentation from stream-custom-data, but rollupTypes only bundles the types
|
|
11
|
+
// reachable from this entry — so re-export the augmentation's backing types
|
|
12
|
+
// (MessageMetadata/OfficialCtaActionPayload transitively pull in the rest) to
|
|
13
|
+
// keep the generated declaration self-contained and type-checkable standalone.
|
|
14
|
+
export type {
|
|
15
|
+
MessageMetadata,
|
|
16
|
+
OfficialCtaActionPayload,
|
|
17
|
+
} from '../stream-custom-data'
|