iframe-pubsub 1.0.3 → 1.0.5

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/index.d.mts CHANGED
@@ -83,11 +83,12 @@ declare enum AIChatNameEnum {
83
83
  SHOW_SUGGESTIONS = "showSuggestions",
84
84
  SHOW_CHAT_MESSAGE = "showChatMessage",
85
85
  SHOW_ERROR_MESSAGE = "showErrorMessage",
86
- SHOW_UNKNOWN_MESSAGE = "showUnknownMessage",
86
+ SHOW_COMING_SOON = "showComingSoon",
87
87
  CONFIRM_ACTION = "confirmAction",
88
88
  SHOW_OPTIONS = "showOptions",
89
89
  SEND_CHAT_PROMPT = "sendChatPrompt",
90
90
  GENERIC_ACTION = "genericAction",
91
+ OPEN_INTERCOM = "openIntercom",
91
92
  DEFAULT = "default"
92
93
  }
93
94
  declare class AIChatClient extends Client {
@@ -167,7 +168,7 @@ declare class AIChatClient extends Client {
167
168
  /**
168
169
  * Show an unknown error message in the AI Chat component.
169
170
  */
170
- showUnknownMessage(): void;
171
+ showComingSoon(): void;
171
172
  }
172
173
 
173
174
  declare class PubSub {
package/dist/index.d.ts CHANGED
@@ -83,11 +83,12 @@ declare enum AIChatNameEnum {
83
83
  SHOW_SUGGESTIONS = "showSuggestions",
84
84
  SHOW_CHAT_MESSAGE = "showChatMessage",
85
85
  SHOW_ERROR_MESSAGE = "showErrorMessage",
86
- SHOW_UNKNOWN_MESSAGE = "showUnknownMessage",
86
+ SHOW_COMING_SOON = "showComingSoon",
87
87
  CONFIRM_ACTION = "confirmAction",
88
88
  SHOW_OPTIONS = "showOptions",
89
89
  SEND_CHAT_PROMPT = "sendChatPrompt",
90
90
  GENERIC_ACTION = "genericAction",
91
+ OPEN_INTERCOM = "openIntercom",
91
92
  DEFAULT = "default"
92
93
  }
93
94
  declare class AIChatClient extends Client {
@@ -167,7 +168,7 @@ declare class AIChatClient extends Client {
167
168
  /**
168
169
  * Show an unknown error message in the AI Chat component.
169
170
  */
170
- showUnknownMessage(): void;
171
+ showComingSoon(): void;
171
172
  }
172
173
 
173
174
  declare class PubSub {
package/dist/index.js CHANGED
@@ -308,11 +308,12 @@ var AIChatNameEnum = /* @__PURE__ */ ((AIChatNameEnum2) => {
308
308
  AIChatNameEnum2["SHOW_SUGGESTIONS"] = "showSuggestions";
309
309
  AIChatNameEnum2["SHOW_CHAT_MESSAGE"] = "showChatMessage";
310
310
  AIChatNameEnum2["SHOW_ERROR_MESSAGE"] = "showErrorMessage";
311
- AIChatNameEnum2["SHOW_UNKNOWN_MESSAGE"] = "showUnknownMessage";
311
+ AIChatNameEnum2["SHOW_COMING_SOON"] = "showComingSoon";
312
312
  AIChatNameEnum2["CONFIRM_ACTION"] = "confirmAction";
313
313
  AIChatNameEnum2["SHOW_OPTIONS"] = "showOptions";
314
314
  AIChatNameEnum2["SEND_CHAT_PROMPT"] = "sendChatPrompt";
315
315
  AIChatNameEnum2["GENERIC_ACTION"] = "genericAction";
316
+ AIChatNameEnum2["OPEN_INTERCOM"] = "openIntercom";
316
317
  AIChatNameEnum2["DEFAULT"] = "default";
317
318
  return AIChatNameEnum2;
318
319
  })(AIChatNameEnum || {});
@@ -428,8 +429,8 @@ var AIChatClient = class extends Client {
428
429
  /**
429
430
  * Show an unknown error message in the AI Chat component.
430
431
  */
431
- showUnknownMessage() {
432
- this.sendAIChatMethod("showUnknownMessage" /* SHOW_UNKNOWN_MESSAGE */, "unknown_error");
432
+ showComingSoon() {
433
+ this.sendAIChatMethod("showComingSoon" /* SHOW_COMING_SOON */, "coming_soon");
433
434
  }
434
435
  };
435
436
  // Annotate the CommonJS export names for ESM import in node:
package/dist/index.mjs CHANGED
@@ -281,11 +281,12 @@ var AIChatNameEnum = /* @__PURE__ */ ((AIChatNameEnum2) => {
281
281
  AIChatNameEnum2["SHOW_SUGGESTIONS"] = "showSuggestions";
282
282
  AIChatNameEnum2["SHOW_CHAT_MESSAGE"] = "showChatMessage";
283
283
  AIChatNameEnum2["SHOW_ERROR_MESSAGE"] = "showErrorMessage";
284
- AIChatNameEnum2["SHOW_UNKNOWN_MESSAGE"] = "showUnknownMessage";
284
+ AIChatNameEnum2["SHOW_COMING_SOON"] = "showComingSoon";
285
285
  AIChatNameEnum2["CONFIRM_ACTION"] = "confirmAction";
286
286
  AIChatNameEnum2["SHOW_OPTIONS"] = "showOptions";
287
287
  AIChatNameEnum2["SEND_CHAT_PROMPT"] = "sendChatPrompt";
288
288
  AIChatNameEnum2["GENERIC_ACTION"] = "genericAction";
289
+ AIChatNameEnum2["OPEN_INTERCOM"] = "openIntercom";
289
290
  AIChatNameEnum2["DEFAULT"] = "default";
290
291
  return AIChatNameEnum2;
291
292
  })(AIChatNameEnum || {});
@@ -401,8 +402,8 @@ var AIChatClient = class extends Client {
401
402
  /**
402
403
  * Show an unknown error message in the AI Chat component.
403
404
  */
404
- showUnknownMessage() {
405
- this.sendAIChatMethod("showUnknownMessage" /* SHOW_UNKNOWN_MESSAGE */, "unknown_error");
405
+ showComingSoon() {
406
+ this.sendAIChatMethod("showComingSoon" /* SHOW_COMING_SOON */, "coming_soon");
406
407
  }
407
408
  };
408
409
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iframe-pubsub",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",