@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
|
@@ -1,181 +0,0 @@
|
|
|
1
|
-
var M = Object.defineProperty;
|
|
2
|
-
var m = (e, l) => M(e, "name", { value: l, configurable: !0 });
|
|
3
|
-
import { defineComponent as $, ref as v, onMounted as g, openBlock as s, createElementBlock as c, createElementVNode as i, normalizeClass as d, computed as C, watch as E, onUnmounted as A, createBlock as x, Teleport as V, createVNode as h, Transition as k, withCtx as w, createCommentVNode as n, normalizeProps as L, guardReactiveProps as S, withModifiers as T, toDisplayString as N, renderSlot as z } from "vue";
|
|
4
|
-
const j = ["aria-label"], P = { class: "absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[28px] h-[28px] overflow-hidden" }, U = /* @__PURE__ */ $({
|
|
5
|
-
name: "FClose",
|
|
6
|
-
__name: "FClose",
|
|
7
|
-
props: {
|
|
8
|
-
ariaLabel: {}
|
|
9
|
-
},
|
|
10
|
-
emits: ["click"],
|
|
11
|
-
setup(e) {
|
|
12
|
-
const l = v(!1);
|
|
13
|
-
return g(() => {
|
|
14
|
-
setTimeout(() => {
|
|
15
|
-
l.value = !0;
|
|
16
|
-
}, 100);
|
|
17
|
-
}), (u, o) => (s(), c("button", {
|
|
18
|
-
type: "button",
|
|
19
|
-
"aria-label": e.ariaLabel || "Close",
|
|
20
|
-
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",
|
|
21
|
-
onClick: o[0] || (o[0] = (r) => u.$emit("click", r))
|
|
22
|
-
}, [
|
|
23
|
-
o[1] || (o[1] = i("span", { class: "absolute inset-0 rounded-full transition-all" }, null, -1)),
|
|
24
|
-
i("span", P, [
|
|
25
|
-
i("span", {
|
|
26
|
-
class: d(["absolute h-full w-[3px] rounded-[5px] left-[13px] transition-all duration-[400ms] ease-[cubic-bezier(0.52,0.01,0.16,1)]", l.value ? "translate-y-0 translate-x-0 rotate-45" : "translate-y-[30px] -translate-x-[30px] rotate-0"]),
|
|
27
|
-
style: { "background-color": "currentColor", "transition-delay": "0.15s" }
|
|
28
|
-
}, null, 2),
|
|
29
|
-
i("span", {
|
|
30
|
-
class: d(["absolute h-full w-[3px] rounded-[5px] left-[13px] transition-all duration-[400ms] ease-[cubic-bezier(0.52,0.01,0.16,1)]", l.value ? "translate-y-0 translate-x-0 -rotate-45" : "-translate-y-[30px] -translate-x-[30px] rotate-0"]),
|
|
31
|
-
style: { "background-color": "currentColor", "transition-delay": "0.45s" }
|
|
32
|
-
}, null, 2)
|
|
33
|
-
])
|
|
34
|
-
], 8, j));
|
|
35
|
-
}
|
|
36
|
-
}), D = { class: "flex min-h-full items-center justify-center text-center p-4" }, K = {
|
|
37
|
-
key: 0,
|
|
38
|
-
class: "text-base p-4 font-semibold"
|
|
39
|
-
}, R = {
|
|
40
|
-
key: 1,
|
|
41
|
-
class: "flex items-center gap-2 px-2"
|
|
42
|
-
}, q = {
|
|
43
|
-
inheritAttrs: !1
|
|
44
|
-
}, I = /* @__PURE__ */ $({
|
|
45
|
-
...q,
|
|
46
|
-
name: "FModal",
|
|
47
|
-
__name: "FModal",
|
|
48
|
-
props: {
|
|
49
|
-
vis: { type: Boolean, default: !1 },
|
|
50
|
-
modalClass: {},
|
|
51
|
-
styleClass: {},
|
|
52
|
-
fullScreen: { type: Boolean, default: !1 },
|
|
53
|
-
hasClose: { type: Boolean, default: !1 },
|
|
54
|
-
title: { default: "" },
|
|
55
|
-
transitionMode: { default: "modal" },
|
|
56
|
-
teleportTo: { default: "body" },
|
|
57
|
-
disableTeleport: { type: Boolean, default: !1 }
|
|
58
|
-
},
|
|
59
|
-
emits: ["update:vis", "close", "escape"],
|
|
60
|
-
setup(e, { emit: l }) {
|
|
61
|
-
const u = l, o = v(!1);
|
|
62
|
-
function r(t) {
|
|
63
|
-
const { reason: a } = t;
|
|
64
|
-
u("update:vis", !1), u("close", !0), a === "escape" && u("escape", !0);
|
|
65
|
-
}
|
|
66
|
-
m(r, "close");
|
|
67
|
-
const F = C(() => {
|
|
68
|
-
const t = e.modalClass ? [e.modalClass] : ["max-w-screen-md p-24"], a = e.styleClass ? [e.styleClass] : ["bg-theme-0", "shadow-xl"];
|
|
69
|
-
return e.fullScreen ? t.push("fixed inset-0") : t.push("rounded-2xl"), [
|
|
70
|
-
"relative",
|
|
71
|
-
"text-left",
|
|
72
|
-
"transform",
|
|
73
|
-
"transition-all",
|
|
74
|
-
"w-full",
|
|
75
|
-
"overflow-hidden",
|
|
76
|
-
...t,
|
|
77
|
-
...a
|
|
78
|
-
];
|
|
79
|
-
}), y = v(!1), f = [];
|
|
80
|
-
function b(t) {
|
|
81
|
-
t.key === "Escape" && e.vis && r({ reason: "escape" });
|
|
82
|
-
}
|
|
83
|
-
m(b, "onKeydown"), g(async () => {
|
|
84
|
-
o.value = !0;
|
|
85
|
-
const t = E(
|
|
86
|
-
() => e.vis,
|
|
87
|
-
(a) => {
|
|
88
|
-
a ? setTimeout(() => y.value = !0, 300) : y.value = !1;
|
|
89
|
-
},
|
|
90
|
-
{ immediate: !0 }
|
|
91
|
-
);
|
|
92
|
-
f.push(t), typeof document < "u" && (document.addEventListener("keydown", b), f.push(() => document.removeEventListener("keydown", b)));
|
|
93
|
-
}), A(() => {
|
|
94
|
-
f.forEach((t) => t());
|
|
95
|
-
});
|
|
96
|
-
const B = C(() => e.transitionMode === "slideUp" ? {
|
|
97
|
-
enterActiveClass: "ease-[cubic-bezier(0.25,1,0.33,1)] duration-500",
|
|
98
|
-
enterFromClass: "opacity-0 translate-y-full scale-95",
|
|
99
|
-
enterToClass: "opacity-100 translate-y-0 scale-100",
|
|
100
|
-
leaveActiveClass: "ease-[cubic-bezier(0.25,1,0.33,1)] duration-500",
|
|
101
|
-
leaveFromClass: "opacity-100 translate-y-0 scale-100",
|
|
102
|
-
leaveToClass: "opacity-0 translate-y-full scale-95"
|
|
103
|
-
} : {
|
|
104
|
-
enterActiveClass: "ease-[cubic-bezier(0.25,1,0.33,1)] duration-500",
|
|
105
|
-
enterFromClass: "opacity-0 scale-75",
|
|
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 scale-75"
|
|
110
|
-
});
|
|
111
|
-
return (t, a) => o.value ? (s(), x(V, {
|
|
112
|
-
key: 0,
|
|
113
|
-
to: e.teleportTo,
|
|
114
|
-
disabled: e.disableTeleport
|
|
115
|
-
}, [
|
|
116
|
-
i("div", {
|
|
117
|
-
class: d(["fixed inset-0 z-50", e.vis ? "" : "pointer-events-none"]),
|
|
118
|
-
"aria-labelledby": "modal-title",
|
|
119
|
-
role: "dialog",
|
|
120
|
-
"aria-modal": "true"
|
|
121
|
-
}, [
|
|
122
|
-
h(k, {
|
|
123
|
-
"enter-active-class": "ease-out duration-300",
|
|
124
|
-
"enter-from-class": "opacity-0",
|
|
125
|
-
"enter-to-class": "opacity-100",
|
|
126
|
-
"leave-active-class": "ease-in duration-200",
|
|
127
|
-
"leave-from-class": "opacity-100",
|
|
128
|
-
"leave-to-class": "opacity-0"
|
|
129
|
-
}, {
|
|
130
|
-
default: w(() => [
|
|
131
|
-
e.vis ? (s(), c("div", {
|
|
132
|
-
key: 0,
|
|
133
|
-
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",
|
|
134
|
-
onClick: a[0] || (a[0] = (p) => r({ reason: "escape" }))
|
|
135
|
-
})) : n("", !0)
|
|
136
|
-
]),
|
|
137
|
-
_: 1
|
|
138
|
-
}),
|
|
139
|
-
i("div", {
|
|
140
|
-
class: "fixed inset-0 z-40 overflow-y-auto overscroll-contain no-scrollbar",
|
|
141
|
-
onClick: a[3] || (a[3] = (p) => r({ reason: "escape" }))
|
|
142
|
-
}, [
|
|
143
|
-
i("div", D, [
|
|
144
|
-
h(k, L(S(B.value)), {
|
|
145
|
-
default: w(() => [
|
|
146
|
-
e.vis ? (s(), c("div", {
|
|
147
|
-
key: 0,
|
|
148
|
-
class: d([F.value, "w-full"]),
|
|
149
|
-
onClick: a[2] || (a[2] = T(() => {
|
|
150
|
-
}, ["stop"]))
|
|
151
|
-
}, [
|
|
152
|
-
e.hasClose || e.title || t.$slots.actions ? (s(), c("div", {
|
|
153
|
-
key: 0,
|
|
154
|
-
class: d(!e.title && (e.hasClose || t.$slots.actions) ? "absolute top-0 right-0 z-10" : "flex justify-between items-center")
|
|
155
|
-
}, [
|
|
156
|
-
e.title ? (s(), c("h2", K, N(e.title), 1)) : n("", !0),
|
|
157
|
-
e.hasClose || t.$slots.actions ? (s(), c("div", R, [
|
|
158
|
-
z(t.$slots, "actions"),
|
|
159
|
-
e.hasClose ? (s(), x(U, {
|
|
160
|
-
key: 0,
|
|
161
|
-
class: "relative",
|
|
162
|
-
"data-test-id": "close-modal",
|
|
163
|
-
onClick: a[1] || (a[1] = T((p) => r({ reason: "escape" }), ["stop"]))
|
|
164
|
-
})) : n("", !0)
|
|
165
|
-
])) : n("", !0)
|
|
166
|
-
], 2)) : n("", !0),
|
|
167
|
-
z(t.$slots, "default")
|
|
168
|
-
], 2)) : n("", !0)
|
|
169
|
-
]),
|
|
170
|
-
_: 3
|
|
171
|
-
}, 16)
|
|
172
|
-
])
|
|
173
|
-
])
|
|
174
|
-
], 2)
|
|
175
|
-
], 8, ["to", "disabled"])) : n("", !0);
|
|
176
|
-
}
|
|
177
|
-
});
|
|
178
|
-
export {
|
|
179
|
-
I as _
|
|
180
|
-
};
|
|
181
|
-
//# sourceMappingURL=FModal.vue_vue_type_script_setup_true_lang.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FModal.vue_vue_type_script_setup_true_lang.js","sources":["../ui/FClose.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/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"],"names":["inView","ref","onMounted","_createElementBlock","__props","_cache","$event","$emit","_createElementVNode","_hoisted_2","_normalizeClass","__default__","emit","__emit","isMounted","close","args","reason","__name","classes","computed","cls","style","afterVisible","cleanups","onKeydown","event","unwatch","watch","vis","onUnmounted","c","modalTransition","_createBlock","_Teleport","_createVNode","_Transition","_hoisted_1","$slots","_toDisplayString","_openBlock","_hoisted_3","_renderSlot","_ctx","FClose"],"mappings":";;;;;;;;;;;AAeA,UAAMA,IAASC,EAAI,EAAK;AAExB,WAAAC,EAAU,MAAM;AACd,iBAAW,MAAM;AACf,QAAAF,EAAO,QAAQ;AAAA,MACjB,GAAG,GAAG;AAAA,IACR,CAAC,mBAICG,EAyBS,UAAA;AAAA,MAxBP,MAAK;AAAA,MACJ,cAAYC,EAAA,aAAS;AAAA,MACtB,OAAM;AAAA,MACL,SAAKC,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAA,CAAAC,MAAEC,EAAAA,MAAK,SAAUD,CAAM;AAAA,IAAA;sBAG7BE,EAA6D,QAAA,EAAvD,OAAM,+CAAA,GAA8C,MAAA,EAAA;AAAA,MAG1DA,EAcO,QAdPC,GAcO;AAAA,QAZLD,EAIE,QAAA;AAAA,UAHA,OAAKE,EAAA,CAAC,2HACEV,EAAA,QAAM,0CAAA,iDAAA,CAAA;AAAA,UACd,OAAA,EAAA,oBAAA,gBAAA,oBAAA,QAAA;AAAA,QAAA;QAIFQ,EAIE,QAAA;AAAA,UAHA,OAAKE,EAAA,CAAC,2HACEV,EAAA,QAAM,2CAAA,kDAAA,CAAA;AAAA,UACd,OAAA,EAAA,oBAAA,gBAAA,oBAAA,QAAA;AAAA,QAAA;;;;;;;;;;GC8ERW,IAAe;AAAA,EACb,cAAc;AAChB;;;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|
-
/**
|
|
2
|
-
* Conversation-membership wire-shape contracts.
|
|
3
|
-
*
|
|
4
|
-
* The fixtures below use `satisfies ApiResponse<T>` so a contract drift in
|
|
5
|
-
* `@pagelines/core/wire` fails *compile*, not production. If the server's
|
|
6
|
-
* `ApiResponse` envelope evolves OR an inner shape changes
|
|
7
|
-
* (`ConversationSummary`, `ConversationUpdatedEvent`, `MessageSearchResult`),
|
|
8
|
-
* these literals stop type-checking and the SDK/iOS owner gets a CI red light
|
|
9
|
-
* with a one-line update instead of a runtime decode failure on devices.
|
|
10
|
-
*
|
|
11
|
-
* See plans/testing/testing-overview.md → "Pin the wire shape between server and
|
|
12
|
-
* clients" — the same pattern as `sdk-token-capture.test.ts`.
|
|
13
|
-
*/
|
|
14
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|