@pagelines/sdk 1.0.207 → 1.0.209

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 (22) hide show
  1. package/dist/{AgentProvider.vue_vue_type_script_setup_true_lang-3Bb9TMh9.js → AgentProvider.vue_vue_type_script_setup_true_lang-GgGjo40K.js} +2 -2
  2. package/dist/{AgentProvider.vue_vue_type_script_setup_true_lang-3Bb9TMh9.js.map → AgentProvider.vue_vue_type_script_setup_true_lang-GgGjo40K.js.map} +1 -1
  3. package/dist/{AgentWidgetInline-S_dLDyR4.js → AgentWidgetInline-BXeTufF0.js} +2 -2
  4. package/dist/{AgentWidgetInline-S_dLDyR4.js.map → AgentWidgetInline-BXeTufF0.js.map} +1 -1
  5. package/dist/{AgentWidgetModal-B-SpFsc0.js → AgentWidgetModal-DP7iwx2o.js} +2 -2
  6. package/dist/{AgentWidgetModal-B-SpFsc0.js.map → AgentWidgetModal-DP7iwx2o.js.map} +1 -1
  7. package/dist/{AgentWidgetPopup-DL5gm6Oe.js → AgentWidgetPopup-C5ZgN09k.js} +2 -2
  8. package/dist/{AgentWidgetPopup-DL5gm6Oe.js.map → AgentWidgetPopup-C5ZgN09k.js.map} +1 -1
  9. package/dist/{AgentWrap.vue_vue_type_script_setup_true_lang-TroCRBgC.js → AgentWrap.vue_vue_type_script_setup_true_lang-Bv2KuZP0.js} +615 -605
  10. package/dist/AgentWrap.vue_vue_type_script_setup_true_lang-Bv2KuZP0.js.map +1 -0
  11. package/dist/agent/schema.d.ts +1 -0
  12. package/dist/agent.js +3 -3
  13. package/dist/clients/ChatClient.d.ts +1 -0
  14. package/dist/clients/types.d.ts +2 -2
  15. package/dist/sdk.js +1 -1
  16. package/dist/{sdkClient-90qax7Jh.js → sdkClient-B3EKDRYb.js} +365 -190
  17. package/dist/sdkClient-B3EKDRYb.js.map +1 -0
  18. package/dist/sdkClient.d.ts +1 -1
  19. package/dist/widget.js +4 -4
  20. package/package.json +2 -2
  21. package/dist/AgentWrap.vue_vue_type_script_setup_true_lang-TroCRBgC.js.map +0 -1
  22. package/dist/sdkClient-90qax7Jh.js.map +0 -1
@@ -4,6 +4,7 @@ export interface ChatAttachment {
4
4
  url: string;
5
5
  name: string;
6
6
  mimeType: string;
7
+ mediaId?: string;
7
8
  }
8
9
  export interface ChatMessage {
9
10
  id: string;
package/dist/agent.js CHANGED
@@ -1,10 +1,10 @@
1
1
  var y = Object.defineProperty;
2
2
  var c = (e, r) => y(e, "name", { value: r, configurable: !0 });
3
- import { _ as E, g as C, a as I } from "./AgentWrap.vue_vue_type_script_setup_true_lang-TroCRBgC.js";
4
- import { f as q, b as J, d as K, c as X, A as Y, C as ee, E as te, V as se, e as ae, j as oe, h as ne, i as ie, k as le, p as re } from "./AgentWrap.vue_vue_type_script_setup_true_lang-TroCRBgC.js";
3
+ import { _ as E, g as C, a as I } from "./AgentWrap.vue_vue_type_script_setup_true_lang-Bv2KuZP0.js";
4
+ import { f as q, b as J, d as K, c as X, A as Y, C as ee, E as te, V as se, e as ae, j as oe, h as ne, i as ie, k as le, p as re } from "./AgentWrap.vue_vue_type_script_setup_true_lang-Bv2KuZP0.js";
5
5
  import { defineComponent as x, createBlock as g, openBlock as l, withCtx as b, createElementVNode as o, createVNode as M, ref as h, watch as _, nextTick as O, createElementBlock as f, createCommentVNode as u, normalizeClass as p, normalizeStyle as U, unref as V } from "vue";
6
6
  import { _ as $ } from "./FModal.vue_vue_type_script_setup_true_lang-cL0BFEkZ.js";
7
- import { _ as N } from "./AgentProvider.vue_vue_type_script_setup_true_lang-3Bb9TMh9.js";
7
+ import { _ as N } from "./AgentProvider.vue_vue_type_script_setup_true_lang-GgGjo40K.js";
8
8
  import { getDefaultAvatarUrl as ce } from "@pagelines/types";
9
9
  const S = { class: "relative w-full h-[80vh] md:h-[600px]" }, P = /* @__PURE__ */ x({
10
10
  name: "AgentModal",
@@ -10,6 +10,7 @@ export declare class ChatClient {
10
10
  url: string;
11
11
  name: string;
12
12
  mimeType: string;
13
+ mediaId?: string;
13
14
  }>;
14
15
  conversationId?: string;
15
16
  history?: Array<{
@@ -3,7 +3,7 @@ import { SDKAppType } from '@/modules/main/server';
3
3
  import { Agent, ApiResponse, EnrichedUser } from '@pagelines/types';
4
4
  import { ComputedRef, Ref } from 'vue';
5
5
  import { SDKStorage } from '../sdkStorage';
6
- import { createLogger } from '../utils/logger';
6
+ import { LogHelper } from '../utils/logger';
7
7
  export interface SDKContext {
8
8
  api: ReturnType<typeof hc<SDKAppType>> extends {
9
9
  api: infer A;
@@ -17,6 +17,6 @@ export interface SDKContext {
17
17
  currentAgent: ComputedRef<Agent | undefined>;
18
18
  storage: SDKStorage;
19
19
  sessionId: string;
20
- logger: ReturnType<typeof createLogger>;
20
+ logger: LogHelper;
21
21
  processApiResponse: (response: ApiResponse<any>) => void;
22
22
  }
package/dist/sdk.js CHANGED
@@ -1,4 +1,4 @@
1
- import { A as t, C as r, P as s, U as o } from "./sdkClient-90qax7Jh.js";
1
+ import { A as t, C as r, P as s, U as o } from "./sdkClient-B3EKDRYb.js";
2
2
  import { MediaSchema as i } from "@pagelines/types";
3
3
  import { S as m } from "./socialPlatforms-Ck-b3SnQ.js";
4
4
  export {