@whop/embedded-components-vanilla-js 1.0.0-beta.11 → 1.0.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/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # @whop/embedded-components-vanilla-js
2
2
 
3
+ ## 1.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - ea27ce0: New train: apollo
8
+
9
+ ### Patch Changes
10
+
11
+ - 15f8c67: standardize embedded components class names for better styling capabilities
12
+ - @whop-core/embeddable-components@0.0.13
13
+
3
14
  ## 1.0.0-beta.11
4
15
 
5
16
  ### Major Changes
@@ -318,11 +318,12 @@ interface ChatElementEvents {
318
318
  }>) => void;
319
319
  /**
320
320
  * Emitted when the user sends a message.
321
- * @param ev - The event containing the `id` and `content` in `ev.detail`.
321
+ * @param ev - The event containing the `id`, `content`, and `channelId` in `ev.detail`.
322
322
  */
323
323
  messageSent: (ev: CustomEvent<{
324
324
  id: string;
325
325
  content: string;
326
+ channelId: string;
326
327
  }>) => void;
327
328
  /**
328
329
  * Emitted when the user clicks on an experience mention.
@@ -477,7 +478,7 @@ interface ChatElementSnapshot {
477
478
  * });
478
479
  *
479
480
  * element.on("messageSent", (ev) => {
480
- * console.log("Message sent:", ev.detail.id, ev.detail.content);
481
+ * console.log("Message sent:", ev.detail.id, ev.detail.content, ev.detail.channelId);
481
482
  * });
482
483
  *
483
484
  * element.on("experienceClick", (ev) => {
package/package.json CHANGED
@@ -1,23 +1,23 @@
1
1
  {
2
2
  "name": "@whop/embedded-components-vanilla-js",
3
- "version": "1.0.0-beta.11",
3
+ "version": "1.0.0",
4
4
  "description": "Whop Elements loading utility",
5
- "main": "dist/index.js",
6
- "module": "dist/index.mjs",
7
- "jsnext:main": "dist/index.mjs",
8
- "types": "dist/index.d.ts",
9
- "typing": "dist/index.d.ts",
10
5
  "keywords": [
6
+ "Elements",
11
7
  "Whop",
12
8
  "Whop.js",
13
- "Elements",
14
9
  "embedded",
15
10
  "payments",
16
11
  "payouts"
17
12
  ],
18
- "author": "Whop (https://whop.com)",
19
13
  "license": "MIT",
14
+ "author": "Whop (https://whop.com)",
15
+ "main": "dist/index.js",
16
+ "module": "dist/index.mjs",
17
+ "types": "dist/index.d.ts",
18
+ "jsnext:main": "dist/index.mjs",
20
19
  "publishConfig": {
21
20
  "access": "public"
22
- }
21
+ },
22
+ "typing": "dist/index.d.ts"
23
23
  }