@rehers/rehers-roleplay-sdk 2.1.2 → 2.1.3

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/package.json +1 -1
  2. package/roleplay-sdk.js +4 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rehers/rehers-roleplay-sdk",
3
- "version": "2.1.2",
3
+ "version": "2.1.3",
4
4
  "description": "Seamless Roleplay SDK — embed roleplay call sessions via a modal + iframe",
5
5
  "main": "roleplay-sdk.js",
6
6
  "types": "index.d.ts",
package/roleplay-sdk.js CHANGED
@@ -207,13 +207,15 @@
207
207
 
208
208
  function dispatchInitToIframe(token) {
209
209
  if (addToScenarioPendingContacts) {
210
- sendToIframe({
210
+ var msg = {
211
211
  type: "seamless-add-to-scenario-init",
212
212
  sessionToken: token,
213
213
  publishableKey: publishableKey,
214
214
  userId: userId,
215
215
  contacts: addToScenarioPendingContacts,
216
- });
216
+ };
217
+ if (trialUrl) msg.trialUrl = trialUrl;
218
+ sendToIframe(msg);
217
219
  } else if (token && pendingContactData) {
218
220
  sendToIframe({
219
221
  type: "seamless-session-init",