@pagelines/sdk 1.0.308 → 1.0.310

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.
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as l, openBlock as d, createBlock as m, unref as t } from "vue";
2
- import { _ as f } from "./AgentProvider.vue_vue_type_script_setup_true_lang-zUkpPTt7.js";
3
- import { u as g } from "./index-C0h55a8L.js";
2
+ import { _ as f } from "./AgentProvider.vue_vue_type_script_setup_true_lang-CEs3o2R3.js";
3
+ import { u as g } from "./index-BqWcASTa.js";
4
4
  const y = /* @__PURE__ */ l({
5
5
  __name: "AgentWidgetInline",
6
6
  props: {
@@ -30,4 +30,4 @@ const y = /* @__PURE__ */ l({
30
30
  export {
31
31
  y as default
32
32
  };
33
- //# sourceMappingURL=AgentWidgetInline-DeqfrORH.js.map
33
+ //# sourceMappingURL=AgentWidgetInline-CJHAa59b.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"AgentWidgetInline-DeqfrORH.js","sources":["../widget/ui/AgentWidgetInline.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport type { PageLinesSDK } from '../../sdkClient'\nimport type { AgentConfig } from '../../agent/schema'\nimport type { ButtonIconPreset } from '../PLWidget'\nimport AgentProvider from '../../agent/ui/AgentProvider.vue'\nimport { useWidgetState } from '../composables/useWidgetState'\n\nconst props = defineProps<{\n sdk?: PageLinesSDK\n handle?: string\n agent?: AgentConfig\n context?: string\n firstMessage?: string\n buttonText?: string\n buttonIcon?: ButtonIconPreset\n chatOnly?: boolean\n}>()\n\nconst { currentAgent, currentContext, currentFirstMessage, currentButtonText, currentButtonIcon, update } = useWidgetState(props)\n\ndefineExpose({ update })\n</script>\n\n<template>\n <AgentProvider\n :sdk=\"sdk\"\n :handle=\"handle\"\n :agent=\"currentAgent\"\n :context=\"currentContext\"\n :first-message=\"currentFirstMessage\"\n :button-text=\"currentButtonText\"\n :button-icon=\"currentButtonIcon\"\n :chat-only=\"chatOnly\"\n />\n</template>\n"],"names":["props","__props","currentAgent","currentContext","currentFirstMessage","currentButtonText","currentButtonIcon","update","useWidgetState","__expose","_createBlock","AgentProvider","_unref"],"mappings":";;;;;;;;;;;;;;;;AAOA,UAAMA,IAAQC,GAWR,EAAE,cAAAC,GAAc,gBAAAC,GAAgB,qBAAAC,GAAqB,mBAAAC,GAAmB,mBAAAC,GAAmB,QAAAC,EAAA,IAAWC,EAAeR,CAAK;AAEhI,WAAAS,EAAa,EAAE,QAAAF,GAAQ,mBAIrBG,EASEC,GAAA;AAAA,MARC,KAAKV,EAAA;AAAA,MACL,QAAQA,EAAA;AAAA,MACR,OAAOW,EAAAV,CAAA;AAAA,MACP,SAASU,EAAAT,CAAA;AAAA,MACT,iBAAeS,EAAAR,CAAA;AAAA,MACf,eAAaQ,EAAAP,CAAA;AAAA,MACb,eAAaO,EAAAN,CAAA;AAAA,MACb,aAAWL,EAAA;AAAA,IAAA;;;"}
1
+ {"version":3,"file":"AgentWidgetInline-CJHAa59b.js","sources":["../widget/ui/AgentWidgetInline.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport type { PageLinesSDK } from '../../sdkClient'\nimport type { AgentConfig } from '../../agent/schema'\nimport type { ButtonIconPreset } from '../PLWidget'\nimport AgentProvider from '../../agent/ui/AgentProvider.vue'\nimport { useWidgetState } from '../composables/useWidgetState'\n\nconst props = defineProps<{\n sdk?: PageLinesSDK\n handle?: string\n agent?: AgentConfig\n context?: string\n firstMessage?: string\n buttonText?: string\n buttonIcon?: ButtonIconPreset\n chatOnly?: boolean\n}>()\n\nconst { currentAgent, currentContext, currentFirstMessage, currentButtonText, currentButtonIcon, update } = useWidgetState(props)\n\ndefineExpose({ update })\n</script>\n\n<template>\n <AgentProvider\n :sdk=\"sdk\"\n :handle=\"handle\"\n :agent=\"currentAgent\"\n :context=\"currentContext\"\n :first-message=\"currentFirstMessage\"\n :button-text=\"currentButtonText\"\n :button-icon=\"currentButtonIcon\"\n :chat-only=\"chatOnly\"\n />\n</template>\n"],"names":["props","__props","currentAgent","currentContext","currentFirstMessage","currentButtonText","currentButtonIcon","update","useWidgetState","__expose","_createBlock","AgentProvider","_unref"],"mappings":";;;;;;;;;;;;;;;;AAOA,UAAMA,IAAQC,GAWR,EAAE,cAAAC,GAAc,gBAAAC,GAAgB,qBAAAC,GAAqB,mBAAAC,GAAmB,mBAAAC,GAAmB,QAAAC,EAAA,IAAWC,EAAeR,CAAK;AAEhI,WAAAS,EAAa,EAAE,QAAAF,GAAQ,mBAIrBG,EASEC,GAAA;AAAA,MARC,KAAKV,EAAA;AAAA,MACL,QAAQA,EAAA;AAAA,MACR,OAAOW,EAAAV,CAAA;AAAA,MACP,SAASU,EAAAT,CAAA;AAAA,MACT,iBAAeS,EAAAR,CAAA;AAAA,MACf,eAAaQ,EAAAP,CAAA;AAAA,MACb,eAAaO,EAAAN,CAAA;AAAA,MACb,aAAWL,EAAA;AAAA,IAAA;;;"}
@@ -2,8 +2,8 @@ var h = Object.defineProperty;
2
2
  var l = (t, o) => h(t, "name", { value: o, configurable: !0 });
3
3
  import { defineComponent as g, ref as v, onMounted as b, nextTick as C, openBlock as k, createBlock as y, withCtx as B, createVNode as T, unref as n } from "vue";
4
4
  import { _ } from "./FModal.vue_vue_type_script_setup_true_lang-DI6cyWhd.js";
5
- import { _ as M } from "./AgentProvider.vue_vue_type_script_setup_true_lang-zUkpPTt7.js";
6
- import { u as w } from "./index-C0h55a8L.js";
5
+ import { _ as M } from "./AgentProvider.vue_vue_type_script_setup_true_lang-CEs3o2R3.js";
6
+ import { u as w } from "./index-BqWcASTa.js";
7
7
  const $ = /* @__PURE__ */ g({
8
8
  __name: "AgentWidgetModal",
9
9
  props: {
@@ -62,4 +62,4 @@ const $ = /* @__PURE__ */ g({
62
62
  export {
63
63
  $ as default
64
64
  };
65
- //# sourceMappingURL=AgentWidgetModal-C664WxCs.js.map
65
+ //# sourceMappingURL=AgentWidgetModal-CCAJsZcm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"AgentWidgetModal-C664WxCs.js","sources":["../widget/ui/AgentWidgetModal.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport type { PageLinesSDK } from '../../sdkClient'\nimport type { AgentConfig } from '../../agent/schema'\nimport type { ButtonIconPreset } from '../PLWidget'\nimport { nextTick, onMounted, ref } from 'vue'\nimport FModal from '@/ui/common/FModal.vue'\nimport AgentProvider from '../../agent/ui/AgentProvider.vue'\nimport { useWidgetState } from '../composables/useWidgetState'\n\nconst props = defineProps<{\n sdk?: PageLinesSDK\n handle?: string\n agent?: AgentConfig\n context?: string\n firstMessage?: string\n buttonText?: string\n buttonIcon?: ButtonIconPreset\n chatOnly?: boolean\n onClose?: () => void\n}>()\n\nconst { currentAgent, currentContext, currentFirstMessage, currentButtonText, currentButtonIcon, update } = useWidgetState(props)\nconst isVisible = ref(false)\n\n// Trigger transition after mount\nonMounted(async () => {\n await nextTick()\n // Small delay to ensure DOM is ready and transition fires\n setTimeout(() => {\n isVisible.value = true\n }, 10)\n})\n\nfunction close() {\n isVisible.value = false\n // Wait for transition to complete before calling onClose\n setTimeout(() => {\n if (props.onClose) {\n props.onClose()\n }\n }, 300) // Match FModal transition duration\n}\n\nfunction open() {\n isVisible.value = true\n}\n\ndefineExpose({ update, close, open })\n</script>\n\n<template>\n <FModal\n :vis=\"isVisible\"\n :disable-teleport=\"true\"\n modal-class=\"max-w-4xl h-[80vh] md:h-[600px]\"\n :has-close=\"false\"\n @update:vis=\"isVisible = $event\"\n @close=\"close\"\n >\n <AgentProvider\n :sdk=\"sdk\"\n :handle=\"handle\"\n :agent=\"currentAgent\"\n :context=\"currentContext\"\n :first-message=\"currentFirstMessage\"\n :button-text=\"currentButtonText\"\n :button-icon=\"currentButtonIcon\"\n :chat-only=\"chatOnly\"\n :has-close=\"true\"\n @close=\"close\"\n />\n </FModal>\n</template>\n"],"names":["props","__props","currentAgent","currentContext","currentFirstMessage","currentButtonText","currentButtonIcon","update","useWidgetState","isVisible","ref","onMounted","nextTick","close","__name","open","__expose","_createBlock","FModal","_cache","$event","_createVNode","AgentProvider","_unref"],"mappings":";;;;;;;;;;;;;;;;;;;;AASA,UAAMA,IAAQC,GAYR,EAAE,cAAAC,GAAc,gBAAAC,GAAgB,qBAAAC,GAAqB,mBAAAC,GAAmB,mBAAAC,GAAmB,QAAAC,EAAA,IAAWC,EAAeR,CAAK,GAC1HS,IAAYC,EAAI,EAAK;AAG3B,IAAAC,EAAU,YAAY;AACpB,YAAMC,EAAA,GAEN,WAAW,MAAM;AACf,QAAAH,EAAU,QAAQ;AAAA,MACpB,GAAG,EAAE;AAAA,IACP,CAAC;AAED,aAASI,IAAQ;AACf,MAAAJ,EAAU,QAAQ,IAElB,WAAW,MAAM;AACf,QAAIT,EAAM,WACRA,EAAM,QAAA;AAAA,MAEV,GAAG,GAAG;AAAA,IACR;AARS,IAAAc,EAAAD,GAAA;AAUT,aAASE,IAAO;AACd,MAAAN,EAAU,QAAQ;AAAA,IACpB;AAFS,WAAAK,EAAAC,GAAA,SAITC,EAAa,EAAE,QAAAT,GAAQ,OAAAM,GAAO,MAAAE,EAAA,CAAM,mBAIlCE,EAoBSC,GAAA;AAAA,MAnBN,KAAKT,EAAA;AAAA,MACL,oBAAkB;AAAA,MACnB,eAAY;AAAA,MACX,aAAW;AAAA,MACX,gBAAUU,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAA,CAAAC,MAAEX,EAAA,QAAYW;AAAA,MACxB,SAAOP;AAAA,IAAA;iBAER,MAWE;AAAA,QAXFQ,EAWEC,GAAA;AAAA,UAVC,KAAKrB,EAAA;AAAA,UACL,QAAQA,EAAA;AAAA,UACR,OAAOsB,EAAArB,CAAA;AAAA,UACP,SAASqB,EAAApB,CAAA;AAAA,UACT,iBAAeoB,EAAAnB,CAAA;AAAA,UACf,eAAamB,EAAAlB,CAAA;AAAA,UACb,eAAakB,EAAAjB,CAAA;AAAA,UACb,aAAWL,EAAA;AAAA,UACX,aAAW;AAAA,UACX,SAAOY;AAAA,QAAA;;;;;;"}
1
+ {"version":3,"file":"AgentWidgetModal-CCAJsZcm.js","sources":["../widget/ui/AgentWidgetModal.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport type { PageLinesSDK } from '../../sdkClient'\nimport type { AgentConfig } from '../../agent/schema'\nimport type { ButtonIconPreset } from '../PLWidget'\nimport { nextTick, onMounted, ref } from 'vue'\nimport FModal from '@/ui/common/FModal.vue'\nimport AgentProvider from '../../agent/ui/AgentProvider.vue'\nimport { useWidgetState } from '../composables/useWidgetState'\n\nconst props = defineProps<{\n sdk?: PageLinesSDK\n handle?: string\n agent?: AgentConfig\n context?: string\n firstMessage?: string\n buttonText?: string\n buttonIcon?: ButtonIconPreset\n chatOnly?: boolean\n onClose?: () => void\n}>()\n\nconst { currentAgent, currentContext, currentFirstMessage, currentButtonText, currentButtonIcon, update } = useWidgetState(props)\nconst isVisible = ref(false)\n\n// Trigger transition after mount\nonMounted(async () => {\n await nextTick()\n // Small delay to ensure DOM is ready and transition fires\n setTimeout(() => {\n isVisible.value = true\n }, 10)\n})\n\nfunction close() {\n isVisible.value = false\n // Wait for transition to complete before calling onClose\n setTimeout(() => {\n if (props.onClose) {\n props.onClose()\n }\n }, 300) // Match FModal transition duration\n}\n\nfunction open() {\n isVisible.value = true\n}\n\ndefineExpose({ update, close, open })\n</script>\n\n<template>\n <FModal\n :vis=\"isVisible\"\n :disable-teleport=\"true\"\n modal-class=\"max-w-4xl h-[80vh] md:h-[600px]\"\n :has-close=\"false\"\n @update:vis=\"isVisible = $event\"\n @close=\"close\"\n >\n <AgentProvider\n :sdk=\"sdk\"\n :handle=\"handle\"\n :agent=\"currentAgent\"\n :context=\"currentContext\"\n :first-message=\"currentFirstMessage\"\n :button-text=\"currentButtonText\"\n :button-icon=\"currentButtonIcon\"\n :chat-only=\"chatOnly\"\n :has-close=\"true\"\n @close=\"close\"\n />\n </FModal>\n</template>\n"],"names":["props","__props","currentAgent","currentContext","currentFirstMessage","currentButtonText","currentButtonIcon","update","useWidgetState","isVisible","ref","onMounted","nextTick","close","__name","open","__expose","_createBlock","FModal","_cache","$event","_createVNode","AgentProvider","_unref"],"mappings":";;;;;;;;;;;;;;;;;;;;AASA,UAAMA,IAAQC,GAYR,EAAE,cAAAC,GAAc,gBAAAC,GAAgB,qBAAAC,GAAqB,mBAAAC,GAAmB,mBAAAC,GAAmB,QAAAC,EAAA,IAAWC,EAAeR,CAAK,GAC1HS,IAAYC,EAAI,EAAK;AAG3B,IAAAC,EAAU,YAAY;AACpB,YAAMC,EAAA,GAEN,WAAW,MAAM;AACf,QAAAH,EAAU,QAAQ;AAAA,MACpB,GAAG,EAAE;AAAA,IACP,CAAC;AAED,aAASI,IAAQ;AACf,MAAAJ,EAAU,QAAQ,IAElB,WAAW,MAAM;AACf,QAAIT,EAAM,WACRA,EAAM,QAAA;AAAA,MAEV,GAAG,GAAG;AAAA,IACR;AARS,IAAAc,EAAAD,GAAA;AAUT,aAASE,IAAO;AACd,MAAAN,EAAU,QAAQ;AAAA,IACpB;AAFS,WAAAK,EAAAC,GAAA,SAITC,EAAa,EAAE,QAAAT,GAAQ,OAAAM,GAAO,MAAAE,EAAA,CAAM,mBAIlCE,EAoBSC,GAAA;AAAA,MAnBN,KAAKT,EAAA;AAAA,MACL,oBAAkB;AAAA,MACnB,eAAY;AAAA,MACX,aAAW;AAAA,MACX,gBAAUU,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAA,CAAAC,MAAEX,EAAA,QAAYW;AAAA,MACxB,SAAOP;AAAA,IAAA;iBAER,MAWE;AAAA,QAXFQ,EAWEC,GAAA;AAAA,UAVC,KAAKrB,EAAA;AAAA,UACL,QAAQA,EAAA;AAAA,UACR,OAAOsB,EAAArB,CAAA;AAAA,UACP,SAASqB,EAAApB,CAAA;AAAA,UACT,iBAAeoB,EAAAnB,CAAA;AAAA,UACf,eAAamB,EAAAlB,CAAA;AAAA,UACb,eAAakB,EAAAjB,CAAA;AAAA,UACb,aAAWL,EAAA;AAAA,UACX,aAAW;AAAA,UACX,SAAOY;AAAA,QAAA;;;;;;"}
@@ -454,7 +454,7 @@ const Ye = {
454
454
  function Vn() {
455
455
  let l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : er();
456
456
  const t = /* @__PURE__ */ h((k) => Vn(k), "DOMPurify");
457
- if (t.version = "3.3.2", t.removed = [], !l || !l.document || l.document.nodeType !== Ye.document || !l.Element)
457
+ if (t.version = "3.3.3", t.removed = [], !l || !l.document || l.document.nodeType !== Ye.document || !l.Element)
458
458
  return t.isSupported = !1, t;
459
459
  let {
460
460
  document: e
@@ -2508,4 +2508,4 @@ export {
2508
2508
  Cn as h,
2509
2509
  Ai as p
2510
2510
  };
2511
- //# sourceMappingURL=AgentWrap.vue_vue_type_script_setup_true_lang-CvNzBs-l.js.map
2511
+ //# sourceMappingURL=AgentWrap.vue_vue_type_script_setup_true_lang-bmrI1vVo.js.map