@stripchatdev/ext-helper 0.1.29 → 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 +25 -2
  2. package/package.json +1 -2
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
  };
@@ -686,9 +706,12 @@ declare type TV1SystemMethods = {
686
706
  };
687
707
  };
688
708
 
709
+ /** Tokens spend tip data */
689
710
  export declare type TV1TipData = {
690
711
  /** Amount of tokens spent */
691
712
  amount: number;
713
+ /** Tip id */
714
+ id: string;
692
715
  /** Is anonymous tip or not */
693
716
  isAnonymous: boolean;
694
717
  /** Is tip sent from the current user or not */
@@ -712,7 +735,7 @@ export declare type TV1TipData = {
712
735
  * `feed` - tip was sent from the feed
713
736
  * */
714
737
  source: TV1TipSource;
715
- /** Determins whether tip was sent in public or private chat */
738
+ /** Determines whether tip was sent in public or private chat */
716
739
  type: 'private' | 'public';
717
740
  /** User who sent the tip. Can be null in case of anonymous tip */
718
741
  user?: TV1ExtUser | null;
@@ -743,7 +766,7 @@ export declare type TV1TipMenuItem = {
743
766
  /** Activity name */
744
767
  activity: string;
745
768
  /** Price of the activity for the current user applying all discounts.
746
- * Discounds can be applied based on the user's fan club memberhip.
769
+ * Discounts can be applied based on the user's fan club memberhip.
747
770
  * */
748
771
  price: number;
749
772
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stripchatdev/ext-helper",
3
3
  "private": false,
4
- "version": "0.1.29",
4
+ "version": "0.1.32",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "module": "./dist/ext-helper.js",
@@ -19,7 +19,6 @@
19
19
  "NOTICE"
20
20
  ],
21
21
  "publishConfig": {
22
- "registry": "https://gitlab.stripchat.dev/api/v4/projects/1902/packages/npm/",
23
22
  "access": "public"
24
23
  },
25
24
  "sideEffects": false,