iframe-pubsub 1.0.18 → 1.0.19

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
@@ -89,7 +89,7 @@ declare enum AIChatNameEnum {
89
89
  SET_CUSTOM_HEADERS = "setCustomHeaders",
90
90
  SET_CUSTOM_PAYLOAD = "setCustomPayload",
91
91
  SET_METADATA = "setMetadata",
92
- ADD_SYSTEM_MESSAGE = "addSystemMessage",
92
+ SET_EMBED_SYSTEM_MESSAGE = "setEmbedSystemMessage",
93
93
  SET_SUGGESTIONS = "setSuggestions",
94
94
  SHOW_SUGGESTIONS = "showSuggestions",
95
95
  SHOW_CHAT_MESSAGE = "showChatMessage",
@@ -145,11 +145,11 @@ declare class AIChatClient extends Client {
145
145
  */
146
146
  setMetadata(metadata: any): void;
147
147
  /**
148
- * Add a system message to the AI Chat component.
148
+ * Set an embed system message to the AI Chat component.
149
149
  *
150
- * @param systemMessage The system message to add.
150
+ * @param embedSystemMessage The embed system message to set.
151
151
  */
152
- addSystemMessage(systemMessage: string): void;
152
+ setEmbedSystemMessage(embedSystemMessage: string): void;
153
153
  /**
154
154
  * Show suggestions in the AI Chat component.
155
155
  *
package/dist/index.d.ts CHANGED
@@ -89,7 +89,7 @@ declare enum AIChatNameEnum {
89
89
  SET_CUSTOM_HEADERS = "setCustomHeaders",
90
90
  SET_CUSTOM_PAYLOAD = "setCustomPayload",
91
91
  SET_METADATA = "setMetadata",
92
- ADD_SYSTEM_MESSAGE = "addSystemMessage",
92
+ SET_EMBED_SYSTEM_MESSAGE = "setEmbedSystemMessage",
93
93
  SET_SUGGESTIONS = "setSuggestions",
94
94
  SHOW_SUGGESTIONS = "showSuggestions",
95
95
  SHOW_CHAT_MESSAGE = "showChatMessage",
@@ -145,11 +145,11 @@ declare class AIChatClient extends Client {
145
145
  */
146
146
  setMetadata(metadata: any): void;
147
147
  /**
148
- * Add a system message to the AI Chat component.
148
+ * Set an embed system message to the AI Chat component.
149
149
  *
150
- * @param systemMessage The system message to add.
150
+ * @param embedSystemMessage The embed system message to set.
151
151
  */
152
- addSystemMessage(systemMessage: string): void;
152
+ setEmbedSystemMessage(embedSystemMessage: string): void;
153
153
  /**
154
154
  * Show suggestions in the AI Chat component.
155
155
  *
package/dist/index.js CHANGED
@@ -323,7 +323,7 @@ var AIChatNameEnum = /* @__PURE__ */ ((AIChatNameEnum2) => {
323
323
  AIChatNameEnum2["SET_CUSTOM_HEADERS"] = "setCustomHeaders";
324
324
  AIChatNameEnum2["SET_CUSTOM_PAYLOAD"] = "setCustomPayload";
325
325
  AIChatNameEnum2["SET_METADATA"] = "setMetadata";
326
- AIChatNameEnum2["ADD_SYSTEM_MESSAGE"] = "addSystemMessage";
326
+ AIChatNameEnum2["SET_EMBED_SYSTEM_MESSAGE"] = "setEmbedSystemMessage";
327
327
  AIChatNameEnum2["SET_SUGGESTIONS"] = "setSuggestions";
328
328
  AIChatNameEnum2["SHOW_SUGGESTIONS"] = "showSuggestions";
329
329
  AIChatNameEnum2["SHOW_CHAT_MESSAGE"] = "showChatMessage";
@@ -403,12 +403,12 @@ var AIChatClient = class extends Client {
403
403
  this.sendAIChatPubsubMethod("setMetadata" /* SET_METADATA */, metadata);
404
404
  }
405
405
  /**
406
- * Add a system message to the AI Chat component.
406
+ * Set an embed system message to the AI Chat component.
407
407
  *
408
- * @param systemMessage The system message to add.
408
+ * @param embedSystemMessage The embed system message to set.
409
409
  */
410
- addSystemMessage(systemMessage) {
411
- this.sendAIChatPubsubMethod("addSystemMessage" /* ADD_SYSTEM_MESSAGE */, systemMessage);
410
+ setEmbedSystemMessage(embedSystemMessage) {
411
+ this.sendAIChatPubsubMethod("setEmbedSystemMessage" /* SET_EMBED_SYSTEM_MESSAGE */, embedSystemMessage);
412
412
  }
413
413
  /**
414
414
  * Show suggestions in the AI Chat component.
package/dist/index.mjs CHANGED
@@ -296,7 +296,7 @@ var AIChatNameEnum = /* @__PURE__ */ ((AIChatNameEnum2) => {
296
296
  AIChatNameEnum2["SET_CUSTOM_HEADERS"] = "setCustomHeaders";
297
297
  AIChatNameEnum2["SET_CUSTOM_PAYLOAD"] = "setCustomPayload";
298
298
  AIChatNameEnum2["SET_METADATA"] = "setMetadata";
299
- AIChatNameEnum2["ADD_SYSTEM_MESSAGE"] = "addSystemMessage";
299
+ AIChatNameEnum2["SET_EMBED_SYSTEM_MESSAGE"] = "setEmbedSystemMessage";
300
300
  AIChatNameEnum2["SET_SUGGESTIONS"] = "setSuggestions";
301
301
  AIChatNameEnum2["SHOW_SUGGESTIONS"] = "showSuggestions";
302
302
  AIChatNameEnum2["SHOW_CHAT_MESSAGE"] = "showChatMessage";
@@ -376,12 +376,12 @@ var AIChatClient = class extends Client {
376
376
  this.sendAIChatPubsubMethod("setMetadata" /* SET_METADATA */, metadata);
377
377
  }
378
378
  /**
379
- * Add a system message to the AI Chat component.
379
+ * Set an embed system message to the AI Chat component.
380
380
  *
381
- * @param systemMessage The system message to add.
381
+ * @param embedSystemMessage The embed system message to set.
382
382
  */
383
- addSystemMessage(systemMessage) {
384
- this.sendAIChatPubsubMethod("addSystemMessage" /* ADD_SYSTEM_MESSAGE */, systemMessage);
383
+ setEmbedSystemMessage(embedSystemMessage) {
384
+ this.sendAIChatPubsubMethod("setEmbedSystemMessage" /* SET_EMBED_SYSTEM_MESSAGE */, embedSystemMessage);
385
385
  }
386
386
  /**
387
387
  * Show suggestions in the AI Chat component.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iframe-pubsub",
3
- "version": "1.0.18",
3
+ "version": "1.0.19",
4
4
  "description": "A PubSub library for iframe communication.",
5
5
  "author": "Lap Tran",
6
6
  "license": "ISC",