@stripchatdev/ext-helper 0.1.31 → 0.1.32

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +20 -0
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -116,9 +116,29 @@ declare type TV1ChatEvents = {
116
116
  };
117
117
 
118
118
  declare type TV1ChatMethods = {
119
+ /**
120
+ * Renders a message in the chat locally for each user. The message is not sent to the server
121
+ * and is not broadcast — each user sees it injected into their own local chat feed.
122
+ *
123
+ * Because the message is local only, it is **not persisted**: it will disappear from the chat
124
+ * history after the page is reloaded.
125
+ *
126
+ * **Note:** A clickable link to the extension is always appended at the end of every message sent via this method.
127
+ * Clicking it opens the extension that sent the message.
128
+ * This behavior is mandatory and cannot be disabled.
129
+ */
119
130
  'v1.chat.message.send': {
120
131
  params: {
121
132
  isAnonymous: boolean;
133
+ /**
134
+ * Chat message text.
135
+ *
136
+ * Supports inline markup tags:
137
+ * - `{#accent}…{/accent}` — highlights text with an accent color.
138
+ * - `{#fade}…{/fade}` — renders text in a dimmed/secondary style.
139
+ *
140
+ * Example: `'won {#accent}Alice{/accent} in'`
141
+ */
122
142
  message: string;
123
143
  user: TV1ExtUser | null;
124
144
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stripchatdev/ext-helper",
3
3
  "private": false,
4
- "version": "0.1.31",
4
+ "version": "0.1.32",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "module": "./dist/ext-helper.js",