@meistrari/tela-build 1.76.0 → 1.77.1

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/CHANGELOG.md CHANGED
@@ -4,6 +4,7 @@ Latest updates and announcements.
4
4
 
5
5
  ## September 24, 2026
6
6
 
7
+ - [Floating chat](/templates/chat#floating): Escape now closes the topmost overlay before the chat. `TelaDialog`, `TelaModal`, `TelaSheet` and `TelaSideSheet` overlays carry `data-tela-escape-layer`, and [Dropdown Menu](/components/dropdown-menu) content has a new `escapeLayer` prop that adds the marker (`TelaDropdownMenu` sets it).
7
8
  - [Floating chat](/templates/chat#floating) adds `keepMounted` (default `false`); set it to `true` to hide the window on close instead of unmounting it, so polling and other work inside it keep running.
8
9
 
9
10
  ## September 22, 2026
@@ -1640,9 +1640,11 @@ type TextShimmerProps = {
1640
1640
  - **Keep the primitives logic-free.** Fetch, stream, and persist in the host; pass results down as props and slots. No primitive owns message state.
1641
1641
  - **`contained` for user messages, `flat` for assistant messages.** Assistant output reads as page text; user input reads as a sent bubble.
1642
1642
  - **Never hand-roll the toolbar layout.** `TelaChatPromptInputTools` (attachment actions) on the left, `TelaChatPromptInputActions` with `TelaChatModelSelector` + `TelaChatPromptSubmitButton` on the right. Always the same order; never substitute a raw `<div class="flex items-center gap-4px">`.
1643
+ - **Floating chat dismissal.** Outside clicks close the chat by default; set `closeOnOutsideClick` to `false` to keep it open while using the host page. Focus changes keep it open. Close it using the launcher toggle or Escape. Components guaranteed to render above the shared widget layer (`z-599`) must mark their open overlay or content with `data-tela-escape-layer`; Escape then closes that layer before the chat. Never add the marker to a surface at or below the widget layer.
1643
1644
  - **`TelaChatAnswer` never talks to the server.** Parsing the model's questions, limits on how many questions or options to ask, saved answers, retries and what happens after the last question all live in the host (or its adapter). Every event is intent only; `dismiss` does not remove the card.
1644
1645
  - **Dock the active answer card above the prompt input.** Put both inside one `[data-chat-composer]` wrapper with a 12px gap so `TelaChatBody` pins and measures them together. Only one card should be interactive at a time, especially when sharing a `keyboardTarget`.
1645
1646
  - **One shell per page.** Never mount `TelaChatFloatingWindow` and `TelaChatSidepanelWindow` at the same time.
1647
+ - **Keep the floating shell on the shared widget layer.** The launcher and popover use `z-599`, above full-screen editor panes and below modal overlays (`z-600` and higher). Do not lower either half independently or the launcher can become visible but unclickable.
1646
1648
  - **Always wrap the conversation and prompt input in `TelaChatBody`.** It owns the spacing and pins the prompt input to the bottom, and messages scroll under it through a progressive blur. `variant="widget"` (default) inside the floating/sidepanel shells, `variant="page"` on full pages. Never re-add spacing or positioning classes to `TelaChatConversation` or `TelaChatPromptInput`.
1647
1649
  - **The `#launcher` slot is optional; when provided it must be exactly one element.** It is an anchor, not a container; omit it to get the default `TelaChatFloatingWindowTrigger`.
1648
1650
  - **`TelaChatSidepanelWindow` goes last in a flex row.** It is in-flow (`position: sticky`), so the row reserves its width; never absolutely position it over the page.
@@ -54,7 +54,7 @@ const modalMaxWidth = computed(() => {
54
54
  <template>
55
55
  <DialogRoot v-model:open="open">
56
56
  <DialogPortal>
57
- <DialogOverlay :class="`DialogOverlay ${overlayClass ?? ''}`" bg="bg-#020913/24" z-600 overflow-y-auto flex items-center justify-center :p-16px="!fullscreen">
57
+ <DialogOverlay data-tela-escape-layer :class="`DialogOverlay ${overlayClass ?? ''}`" bg="bg-#020913/24" z-600 overflow-y-auto flex items-center justify-center :p-16px="!fullscreen">
58
58
  <DialogContent
59
59
  :class="`DialogContent shadow-xl ${modalMaxWidth ?? ''}`"
60
60
  z-101
@@ -78,6 +78,7 @@ function onToggle(open: boolean) {
78
78
  </DropdownMenuTrigger>
79
79
 
80
80
  <DropdownMenuContent
81
+ escape-layer
81
82
  :align="align"
82
83
  :side-offset="sideOffset"
83
84
  :class="cn('min-w-128px! z-605!', contentClass)"
@@ -9,7 +9,7 @@ import { computed } from 'vue'
9
9
  import type { HTMLAttributes } from 'vue'
10
10
 
11
11
  const props = withDefaults(
12
- defineProps<DropdownMenuContentProps & { class?: HTMLAttributes['class'] }>(),
12
+ defineProps<DropdownMenuContentProps & { class?: HTMLAttributes['class'], escapeLayer?: boolean }>(),
13
13
  {
14
14
  sideOffset: 4,
15
15
  },
@@ -17,7 +17,7 @@ const props = withDefaults(
17
17
  const emits = defineEmits<DropdownMenuContentEmits>()
18
18
 
19
19
  const delegatedProps = computed(() => {
20
- const { class: _, ...delegated } = props
20
+ const { class: _, escapeLayer: _escapeLayer, ...delegated } = props
21
21
 
22
22
  return delegated
23
23
  })
@@ -28,6 +28,7 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits)
28
28
  <template>
29
29
  <DropdownMenuPortal>
30
30
  <DropdownMenuContent
31
+ :data-tela-escape-layer="escapeLayer ? '' : undefined"
31
32
  v-bind="forwarded"
32
33
  :class="cn('DropdownMenuContent popover-enter-exit z-50 min-w-60 overflow-hidden rounded-2xl border-[0.5px] border-gray-300 bg-white-1000 p-1 shadow-sm', props.class)"
33
34
  >
@@ -85,7 +85,7 @@ function handlePointerDownOutside(event: any) {
85
85
  <template>
86
86
  <DialogRoot v-model:open="open">
87
87
  <DialogPortal>
88
- <DialogOverlay :class="`DialogOverlay ${overlayClass ?? ''}`" bg="#000/35" z-600 overflow-y-auto flex items-center justify-center :p-16px="!fullscreen">
88
+ <DialogOverlay data-tela-escape-layer :class="`DialogOverlay ${overlayClass ?? ''}`" bg="#000/35" z-600 overflow-y-auto flex items-center justify-center :p-16px="!fullscreen">
89
89
  <DialogContent
90
90
  :data-animation="hideEnterAnimation"
91
91
  :class="cn('DialogContent shadow-xl', modalMaxWidth, dialogContentClass)"
@@ -39,6 +39,7 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits)
39
39
  <template>
40
40
  <DialogPortal>
41
41
  <DialogOverlay
42
+ data-tela-escape-layer
42
43
  class="fixed inset-0 z-999 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0"
43
44
  />
44
45
  <DialogContent
@@ -17,7 +17,7 @@ defineOptions({
17
17
  })
18
18
 
19
19
  const props = defineProps<{
20
- title?: string,
20
+ title?: string
21
21
  modalWidth?: 'md' | 'lg'
22
22
  compact?: boolean
23
23
  fullscreen?: boolean
@@ -66,7 +66,7 @@ function handlePointerDownOutside(event: any) {
66
66
  <template>
67
67
  <DialogRoot v-model:open="open">
68
68
  <DialogPortal>
69
- <DialogOverlay class="DialogOverlay" :class="overlayClass" bg="gray-700/70" z-600>
69
+ <DialogOverlay data-tela-escape-layer class="DialogOverlay" :class="overlayClass" bg="gray-700/70" z-600>
70
70
  <DialogContent
71
71
  z-101
72
72
  relative w-full flex="~ col"
@@ -31,7 +31,7 @@ watch(open, (value) => {
31
31
  <template>
32
32
  <DialogRoot v-model:open="open">
33
33
  <DialogPortal>
34
- <DialogOverlay class="DialogOverlay" :class="overlayClass" bg="gray-700/70" z-600>
34
+ <DialogOverlay data-tela-escape-layer class="DialogOverlay" :class="overlayClass" bg="gray-700/70" z-600>
35
35
  <DialogContent
36
36
  :class="`DialogContent ${$attrs?.class}`"
37
37
  z-101
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meistrari/tela-build",
3
- "version": "1.76.0",
3
+ "version": "1.77.1",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "app.config.ts",
package/utils/avatar.ts CHANGED
@@ -17,7 +17,7 @@ const MAX_AVATAR_BYTES = 5 * 1024 * 1024
17
17
  type PublicRuntimeConfig = {
18
18
  baseUrl?: string
19
19
  authApiUrl?: string
20
- avatarBucketUrl?: string
20
+ avatarAssetsUrl?: string
21
21
  avatarAllowedOrigins?: string
22
22
  }
23
23
 
@@ -61,7 +61,7 @@ function getConfiguredAvatarHosts(config: PublicRuntimeConfig): string[] {
61
61
  const origins = [
62
62
  config.baseUrl,
63
63
  config.authApiUrl,
64
- config.avatarBucketUrl,
64
+ config.avatarAssetsUrl,
65
65
  ...(config.avatarAllowedOrigins?.split(',') ?? []),
66
66
  ]
67
67