@voicenter-team/voicenter-ui-plus 3.4.6 → 3.4.8
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/README.md +65 -9
- package/library/assets/assets/sass/main.css +1 -1
- package/library/assets/components/VcChatComposer/VcChatComposer.css +1 -1
- package/library/assets/components/VcMessage/VcMessage.css +1 -1
- package/library/assets/components/VcMessage/VcMessageMeta.css +1 -0
- package/library/assets/components/VcMessage/content/VcMessageVideoBlock.css +1 -0
- package/library/assets/components/VcMessagesWrapper/VcMessagesWrapper.css +1 -1
- package/library/components/VcChatComposer/VcChatComposer.vue.mjs +38 -27
- package/library/components/VcChatComposer/richText.mjs +8 -0
- package/library/components/VcExcelUploader/VcExcelFileUploader.vue.mjs +1 -0
- package/library/components/VcExcelUploader/VcFileImportResultBindData.vue.mjs +1 -1
- package/library/components/VcMessage/VcMessage.vue.mjs +65 -40
- package/library/components/VcMessage/VcMessageMeta.vue.mjs +49 -0
- package/library/components/VcMessage/VcMessageMeta.vue3.mjs +5 -0
- package/library/components/VcMessage/content/VcMessageAudioBlock.vue.mjs +3 -9
- package/library/components/VcMessage/content/VcMessageImageBlock.vue.mjs +1 -1
- package/library/components/VcMessage/content/VcMessageVideoBlock.vue.mjs +60 -0
- package/library/components/VcMessage/content/VcMessageVideoBlock.vue3.mjs +5 -0
- package/library/components/VcMessage/content/formatDuration.mjs +10 -0
- package/library/components/VcMessage/content/messageContentComponents.mjs +8 -5
- package/library/components/VcMessagesWrapper/VcMessagesWrapper.vue.mjs +167 -63
- package/library/components/VcMessagesWrapper/VcMessagesWrapperRow.vue.mjs +83 -0
- package/library/components/VcMessagesWrapper/VcMessagesWrapperRow.vue2.mjs +4 -0
- package/library/localization/locales/en.json.mjs +8 -1
- package/library/style.css +8 -4
- package/library/style.css.br +0 -0
- package/library/style.css.gz +0 -0
- package/library/types/components/VcChatComposer/VcChatComposer.vue.d.ts +29 -2
- package/library/types/components/VcExcelUploader/VcExcelFileUploader.vue.d.ts +1 -2
- package/library/types/components/VcMessage/VcMessage.vue.d.ts +20 -2
- package/library/types/components/VcMessage/VcMessageMeta.vue.d.ts +24 -0
- package/library/types/components/VcMessage/content/VcMessageVideoBlock.vue.d.ts +24 -0
- package/library/types/components/VcMessage/content/formatDuration.d.ts +4 -0
- package/library/types/components/VcMessagesWrapper/VcMessagesWrapper.vue.d.ts +20 -2
- package/library/types/components/VcMessagesWrapper/VcMessagesWrapperRow.vue.d.ts +49 -0
- package/library/types/components/VcModal/VcConfirmModal.vue.d.ts +1 -1
- package/library/types/localization/locales/en.json.d.ts +8 -1
- package/library/types/types/VcChatComposer.types.d.ts +3 -2
- package/library/types/types/VcMessage.types.d.ts +48 -3
- package/library/types/types/VcMessagesWrapper.types.d.ts +30 -1
- package/package.json +1 -1
|
@@ -1,16 +1,27 @@
|
|
|
1
|
-
import type { VcChatMessage, VcChatMessageId, VcMessageOption, VcMessagesWrapperProps } from '../../types';
|
|
1
|
+
import type { VcChatMessage, VcChatMessageId, VcMessageOption, VcMessagesWrapperProps, VcMessagesWrapperScrollOptions } from '../../types';
|
|
2
2
|
declare function scrollToBottom(behavior?: ScrollBehavior): void;
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Scrolls to a rendered message (to the center, smoothly by default). Returns false if it is not rendered.
|
|
5
|
+
*/
|
|
6
|
+
declare function scrollToMessage(id: VcChatMessageId, options?: VcMessagesWrapperScrollOptions): boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Scrolls the "New messages" divider to the top (instantly by default). Returns false if there is no divider.
|
|
9
|
+
*/
|
|
10
|
+
declare function scrollToUnread(options?: VcMessagesWrapperScrollOptions): boolean;
|
|
11
|
+
declare function isAtBottom(): boolean;
|
|
4
12
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<VcMessagesWrapperProps>, {
|
|
5
13
|
options: undefined;
|
|
6
14
|
additionalOptions: undefined;
|
|
7
15
|
reactionEmojis: undefined;
|
|
16
|
+
unreadFromId: undefined;
|
|
8
17
|
scrollThreshold: number;
|
|
9
18
|
dateFormat: string;
|
|
10
19
|
timeFormat: string;
|
|
11
20
|
}>>, {
|
|
12
21
|
scrollToBottom: typeof scrollToBottom;
|
|
13
22
|
scrollToMessage: typeof scrollToMessage;
|
|
23
|
+
scrollToUnread: typeof scrollToUnread;
|
|
24
|
+
isAtBottom: typeof isAtBottom;
|
|
14
25
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
15
26
|
"reached-top": () => void;
|
|
16
27
|
"reached-bottom": () => void;
|
|
@@ -18,10 +29,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
|
|
|
18
29
|
"reply-click": (message: VcChatMessage) => void;
|
|
19
30
|
"content-click": (message: VcChatMessage) => void;
|
|
20
31
|
"reaction-toggle": (emoji: string, message: VcChatMessage) => void;
|
|
32
|
+
seen: (message: VcChatMessage) => void;
|
|
21
33
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<VcMessagesWrapperProps>, {
|
|
22
34
|
options: undefined;
|
|
23
35
|
additionalOptions: undefined;
|
|
24
36
|
reactionEmojis: undefined;
|
|
37
|
+
unreadFromId: undefined;
|
|
25
38
|
scrollThreshold: number;
|
|
26
39
|
dateFormat: string;
|
|
27
40
|
timeFormat: string;
|
|
@@ -32,6 +45,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
|
|
|
32
45
|
"onReaction-toggle"?: ((emoji: string, message: VcChatMessage) => any) | undefined;
|
|
33
46
|
"onReached-top"?: (() => any) | undefined;
|
|
34
47
|
"onReached-bottom"?: (() => any) | undefined;
|
|
48
|
+
onSeen?: ((message: VcChatMessage) => any) | undefined;
|
|
35
49
|
}>, {
|
|
36
50
|
options: import('../../types').VcChatMessageOptionsFn;
|
|
37
51
|
dateFormat: string;
|
|
@@ -39,12 +53,16 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
|
|
|
39
53
|
scrollThreshold: number;
|
|
40
54
|
additionalOptions: import('../../types').VcChatMessageAdditionalOptionsFn;
|
|
41
55
|
reactionEmojis: string[];
|
|
56
|
+
unreadFromId: VcChatMessageId | null;
|
|
42
57
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
43
58
|
empty?(_: {}): any;
|
|
44
59
|
"date-divider"?(_: {
|
|
45
60
|
date: Date;
|
|
46
61
|
label: string;
|
|
47
62
|
}): any;
|
|
63
|
+
"unread-divider"?(_: {
|
|
64
|
+
label: string;
|
|
65
|
+
}): any;
|
|
48
66
|
}>;
|
|
49
67
|
export default _default;
|
|
50
68
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import type { Slot } from 'vue';
|
|
2
|
+
import type { VcChatMessage, VcChatMessageAdditionalOptionsFn, VcChatMessageOptionsFn, VcMessageOption } from '../../types';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
4
|
+
message: VcChatMessage;
|
|
5
|
+
isGroupStart: boolean;
|
|
6
|
+
showTime: boolean;
|
|
7
|
+
time: string;
|
|
8
|
+
options?: VcChatMessageOptionsFn | undefined;
|
|
9
|
+
additionalOptions?: VcChatMessageAdditionalOptionsFn | undefined;
|
|
10
|
+
reactionEmojis?: string[] | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* The `message-header` slot of the wrapper. Passed as a prop, not forwarded as a slot:
|
|
13
|
+
* forwarded slots make Vue update every row on every render of the wrapper.
|
|
14
|
+
*/
|
|
15
|
+
headerSlot?: Slot | undefined;
|
|
16
|
+
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
17
|
+
"option-click": (event: string, message: VcChatMessage, option: VcMessageOption) => void;
|
|
18
|
+
"reply-click": (message: VcChatMessage) => void;
|
|
19
|
+
"content-click": (message: VcChatMessage) => void;
|
|
20
|
+
"reaction-toggle": (emoji: string, message: VcChatMessage) => void;
|
|
21
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
22
|
+
message: VcChatMessage;
|
|
23
|
+
isGroupStart: boolean;
|
|
24
|
+
showTime: boolean;
|
|
25
|
+
time: string;
|
|
26
|
+
options?: VcChatMessageOptionsFn | undefined;
|
|
27
|
+
additionalOptions?: VcChatMessageAdditionalOptionsFn | undefined;
|
|
28
|
+
reactionEmojis?: string[] | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* The `message-header` slot of the wrapper. Passed as a prop, not forwarded as a slot:
|
|
31
|
+
* forwarded slots make Vue update every row on every render of the wrapper.
|
|
32
|
+
*/
|
|
33
|
+
headerSlot?: Slot | undefined;
|
|
34
|
+
}>>> & Readonly<{
|
|
35
|
+
"onContent-click"?: ((message: VcChatMessage) => any) | undefined;
|
|
36
|
+
"onOption-click"?: ((event: string, message: VcChatMessage, option: VcMessageOption) => any) | undefined;
|
|
37
|
+
"onReply-click"?: ((message: VcChatMessage) => any) | undefined;
|
|
38
|
+
"onReaction-toggle"?: ((emoji: string, message: VcChatMessage) => any) | undefined;
|
|
39
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
40
|
+
export default _default;
|
|
41
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
42
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
43
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
44
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
45
|
+
} : {
|
|
46
|
+
type: import('vue').PropType<T[K]>;
|
|
47
|
+
required: true;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
@@ -28,9 +28,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
28
28
|
onClose?: (() => any) | undefined;
|
|
29
29
|
}>, {
|
|
30
30
|
appendTo: string | HTMLElement;
|
|
31
|
+
actions: IActionTypes;
|
|
31
32
|
confirmHeader: string;
|
|
32
33
|
confirmMessageDefault: string;
|
|
33
|
-
actions: IActionTypes;
|
|
34
34
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
35
35
|
export default _default;
|
|
36
36
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -166,9 +166,15 @@ declare const _default: {
|
|
|
166
166
|
"voicenterUi.message.deleted": "This message was deleted",
|
|
167
167
|
"voicenterUi.message.image": "Photo",
|
|
168
168
|
"voicenterUi.message.audio": "Voice message",
|
|
169
|
+
"voicenterUi.message.video": "Video",
|
|
169
170
|
"voicenterUi.message.react": "React",
|
|
170
171
|
"voicenterUi.message.addReaction": "Add reaction",
|
|
171
172
|
"voicenterUi.message.reactionUsersMore": "and {count} more",
|
|
173
|
+
"voicenterUi.message.status.pending": "Sending",
|
|
174
|
+
"voicenterUi.message.status.sent": "Sent",
|
|
175
|
+
"voicenterUi.message.status.delivered": "Delivered",
|
|
176
|
+
"voicenterUi.message.status.read": "Read",
|
|
177
|
+
"voicenterUi.message.status.failed": "Not sent",
|
|
172
178
|
"voicenterUi.emojiPicker.trigger": "Emoji",
|
|
173
179
|
"voicenterUi.emojiPicker.recent": "Frequently used",
|
|
174
180
|
"voicenterUi.fileItem.uploadFailed": "Upload failed",
|
|
@@ -183,7 +189,8 @@ declare const _default: {
|
|
|
183
189
|
"voicenterUi.chatComposer.dropFiles": "Drop files to attach",
|
|
184
190
|
"voicenterUi.chatComposer.microphoneError": "The microphone is not available",
|
|
185
191
|
"voicenterUi.messagesWrapper.today": "Today",
|
|
186
|
-
"voicenterUi.messagesWrapper.yesterday": "Yesterday"
|
|
192
|
+
"voicenterUi.messagesWrapper.yesterday": "Yesterday",
|
|
193
|
+
"voicenterUi.messagesWrapper.newMessages": "New messages"
|
|
187
194
|
}
|
|
188
195
|
;
|
|
189
196
|
|
|
@@ -28,7 +28,7 @@ export interface VcChatComposerFormat<Value = unknown> {
|
|
|
28
28
|
parse: (value: Value) => VcChatRichText;
|
|
29
29
|
serialize: (richText: VcChatRichText) => Value;
|
|
30
30
|
}
|
|
31
|
-
export type VcChatComposerBuiltInFormat = 'entities' | 'markdown' | 'html';
|
|
31
|
+
export type VcChatComposerBuiltInFormat = 'text' | 'entities' | 'markdown' | 'html';
|
|
32
32
|
export interface VcChatMentionUser {
|
|
33
33
|
id: string | number;
|
|
34
34
|
name: string;
|
|
@@ -63,7 +63,8 @@ export interface VcChatComposerProps {
|
|
|
63
63
|
*/
|
|
64
64
|
modelValue?: unknown;
|
|
65
65
|
/**
|
|
66
|
-
* Value format: `entities` — `{ text, entities }`,
|
|
66
|
+
* Value format: `text` — a plain string (the formats are turned off), `entities` — `{ text, entities }`,
|
|
67
|
+
* `markdown`, `html` or a custom converter.
|
|
67
68
|
*/
|
|
68
69
|
format?: VcChatComposerBuiltInFormat | VcChatComposerFormat;
|
|
69
70
|
/**
|
|
@@ -45,7 +45,13 @@ export interface VcMessageReaction {
|
|
|
45
45
|
*/
|
|
46
46
|
users?: Array<string>;
|
|
47
47
|
}
|
|
48
|
-
export type VcMessageContentType = 'text' | 'image' | 'audio' | 'file';
|
|
48
|
+
export type VcMessageContentType = 'text' | 'image' | 'video' | 'audio' | 'file';
|
|
49
|
+
/**
|
|
50
|
+
* Delivery status of a message, usually set for own messages only:
|
|
51
|
+
* `pending` — being sent, `sent` — accepted by the server, `delivered` — reached the recipient,
|
|
52
|
+
* `read` — seen by the recipient, `failed` — not sent.
|
|
53
|
+
*/
|
|
54
|
+
export type VcMessageStatus = 'pending' | 'sent' | 'delivered' | 'read' | 'failed';
|
|
49
55
|
export interface VcTextMessageContent {
|
|
50
56
|
type: 'text';
|
|
51
57
|
text: string;
|
|
@@ -59,6 +65,31 @@ export interface VcImageMessageContent {
|
|
|
59
65
|
*/
|
|
60
66
|
width?: number;
|
|
61
67
|
height?: number;
|
|
68
|
+
/**
|
|
69
|
+
* Text shown under the image; also used by the reply preview.
|
|
70
|
+
*/
|
|
71
|
+
caption?: string;
|
|
72
|
+
}
|
|
73
|
+
export interface VcVideoMessageContent {
|
|
74
|
+
type: 'video';
|
|
75
|
+
url: string;
|
|
76
|
+
/**
|
|
77
|
+
* Image shown until the video is played.
|
|
78
|
+
*/
|
|
79
|
+
poster?: string;
|
|
80
|
+
/**
|
|
81
|
+
* Natural size in px. Reserves the space before the video loads, so the chat does not jump.
|
|
82
|
+
*/
|
|
83
|
+
width?: number;
|
|
84
|
+
height?: number;
|
|
85
|
+
/**
|
|
86
|
+
* Duration in seconds, shown in the reply preview.
|
|
87
|
+
*/
|
|
88
|
+
duration?: number;
|
|
89
|
+
/**
|
|
90
|
+
* Text shown under the video; also used by the reply preview.
|
|
91
|
+
*/
|
|
92
|
+
caption?: string;
|
|
62
93
|
}
|
|
63
94
|
export interface VcAudioMessageContent {
|
|
64
95
|
type: 'audio';
|
|
@@ -67,6 +98,10 @@ export interface VcAudioMessageContent {
|
|
|
67
98
|
* Duration in seconds, shown in the reply preview.
|
|
68
99
|
*/
|
|
69
100
|
duration?: number;
|
|
101
|
+
/**
|
|
102
|
+
* Text shown under the player; also used by the reply preview.
|
|
103
|
+
*/
|
|
104
|
+
caption?: string;
|
|
70
105
|
}
|
|
71
106
|
export interface VcFileMessageContent {
|
|
72
107
|
type: 'file';
|
|
@@ -80,8 +115,13 @@ export interface VcFileMessageContent {
|
|
|
80
115
|
* Size in bytes.
|
|
81
116
|
*/
|
|
82
117
|
size?: number;
|
|
118
|
+
/**
|
|
119
|
+
* Text shown under the file.
|
|
120
|
+
*/
|
|
121
|
+
caption?: string;
|
|
83
122
|
}
|
|
84
|
-
export type
|
|
123
|
+
export type VcMediaMessageContent = VcImageMessageContent | VcVideoMessageContent | VcAudioMessageContent | VcFileMessageContent;
|
|
124
|
+
export type VcMessageContent = VcTextMessageContent | VcMediaMessageContent;
|
|
85
125
|
export interface VcMessageReply {
|
|
86
126
|
author: string;
|
|
87
127
|
content: VcMessageContent;
|
|
@@ -117,9 +157,14 @@ export interface VcMessageProps {
|
|
|
117
157
|
*/
|
|
118
158
|
edited?: boolean;
|
|
119
159
|
/**
|
|
120
|
-
* Replaces the content with the "deleted" placeholder. Hides the reply, the edited label
|
|
160
|
+
* Replaces the content with the "deleted" placeholder. Hides the reply, the caption, the edited label,
|
|
161
|
+
* the status and the toolbar.
|
|
121
162
|
*/
|
|
122
163
|
deleted?: boolean;
|
|
164
|
+
/**
|
|
165
|
+
* Delivery status icon in the bottom end corner, next to the "Edited" label.
|
|
166
|
+
*/
|
|
167
|
+
status?: VcMessageStatus;
|
|
123
168
|
/**
|
|
124
169
|
* Overrides the localized "Edited" label.
|
|
125
170
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { VcMessageContent, VcMessageOption, VcMessageReaction, VcMessageReply } from './VcMessage.types';
|
|
1
|
+
import type { VcMessageContent, VcMessageOption, VcMessageReaction, VcMessageReply, VcMessageStatus } from './VcMessage.types';
|
|
2
2
|
export type VcChatMessageId = string | number;
|
|
3
3
|
export interface VcChatMessageSender {
|
|
4
4
|
/**
|
|
@@ -13,6 +13,10 @@ export interface VcChatMessageReply extends VcMessageReply {
|
|
|
13
13
|
*/
|
|
14
14
|
id?: VcChatMessageId;
|
|
15
15
|
}
|
|
16
|
+
/**
|
|
17
|
+
* Classes of a message row, in any form of the Vue `class` binding.
|
|
18
|
+
*/
|
|
19
|
+
export type VcChatMessageClass = string | Record<string, boolean> | Array<string | Record<string, boolean>>;
|
|
16
20
|
export interface VcChatMessage {
|
|
17
21
|
id: VcChatMessageId;
|
|
18
22
|
sender: VcChatMessageSender;
|
|
@@ -26,12 +30,21 @@ export interface VcChatMessage {
|
|
|
26
30
|
reactions?: Array<VcMessageReaction>;
|
|
27
31
|
isEdited?: boolean;
|
|
28
32
|
isDeleted?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Delivery status icon, usually set for own messages only.
|
|
35
|
+
*/
|
|
36
|
+
status?: VcMessageStatus;
|
|
37
|
+
/**
|
|
38
|
+
* Classes of the message row, e.g. to restyle a kind of messages through the `--vc-message-*` variables.
|
|
39
|
+
*/
|
|
40
|
+
class?: VcChatMessageClass;
|
|
29
41
|
}
|
|
30
42
|
export type VcChatMessageOptionsFn = (message: VcChatMessage) => Array<VcMessageOption>;
|
|
31
43
|
export type VcChatMessageAdditionalOptionsFn = (message: VcChatMessage) => Array<Array<VcMessageOption>>;
|
|
32
44
|
export interface VcMessagesWrapperProps {
|
|
33
45
|
/**
|
|
34
46
|
* Messages sorted by `createdAt`, oldest first.
|
|
47
|
+
* Keep the objects of unchanged messages: a message is re-rendered only when its object changes.
|
|
35
48
|
*/
|
|
36
49
|
messages: Array<VcChatMessage>;
|
|
37
50
|
/**
|
|
@@ -46,6 +59,11 @@ export interface VcMessagesWrapperProps {
|
|
|
46
59
|
* Emoji of the reaction picker, the same for every message.
|
|
47
60
|
*/
|
|
48
61
|
reactionEmojis?: Array<string>;
|
|
62
|
+
/**
|
|
63
|
+
* Id of the first unread message: the "New messages" divider is shown before it,
|
|
64
|
+
* and the wrapper starts scrolled to it instead of the bottom.
|
|
65
|
+
*/
|
|
66
|
+
unreadFromId?: VcChatMessageId | null;
|
|
49
67
|
/**
|
|
50
68
|
* Distance to the edge in px at which `reached-top` / `reached-bottom` are emitted.
|
|
51
69
|
*/
|
|
@@ -59,3 +77,14 @@ export interface VcMessagesWrapperProps {
|
|
|
59
77
|
*/
|
|
60
78
|
timeFormat?: string;
|
|
61
79
|
}
|
|
80
|
+
export interface VcMessagesWrapperScrollOptions {
|
|
81
|
+
behavior?: ScrollBehavior;
|
|
82
|
+
/**
|
|
83
|
+
* Where the element is placed in the visible area.
|
|
84
|
+
*/
|
|
85
|
+
block?: 'start' | 'center' | 'end';
|
|
86
|
+
/**
|
|
87
|
+
* Space in px kept between the element and the edge, for `start` and `end`.
|
|
88
|
+
*/
|
|
89
|
+
offset?: number;
|
|
90
|
+
}
|