@pagelines/sdk 1.0.682 → 1.0.684
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/AgentProvider.js +701 -0
- package/dist/AgentProvider.js.map +1 -0
- package/dist/AgentWidgetInline.js +44 -32
- package/dist/AgentWidgetInline.js.map +1 -1
- package/dist/AgentWidgetModal.js +75 -64
- package/dist/AgentWidgetModal.js.map +1 -1
- package/dist/AgentWrap.js +5180 -0
- package/dist/AgentWrap.js.map +1 -0
- package/dist/FModal.js +165 -0
- package/dist/FModal.js.map +1 -0
- package/dist/agent/ui/AgentChat.vue.d.ts +3 -4
- package/dist/agent/ui/AgentInputEmail.vue.d.ts +3 -2
- package/dist/agent/ui/AgentInputOneTimeCode.vue.d.ts +3 -4
- package/dist/agent/ui/AgentModal.vue.d.ts +2 -1
- package/dist/agent/ui/AgentProvider.vue.d.ts +2 -1
- package/dist/agent/ui/AgentSidebarClose.vue.d.ts +3 -2
- package/dist/agent/ui/AgentToolActivityGroup.vue.d.ts +2 -1
- package/dist/agent/ui/AgentWidget.vue.d.ts +3 -2
- package/dist/agent/ui/AgentWrap.vue.d.ts +14 -29
- package/dist/agent/ui/ChatRichText.vue.d.ts +2 -1
- package/dist/agent/ui/ChatScroller.vue.d.ts +8 -18
- package/dist/agent/ui/ChatVisualBlock.vue.d.ts +2 -3
- package/dist/agent/ui/ElAgentAbout.vue.d.ts +2 -1
- package/dist/agent/ui/ElAgentButton.vue.d.ts +7 -11
- package/dist/agent/ui/ElAgentChat.vue.d.ts +2 -53
- package/dist/agent/ui/ElAgentChatPreview.vue.d.ts +2 -1
- package/dist/agent/ui/ElAgentHeader.vue.d.ts +2 -1
- package/dist/agent/ui/ElAgentModeSidebar.vue.d.ts +2 -1
- package/dist/agent/ui/ElAgentSidebar.vue.d.ts +2 -1
- package/dist/agent/ui/ElAuthGate.vue.d.ts +2 -1
- package/dist/agent/ui/ElAuthPanel.vue.d.ts +2 -1
- package/dist/agent/ui/ElCreateAgent.vue.d.ts +3 -2
- package/dist/agent/ui/ElModeHeader.vue.d.ts +2 -1
- package/dist/agent/ui/ElProvisioningStatus.vue.d.ts +3 -2
- package/dist/agent/ui/ElSidebar.vue.d.ts +9 -12
- package/dist/agent/ui/ElTrialGate.vue.d.ts +2 -1
- package/dist/agent.js +157 -186
- package/dist/agent.js.map +1 -1
- package/dist/constants.js +80 -0
- package/dist/constants.js.map +1 -0
- package/dist/contract.js +6284 -0
- package/dist/contract.js.map +1 -0
- package/dist/demo.js +242 -259
- package/dist/demo.js.map +1 -1
- package/dist/rolldown-runtime.js +14 -0
- package/dist/sdk.css +2 -1
- package/dist/sdk.js +4 -14
- package/dist/sdkClient.js +775 -867
- package/dist/sdkClient.js.map +1 -1
- package/dist/ui/EffectTransitionList.vue.d.ts +7 -11
- package/dist/ui/FClose.vue.d.ts +3 -2
- package/dist/ui/FModal.vue.d.ts +7 -5
- package/dist/ui/FSpinner.vue.d.ts +3 -2
- package/dist/useWidgetState.js +21 -0
- package/dist/useWidgetState.js.map +1 -0
- package/dist/widget/ui/AgentWidgetInline.vue.d.ts +2 -1
- package/dist/widget/ui/AgentWidgetModal.vue.d.ts +2 -1
- package/dist/widget/ui/AgentWidgetOnboard.vue.d.ts +2 -1
- package/dist/widget/ui/AgentWidgetPopup.vue.d.ts +3 -2
- package/dist/widget.js +717 -7
- package/dist/widget.js.map +1 -1
- package/package.json +25 -25
- package/dist/AgentProvider.vue_vue_type_script_setup_true_lang.js +0 -842
- package/dist/AgentProvider.vue_vue_type_script_setup_true_lang.js.map +0 -1
- package/dist/AgentWidgetOnboard.js +0 -5
- package/dist/AgentWidgetOnboard.js.map +0 -1
- package/dist/AgentWrap.vue_vue_type_script_setup_true_lang.js +0 -4952
- package/dist/AgentWrap.vue_vue_type_script_setup_true_lang.js.map +0 -1
- package/dist/FModal.vue_vue_type_script_setup_true_lang.js +0 -181
- package/dist/FModal.vue_vue_type_script_setup_true_lang.js.map +0 -1
- package/dist/agent/test/AgentController.test.d.ts +0 -1
- package/dist/agent/test/AgentToolActivityGroup.client.test.d.ts +0 -1
- package/dist/agent/test/ChatRichText.client.test.d.ts +0 -1
- package/dist/agent/test/ChatVisualBlock.client.test.d.ts +0 -1
- package/dist/agent/test/ElAgentChat.client.test.d.ts +0 -1
- package/dist/agent/test/ElAgentChatPreview.client.test.d.ts +0 -1
- package/dist/agent/test/VoiceRecorderController.unit.test.d.ts +0 -1
- package/dist/agent/test/auth-inputs.test.d.ts +0 -1
- package/dist/agent/test/chat-visual-format.unit.test.d.ts +0 -1
- package/dist/agent/test/utils.test.d.ts +0 -1
- package/dist/agent/test/webhook.test.d.ts +0 -1
- package/dist/contract/regenerate.d.ts +0 -2
- package/dist/contract/test/build.unit.test.d.ts +0 -1
- package/dist/contract/test/conversation-wire-shapes.unit.test.d.ts +0 -14
- package/dist/contract/test/snapshot.unit.test.d.ts +0 -1
- package/dist/index.js +0 -871
- package/dist/index.js.map +0 -1
- package/dist/sdk.js.map +0 -1
- package/dist/socialPlatforms.js +0 -82
- package/dist/socialPlatforms.js.map +0 -1
- package/dist/test/agent-client.test.d.ts +0 -4
- package/dist/test/api.test.d.ts +0 -1
- package/dist/test/billing-client.test.d.ts +0 -4
- package/dist/test/build.test.d.ts +0 -1
- package/dist/test/chat-authenticated.test.d.ts +0 -1
- package/dist/test/chat-issue-presentation.test.d.ts +0 -1
- package/dist/test/derive-mode.test.d.ts +0 -1
- package/dist/test/sdk-token-capture.test.d.ts +0 -13
- package/dist/vite.config.sdk.d.ts +0 -2
- package/dist/vitest.config.d.ts +0 -2
package/dist/FModal.js
ADDED
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
import "./rolldown-runtime.js";
|
|
2
|
+
import { Teleport as e, Transition as t, computed as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createVNode as s, defineComponent as c, guardReactiveProps as l, normalizeClass as u, normalizeProps as d, onMounted as f, onUnmounted as p, openBlock as m, ref as h, renderSlot as g, toDisplayString as _, watch as v, withCtx as y, withModifiers as b } from "vue";
|
|
3
|
+
//#region ui/FClose.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var x = ["aria-label"], S = { class: "absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[28px] h-[28px] overflow-hidden" }, C = /* @__PURE__ */ c({
|
|
5
|
+
name: "FClose",
|
|
6
|
+
__name: "FClose",
|
|
7
|
+
props: { ariaLabel: {} },
|
|
8
|
+
emits: ["click"],
|
|
9
|
+
setup(e) {
|
|
10
|
+
let t = h(!1);
|
|
11
|
+
return f(() => {
|
|
12
|
+
setTimeout(() => {
|
|
13
|
+
t.value = !0;
|
|
14
|
+
}, 100);
|
|
15
|
+
}), (n, r) => (m(), a("button", {
|
|
16
|
+
type: "button",
|
|
17
|
+
"aria-label": e.ariaLabel || "Close",
|
|
18
|
+
class: "close block cursor-pointer w-[60px] h-[60px] rounded-full transition-all duration-1000 ease-[cubic-bezier(0.25,1,0.33,1)] hover:scale-110 active:scale-90 hover:rotate-90",
|
|
19
|
+
onClick: r[0] || (r[0] = (e) => n.$emit("click", e))
|
|
20
|
+
}, [r[1] || (r[1] = o("span", { class: "absolute inset-0 rounded-full transition-all" }, null, -1)), o("span", S, [o("span", {
|
|
21
|
+
class: u(["absolute h-full w-[3px] rounded-[5px] left-[13px] transition-all duration-[400ms] ease-[cubic-bezier(0.52,0.01,0.16,1)]", t.value ? "translate-y-0 translate-x-0 rotate-45" : "translate-y-[30px] -translate-x-[30px] rotate-0"]),
|
|
22
|
+
style: {
|
|
23
|
+
"background-color": "currentColor",
|
|
24
|
+
"transition-delay": "0.15s"
|
|
25
|
+
}
|
|
26
|
+
}, null, 2), o("span", {
|
|
27
|
+
class: u(["absolute h-full w-[3px] rounded-[5px] left-[13px] transition-all duration-[400ms] ease-[cubic-bezier(0.52,0.01,0.16,1)]", t.value ? "translate-y-0 translate-x-0 -rotate-45" : "-translate-y-[30px] -translate-x-[30px] rotate-0"]),
|
|
28
|
+
style: {
|
|
29
|
+
"background-color": "currentColor",
|
|
30
|
+
"transition-delay": "0.45s"
|
|
31
|
+
}
|
|
32
|
+
}, null, 2)])], 8, x));
|
|
33
|
+
}
|
|
34
|
+
}), w = { class: "flex min-h-full items-center justify-center text-center p-4" }, T = {
|
|
35
|
+
key: 0,
|
|
36
|
+
class: "text-base p-4 font-semibold"
|
|
37
|
+
}, E = {
|
|
38
|
+
key: 1,
|
|
39
|
+
class: "flex items-center gap-2 px-2"
|
|
40
|
+
}, D = /* @__PURE__ */ c({
|
|
41
|
+
inheritAttrs: !1,
|
|
42
|
+
name: "FModal",
|
|
43
|
+
__name: "FModal",
|
|
44
|
+
props: {
|
|
45
|
+
vis: {
|
|
46
|
+
type: Boolean,
|
|
47
|
+
default: !1
|
|
48
|
+
},
|
|
49
|
+
modalClass: {},
|
|
50
|
+
styleClass: {},
|
|
51
|
+
fullScreen: {
|
|
52
|
+
type: Boolean,
|
|
53
|
+
default: !1
|
|
54
|
+
},
|
|
55
|
+
hasClose: {
|
|
56
|
+
type: Boolean,
|
|
57
|
+
default: !1
|
|
58
|
+
},
|
|
59
|
+
title: { default: "" },
|
|
60
|
+
transitionMode: { default: "modal" },
|
|
61
|
+
teleportTo: { default: "body" },
|
|
62
|
+
disableTeleport: {
|
|
63
|
+
type: Boolean,
|
|
64
|
+
default: !1
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
emits: [
|
|
68
|
+
"update:vis",
|
|
69
|
+
"close",
|
|
70
|
+
"escape"
|
|
71
|
+
],
|
|
72
|
+
setup(c, { emit: x }) {
|
|
73
|
+
let S = x, D = h(!1);
|
|
74
|
+
function close(e) {
|
|
75
|
+
let { reason: t } = e;
|
|
76
|
+
S("update:vis", !1), S("close", !0), t === "escape" && S("escape", !0);
|
|
77
|
+
}
|
|
78
|
+
let O = n(() => {
|
|
79
|
+
let e = c.modalClass ? [c.modalClass] : ["max-w-screen-md p-24"], t = c.styleClass ? [c.styleClass] : ["bg-theme-0", "shadow-xl"];
|
|
80
|
+
return c.fullScreen ? e.push("fixed inset-0") : e.push("rounded-2xl"), [
|
|
81
|
+
"relative",
|
|
82
|
+
"text-left",
|
|
83
|
+
"transform",
|
|
84
|
+
"transition-all",
|
|
85
|
+
"w-full",
|
|
86
|
+
"overflow-hidden",
|
|
87
|
+
...e,
|
|
88
|
+
...t
|
|
89
|
+
];
|
|
90
|
+
}), k = h(!1), A = [];
|
|
91
|
+
function onKeydown(e) {
|
|
92
|
+
e.key === "Escape" && c.vis && close({ reason: "escape" });
|
|
93
|
+
}
|
|
94
|
+
f(async () => {
|
|
95
|
+
D.value = !0;
|
|
96
|
+
let e = v(() => c.vis, (e) => {
|
|
97
|
+
e ? setTimeout(() => k.value = !0, 300) : k.value = !1;
|
|
98
|
+
}, { immediate: !0 });
|
|
99
|
+
A.push(e), typeof document < "u" && (document.addEventListener("keydown", onKeydown), A.push(() => document.removeEventListener("keydown", onKeydown)));
|
|
100
|
+
}), p(() => {
|
|
101
|
+
A.forEach((e) => e());
|
|
102
|
+
});
|
|
103
|
+
let j = n(() => c.transitionMode === "slideUp" ? {
|
|
104
|
+
enterActiveClass: "ease-[cubic-bezier(0.25,1,0.33,1)] duration-500",
|
|
105
|
+
enterFromClass: "opacity-0 translate-y-full scale-95",
|
|
106
|
+
enterToClass: "opacity-100 translate-y-0 scale-100",
|
|
107
|
+
leaveActiveClass: "ease-[cubic-bezier(0.25,1,0.33,1)] duration-500",
|
|
108
|
+
leaveFromClass: "opacity-100 translate-y-0 scale-100",
|
|
109
|
+
leaveToClass: "opacity-0 translate-y-full scale-95"
|
|
110
|
+
} : {
|
|
111
|
+
enterActiveClass: "ease-[cubic-bezier(0.25,1,0.33,1)] duration-500",
|
|
112
|
+
enterFromClass: "opacity-0 scale-75",
|
|
113
|
+
enterToClass: "opacity-100 translate-y-0 scale-100",
|
|
114
|
+
leaveActiveClass: "ease-[cubic-bezier(0.25,1,0.33,1)] duration-500",
|
|
115
|
+
leaveFromClass: "opacity-100 translate-y-0 scale-100",
|
|
116
|
+
leaveToClass: "opacity-0 scale-75"
|
|
117
|
+
});
|
|
118
|
+
return (n, f) => D.value ? (m(), r(e, {
|
|
119
|
+
key: 0,
|
|
120
|
+
to: c.teleportTo,
|
|
121
|
+
disabled: c.disableTeleport
|
|
122
|
+
}, [o("div", {
|
|
123
|
+
class: u(["fixed inset-0 z-50", c.vis ? "" : "pointer-events-none"]),
|
|
124
|
+
"aria-labelledby": "modal-title",
|
|
125
|
+
role: "dialog",
|
|
126
|
+
"aria-modal": "true"
|
|
127
|
+
}, [s(t, {
|
|
128
|
+
"enter-active-class": "ease-out duration-300",
|
|
129
|
+
"enter-from-class": "opacity-0",
|
|
130
|
+
"enter-to-class": "opacity-100",
|
|
131
|
+
"leave-active-class": "ease-in duration-200",
|
|
132
|
+
"leave-from-class": "opacity-100",
|
|
133
|
+
"leave-to-class": "opacity-0"
|
|
134
|
+
}, {
|
|
135
|
+
default: y(() => [c.vis ? (m(), a("div", {
|
|
136
|
+
key: 0,
|
|
137
|
+
class: "fixed inset-0 bg-theme-800/60 active:bg-theme-800/80 cursor-pointer dark:bg-theme-600/90 backdrop-blur-sm transition-opacity",
|
|
138
|
+
onClick: f[0] || (f[0] = (e) => close({ reason: "escape" }))
|
|
139
|
+
})) : i("", !0)]),
|
|
140
|
+
_: 1
|
|
141
|
+
}), o("div", {
|
|
142
|
+
class: "fixed inset-0 z-40 overflow-y-auto overscroll-contain no-scrollbar",
|
|
143
|
+
onClick: f[3] || (f[3] = (e) => close({ reason: "escape" }))
|
|
144
|
+
}, [o("div", w, [s(t, d(l(j.value)), {
|
|
145
|
+
default: y(() => [c.vis ? (m(), a("div", {
|
|
146
|
+
key: 0,
|
|
147
|
+
class: u([O.value, "w-full"]),
|
|
148
|
+
onClick: f[2] || (f[2] = b(() => {}, ["stop"]))
|
|
149
|
+
}, [c.hasClose || c.title || n.$slots.actions ? (m(), a("div", {
|
|
150
|
+
key: 0,
|
|
151
|
+
class: u(!c.title && (c.hasClose || n.$slots.actions) ? "absolute top-0 right-0 z-10" : "flex justify-between items-center")
|
|
152
|
+
}, [c.title ? (m(), a("h2", T, _(c.title), 1)) : i("", !0), c.hasClose || n.$slots.actions ? (m(), a("div", E, [g(n.$slots, "actions"), c.hasClose ? (m(), r(C, {
|
|
153
|
+
key: 0,
|
|
154
|
+
class: "relative",
|
|
155
|
+
"data-test-id": "close-modal",
|
|
156
|
+
onClick: f[1] || (f[1] = b((e) => close({ reason: "escape" }), ["stop"]))
|
|
157
|
+
})) : i("", !0)])) : i("", !0)], 2)) : i("", !0), g(n.$slots, "default")], 2)) : i("", !0)]),
|
|
158
|
+
_: 3
|
|
159
|
+
}, 16)])])], 2)], 8, ["to", "disabled"])) : i("", !0);
|
|
160
|
+
}
|
|
161
|
+
});
|
|
162
|
+
//#endregion
|
|
163
|
+
export { D as t };
|
|
164
|
+
|
|
165
|
+
//# sourceMappingURL=FModal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FModal.js","names":["$emit","$slots"],"sources":["../ui/FClose.vue","../ui/FClose.vue","../ui/FModal.vue","../ui/FModal.vue"],"sourcesContent":["<script lang=\"ts\" setup>\n// SDK-local copy of src/ui/common/FClose.vue — the SDK package must not\n// import app source, so the primitives it needs live here.\nimport { onMounted, ref } from 'vue'\n\ndefineOptions({ name: 'FClose' })\n\ndefineProps<{\n ariaLabel?: string\n}>()\n\ndefineEmits<{\n click: [event: MouseEvent]\n}>()\n\nconst inView = ref(false)\n\nonMounted(() => {\n setTimeout(() => {\n inView.value = true\n }, 100)\n})\n</script>\n\n<template>\n <button\n type=\"button\"\n :aria-label=\"ariaLabel || 'Close'\"\n class=\"close block cursor-pointer w-[60px] h-[60px] rounded-full transition-all duration-1000 ease-[cubic-bezier(0.25,1,0.33,1)] hover:scale-110 active:scale-90 hover:rotate-90\"\n @click=\"$emit('click', $event)\"\n >\n <!-- Background circle (invisible, for hover area) -->\n <span class=\"absolute inset-0 rounded-full transition-all\" />\n\n <!-- Close lines container -->\n <span class=\"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[28px] h-[28px] overflow-hidden\">\n <!-- Line 1 - animates from bottom-left to center, rotates 45deg -->\n <span\n class=\"absolute h-full w-[3px] rounded-[5px] left-[13px] transition-all duration-[400ms] ease-[cubic-bezier(0.52,0.01,0.16,1)]\"\n :class=\"inView ? 'translate-y-0 translate-x-0 rotate-45' : 'translate-y-[30px] -translate-x-[30px] rotate-0'\"\n style=\"background-color: currentColor; transition-delay: 0.15s\"\n />\n\n <!-- Line 2 - animates from top-left to center, rotates -45deg -->\n <span\n class=\"absolute h-full w-[3px] rounded-[5px] left-[13px] transition-all duration-[400ms] ease-[cubic-bezier(0.52,0.01,0.16,1)]\"\n :class=\"inView ? 'translate-y-0 translate-x-0 -rotate-45' : '-translate-y-[30px] -translate-x-[30px] rotate-0'\"\n style=\"background-color: currentColor; transition-delay: 0.45s\"\n />\n </span>\n </button>\n</template>\n","<script lang=\"ts\" setup>\n// SDK-local copy of src/ui/common/FClose.vue — the SDK package must not\n// import app source, so the primitives it needs live here.\nimport { onMounted, ref } from 'vue'\n\ndefineOptions({ name: 'FClose' })\n\ndefineProps<{\n ariaLabel?: string\n}>()\n\ndefineEmits<{\n click: [event: MouseEvent]\n}>()\n\nconst inView = ref(false)\n\nonMounted(() => {\n setTimeout(() => {\n inView.value = true\n }, 100)\n})\n</script>\n\n<template>\n <button\n type=\"button\"\n :aria-label=\"ariaLabel || 'Close'\"\n class=\"close block cursor-pointer w-[60px] h-[60px] rounded-full transition-all duration-1000 ease-[cubic-bezier(0.25,1,0.33,1)] hover:scale-110 active:scale-90 hover:rotate-90\"\n @click=\"$emit('click', $event)\"\n >\n <!-- Background circle (invisible, for hover area) -->\n <span class=\"absolute inset-0 rounded-full transition-all\" />\n\n <!-- Close lines container -->\n <span class=\"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[28px] h-[28px] overflow-hidden\">\n <!-- Line 1 - animates from bottom-left to center, rotates 45deg -->\n <span\n class=\"absolute h-full w-[3px] rounded-[5px] left-[13px] transition-all duration-[400ms] ease-[cubic-bezier(0.52,0.01,0.16,1)]\"\n :class=\"inView ? 'translate-y-0 translate-x-0 rotate-45' : 'translate-y-[30px] -translate-x-[30px] rotate-0'\"\n style=\"background-color: currentColor; transition-delay: 0.15s\"\n />\n\n <!-- Line 2 - animates from top-left to center, rotates -45deg -->\n <span\n class=\"absolute h-full w-[3px] rounded-[5px] left-[13px] transition-all duration-[400ms] ease-[cubic-bezier(0.52,0.01,0.16,1)]\"\n :class=\"inView ? 'translate-y-0 translate-x-0 -rotate-45' : '-translate-y-[30px] -translate-x-[30px] rotate-0'\"\n style=\"background-color: currentColor; transition-delay: 0.45s\"\n />\n </span>\n </button>\n</template>\n","<script lang=\"ts\" setup>\n// SDK-local copy of src/ui/common/FModal.vue — the SDK package must not\n// import app source, so the primitives it needs live here.\nimport { computed, onMounted, onUnmounted, ref, watch } from 'vue'\nimport FClose from './FClose.vue'\n\ndefineOptions({ name: 'FModal' })\n\nconst {\n vis = false,\n modalClass,\n styleClass,\n fullScreen = false,\n hasClose = false,\n title = '',\n transitionMode = 'modal',\n teleportTo = 'body',\n disableTeleport = false,\n} = defineProps<{\n vis?: boolean\n modalClass?: string\n styleClass?: string\n fullScreen?: boolean\n hasClose?: boolean\n title?: string\n transitionMode?: 'modal' | 'slideUp'\n teleportTo?: string | Element\n disableTeleport?: boolean\n}>()\n\nconst emit = defineEmits<{\n 'update:vis': [value: boolean]\n 'close': [value: boolean]\n 'escape': [value: boolean]\n}>()\n\nconst isMounted = ref(false)\n\nfunction close(args: { reason: 'escape' | 'reset' }): void {\n const { reason } = args\n emit('update:vis', false)\n emit('close', true)\n if (reason === 'escape')\n emit('escape', true)\n}\n\nconst classes = computed(() => {\n const cls = modalClass ? [modalClass] : ['max-w-screen-md p-24']\n const style = styleClass ? [styleClass] : ['bg-theme-0', 'shadow-xl']\n\n if (fullScreen)\n cls.push('fixed inset-0')\n else\n cls.push('rounded-2xl')\n\n return [\n 'relative',\n 'text-left',\n 'transform',\n 'transition-all',\n 'w-full',\n 'overflow-hidden',\n ...cls,\n ...style,\n ]\n})\n\nconst afterVisible = ref(false)\nconst cleanups: (() => void)[] = []\n\nfunction onKeydown(event: KeyboardEvent): void {\n if (event.key === 'Escape' && vis)\n close({ reason: 'escape' })\n}\n\nonMounted(async () => {\n isMounted.value = true\n\n const unwatch = watch(\n () => vis,\n (vis) => {\n if (vis) {\n setTimeout(() => (afterVisible.value = true), 300)\n } else {\n afterVisible.value = false\n }\n },\n { immediate: true },\n )\n\n cleanups.push(unwatch)\n\n if (typeof document !== 'undefined') {\n document.addEventListener('keydown', onKeydown)\n cleanups.push(() => document.removeEventListener('keydown', onKeydown))\n }\n})\n\nonUnmounted(() => {\n cleanups.forEach((c) => c())\n})\n\nconst modalTransition = computed(() => {\n if (transitionMode === 'slideUp') {\n return {\n enterActiveClass: 'ease-[cubic-bezier(0.25,1,0.33,1)] duration-500',\n enterFromClass: 'opacity-0 translate-y-full scale-95',\n enterToClass: 'opacity-100 translate-y-0 scale-100',\n leaveActiveClass: 'ease-[cubic-bezier(0.25,1,0.33,1)] duration-500',\n leaveFromClass: 'opacity-100 translate-y-0 scale-100',\n leaveToClass: 'opacity-0 translate-y-full scale-95',\n }\n }\n return {\n enterActiveClass: 'ease-[cubic-bezier(0.25,1,0.33,1)] duration-500',\n enterFromClass: 'opacity-0 scale-75',\n enterToClass: 'opacity-100 translate-y-0 scale-100',\n leaveActiveClass: 'ease-[cubic-bezier(0.25,1,0.33,1)] duration-500',\n leaveFromClass: 'opacity-100 translate-y-0 scale-100',\n leaveToClass: 'opacity-0 scale-75',\n }\n})\n</script>\n\n<script lang=\"ts\">\nexport default {\n inheritAttrs: false,\n}\n</script>\n\n<template>\n <Teleport v-if=\"isMounted\" :to=\"teleportTo\" :disabled=\"disableTeleport\">\n <div\n class=\"fixed inset-0 z-50\"\n aria-labelledby=\"modal-title\"\n role=\"dialog\"\n aria-modal=\"true\"\n :class=\"!vis ? 'pointer-events-none' : ''\"\n >\n <Transition\n enter-active-class=\"ease-out duration-300\"\n enter-from-class=\"opacity-0\"\n enter-to-class=\"opacity-100\"\n leave-active-class=\"ease-in duration-200\"\n leave-from-class=\"opacity-100\"\n leave-to-class=\"opacity-0\"\n >\n <div\n v-if=\"vis\"\n class=\"fixed inset-0 bg-theme-800/60 active:bg-theme-800/80 cursor-pointer dark:bg-theme-600/90 backdrop-blur-sm transition-opacity\"\n @click=\"close({ reason: 'escape' })\"\n />\n </Transition>\n <div\n class=\"fixed inset-0 z-40 overflow-y-auto overscroll-contain no-scrollbar\"\n @click=\"close({ reason: 'escape' })\"\n >\n <!-- min-h-full, never h-full: a taller-than-viewport panel must grow this\n row so the outer layer scrolls; h-full + items-center centers the\n overflow and clips the modal top unreachably. p-4 = the 1em minimum\n viewport gap for tall modals. -->\n <div class=\"flex min-h-full items-center justify-center text-center p-4\">\n <Transition v-bind=\"modalTransition\">\n <div\n v-if=\"vis\"\n :class=\"classes\"\n class=\"w-full\"\n @click.stop\n >\n <div\n v-if=\"hasClose || title || $slots.actions\"\n :class=\"!title && (hasClose || $slots.actions) ? 'absolute top-0 right-0 z-10' : 'flex justify-between items-center'\"\n >\n <h2 v-if=\"title\" class=\"text-base p-4 font-semibold\">\n {{ title }}\n </h2>\n <div v-if=\"hasClose || $slots.actions\" class=\"flex items-center gap-2 px-2\">\n <slot name=\"actions\" />\n <FClose\n v-if=\"hasClose\"\n class=\"relative\"\n data-test-id=\"close-modal\"\n @click.stop=\"close({ reason: 'escape' })\"\n />\n </div>\n </div>\n <slot />\n </div>\n </Transition>\n </div>\n </div>\n </div>\n </Teleport>\n</template>\n","<script lang=\"ts\" setup>\n// SDK-local copy of src/ui/common/FModal.vue — the SDK package must not\n// import app source, so the primitives it needs live here.\nimport { computed, onMounted, onUnmounted, ref, watch } from 'vue'\nimport FClose from './FClose.vue'\n\ndefineOptions({ name: 'FModal' })\n\nconst {\n vis = false,\n modalClass,\n styleClass,\n fullScreen = false,\n hasClose = false,\n title = '',\n transitionMode = 'modal',\n teleportTo = 'body',\n disableTeleport = false,\n} = defineProps<{\n vis?: boolean\n modalClass?: string\n styleClass?: string\n fullScreen?: boolean\n hasClose?: boolean\n title?: string\n transitionMode?: 'modal' | 'slideUp'\n teleportTo?: string | Element\n disableTeleport?: boolean\n}>()\n\nconst emit = defineEmits<{\n 'update:vis': [value: boolean]\n 'close': [value: boolean]\n 'escape': [value: boolean]\n}>()\n\nconst isMounted = ref(false)\n\nfunction close(args: { reason: 'escape' | 'reset' }): void {\n const { reason } = args\n emit('update:vis', false)\n emit('close', true)\n if (reason === 'escape')\n emit('escape', true)\n}\n\nconst classes = computed(() => {\n const cls = modalClass ? [modalClass] : ['max-w-screen-md p-24']\n const style = styleClass ? [styleClass] : ['bg-theme-0', 'shadow-xl']\n\n if (fullScreen)\n cls.push('fixed inset-0')\n else\n cls.push('rounded-2xl')\n\n return [\n 'relative',\n 'text-left',\n 'transform',\n 'transition-all',\n 'w-full',\n 'overflow-hidden',\n ...cls,\n ...style,\n ]\n})\n\nconst afterVisible = ref(false)\nconst cleanups: (() => void)[] = []\n\nfunction onKeydown(event: KeyboardEvent): void {\n if (event.key === 'Escape' && vis)\n close({ reason: 'escape' })\n}\n\nonMounted(async () => {\n isMounted.value = true\n\n const unwatch = watch(\n () => vis,\n (vis) => {\n if (vis) {\n setTimeout(() => (afterVisible.value = true), 300)\n } else {\n afterVisible.value = false\n }\n },\n { immediate: true },\n )\n\n cleanups.push(unwatch)\n\n if (typeof document !== 'undefined') {\n document.addEventListener('keydown', onKeydown)\n cleanups.push(() => document.removeEventListener('keydown', onKeydown))\n }\n})\n\nonUnmounted(() => {\n cleanups.forEach((c) => c())\n})\n\nconst modalTransition = computed(() => {\n if (transitionMode === 'slideUp') {\n return {\n enterActiveClass: 'ease-[cubic-bezier(0.25,1,0.33,1)] duration-500',\n enterFromClass: 'opacity-0 translate-y-full scale-95',\n enterToClass: 'opacity-100 translate-y-0 scale-100',\n leaveActiveClass: 'ease-[cubic-bezier(0.25,1,0.33,1)] duration-500',\n leaveFromClass: 'opacity-100 translate-y-0 scale-100',\n leaveToClass: 'opacity-0 translate-y-full scale-95',\n }\n }\n return {\n enterActiveClass: 'ease-[cubic-bezier(0.25,1,0.33,1)] duration-500',\n enterFromClass: 'opacity-0 scale-75',\n enterToClass: 'opacity-100 translate-y-0 scale-100',\n leaveActiveClass: 'ease-[cubic-bezier(0.25,1,0.33,1)] duration-500',\n leaveFromClass: 'opacity-100 translate-y-0 scale-100',\n leaveToClass: 'opacity-0 scale-75',\n }\n})\n</script>\n\n<script lang=\"ts\">\nexport default {\n inheritAttrs: false,\n}\n</script>\n\n<template>\n <Teleport v-if=\"isMounted\" :to=\"teleportTo\" :disabled=\"disableTeleport\">\n <div\n class=\"fixed inset-0 z-50\"\n aria-labelledby=\"modal-title\"\n role=\"dialog\"\n aria-modal=\"true\"\n :class=\"!vis ? 'pointer-events-none' : ''\"\n >\n <Transition\n enter-active-class=\"ease-out duration-300\"\n enter-from-class=\"opacity-0\"\n enter-to-class=\"opacity-100\"\n leave-active-class=\"ease-in duration-200\"\n leave-from-class=\"opacity-100\"\n leave-to-class=\"opacity-0\"\n >\n <div\n v-if=\"vis\"\n class=\"fixed inset-0 bg-theme-800/60 active:bg-theme-800/80 cursor-pointer dark:bg-theme-600/90 backdrop-blur-sm transition-opacity\"\n @click=\"close({ reason: 'escape' })\"\n />\n </Transition>\n <div\n class=\"fixed inset-0 z-40 overflow-y-auto overscroll-contain no-scrollbar\"\n @click=\"close({ reason: 'escape' })\"\n >\n <!-- min-h-full, never h-full: a taller-than-viewport panel must grow this\n row so the outer layer scrolls; h-full + items-center centers the\n overflow and clips the modal top unreachably. p-4 = the 1em minimum\n viewport gap for tall modals. -->\n <div class=\"flex min-h-full items-center justify-center text-center p-4\">\n <Transition v-bind=\"modalTransition\">\n <div\n v-if=\"vis\"\n :class=\"classes\"\n class=\"w-full\"\n @click.stop\n >\n <div\n v-if=\"hasClose || title || $slots.actions\"\n :class=\"!title && (hasClose || $slots.actions) ? 'absolute top-0 right-0 z-10' : 'flex justify-between items-center'\"\n >\n <h2 v-if=\"title\" class=\"text-base p-4 font-semibold\">\n {{ title }}\n </h2>\n <div v-if=\"hasClose || $slots.actions\" class=\"flex items-center gap-2 px-2\">\n <slot name=\"actions\" />\n <FClose\n v-if=\"hasClose\"\n class=\"relative\"\n data-test-id=\"close-modal\"\n @click.stop=\"close({ reason: 'escape' })\"\n />\n </div>\n </div>\n <slot />\n </div>\n </Transition>\n </div>\n </div>\n </div>\n </Teleport>\n</template>\n"],"mappings":"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"}
|
|
@@ -16,13 +16,12 @@ type __VLS_Props = {
|
|
|
16
16
|
requireAuth?: boolean;
|
|
17
17
|
chatOnly?: boolean;
|
|
18
18
|
};
|
|
19
|
-
declare const
|
|
19
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
20
20
|
error: (message: string) => any;
|
|
21
21
|
close: (value: string) => any;
|
|
22
22
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
23
23
|
onError?: ((message: string) => any) | undefined;
|
|
24
24
|
onClose?: ((value: string) => any) | undefined;
|
|
25
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
26
|
-
|
|
27
|
-
}, HTMLDivElement>;
|
|
25
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
26
|
+
declare const _default: typeof __VLS_export;
|
|
28
27
|
export default _default;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
2
|
modelValue?: string;
|
|
3
3
|
};
|
|
4
|
-
declare const
|
|
4
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
5
5
|
"update:modelValue": (value: string) => any;
|
|
6
6
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
7
7
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
8
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {},
|
|
8
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
declare const _default: typeof __VLS_export;
|
|
9
10
|
export default _default;
|
|
@@ -3,13 +3,12 @@ type __VLS_Props = {
|
|
|
3
3
|
length: number;
|
|
4
4
|
focusFirst?: boolean;
|
|
5
5
|
};
|
|
6
|
-
declare const
|
|
6
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
7
7
|
"update:modelValue": (value: string) => any;
|
|
8
8
|
autoSubmit: (value: string) => any;
|
|
9
9
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
10
10
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
11
11
|
onAutoSubmit?: ((value: string) => any) | undefined;
|
|
12
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
13
|
-
|
|
14
|
-
}, HTMLInputElement>;
|
|
12
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const _default: typeof __VLS_export;
|
|
15
14
|
export default _default;
|
|
@@ -8,9 +8,10 @@ type __VLS_Props = {
|
|
|
8
8
|
context?: string;
|
|
9
9
|
firstMessage?: string;
|
|
10
10
|
};
|
|
11
|
-
declare const
|
|
11
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
12
12
|
"update:vis": (value: boolean) => any;
|
|
13
13
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
14
14
|
"onUpdate:vis"?: ((value: boolean) => any) | undefined;
|
|
15
15
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
declare const _default: typeof __VLS_export;
|
|
16
17
|
export default _default;
|
|
@@ -13,11 +13,12 @@ type __VLS_Props = {
|
|
|
13
13
|
chatOnly?: boolean;
|
|
14
14
|
apiBase?: string;
|
|
15
15
|
};
|
|
16
|
-
declare const
|
|
16
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
17
17
|
error: (message: string) => any;
|
|
18
18
|
close: (value: string) => any;
|
|
19
19
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
20
20
|
onError?: ((message: string) => any) | undefined;
|
|
21
21
|
onClose?: ((value: string) => any) | undefined;
|
|
22
22
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
23
|
+
declare const _default: typeof __VLS_export;
|
|
23
24
|
export default _default;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
declare const
|
|
1
|
+
declare const __VLS_export: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
2
2
|
click: (event: MouseEvent) => any;
|
|
3
3
|
}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
|
|
4
4
|
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
5
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {},
|
|
5
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
declare const _default: typeof __VLS_export;
|
|
6
7
|
export default _default;
|
|
@@ -3,5 +3,6 @@ type __VLS_Props = {
|
|
|
3
3
|
model: WorkJournalModel;
|
|
4
4
|
isLight: boolean;
|
|
5
5
|
};
|
|
6
|
-
declare const
|
|
6
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
7
8
|
export default _default;
|
|
@@ -9,9 +9,10 @@ interface Props {
|
|
|
9
9
|
declare function toggle(): void;
|
|
10
10
|
declare function open(): void;
|
|
11
11
|
declare function close(): void;
|
|
12
|
-
declare const
|
|
12
|
+
declare const __VLS_export: import('vue').DefineComponent<Props, {
|
|
13
13
|
toggle: typeof toggle;
|
|
14
14
|
open: typeof open;
|
|
15
15
|
close: typeof close;
|
|
16
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {},
|
|
16
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
declare const _default: typeof __VLS_export;
|
|
17
18
|
export default _default;
|
|
@@ -13,37 +13,22 @@ type __VLS_Props = {
|
|
|
13
13
|
hasClose?: boolean;
|
|
14
14
|
apiBase?: string;
|
|
15
15
|
};
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
loading: boolean;
|
|
27
|
-
}) => any;
|
|
28
|
-
}> & {
|
|
29
|
-
default: (props: {
|
|
30
|
-
sdk: PageLinesSDK;
|
|
31
|
-
agent: Agent;
|
|
32
|
-
context?: string;
|
|
33
|
-
firstMessage?: string;
|
|
34
|
-
buttonText?: string;
|
|
35
|
-
buttonIcon?: ButtonIconPreset;
|
|
36
|
-
loading: boolean;
|
|
37
|
-
}) => any;
|
|
38
|
-
};
|
|
39
|
-
refs: {};
|
|
40
|
-
rootEl: HTMLDivElement;
|
|
16
|
+
type __VLS_Slots = {
|
|
17
|
+
default: (props: {
|
|
18
|
+
sdk: PageLinesSDK;
|
|
19
|
+
agent: Agent;
|
|
20
|
+
context?: string;
|
|
21
|
+
firstMessage?: string;
|
|
22
|
+
buttonText?: string;
|
|
23
|
+
buttonIcon?: ButtonIconPreset;
|
|
24
|
+
loading: boolean;
|
|
25
|
+
}) => any;
|
|
41
26
|
};
|
|
42
|
-
|
|
43
|
-
declare const
|
|
44
|
-
declare const _default:
|
|
27
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
28
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
29
|
+
declare const _default: typeof __VLS_export;
|
|
45
30
|
export default _default;
|
|
46
|
-
type
|
|
31
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
47
32
|
new (): {
|
|
48
33
|
$slots: S;
|
|
49
34
|
};
|
|
@@ -10,5 +10,6 @@ type __VLS_Props = {
|
|
|
10
10
|
*/
|
|
11
11
|
streaming?: boolean;
|
|
12
12
|
};
|
|
13
|
-
declare const
|
|
13
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
declare const _default: typeof __VLS_export;
|
|
14
15
|
export default _default;
|
|
@@ -1,25 +1,15 @@
|
|
|
1
1
|
declare function pin(): void;
|
|
2
|
-
declare
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
default?(_: {}): any;
|
|
6
|
-
};
|
|
7
|
-
refs: {
|
|
8
|
-
viewport: HTMLDivElement;
|
|
9
|
-
content: HTMLDivElement;
|
|
10
|
-
};
|
|
11
|
-
rootEl: any;
|
|
2
|
+
declare var __VLS_1: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
default?: (props: typeof __VLS_1) => any;
|
|
12
5
|
};
|
|
13
|
-
|
|
14
|
-
declare const __VLS_component: import('vue').DefineComponent<{}, {
|
|
6
|
+
declare const __VLS_base: import('vue').DefineComponent<{}, {
|
|
15
7
|
pin: typeof pin;
|
|
16
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}, any>;
|
|
20
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
8
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
9
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
10
|
+
declare const _default: typeof __VLS_export;
|
|
21
11
|
export default _default;
|
|
22
|
-
type
|
|
12
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
23
13
|
new (): {
|
|
24
14
|
$slots: S;
|
|
25
15
|
};
|
|
@@ -3,7 +3,6 @@ type __VLS_Props = {
|
|
|
3
3
|
result: ChatVisualParseResult;
|
|
4
4
|
inverted?: boolean;
|
|
5
5
|
};
|
|
6
|
-
declare const
|
|
7
|
-
|
|
8
|
-
}, any>;
|
|
6
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
9
8
|
export default _default;
|
|
@@ -3,5 +3,6 @@ type __VLS_Props = {
|
|
|
3
3
|
agent: Agent;
|
|
4
4
|
isOnline?: boolean;
|
|
5
5
|
};
|
|
6
|
-
declare const
|
|
6
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
7
8
|
export default _default;
|
|
@@ -7,19 +7,15 @@ type __VLS_Props = {
|
|
|
7
7
|
icon?: string;
|
|
8
8
|
iconAfter?: string;
|
|
9
9
|
};
|
|
10
|
-
declare
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
default?(_: {}): any;
|
|
14
|
-
};
|
|
15
|
-
refs: {};
|
|
16
|
-
rootEl: HTMLButtonElement;
|
|
10
|
+
declare var __VLS_1: {};
|
|
11
|
+
type __VLS_Slots = {} & {
|
|
12
|
+
default?: (props: typeof __VLS_1) => any;
|
|
17
13
|
};
|
|
18
|
-
|
|
19
|
-
declare const
|
|
20
|
-
declare const _default:
|
|
14
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
16
|
+
declare const _default: typeof __VLS_export;
|
|
21
17
|
export default _default;
|
|
22
|
-
type
|
|
18
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
23
19
|
new (): {
|
|
24
20
|
$slots: S;
|
|
25
21
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { AgentChatController } from '../AgentController';
|
|
2
2
|
import { Agent } from '@pagelines/core';
|
|
3
|
-
import { nextTick } from 'vue';
|
|
4
3
|
type ChatScope = 'private' | 'org' | 'public';
|
|
5
4
|
type __VLS_Props = {
|
|
6
5
|
chatController?: AgentChatController;
|
|
@@ -15,56 +14,6 @@ type __VLS_Props = {
|
|
|
15
14
|
/** Center transcript + composer in a 720px column — for wide desktop shells. */
|
|
16
15
|
centered?: boolean;
|
|
17
16
|
};
|
|
18
|
-
declare const
|
|
19
|
-
|
|
20
|
-
$: import('vue').ComponentInternalInstance;
|
|
21
|
-
$data: {};
|
|
22
|
-
$props: Partial<{}> & Omit<{} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>;
|
|
23
|
-
$attrs: import('vue').Attrs;
|
|
24
|
-
$refs: {
|
|
25
|
-
[x: string]: unknown;
|
|
26
|
-
} & {
|
|
27
|
-
viewport: HTMLDivElement;
|
|
28
|
-
content: HTMLDivElement;
|
|
29
|
-
};
|
|
30
|
-
$slots: Readonly<{
|
|
31
|
-
[name: string]: import('vue').Slot<any> | undefined;
|
|
32
|
-
}>;
|
|
33
|
-
$root: import('vue').ComponentPublicInstance | null;
|
|
34
|
-
$parent: import('vue').ComponentPublicInstance | null;
|
|
35
|
-
$host: Element | null;
|
|
36
|
-
$emit: (event: string, ...args: any[]) => void;
|
|
37
|
-
$el: any;
|
|
38
|
-
$options: import('vue').ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {
|
|
39
|
-
pin: () => void;
|
|
40
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
41
|
-
beforeCreate?: (() => void) | (() => void)[];
|
|
42
|
-
created?: (() => void) | (() => void)[];
|
|
43
|
-
beforeMount?: (() => void) | (() => void)[];
|
|
44
|
-
mounted?: (() => void) | (() => void)[];
|
|
45
|
-
beforeUpdate?: (() => void) | (() => void)[];
|
|
46
|
-
updated?: (() => void) | (() => void)[];
|
|
47
|
-
activated?: (() => void) | (() => void)[];
|
|
48
|
-
deactivated?: (() => void) | (() => void)[];
|
|
49
|
-
beforeDestroy?: (() => void) | (() => void)[];
|
|
50
|
-
beforeUnmount?: (() => void) | (() => void)[];
|
|
51
|
-
destroyed?: (() => void) | (() => void)[];
|
|
52
|
-
unmounted?: (() => void) | (() => void)[];
|
|
53
|
-
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
54
|
-
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
55
|
-
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
56
|
-
};
|
|
57
|
-
$forceUpdate: () => void;
|
|
58
|
-
$nextTick: typeof nextTick;
|
|
59
|
-
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
60
|
-
} & Readonly<{}> & Omit<Readonly<{}> & Readonly<{}>, "pin"> & {
|
|
61
|
-
pin: () => void;
|
|
62
|
-
} & {} & import('vue').ComponentCustomProperties & {} & {
|
|
63
|
-
$slots: {
|
|
64
|
-
default?(_: {}): any;
|
|
65
|
-
};
|
|
66
|
-
}) | null;
|
|
67
|
-
fileInput: HTMLInputElement;
|
|
68
|
-
textarea: HTMLTextAreaElement;
|
|
69
|
-
}, any>;
|
|
17
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
declare const _default: typeof __VLS_export;
|
|
70
19
|
export default _default;
|
|
@@ -6,5 +6,6 @@ type __VLS_Props = {
|
|
|
6
6
|
messages: ChatPreviewMessage[];
|
|
7
7
|
variant?: 'light' | 'dark';
|
|
8
8
|
};
|
|
9
|
-
declare const
|
|
9
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const _default: typeof __VLS_export;
|
|
10
11
|
export default _default;
|
|
@@ -3,5 +3,6 @@ interface Props {
|
|
|
3
3
|
agent: Agent;
|
|
4
4
|
isOnline?: boolean;
|
|
5
5
|
}
|
|
6
|
-
declare const
|
|
6
|
+
declare const __VLS_export: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
7
8
|
export default _default;
|
|
@@ -3,9 +3,10 @@ type __VLS_Props = {
|
|
|
3
3
|
modelValue: boolean;
|
|
4
4
|
chatController?: AgentChatController;
|
|
5
5
|
};
|
|
6
|
-
declare const
|
|
6
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
7
7
|
"update:modelValue": (value: boolean) => any;
|
|
8
8
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
9
9
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
10
10
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
11
12
|
export default _default;
|
|
@@ -6,9 +6,10 @@ type __VLS_Props = {
|
|
|
6
6
|
sdk: PageLinesSDK;
|
|
7
7
|
title?: string;
|
|
8
8
|
};
|
|
9
|
-
declare const
|
|
9
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
10
10
|
"update:modelValue": (value: boolean) => any;
|
|
11
11
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
12
12
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
13
13
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
declare const _default: typeof __VLS_export;
|
|
14
15
|
export default _default;
|
|
@@ -2,5 +2,6 @@ import { PageLinesSDK } from '../../sdkClient';
|
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
sdk: PageLinesSDK;
|
|
4
4
|
};
|
|
5
|
-
declare const
|
|
5
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
declare const _default: typeof __VLS_export;
|
|
6
7
|
export default _default;
|
|
@@ -2,5 +2,6 @@ import { PageLinesSDK } from '../../sdkClient';
|
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
sdk: PageLinesSDK;
|
|
4
4
|
};
|
|
5
|
-
declare const
|
|
5
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
declare const _default: typeof __VLS_export;
|
|
6
7
|
export default _default;
|