polymorph-ui-components 0.1.0 → 0.3.0
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/Chat/Chat.svelte +144 -0
- package/dist/Chat/Chat.svelte.d.ts +4 -0
- package/dist/Chat/controller.svelte.d.ts +24 -0
- package/dist/Chat/controller.svelte.js +190 -0
- package/dist/Chat/properties.d.ts +50 -0
- package/dist/Chat/properties.js +1 -0
- package/dist/Chat/roles.d.ts +2 -0
- package/dist/Chat/roles.js +3 -0
- package/dist/Chat/types.d.ts +45 -0
- package/dist/Chat/types.js +1 -0
- package/dist/ChatBubble/ChatBubble.svelte +390 -0
- package/dist/ChatBubble/ChatBubble.svelte.d.ts +4 -0
- package/dist/ChatBubble/properties.d.ts +40 -0
- package/dist/ChatBubble/properties.js +1 -0
- package/dist/ChatComposer/ChatComposer.svelte +284 -0
- package/dist/ChatComposer/ChatComposer.svelte.d.ts +4 -0
- package/dist/ChatComposer/properties.d.ts +33 -0
- package/dist/ChatComposer/properties.js +1 -0
- package/dist/ChatHeader/ChatHeader.svelte +165 -0
- package/dist/ChatHeader/ChatHeader.svelte.d.ts +4 -0
- package/dist/ChatHeader/properties.d.ts +19 -0
- package/dist/ChatHeader/properties.js +1 -0
- package/dist/ChatMessage/ChatMessage.svelte +325 -0
- package/dist/ChatMessage/ChatMessage.svelte.d.ts +4 -0
- package/dist/ChatMessage/properties.d.ts +29 -0
- package/dist/ChatMessage/properties.js +1 -0
- package/dist/ChatMessageList/ChatMessageList.svelte +175 -0
- package/dist/ChatMessageList/ChatMessageList.svelte.d.ts +4 -0
- package/dist/ChatMessageList/properties.d.ts +21 -0
- package/dist/ChatMessageList/properties.js +1 -0
- package/dist/ChatSuggestions/ChatSuggestions.svelte +42 -0
- package/dist/ChatSuggestions/ChatSuggestions.svelte.d.ts +4 -0
- package/dist/ChatSuggestions/properties.d.ts +16 -0
- package/dist/ChatSuggestions/properties.js +1 -0
- package/dist/ChatToolStatus/ChatToolStatus.svelte +56 -0
- package/dist/ChatToolStatus/ChatToolStatus.svelte.d.ts +4 -0
- package/dist/ChatToolStatus/properties.d.ts +10 -0
- package/dist/ChatToolStatus/properties.js +1 -0
- package/dist/Draggable/Draggable.svelte +169 -0
- package/dist/Draggable/Draggable.svelte.d.ts +4 -0
- package/dist/Draggable/properties.d.ts +25 -0
- package/dist/Draggable/properties.js +1 -0
- package/dist/MediaPlayer/MediaPlayer.svelte +245 -0
- package/dist/MediaPlayer/MediaPlayer.svelte.d.ts +4 -0
- package/dist/MediaPlayer/properties.d.ts +27 -0
- package/dist/MediaPlayer/properties.js +1 -0
- package/dist/MediaUpload/MediaUpload.svelte +524 -0
- package/dist/MediaUpload/MediaUpload.svelte.d.ts +4 -0
- package/dist/MediaUpload/properties.d.ts +46 -0
- package/dist/MediaUpload/properties.js +1 -0
- package/dist/Resizable/Resizable.svelte +295 -0
- package/dist/Resizable/Resizable.svelte.d.ts +4 -0
- package/dist/Resizable/properties.d.ts +27 -0
- package/dist/Resizable/properties.js +1 -0
- package/dist/assets/add.svg +4 -0
- package/dist/assets/attach.svg +3 -0
- package/dist/assets/chat.svg +3 -0
- package/dist/assets/file.svg +4 -0
- package/dist/assets/mic.svg +5 -0
- package/dist/assets/mute.svg +5 -0
- package/dist/assets/pause.svg +4 -0
- package/dist/assets/play.svg +3 -0
- package/dist/assets/retry.svg +4 -0
- package/dist/assets/send.svg +4 -0
- package/dist/assets/stop.svg +3 -0
- package/dist/assets/thumb-down.svg +4 -0
- package/dist/assets/thumb-up.svg +4 -0
- package/dist/assets/volume.svg +5 -0
- package/dist/index.d.ts +27 -0
- package/dist/index.js +14 -0
- package/package.json +1 -1
|
@@ -0,0 +1,295 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import type { ResizableProperties, ResizeEdge } from './properties';
|
|
3
|
+
|
|
4
|
+
let {
|
|
5
|
+
width = $bindable(null),
|
|
6
|
+
height = $bindable(null),
|
|
7
|
+
minWidth = 0,
|
|
8
|
+
maxWidth = Number.POSITIVE_INFINITY,
|
|
9
|
+
minHeight = 0,
|
|
10
|
+
maxHeight = Number.POSITIVE_INFINITY,
|
|
11
|
+
handles = ['bottom-right'],
|
|
12
|
+
step = 16,
|
|
13
|
+
disabled = false,
|
|
14
|
+
handleLabel = 'Resize',
|
|
15
|
+
children,
|
|
16
|
+
onresize,
|
|
17
|
+
onresizestart,
|
|
18
|
+
onresizeend,
|
|
19
|
+
testId,
|
|
20
|
+
classes
|
|
21
|
+
}: ResizableProperties = $props();
|
|
22
|
+
|
|
23
|
+
const DIRS: Record<ResizeEdge, { x: -1 | 0 | 1; y: -1 | 0 | 1 }> = {
|
|
24
|
+
top: { x: 0, y: -1 },
|
|
25
|
+
right: { x: 1, y: 0 },
|
|
26
|
+
bottom: { x: 0, y: 1 },
|
|
27
|
+
left: { x: -1, y: 0 },
|
|
28
|
+
'top-left': { x: -1, y: -1 },
|
|
29
|
+
'top-right': { x: 1, y: -1 },
|
|
30
|
+
'bottom-left': { x: -1, y: 1 },
|
|
31
|
+
'bottom-right': { x: 1, y: 1 }
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
let container: HTMLElement | null = $state(null);
|
|
35
|
+
let active: {
|
|
36
|
+
edge: ResizeEdge;
|
|
37
|
+
pointerId: number;
|
|
38
|
+
startX: number;
|
|
39
|
+
startY: number;
|
|
40
|
+
startW: number;
|
|
41
|
+
startH: number;
|
|
42
|
+
} | null = $state(null);
|
|
43
|
+
|
|
44
|
+
let activeHandles = $derived(disabled ? [] : handles);
|
|
45
|
+
|
|
46
|
+
function clampWidth(value: number): number {
|
|
47
|
+
return Math.min(maxWidth, Math.max(minWidth, value));
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
function clampHeight(value: number): number {
|
|
51
|
+
return Math.min(maxHeight, Math.max(minHeight, value));
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
function measuredWidth(): number {
|
|
55
|
+
return typeof width === 'number' ? width : (container?.offsetWidth ?? 0);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
function measuredHeight(): number {
|
|
59
|
+
return typeof height === 'number' ? height : (container?.offsetHeight ?? 0);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
function axisOf(edge: ResizeEdge): 'x' | 'y' | 'both' {
|
|
63
|
+
const dir = DIRS[edge];
|
|
64
|
+
if (dir.x !== 0 && dir.y !== 0) {
|
|
65
|
+
return 'both';
|
|
66
|
+
}
|
|
67
|
+
return dir.x !== 0 ? 'x' : 'y';
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
function orientationOf(edge: ResizeEdge): 'horizontal' | 'vertical' | null {
|
|
71
|
+
const axis = axisOf(edge);
|
|
72
|
+
if (axis === 'x') {
|
|
73
|
+
return 'vertical';
|
|
74
|
+
}
|
|
75
|
+
if (axis === 'y') {
|
|
76
|
+
return 'horizontal';
|
|
77
|
+
}
|
|
78
|
+
return null;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
function startResize(
|
|
82
|
+
event: PointerEvent & { currentTarget: HTMLElement },
|
|
83
|
+
edge: ResizeEdge
|
|
84
|
+
): void {
|
|
85
|
+
if (disabled) {
|
|
86
|
+
return;
|
|
87
|
+
}
|
|
88
|
+
event.preventDefault();
|
|
89
|
+
const startW = clampWidth(measuredWidth());
|
|
90
|
+
const startH = clampHeight(measuredHeight());
|
|
91
|
+
width = startW;
|
|
92
|
+
height = startH;
|
|
93
|
+
active = {
|
|
94
|
+
edge,
|
|
95
|
+
pointerId: event.pointerId,
|
|
96
|
+
startX: event.clientX,
|
|
97
|
+
startY: event.clientY,
|
|
98
|
+
startW,
|
|
99
|
+
startH
|
|
100
|
+
};
|
|
101
|
+
event.currentTarget.setPointerCapture(event.pointerId);
|
|
102
|
+
onresizestart?.({ width: startW, height: startH });
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
function moveResize(event: PointerEvent): void {
|
|
106
|
+
if (active === null) {
|
|
107
|
+
return;
|
|
108
|
+
}
|
|
109
|
+
const dir = DIRS[active.edge];
|
|
110
|
+
if (dir.x !== 0) {
|
|
111
|
+
width = clampWidth(active.startW + dir.x * (event.clientX - active.startX));
|
|
112
|
+
}
|
|
113
|
+
if (dir.y !== 0) {
|
|
114
|
+
height = clampHeight(active.startH + dir.y * (event.clientY - active.startY));
|
|
115
|
+
}
|
|
116
|
+
onresize?.({ width: measuredWidth(), height: measuredHeight() });
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
function endResize(event: PointerEvent & { currentTarget: HTMLElement }): void {
|
|
120
|
+
if (active === null) {
|
|
121
|
+
return;
|
|
122
|
+
}
|
|
123
|
+
if (event.currentTarget.hasPointerCapture(event.pointerId)) {
|
|
124
|
+
event.currentTarget.releasePointerCapture(event.pointerId);
|
|
125
|
+
}
|
|
126
|
+
active = null;
|
|
127
|
+
onresizeend?.({ width: measuredWidth(), height: measuredHeight() });
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
function keyResize(event: KeyboardEvent, edge: ResizeEdge): void {
|
|
131
|
+
if (disabled) {
|
|
132
|
+
return;
|
|
133
|
+
}
|
|
134
|
+
const dir = DIRS[edge];
|
|
135
|
+
let nextWidth = measuredWidth();
|
|
136
|
+
let nextHeight = measuredHeight();
|
|
137
|
+
let handled = false;
|
|
138
|
+
|
|
139
|
+
if (dir.x !== 0 && (event.key === 'ArrowRight' || event.key === 'ArrowLeft')) {
|
|
140
|
+
nextWidth = clampWidth(nextWidth + (event.key === 'ArrowRight' ? step : -step));
|
|
141
|
+
handled = true;
|
|
142
|
+
}
|
|
143
|
+
if (dir.y !== 0 && (event.key === 'ArrowDown' || event.key === 'ArrowUp')) {
|
|
144
|
+
nextHeight = clampHeight(nextHeight + (event.key === 'ArrowDown' ? step : -step));
|
|
145
|
+
handled = true;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
if (handled) {
|
|
149
|
+
event.preventDefault();
|
|
150
|
+
width = nextWidth;
|
|
151
|
+
height = nextHeight;
|
|
152
|
+
onresize?.({ width: nextWidth, height: nextHeight });
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
function valueNow(edge: ResizeEdge): number | null {
|
|
157
|
+
const axis = axisOf(edge);
|
|
158
|
+
if (axis === 'y') {
|
|
159
|
+
return typeof height === 'number' ? height : null;
|
|
160
|
+
}
|
|
161
|
+
return typeof width === 'number' ? width : null;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
function valueMin(edge: ResizeEdge): number {
|
|
165
|
+
return axisOf(edge) === 'y' ? minHeight : minWidth;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
function valueMax(edge: ResizeEdge): number | null {
|
|
169
|
+
const max = axisOf(edge) === 'y' ? maxHeight : maxWidth;
|
|
170
|
+
return Number.isFinite(max) ? max : null;
|
|
171
|
+
}
|
|
172
|
+
</script>
|
|
173
|
+
|
|
174
|
+
<div
|
|
175
|
+
class="resizable {classes ?? ''}"
|
|
176
|
+
class:resizing={active !== null}
|
|
177
|
+
data-pw={testId}
|
|
178
|
+
bind:this={container}
|
|
179
|
+
style:width={typeof width === 'number' ? `${width}px` : null}
|
|
180
|
+
style:height={typeof height === 'number' ? `${height}px` : null}
|
|
181
|
+
>
|
|
182
|
+
{#if typeof children === 'function'}
|
|
183
|
+
{@render children()}
|
|
184
|
+
{/if}
|
|
185
|
+
|
|
186
|
+
{#each activeHandles as edge (edge)}
|
|
187
|
+
<!-- svelte-ignore a11y_no_noninteractive_tabindex -->
|
|
188
|
+
<!-- svelte-ignore a11y_no_noninteractive_element_interactions -->
|
|
189
|
+
<div
|
|
190
|
+
class="handle"
|
|
191
|
+
data-edge={edge}
|
|
192
|
+
role="separator"
|
|
193
|
+
tabindex="0"
|
|
194
|
+
aria-label={handleLabel}
|
|
195
|
+
aria-orientation={orientationOf(edge)}
|
|
196
|
+
aria-valuenow={valueNow(edge)}
|
|
197
|
+
aria-valuemin={valueMin(edge)}
|
|
198
|
+
aria-valuemax={valueMax(edge)}
|
|
199
|
+
onpointerdown={(event) => startResize(event, edge)}
|
|
200
|
+
onpointermove={moveResize}
|
|
201
|
+
onpointerup={endResize}
|
|
202
|
+
onkeydown={(event) => keyResize(event, edge)}
|
|
203
|
+
></div>
|
|
204
|
+
{/each}
|
|
205
|
+
</div>
|
|
206
|
+
|
|
207
|
+
<style>
|
|
208
|
+
.resizable {
|
|
209
|
+
position: relative;
|
|
210
|
+
box-sizing: border-box;
|
|
211
|
+
max-width: var(--resizable-max-width, none);
|
|
212
|
+
max-height: var(--resizable-max-height, none);
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.resizable.resizing {
|
|
216
|
+
user-select: none;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.handle {
|
|
220
|
+
position: absolute;
|
|
221
|
+
touch-action: none;
|
|
222
|
+
z-index: var(--resizable-handle-z-index, 2);
|
|
223
|
+
background: var(--resizable-handle-color, transparent);
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.handle:focus-visible {
|
|
227
|
+
outline: var(--resizable-handle-focus-outline, 2px solid #3b5bdb);
|
|
228
|
+
outline-offset: var(--resizable-handle-focus-outline-offset, -2px);
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.handle[data-edge='top'],
|
|
232
|
+
.handle[data-edge='bottom'] {
|
|
233
|
+
left: 0;
|
|
234
|
+
right: 0;
|
|
235
|
+
height: var(--resizable-edge-size, 8px);
|
|
236
|
+
cursor: ns-resize;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.handle[data-edge='left'],
|
|
240
|
+
.handle[data-edge='right'] {
|
|
241
|
+
top: 0;
|
|
242
|
+
bottom: 0;
|
|
243
|
+
width: var(--resizable-edge-size, 8px);
|
|
244
|
+
cursor: ew-resize;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.handle[data-edge='top'] {
|
|
248
|
+
top: 0;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
.handle[data-edge='bottom'] {
|
|
252
|
+
bottom: 0;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
.handle[data-edge='left'] {
|
|
256
|
+
left: 0;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.handle[data-edge='right'] {
|
|
260
|
+
right: 0;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
.handle[data-edge='top-left'],
|
|
264
|
+
.handle[data-edge='top-right'],
|
|
265
|
+
.handle[data-edge='bottom-left'],
|
|
266
|
+
.handle[data-edge='bottom-right'] {
|
|
267
|
+
width: var(--resizable-corner-size, 14px);
|
|
268
|
+
height: var(--resizable-corner-size, 14px);
|
|
269
|
+
z-index: var(--resizable-corner-z-index, 3);
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
.handle[data-edge='top-left'] {
|
|
273
|
+
top: 0;
|
|
274
|
+
left: 0;
|
|
275
|
+
cursor: nwse-resize;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
.handle[data-edge='top-right'] {
|
|
279
|
+
top: 0;
|
|
280
|
+
right: 0;
|
|
281
|
+
cursor: nesw-resize;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
.handle[data-edge='bottom-left'] {
|
|
285
|
+
bottom: 0;
|
|
286
|
+
left: 0;
|
|
287
|
+
cursor: nesw-resize;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
.handle[data-edge='bottom-right'] {
|
|
291
|
+
bottom: 0;
|
|
292
|
+
right: 0;
|
|
293
|
+
cursor: nwse-resize;
|
|
294
|
+
}
|
|
295
|
+
</style>
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { Snippet } from 'svelte';
|
|
2
|
+
export type ResizeEdge = 'top' | 'right' | 'bottom' | 'left' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
3
|
+
export type ResizeSize = {
|
|
4
|
+
width: number;
|
|
5
|
+
height: number;
|
|
6
|
+
};
|
|
7
|
+
export type ResizableProperties = OptionalResizableProperties & ResizableEventProperties;
|
|
8
|
+
export type OptionalResizableProperties = {
|
|
9
|
+
width?: number | null;
|
|
10
|
+
height?: number | null;
|
|
11
|
+
minWidth?: number;
|
|
12
|
+
maxWidth?: number;
|
|
13
|
+
minHeight?: number;
|
|
14
|
+
maxHeight?: number;
|
|
15
|
+
handles?: ResizeEdge[];
|
|
16
|
+
step?: number;
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
handleLabel?: string;
|
|
19
|
+
children?: Snippet;
|
|
20
|
+
testId?: string;
|
|
21
|
+
classes?: string;
|
|
22
|
+
};
|
|
23
|
+
export type ResizableEventProperties = {
|
|
24
|
+
onresize?: (size: ResizeSize) => void;
|
|
25
|
+
onresizestart?: (size: ResizeSize) => void;
|
|
26
|
+
onresizeend?: (size: ResizeSize) => void;
|
|
27
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z" />
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<rect x="9" y="2" width="6" height="12" rx="3" />
|
|
3
|
+
<path d="M5 11a7 7 0 0 0 14 0" />
|
|
4
|
+
<line x1="12" y1="18" x2="12" y2="22" />
|
|
5
|
+
</svg>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M4 9v6h4l5 5V4L8 9H4z" fill="currentColor" stroke="none" />
|
|
3
|
+
<line x1="16" y1="9" x2="21" y2="14" />
|
|
4
|
+
<line x1="21" y1="9" x2="16" y2="14" />
|
|
5
|
+
</svg>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M10 15v4a3 3 0 0 0 3 3l4-9V2H5.72a2 2 0 0 0-2 1.7l-1.38 9a2 2 0 0 0 2 2.3z" />
|
|
3
|
+
<path d="M17 2h3a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2h-3" />
|
|
4
|
+
</svg>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M14 9V5a3 3 0 0 0-3-3l-4 9v11h11.28a2 2 0 0 0 2-1.7l1.38-9a2 2 0 0 0-2-2.3z" />
|
|
3
|
+
<path d="M7 22H4a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h3" />
|
|
4
|
+
</svg>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M4 9v6h4l5 5V4L8 9H4z" fill="currentColor" stroke="none" />
|
|
3
|
+
<path d="M16 8.5a4 4 0 0 1 0 7" />
|
|
4
|
+
<path d="M18.5 6a7 7 0 0 1 0 12" />
|
|
5
|
+
</svg>
|
package/dist/index.d.ts
CHANGED
|
@@ -52,6 +52,20 @@ export { default as Phone } from './Phone/Phone.svelte';
|
|
|
52
52
|
export { default as Combobox } from './Combobox/Combobox.svelte';
|
|
53
53
|
export { default as ColorPicker } from './ColorPicker/ColorPicker.svelte';
|
|
54
54
|
export { default as SplitInput } from './SplitInput/SplitInput.svelte';
|
|
55
|
+
export { default as MediaPlayer } from './MediaPlayer/MediaPlayer.svelte';
|
|
56
|
+
export { default as MediaUpload } from './MediaUpload/MediaUpload.svelte';
|
|
57
|
+
export { default as Chat } from './Chat/Chat.svelte';
|
|
58
|
+
export { default as ChatMessage } from './ChatMessage/ChatMessage.svelte';
|
|
59
|
+
export { default as ChatMessageList } from './ChatMessageList/ChatMessageList.svelte';
|
|
60
|
+
export { default as ChatComposer } from './ChatComposer/ChatComposer.svelte';
|
|
61
|
+
export { default as ChatHeader } from './ChatHeader/ChatHeader.svelte';
|
|
62
|
+
export { default as ChatToolStatus } from './ChatToolStatus/ChatToolStatus.svelte';
|
|
63
|
+
export { default as ChatSuggestions } from './ChatSuggestions/ChatSuggestions.svelte';
|
|
64
|
+
export { default as Resizable } from './Resizable/Resizable.svelte';
|
|
65
|
+
export { default as Draggable } from './Draggable/Draggable.svelte';
|
|
66
|
+
export { default as ChatBubble } from './ChatBubble/ChatBubble.svelte';
|
|
67
|
+
export { ChatController } from './Chat/controller.svelte';
|
|
68
|
+
export { partyOf } from './Chat/roles';
|
|
55
69
|
export type * from './Button/properties';
|
|
56
70
|
export type * from './Modal/properties';
|
|
57
71
|
export type * from './Input/properties';
|
|
@@ -100,4 +114,17 @@ export type * from './Loader/properties';
|
|
|
100
114
|
export type * from './Combobox/properties';
|
|
101
115
|
export type * from './ColorPicker/properties';
|
|
102
116
|
export type * from './SplitInput/properties';
|
|
117
|
+
export type * from './MediaPlayer/properties';
|
|
118
|
+
export type * from './MediaUpload/properties';
|
|
119
|
+
export type * from './Chat/types';
|
|
120
|
+
export type * from './Chat/properties';
|
|
121
|
+
export type * from './ChatMessage/properties';
|
|
122
|
+
export type * from './ChatMessageList/properties';
|
|
123
|
+
export type * from './ChatComposer/properties';
|
|
124
|
+
export type * from './ChatHeader/properties';
|
|
125
|
+
export type * from './ChatToolStatus/properties';
|
|
126
|
+
export type * from './ChatSuggestions/properties';
|
|
127
|
+
export type * from './Resizable/properties';
|
|
128
|
+
export type * from './Draggable/properties';
|
|
129
|
+
export type * from './ChatBubble/properties';
|
|
103
130
|
export { validateInput } from './utils';
|
package/dist/index.js
CHANGED
|
@@ -52,4 +52,18 @@ export { default as Phone } from './Phone/Phone.svelte';
|
|
|
52
52
|
export { default as Combobox } from './Combobox/Combobox.svelte';
|
|
53
53
|
export { default as ColorPicker } from './ColorPicker/ColorPicker.svelte';
|
|
54
54
|
export { default as SplitInput } from './SplitInput/SplitInput.svelte';
|
|
55
|
+
export { default as MediaPlayer } from './MediaPlayer/MediaPlayer.svelte';
|
|
56
|
+
export { default as MediaUpload } from './MediaUpload/MediaUpload.svelte';
|
|
57
|
+
export { default as Chat } from './Chat/Chat.svelte';
|
|
58
|
+
export { default as ChatMessage } from './ChatMessage/ChatMessage.svelte';
|
|
59
|
+
export { default as ChatMessageList } from './ChatMessageList/ChatMessageList.svelte';
|
|
60
|
+
export { default as ChatComposer } from './ChatComposer/ChatComposer.svelte';
|
|
61
|
+
export { default as ChatHeader } from './ChatHeader/ChatHeader.svelte';
|
|
62
|
+
export { default as ChatToolStatus } from './ChatToolStatus/ChatToolStatus.svelte';
|
|
63
|
+
export { default as ChatSuggestions } from './ChatSuggestions/ChatSuggestions.svelte';
|
|
64
|
+
export { default as Resizable } from './Resizable/Resizable.svelte';
|
|
65
|
+
export { default as Draggable } from './Draggable/Draggable.svelte';
|
|
66
|
+
export { default as ChatBubble } from './ChatBubble/ChatBubble.svelte';
|
|
67
|
+
export { ChatController } from './Chat/controller.svelte';
|
|
68
|
+
export { partyOf } from './Chat/roles';
|
|
55
69
|
export { validateInput } from './utils';
|