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