@lumiastream/ui 0.2.8-alpha.9 → 0.2.9
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 +6 -6
- package/dist/LSButton.d.ts +32 -0
- package/dist/LSButton.js +80 -0
- package/dist/LSCheckbox.d.ts +21 -0
- package/dist/LSCheckbox.js +113 -0
- package/dist/LSColorPicker.d.ts +19 -0
- package/dist/LSColorPicker.js +316 -0
- package/dist/LSDatePicker.d.ts +15 -0
- package/dist/LSDatePicker.js +198 -0
- package/dist/LSFontPicker.d.ts +17 -0
- package/dist/LSFontPicker.js +179 -0
- package/dist/LSInput.d.ts +32 -0
- package/dist/LSInput.js +159 -0
- package/dist/LSMultiSelect.d.ts +16 -0
- package/dist/LSMultiSelect.js +274 -0
- package/dist/LSRadio.d.ts +17 -0
- package/dist/LSRadio.js +52 -0
- package/dist/LSSelect.d.ts +12 -0
- package/dist/LSSelect.js +140 -0
- package/dist/LSSliderInput.d.ts +39 -0
- package/dist/LSSliderInput.js +342 -0
- package/dist/LSTextField.d.ts +9 -0
- package/dist/LSTextField.js +63 -0
- package/dist/LSVariableInputField.d.ts +96 -0
- package/dist/LSVariableInputField.js +1402 -0
- package/dist/components.d.ts +22 -0
- package/dist/components.js +2317 -0
- package/dist/index.d.ts +26 -863
- package/dist/index.js +3068 -1446
- package/dist/se-import.d.ts +444 -0
- package/dist/se-import.js +8094 -0
- package/dist/utils/chatMedia.d.ts +106 -0
- package/dist/utils/chatMedia.js +611 -0
- package/dist/utils.d.ts +111 -0
- package/dist/utils.js +830 -0
- package/package.json +73 -6
package/dist/index.d.ts
CHANGED
|
@@ -1,863 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
/** Element placed before the children. */
|
|
28
|
-
startIcon?: ReactNode;
|
|
29
|
-
/** Element placed after the children. */
|
|
30
|
-
endIcon?: ReactNode;
|
|
31
|
-
/** The variant to use. */
|
|
32
|
-
variant?: LSButtonVariant;
|
|
33
|
-
/** Button contents. */
|
|
34
|
-
label?: ReactNode;
|
|
35
|
-
/** Adds wider horizontal padding. */
|
|
36
|
-
extended?: number;
|
|
37
|
-
style?: CSSProperties;
|
|
38
|
-
};
|
|
39
|
-
declare const LSButton: ({ label, disabled, loading, variant, extended, color, primary, backgroundColor, className, sx, style, ...props }: LSButtonProps) => react_jsx_runtime.JSX.Element;
|
|
40
|
-
|
|
41
|
-
interface LSInputPropsChild$1 {
|
|
42
|
-
id?: string;
|
|
43
|
-
name?: string;
|
|
44
|
-
label?: React.ReactNode;
|
|
45
|
-
inputRef?: any;
|
|
46
|
-
inputAfterText?: React.ReactNode;
|
|
47
|
-
inputBeforeText?: React.ReactNode;
|
|
48
|
-
startAdornment?: React.ReactNode;
|
|
49
|
-
endAdornment?: React.ReactNode;
|
|
50
|
-
InputProps?: any;
|
|
51
|
-
InputLabelProps?: any;
|
|
52
|
-
inputProps?: any;
|
|
53
|
-
centerText?: boolean;
|
|
54
|
-
maxWidth?: string;
|
|
55
|
-
$maxWidth?: string;
|
|
56
|
-
readOnly?: boolean;
|
|
57
|
-
onChange?: (event: any, value?: string | number) => void;
|
|
58
|
-
onChangeStart?: (event?: any, value?: string | number) => void;
|
|
59
|
-
onChangeEnd?: (event?: any, value?: string | number) => void;
|
|
60
|
-
$noMinHeight?: boolean;
|
|
61
|
-
$minHeight?: string;
|
|
62
|
-
bypasscolor?: 'inherit' | 'primary' | 'secondary' | 'default';
|
|
63
|
-
textColor?: string;
|
|
64
|
-
}
|
|
65
|
-
type ProtoExntends$2<T, U> = U & Omit<T, keyof U>;
|
|
66
|
-
type LSInputProps$1 = ProtoExntends$2<TextFieldProps, LSInputPropsChild$1>;
|
|
67
|
-
declare const LSInput: React.ForwardRefExoticComponent<Omit<LSInputProps$1, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
68
|
-
|
|
69
|
-
interface LSInputPropsChild {
|
|
70
|
-
name?: string;
|
|
71
|
-
value?: number | string | null;
|
|
72
|
-
autoFocus?: boolean;
|
|
73
|
-
defaultValue?: number | string | null;
|
|
74
|
-
label?: React.ReactNode;
|
|
75
|
-
inline?: boolean;
|
|
76
|
-
hasInfo?: boolean;
|
|
77
|
-
infoOpen?: () => void;
|
|
78
|
-
infoClose?: () => void;
|
|
79
|
-
type?: string;
|
|
80
|
-
isFloat?: boolean;
|
|
81
|
-
isMiliseconds?: boolean;
|
|
82
|
-
isFloatMiliseconds?: boolean;
|
|
83
|
-
step?: number;
|
|
84
|
-
min?: number;
|
|
85
|
-
max?: number;
|
|
86
|
-
inputAfterText?: string;
|
|
87
|
-
inputProps?: LSInputProps;
|
|
88
|
-
startIcon?: React.ElementType;
|
|
89
|
-
endIcon?: React.ElementType;
|
|
90
|
-
color?: 'primary' | 'secondary';
|
|
91
|
-
labelColor?: 'inherit' | 'initial' | 'primary' | 'secondary' | 'textPrimary' | 'textSecondary' | 'error';
|
|
92
|
-
onChange?: (value: any) => any;
|
|
93
|
-
fullWidth?: boolean;
|
|
94
|
-
helperText?: React.ReactNode;
|
|
95
|
-
hideInput?: boolean;
|
|
96
|
-
hideSlider?: boolean;
|
|
97
|
-
valueLabelFormat?: (value: number) => React.ReactNode;
|
|
98
|
-
}
|
|
99
|
-
type ProtoExntends$1<T, U> = U & Omit<T, keyof U>;
|
|
100
|
-
type LSInputProps = ProtoExntends$1<LSInputProps$1, LSInputPropsChild>;
|
|
101
|
-
declare const LSSliderInput: React.FC<LSInputProps>;
|
|
102
|
-
|
|
103
|
-
interface LSSelectPropsChild {
|
|
104
|
-
noBg?: boolean;
|
|
105
|
-
placeholder?: React.ReactNode | string;
|
|
106
|
-
}
|
|
107
|
-
type ProtoExntends<T, U> = U & Omit<T, keyof U>;
|
|
108
|
-
type LSSelectProps = ProtoExntends<SelectProps, LSSelectPropsChild>;
|
|
109
|
-
declare const LSSelect: React.FC<LSSelectProps>;
|
|
110
|
-
|
|
111
|
-
type LSCheckboxProps = CheckboxProps & {
|
|
112
|
-
inputRef?: React.Ref<HTMLInputElement>;
|
|
113
|
-
};
|
|
114
|
-
declare const LSCheckbox: React.ForwardRefExoticComponent<Omit<LSCheckboxProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
115
|
-
type LSCheckboxFieldProps<TFieldValues extends FieldValues> = {
|
|
116
|
-
name: Path<TFieldValues>;
|
|
117
|
-
label: React.ReactNode;
|
|
118
|
-
control?: any;
|
|
119
|
-
className?: string;
|
|
120
|
-
disabled?: boolean;
|
|
121
|
-
labelPlacement?: 'end' | 'start' | 'top' | 'bottom';
|
|
122
|
-
checkboxProps?: Omit<LSCheckboxProps, 'checked' | 'onChange' | 'name' | 'inputRef'>;
|
|
123
|
-
};
|
|
124
|
-
declare function LSCheckboxField<TFieldValues extends FieldValues>({ name, label, control, className, disabled, labelPlacement, checkboxProps, }: LSCheckboxFieldProps<TFieldValues>): JSX.Element;
|
|
125
|
-
|
|
126
|
-
type LSColorPickerProps = {
|
|
127
|
-
value?: string;
|
|
128
|
-
onChange: (value: string) => void;
|
|
129
|
-
onBlur?: () => void;
|
|
130
|
-
className?: string;
|
|
131
|
-
name?: string;
|
|
132
|
-
label?: ReactNode;
|
|
133
|
-
helperText?: ReactNode;
|
|
134
|
-
placeholder?: string;
|
|
135
|
-
hideGradientControls?: boolean;
|
|
136
|
-
usePopup?: boolean;
|
|
137
|
-
disabled?: boolean;
|
|
138
|
-
};
|
|
139
|
-
declare const LSColorPicker: ({ value, onChange, onBlur, className, name, label, helperText, placeholder, hideGradientControls, usePopup, disabled }: LSColorPickerProps) => react_jsx_runtime.JSX.Element;
|
|
140
|
-
|
|
141
|
-
interface FontPickerProps {
|
|
142
|
-
value: string;
|
|
143
|
-
onChange: (value: string) => void;
|
|
144
|
-
fonts?: string[];
|
|
145
|
-
localFonts?: string[];
|
|
146
|
-
onLoadFonts?: (fonts: string[]) => void;
|
|
147
|
-
defaultValue?: string;
|
|
148
|
-
placeholder?: string;
|
|
149
|
-
isAlertManager?: boolean;
|
|
150
|
-
label?: React.ReactNode;
|
|
151
|
-
helperText?: React.ReactNode;
|
|
152
|
-
}
|
|
153
|
-
declare const LSFontPicker: React.NamedExoticComponent<FontPickerProps>;
|
|
154
|
-
|
|
155
|
-
type Option = {
|
|
156
|
-
label: string | number;
|
|
157
|
-
value: string;
|
|
158
|
-
};
|
|
159
|
-
type LSMultiSelectProps = {
|
|
160
|
-
options: Option[];
|
|
161
|
-
placeholder?: string;
|
|
162
|
-
value: string[];
|
|
163
|
-
onChange: (selected: string[]) => void;
|
|
164
|
-
label?: string;
|
|
165
|
-
};
|
|
166
|
-
declare const LSMultiSelect: React.FC<LSMultiSelectProps>;
|
|
167
|
-
|
|
168
|
-
declare const LSRadio: React.FC<RadioProps>;
|
|
169
|
-
type LSRadioSelection = {
|
|
170
|
-
value: string;
|
|
171
|
-
label: React.ReactNode;
|
|
172
|
-
disabled?: boolean;
|
|
173
|
-
};
|
|
174
|
-
type LSRadioGroupProps = RadioGroupProps & {
|
|
175
|
-
selections: LSRadioSelection[];
|
|
176
|
-
optionClassName?: string;
|
|
177
|
-
};
|
|
178
|
-
declare const LSRadioGroup: React.FC<LSRadioGroupProps>;
|
|
179
|
-
|
|
180
|
-
type LSTextFieldProps = Record<string, any> & {
|
|
181
|
-
InputLabelProps?: Record<string, unknown>;
|
|
182
|
-
InputProps?: Record<string, unknown>;
|
|
183
|
-
};
|
|
184
|
-
declare const LSTextField: React.ForwardRefExoticComponent<Omit<LSTextFieldProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
185
|
-
|
|
186
|
-
interface IVariables {
|
|
187
|
-
name: string;
|
|
188
|
-
system: boolean;
|
|
189
|
-
isFunction?: boolean;
|
|
190
|
-
locked?: boolean;
|
|
191
|
-
origin: string;
|
|
192
|
-
pluginId?: string;
|
|
193
|
-
allowedPlaces?: string[];
|
|
194
|
-
description: string;
|
|
195
|
-
counter?: boolean;
|
|
196
|
-
example?: string;
|
|
197
|
-
value: string | number | boolean | null | Record<string, unknown> | unknown[];
|
|
198
|
-
hidden?: boolean;
|
|
199
|
-
}
|
|
200
|
-
type LSVariableDefinition = {
|
|
201
|
-
name: string;
|
|
202
|
-
description?: string;
|
|
203
|
-
origin?: string;
|
|
204
|
-
example?: unknown;
|
|
205
|
-
};
|
|
206
|
-
type LSVariableInputTranslate = (key: string, fallback?: string, options?: Record<string, unknown>) => string;
|
|
207
|
-
type LSVariableInputContextValue = {
|
|
208
|
-
systemVariables?: Record<string, unknown>;
|
|
209
|
-
functionVariables?: string[];
|
|
210
|
-
translate?: LSVariableInputTranslate;
|
|
211
|
-
onVariableTranslationsNeeded?: () => void;
|
|
212
|
-
isOriginConnected?: (origin: string) => boolean;
|
|
213
|
-
translationKeyExists?: (key: string, namespace?: string) => boolean;
|
|
214
|
-
};
|
|
215
|
-
declare const LSVariableInputProvider: ({ children, value, }: {
|
|
216
|
-
children: ReactNode;
|
|
217
|
-
value: LSVariableInputContextValue;
|
|
218
|
-
}) => react_jsx_runtime.JSX.Element;
|
|
219
|
-
type LSAutoCompleteOption = {
|
|
220
|
-
label?: string | number | boolean;
|
|
221
|
-
value?: unknown;
|
|
222
|
-
helperText?: string;
|
|
223
|
-
imageUrl?: string;
|
|
224
|
-
searchText?: string;
|
|
225
|
-
thumb?: string;
|
|
226
|
-
iconUrl?: string;
|
|
227
|
-
previewImageUrl?: string;
|
|
228
|
-
[key: string]: unknown;
|
|
229
|
-
};
|
|
230
|
-
type LSVariableInputFieldProps = {
|
|
231
|
-
name?: string;
|
|
232
|
-
label?: ReactNode;
|
|
233
|
-
type?: string;
|
|
234
|
-
isAutoComplete?: boolean;
|
|
235
|
-
autoCompleteOptions?: LSAutoCompleteOption[];
|
|
236
|
-
autoCompleteGroupBy?: (option: any) => string;
|
|
237
|
-
hideVariables?: boolean;
|
|
238
|
-
allowedVariables?: IVariables[] | string[] | LSVariableDefinition[] | unknown[];
|
|
239
|
-
disabled?: boolean;
|
|
240
|
-
autoFocus?: boolean;
|
|
241
|
-
inputProps?: any;
|
|
242
|
-
multiline?: boolean;
|
|
243
|
-
rows?: number;
|
|
244
|
-
maxRows?: number;
|
|
245
|
-
value?: string | number | any[];
|
|
246
|
-
placeholder?: string;
|
|
247
|
-
renderOption?: (props: HTMLAttributes<HTMLLIElement>, option: any, state: AutocompleteRenderOptionState) => ReactNode;
|
|
248
|
-
variant?: "standard" | "filled" | "outlined";
|
|
249
|
-
ListboxComponent?: any;
|
|
250
|
-
onScrollListBox?: (e: any) => void;
|
|
251
|
-
onHighlightChange?: (e: any, value: any) => void;
|
|
252
|
-
onPopupClose?: (e: any, reason: any) => void;
|
|
253
|
-
onPopupOpen?: (e: any) => void;
|
|
254
|
-
onAutocompleteKeyUp?: (e: any, value: any) => void;
|
|
255
|
-
afterFilter?: (filtered: any[]) => void;
|
|
256
|
-
onChange?: (value: any) => void;
|
|
257
|
-
loading?: boolean;
|
|
258
|
-
getOptionLabel?: (option: any) => string;
|
|
259
|
-
isOptionEqualToValue?: (option: any, value: any) => boolean;
|
|
260
|
-
$disableInputChange?: boolean;
|
|
261
|
-
$getFullValueObject?: boolean;
|
|
262
|
-
$multiple?: boolean;
|
|
263
|
-
$disableCloseOnSelect?: boolean;
|
|
264
|
-
$freeSolo?: boolean;
|
|
265
|
-
$renderOption?: any;
|
|
266
|
-
allowedVariableOrigin?: string;
|
|
267
|
-
systemVariables?: Record<string, unknown>;
|
|
268
|
-
functionVariables?: string[];
|
|
269
|
-
translate?: LSVariableInputTranslate;
|
|
270
|
-
onVariableTranslationsNeeded?: () => void;
|
|
271
|
-
isOriginConnected?: (origin: string) => boolean;
|
|
272
|
-
translationKeyExists?: (key: string, namespace?: string) => boolean;
|
|
273
|
-
};
|
|
274
|
-
declare const LSVariableInputField: React.ForwardRefExoticComponent<LSVariableInputFieldProps & React.RefAttributes<HTMLInputElement>>;
|
|
275
|
-
|
|
276
|
-
declare function variableCompletionOptions(context: CompletionContext, variables: {
|
|
277
|
-
label: string;
|
|
278
|
-
displayLabel: string;
|
|
279
|
-
type: string;
|
|
280
|
-
info: string;
|
|
281
|
-
shouldWrap?: boolean;
|
|
282
|
-
}[]): {
|
|
283
|
-
from: number;
|
|
284
|
-
options: {
|
|
285
|
-
label: string;
|
|
286
|
-
displayLabel: string;
|
|
287
|
-
type: string;
|
|
288
|
-
info: string;
|
|
289
|
-
}[];
|
|
290
|
-
validFor: RegExp;
|
|
291
|
-
} | null;
|
|
292
|
-
|
|
293
|
-
declare const codeMirrorlinterOptions: (type: "overlay" | "code", language?: "js" | "css" | "html" | "json") => {
|
|
294
|
-
languageOptions: {
|
|
295
|
-
ecmaVersion: number;
|
|
296
|
-
sourceType: string;
|
|
297
|
-
globals: {
|
|
298
|
-
_: string;
|
|
299
|
-
moment: string;
|
|
300
|
-
dayjs: string;
|
|
301
|
-
axios: string;
|
|
302
|
-
d3: string;
|
|
303
|
-
Chart: string;
|
|
304
|
-
anime: string;
|
|
305
|
-
gsap: string;
|
|
306
|
-
TweenMax: string;
|
|
307
|
-
TweenLite: string;
|
|
308
|
-
Vue: string;
|
|
309
|
-
angular: string;
|
|
310
|
-
ReactDOM: string;
|
|
311
|
-
$: string;
|
|
312
|
-
jQuery: string;
|
|
313
|
-
React: string;
|
|
314
|
-
BABYLON: string;
|
|
315
|
-
createjs: string;
|
|
316
|
-
p5: string;
|
|
317
|
-
fabric: string;
|
|
318
|
-
THREE: string;
|
|
319
|
-
Phaser: string;
|
|
320
|
-
Pixi: string;
|
|
321
|
-
PixiJS: string;
|
|
322
|
-
L: string;
|
|
323
|
-
mapboxgl: string;
|
|
324
|
-
io: string;
|
|
325
|
-
Pusher: string;
|
|
326
|
-
Echo: string;
|
|
327
|
-
};
|
|
328
|
-
};
|
|
329
|
-
rules: {
|
|
330
|
-
"no-unused-vars": string;
|
|
331
|
-
"no-undef": string;
|
|
332
|
-
"no-use-before-define": (string | {
|
|
333
|
-
functions: boolean;
|
|
334
|
-
classes: boolean;
|
|
335
|
-
})[];
|
|
336
|
-
"no-shadow": string;
|
|
337
|
-
"no-redeclare": string;
|
|
338
|
-
eqeqeq: (string | {
|
|
339
|
-
null: string;
|
|
340
|
-
})[];
|
|
341
|
-
"no-eval": string;
|
|
342
|
-
"no-implied-eval": string;
|
|
343
|
-
"no-new-func": string;
|
|
344
|
-
"no-return-await": string;
|
|
345
|
-
"require-await": string;
|
|
346
|
-
"no-throw-literal": string;
|
|
347
|
-
"no-unmodified-loop-condition": string;
|
|
348
|
-
"no-constant-condition": string;
|
|
349
|
-
"no-debugger": string;
|
|
350
|
-
"no-duplicate-case": string;
|
|
351
|
-
"no-empty": (string | {
|
|
352
|
-
allowEmptyCatch: boolean;
|
|
353
|
-
})[];
|
|
354
|
-
"no-empty-pattern": string;
|
|
355
|
-
"no-fallthrough": string;
|
|
356
|
-
"no-sparse-arrays": string;
|
|
357
|
-
"no-unreachable": string;
|
|
358
|
-
"use-isnan": string;
|
|
359
|
-
"valid-typeof": string;
|
|
360
|
-
"prefer-const": string;
|
|
361
|
-
"no-var": string;
|
|
362
|
-
"prefer-template": string;
|
|
363
|
-
"no-useless-concat": string;
|
|
364
|
-
"no-cond-assign": string;
|
|
365
|
-
"no-constant-binary-expression": string;
|
|
366
|
-
"no-dupe-args": string;
|
|
367
|
-
"no-dupe-keys": string;
|
|
368
|
-
"no-duplicate-imports": string;
|
|
369
|
-
"no-ex-assign": string;
|
|
370
|
-
"no-func-assign": string;
|
|
371
|
-
"no-import-assign": string;
|
|
372
|
-
"no-irregular-whitespace": string;
|
|
373
|
-
"no-misleading-character-class": string;
|
|
374
|
-
"no-prototype-builtins": string;
|
|
375
|
-
"no-unexpected-multiline": string;
|
|
376
|
-
"no-script-url": string;
|
|
377
|
-
"no-unsafe-optional-chaining": string;
|
|
378
|
-
"no-loop-func": string;
|
|
379
|
-
"no-await-in-loop": string;
|
|
380
|
-
};
|
|
381
|
-
};
|
|
382
|
-
|
|
383
|
-
declare const MEDIA_PREVIEW_USER_LEVEL_VALUES: readonly ["streamer", "moderators", "vips", "tier3", "tier2", "subscribers", "regular", "follower", "anyone"];
|
|
384
|
-
type MediaPreviewUserLevel = (typeof MEDIA_PREVIEW_USER_LEVEL_VALUES)[number];
|
|
385
|
-
type ChatboxMediaPreviewKind = 'image' | 'video' | 'audio' | 'youtube' | 'youtubeShort' | 'spotify';
|
|
386
|
-
type ChatboxMediaPreview = {
|
|
387
|
-
kind: ChatboxMediaPreviewKind;
|
|
388
|
-
src: string;
|
|
389
|
-
title?: string;
|
|
390
|
-
};
|
|
391
|
-
type MessageLinkPart = {
|
|
392
|
-
text: string;
|
|
393
|
-
url?: string;
|
|
394
|
-
};
|
|
395
|
-
type ChatMessageToken = {
|
|
396
|
-
type: 'text';
|
|
397
|
-
text: string;
|
|
398
|
-
} | {
|
|
399
|
-
type: 'link';
|
|
400
|
-
text: string;
|
|
401
|
-
url: string;
|
|
402
|
-
} | {
|
|
403
|
-
type: 'media';
|
|
404
|
-
text: string;
|
|
405
|
-
url: string;
|
|
406
|
-
media: ChatboxMediaPreview;
|
|
407
|
-
};
|
|
408
|
-
type MediaPreviewRoleSettings = {
|
|
409
|
-
previewMediaForViewers: boolean;
|
|
410
|
-
previewMediaForSubscribers: boolean;
|
|
411
|
-
previewMediaForVips: boolean;
|
|
412
|
-
previewMediaForModerators: boolean;
|
|
413
|
-
previewMediaForStreamer: boolean;
|
|
414
|
-
previewMediaForTier3: boolean;
|
|
415
|
-
previewMediaForTier2: boolean;
|
|
416
|
-
previewMediaForRegular: boolean;
|
|
417
|
-
previewMediaForFollower: boolean;
|
|
418
|
-
previewMediaForAnyone: boolean;
|
|
419
|
-
};
|
|
420
|
-
type MediaPreviewRoleSettingsInput = Partial<Record<keyof MediaPreviewRoleSettings, unknown>> & {
|
|
421
|
-
previewMediaUserLevels?: unknown;
|
|
422
|
-
};
|
|
423
|
-
type ChatMessageTokenizationOptions = {
|
|
424
|
-
hyperClickableLinks?: boolean;
|
|
425
|
-
previewMediaInChat?: boolean;
|
|
426
|
-
};
|
|
427
|
-
type ChatterProfileUrlInput = {
|
|
428
|
-
platform?: unknown;
|
|
429
|
-
username?: unknown;
|
|
430
|
-
displayname?: unknown;
|
|
431
|
-
userId?: unknown;
|
|
432
|
-
};
|
|
433
|
-
type ChatMessageEmoteStore = {
|
|
434
|
-
ffz?: Record<string, string>;
|
|
435
|
-
bttv?: Record<string, string>;
|
|
436
|
-
seventv?: Record<string, string>;
|
|
437
|
-
};
|
|
438
|
-
type ChatMessageContentItem = string | {
|
|
439
|
-
id: string;
|
|
440
|
-
urls: string[];
|
|
441
|
-
key: string;
|
|
442
|
-
} | {
|
|
443
|
-
id: string;
|
|
444
|
-
type: 'cheer';
|
|
445
|
-
roundedAmount: number;
|
|
446
|
-
cheerAmount: number;
|
|
447
|
-
bitColor: string;
|
|
448
|
-
key: string;
|
|
449
|
-
};
|
|
450
|
-
type BuildChatMessageContentOptions = {
|
|
451
|
-
message?: string;
|
|
452
|
-
replaceWord?: string;
|
|
453
|
-
filteredWordsRegex?: RegExp;
|
|
454
|
-
emotesRaw?: string;
|
|
455
|
-
emotesPack?: Record<string, any> | any[];
|
|
456
|
-
origin?: string;
|
|
457
|
-
emoteParserType?: string;
|
|
458
|
-
isCheer?: boolean;
|
|
459
|
-
storeEmotes?: ChatMessageEmoteStore;
|
|
460
|
-
youtubeEmotes?: Record<string, string>;
|
|
461
|
-
allowParserTypes?: string[];
|
|
462
|
-
};
|
|
463
|
-
type ChatterProfileResolverPayload = {
|
|
464
|
-
username?: string;
|
|
465
|
-
displayname?: string;
|
|
466
|
-
userId?: string;
|
|
467
|
-
platform?: string;
|
|
468
|
-
extraSettings?: Record<string, any>;
|
|
469
|
-
};
|
|
470
|
-
type ChatterProfileResolver = (payload: ChatterProfileResolverPayload) => Promise<unknown> | unknown;
|
|
471
|
-
type ResolveChatterProfileUrlWithResolversInput = ChatterProfileUrlInput & {
|
|
472
|
-
extraSettings?: Record<string, any>;
|
|
473
|
-
resolvers?: Array<ChatterProfileResolver | null | undefined>;
|
|
474
|
-
};
|
|
475
|
-
declare const parseMessageLinks: (value: string) => MessageLinkPart[];
|
|
476
|
-
declare const tokenizeChatMessage: (value: string, options?: ChatMessageTokenizationOptions) => ChatMessageToken[];
|
|
477
|
-
declare const buildChatMessageContent: ({ message, replaceWord, filteredWordsRegex, emotesRaw, emotesPack, origin, emoteParserType, isCheer, storeEmotes, youtubeEmotes, allowParserTypes, }: BuildChatMessageContentOptions) => ChatMessageContentItem[];
|
|
478
|
-
declare const resolveMediaPreviewSetting: (value: unknown, fallback: boolean) => boolean;
|
|
479
|
-
declare const normalizeMediaPreviewUserLevels: (value: unknown) => MediaPreviewUserLevel[];
|
|
480
|
-
declare const resolveMediaPreviewRoleSettings: (settings: MediaPreviewRoleSettingsInput) => MediaPreviewRoleSettings;
|
|
481
|
-
declare const getNormalizedUserLevels: (value: unknown) => Record<string, boolean>;
|
|
482
|
-
declare const isMediaPreviewAllowedForUser: (userLevelsRaw: unknown, roleSettings: MediaPreviewRoleSettings) => boolean;
|
|
483
|
-
declare const getMediaPreviewFromUrl: (url: string) => ChatboxMediaPreview | null;
|
|
484
|
-
declare const resolvePlatformChatterProfileUrl: ({ platform, username, displayname, userId }: ChatterProfileUrlInput) => string | null;
|
|
485
|
-
declare const normalizeHttpUrl: (value: unknown) => string | null;
|
|
486
|
-
declare const resolveChatterProfileUrlWithResolvers: ({ platform, username, displayname, userId, extraSettings, resolvers, }: ResolveChatterProfileUrlWithResolversInput) => Promise<string | null>;
|
|
487
|
-
|
|
488
|
-
type ModuleType = 'alert' | 'emotebox' | 'emotealert' | 'text' | 'image' | 'audio' | 'video' | 'camera' | 'slideshow' | 'shape' | 'svg' | 'colorbox' | 'goal' | 'timer' | 'gradientlight' | 'browsersource' | 'chatbox' | 'credits' | 'eventlist' | 'eventrotate' | 'hfx' | 'hfxalert' | 'clip' | 'youtube' | 'spinwheel' | 'raffle' | 'viewerqueue' | 'loyaltyleaderboard' | 'viewerprofiles' | 'achievements' | 'poll' | 'tournaments' | 'spotify' | 'nowplaying' | 'youtubemusic' | 'brbscreen' | 'vlc' | 'tts' | 'livecaption' | 'custom' | 'tipjar' | 'hypetrain' | 'streamboss' | 'songrequest' | 'group';
|
|
489
|
-
type OverlayLayerType = 'layer' | 'group';
|
|
490
|
-
type OverlayLayerBounds = {
|
|
491
|
-
height: number;
|
|
492
|
-
width: number;
|
|
493
|
-
x: number;
|
|
494
|
-
y: number;
|
|
495
|
-
scale: [number, number];
|
|
496
|
-
opacity?: number;
|
|
497
|
-
rotate?: number;
|
|
498
|
-
zIndex?: number;
|
|
499
|
-
matrix?: string;
|
|
500
|
-
clipPath?: string;
|
|
501
|
-
autoWidth?: boolean;
|
|
502
|
-
autoHeight?: boolean;
|
|
503
|
-
};
|
|
504
|
-
type OverlayLayerState = {
|
|
505
|
-
id: string;
|
|
506
|
-
group?: string | null;
|
|
507
|
-
type?: OverlayLayerType;
|
|
508
|
-
state: {
|
|
509
|
-
visible?: boolean;
|
|
510
|
-
locked?: boolean;
|
|
511
|
-
expanded?: boolean;
|
|
512
|
-
};
|
|
513
|
-
bounds: OverlayLayerBounds;
|
|
514
|
-
};
|
|
515
|
-
type OverlayModuleAlertState = {
|
|
516
|
-
events?: Record<string, unknown>;
|
|
517
|
-
[key: string]: unknown;
|
|
518
|
-
};
|
|
519
|
-
type OverlayModuleState = {
|
|
520
|
-
id?: string;
|
|
521
|
-
loaded?: boolean;
|
|
522
|
-
version?: number;
|
|
523
|
-
settings?: {
|
|
524
|
-
title?: string | null;
|
|
525
|
-
type?: ModuleType;
|
|
526
|
-
locked?: boolean;
|
|
527
|
-
};
|
|
528
|
-
lights?: unknown[];
|
|
529
|
-
css?: Record<string, string | number>;
|
|
530
|
-
content?: Record<string, unknown>;
|
|
531
|
-
variables?: Record<string, unknown>;
|
|
532
|
-
events?: Record<string, unknown>;
|
|
533
|
-
alert?: OverlayModuleAlertState;
|
|
534
|
-
};
|
|
535
|
-
type OverlaySettings = {
|
|
536
|
-
layers: OverlayLayerState[];
|
|
537
|
-
metadata: {
|
|
538
|
-
width: number;
|
|
539
|
-
height: number;
|
|
540
|
-
};
|
|
541
|
-
modules: Record<string, OverlayModuleState>;
|
|
542
|
-
};
|
|
543
|
-
type OverlayState = {
|
|
544
|
-
uuid: string;
|
|
545
|
-
listen_id: string;
|
|
546
|
-
name: string;
|
|
547
|
-
description?: string;
|
|
548
|
-
settings: OverlaySettings;
|
|
549
|
-
metadata?: {
|
|
550
|
-
width: number | null;
|
|
551
|
-
height: number | null;
|
|
552
|
-
} | null;
|
|
553
|
-
layers_count?: number | null;
|
|
554
|
-
hasFullSettings?: boolean;
|
|
555
|
-
};
|
|
556
|
-
|
|
557
|
-
interface SEBootstrapResponse {
|
|
558
|
-
overlay: SEOverlay;
|
|
559
|
-
session?: unknown;
|
|
560
|
-
tipping?: unknown;
|
|
561
|
-
channel?: unknown;
|
|
562
|
-
passport?: unknown;
|
|
563
|
-
}
|
|
564
|
-
interface SEOverlay {
|
|
565
|
-
_id: string;
|
|
566
|
-
channel?: string;
|
|
567
|
-
type?: string;
|
|
568
|
-
name?: string;
|
|
569
|
-
settings: {
|
|
570
|
-
width: number;
|
|
571
|
-
height: number;
|
|
572
|
-
name?: string;
|
|
573
|
-
};
|
|
574
|
-
widgets: SEWidget[];
|
|
575
|
-
createdAt?: string;
|
|
576
|
-
updatedAt?: string;
|
|
577
|
-
}
|
|
578
|
-
interface SEWidget {
|
|
579
|
-
id: number | string;
|
|
580
|
-
group?: string | null;
|
|
581
|
-
version?: number | string | null;
|
|
582
|
-
type: string;
|
|
583
|
-
name?: string | null;
|
|
584
|
-
visible?: boolean;
|
|
585
|
-
locked?: boolean;
|
|
586
|
-
listener?: string | null;
|
|
587
|
-
listeners?: Record<string, boolean> | string[] | null;
|
|
588
|
-
provider?: string;
|
|
589
|
-
css: SECss;
|
|
590
|
-
text?: SEText;
|
|
591
|
-
image?: SEImage;
|
|
592
|
-
video?: SEVideo;
|
|
593
|
-
audio?: SEAudio;
|
|
594
|
-
variables?: Record<string, unknown>;
|
|
595
|
-
}
|
|
596
|
-
interface SECss {
|
|
597
|
-
'z-index'?: number;
|
|
598
|
-
width: string | number;
|
|
599
|
-
height: string | number;
|
|
600
|
-
opacity?: number;
|
|
601
|
-
top?: string | number;
|
|
602
|
-
left?: string | number;
|
|
603
|
-
}
|
|
604
|
-
interface SEText {
|
|
605
|
-
type?: string;
|
|
606
|
-
value?: string | null;
|
|
607
|
-
enableShadow?: boolean;
|
|
608
|
-
scrolling?: {
|
|
609
|
-
direction?: string;
|
|
610
|
-
speed?: number;
|
|
611
|
-
enabled?: boolean;
|
|
612
|
-
};
|
|
613
|
-
css?: Record<string, unknown>;
|
|
614
|
-
}
|
|
615
|
-
interface SEImage {
|
|
616
|
-
type?: string;
|
|
617
|
-
src?: string;
|
|
618
|
-
css?: Record<string, unknown>;
|
|
619
|
-
}
|
|
620
|
-
interface SEVideo {
|
|
621
|
-
type?: string;
|
|
622
|
-
src?: string;
|
|
623
|
-
volume?: number;
|
|
624
|
-
css?: Record<string, unknown>;
|
|
625
|
-
}
|
|
626
|
-
interface SEAudio {
|
|
627
|
-
src?: string;
|
|
628
|
-
volume?: number;
|
|
629
|
-
}
|
|
630
|
-
interface ImportCoverage {
|
|
631
|
-
totalWidgets: number;
|
|
632
|
-
mappings: Array<{
|
|
633
|
-
seType: string;
|
|
634
|
-
lumiaType: string;
|
|
635
|
-
status: 'direct' | 'partial' | 'template' | 'placeholder';
|
|
636
|
-
count: number;
|
|
637
|
-
}>;
|
|
638
|
-
notes: string[];
|
|
639
|
-
}
|
|
640
|
-
interface ReviewItem {
|
|
641
|
-
moduleId: string;
|
|
642
|
-
seWidget: SEWidget;
|
|
643
|
-
status: 'placeholder' | 'template';
|
|
644
|
-
reason: string;
|
|
645
|
-
flaggedOff?: boolean;
|
|
646
|
-
}
|
|
647
|
-
|
|
648
|
-
/** Distinct SE CDN URLs referenced anywhere inside the overlay's settings. */
|
|
649
|
-
declare function findSEAssetURLs(overlay: OverlayState): string[];
|
|
650
|
-
/** Return a new overlay with every `oldUrl → newUrl` replacement applied. */
|
|
651
|
-
declare function rewriteAssetURLs(overlay: OverlayState, mapping: Record<string, string>): OverlayState;
|
|
652
|
-
interface AssetMirrorProgress {
|
|
653
|
-
url: string;
|
|
654
|
-
state: 'pending' | 'fetching' | 'uploading' | 'done' | 'failed';
|
|
655
|
-
newUrl?: string;
|
|
656
|
-
error?: string;
|
|
657
|
-
}
|
|
658
|
-
/**
|
|
659
|
-
* Mirror a single SE asset to Lumia storage via the existing `/overlays/assets`
|
|
660
|
-
* upload endpoint. Returns the new Lumia URL on success.
|
|
661
|
-
*
|
|
662
|
-
* The host call site is responsible for retries and progress reporting; this
|
|
663
|
-
* function is intentionally single-shot. Pass `signal` (AbortSignal) to abort
|
|
664
|
-
* the source-side `fetch` when the modal closes mid-mirror — the upload itself
|
|
665
|
-
* is consumer-defined and the caller decides whether/how to short-circuit it.
|
|
666
|
-
*/
|
|
667
|
-
declare function mirrorOneAsset(url: string, upload: (file: File) => Promise<{
|
|
668
|
-
asset: {
|
|
669
|
-
url: string;
|
|
670
|
-
};
|
|
671
|
-
} | {
|
|
672
|
-
url: string;
|
|
673
|
-
} | unknown>, signal?: AbortSignal): Promise<string>;
|
|
674
|
-
declare function filenameFromURL(url: string): string;
|
|
675
|
-
|
|
676
|
-
interface TransplantedUnit {
|
|
677
|
-
layer: OverlayLayerState;
|
|
678
|
-
module: OverlayModuleState;
|
|
679
|
-
extras?: Array<{
|
|
680
|
-
layer: OverlayLayerState;
|
|
681
|
-
module: OverlayModuleState;
|
|
682
|
-
}>;
|
|
683
|
-
}
|
|
684
|
-
declare function transplantLayer(source: OverlayState, sourceLayerId: string): TransplantedUnit | null;
|
|
685
|
-
declare function listTransplantableLayers(source: OverlayState): Array<{
|
|
686
|
-
id: string;
|
|
687
|
-
label: string;
|
|
688
|
-
type: string;
|
|
689
|
-
}>;
|
|
690
|
-
|
|
691
|
-
declare const SE_WIDGET_TO_MARKETPLACE_CANDIDATES: Record<string, number[]>;
|
|
692
|
-
declare function getMarketplaceCandidates(seWidgetType: string): number[];
|
|
693
|
-
declare function hasMarketplaceCandidates(seWidgetType: string): boolean;
|
|
694
|
-
|
|
695
|
-
declare const SE_IMPORT_FLAGS: {};
|
|
696
|
-
declare function isWidgetFlaggedOff(_seType: string): boolean;
|
|
697
|
-
declare const FLAG_OFF_REASONS: Record<string, string>;
|
|
698
|
-
|
|
699
|
-
interface SEAccountClaims {
|
|
700
|
-
channel: string;
|
|
701
|
-
user: string;
|
|
702
|
-
authToken: string;
|
|
703
|
-
provider: string;
|
|
704
|
-
provider_id: string;
|
|
705
|
-
role: string;
|
|
706
|
-
exp: number;
|
|
707
|
-
jti: string;
|
|
708
|
-
channel_id?: string;
|
|
709
|
-
user_id?: string;
|
|
710
|
-
}
|
|
711
|
-
type SEAuthErrorCode = 'invalid-jwt' | 'expired' | 'unauthorized' | 'forbidden';
|
|
712
|
-
declare class SEAuthError extends Error {
|
|
713
|
-
code: SEAuthErrorCode;
|
|
714
|
-
constructor(code: SEAuthErrorCode, message: string);
|
|
715
|
-
}
|
|
716
|
-
declare function decodeJwtPayload(jwt: string): SEAccountClaims;
|
|
717
|
-
declare class SEClient {
|
|
718
|
-
private readonly claims;
|
|
719
|
-
constructor(claims: SEAccountClaims);
|
|
720
|
-
static fromJwt(jwt: string): SEClient;
|
|
721
|
-
get channelId(): string;
|
|
722
|
-
get provider(): string;
|
|
723
|
-
get providerId(): string;
|
|
724
|
-
get userId(): string;
|
|
725
|
-
get jti(): string;
|
|
726
|
-
get expiresAt(): Date;
|
|
727
|
-
provenance(): {
|
|
728
|
-
jti: string;
|
|
729
|
-
channelId: string;
|
|
730
|
-
provider: string;
|
|
731
|
-
importedAt: string;
|
|
732
|
-
};
|
|
733
|
-
get<T>(path: string): Promise<T>;
|
|
734
|
-
}
|
|
735
|
-
interface SEChannelSummary {
|
|
736
|
-
_id: string;
|
|
737
|
-
provider: string;
|
|
738
|
-
providerId: string;
|
|
739
|
-
username: string;
|
|
740
|
-
alias?: string;
|
|
741
|
-
displayName?: string;
|
|
742
|
-
avatar?: string;
|
|
743
|
-
role?: string;
|
|
744
|
-
authorized?: boolean;
|
|
745
|
-
inactive?: boolean;
|
|
746
|
-
isPartner?: boolean;
|
|
747
|
-
broadcasterType?: string;
|
|
748
|
-
}
|
|
749
|
-
interface SEUsersCurrentResponse {
|
|
750
|
-
_id: string;
|
|
751
|
-
suspended?: boolean;
|
|
752
|
-
channels: SEChannelSummary[];
|
|
753
|
-
}
|
|
754
|
-
declare function fetchUsableChannels(client: SEClient): Promise<SEChannelSummary[]>;
|
|
755
|
-
|
|
756
|
-
interface SEExistingAsset {
|
|
757
|
-
file_name?: string;
|
|
758
|
-
name?: string;
|
|
759
|
-
url: string;
|
|
760
|
-
}
|
|
761
|
-
interface SECustomEmbedProps {
|
|
762
|
-
codeId: string;
|
|
763
|
-
html: string;
|
|
764
|
-
css: string;
|
|
765
|
-
js: string;
|
|
766
|
-
data: unknown;
|
|
767
|
-
}
|
|
768
|
-
interface SEUploadAssetResult {
|
|
769
|
-
url: string;
|
|
770
|
-
file_name?: string;
|
|
771
|
-
name?: string;
|
|
772
|
-
}
|
|
773
|
-
interface SESaveOverlayBody {
|
|
774
|
-
name: string;
|
|
775
|
-
description?: string;
|
|
776
|
-
settings: OverlayState['settings'];
|
|
777
|
-
}
|
|
778
|
-
interface SEImportBindings {
|
|
779
|
-
fetchMarketplaceOverlay: (id: number) => Promise<OverlayState>;
|
|
780
|
-
generateAICustomCode: (prompt: string) => Promise<AIGeneratedCustomOverlay>;
|
|
781
|
-
uploadAsset: (file: File) => Promise<SEUploadAssetResult>;
|
|
782
|
-
existingAssets: SEExistingAsset[];
|
|
783
|
-
saveOverlay: (body: SESaveOverlayBody) => Promise<{
|
|
784
|
-
uuid: string;
|
|
785
|
-
}>;
|
|
786
|
-
onComplete: (result: {
|
|
787
|
-
overlayId: string;
|
|
788
|
-
}) => void;
|
|
789
|
-
onClose: () => void;
|
|
790
|
-
notify: {
|
|
791
|
-
success: (msg: string) => void;
|
|
792
|
-
error: (msg: string) => void;
|
|
793
|
-
warning: (msg: string) => void;
|
|
794
|
-
};
|
|
795
|
-
CustomEmbed?: ComponentType<SECustomEmbedProps>;
|
|
796
|
-
t?: (key: string) => string | undefined;
|
|
797
|
-
onAuthError?: (err: SEAuthError) => void;
|
|
798
|
-
}
|
|
799
|
-
|
|
800
|
-
interface SEImportWizardProps {
|
|
801
|
-
bindings: SEImportBindings;
|
|
802
|
-
initialUrl?: string;
|
|
803
|
-
}
|
|
804
|
-
declare function SEImportWizard({ bindings, initialUrl, }: SEImportWizardProps): react_jsx_runtime.JSX.Element;
|
|
805
|
-
|
|
806
|
-
interface MarketplacePickerProps {
|
|
807
|
-
seWidgetType: string;
|
|
808
|
-
fetchMarketplaceOverlay: SEImportBindings['fetchMarketplaceOverlay'];
|
|
809
|
-
CustomEmbed?: SEImportBindings['CustomEmbed'];
|
|
810
|
-
onPick: (transplant: {
|
|
811
|
-
layer: OverlayLayerState;
|
|
812
|
-
module: OverlayModuleState;
|
|
813
|
-
}) => void;
|
|
814
|
-
onCancel: () => void;
|
|
815
|
-
}
|
|
816
|
-
declare function MarketplacePicker({ seWidgetType, fetchMarketplaceOverlay, CustomEmbed, onPick, onCancel }: MarketplacePickerProps): react_jsx_runtime.JSX.Element;
|
|
817
|
-
|
|
818
|
-
interface ImportResult {
|
|
819
|
-
overlay: OverlayState;
|
|
820
|
-
coverage: ImportCoverage;
|
|
821
|
-
reviewItems: ReviewItem[];
|
|
822
|
-
}
|
|
823
|
-
declare function extractSEOverlayId(input: string): string | null;
|
|
824
|
-
declare function extractSEPreviewParts(input: string): {
|
|
825
|
-
overlayId: string;
|
|
826
|
-
apikey: string;
|
|
827
|
-
} | null;
|
|
828
|
-
declare function buildBootstrapUrl(overlayId: string): string;
|
|
829
|
-
declare function fetchSEBootstrap({ overlayId, apikey }: {
|
|
830
|
-
overlayId: string;
|
|
831
|
-
apikey: string;
|
|
832
|
-
}): Promise<SEBootstrapResponse>;
|
|
833
|
-
declare function isSEBootstrap(value: unknown): value is SEBootstrapResponse;
|
|
834
|
-
declare function importSEBootstrap(bootstrap: SEBootstrapResponse): ImportResult;
|
|
835
|
-
interface AIGeneratedCustomOverlay {
|
|
836
|
-
codeId?: string;
|
|
837
|
-
html?: string;
|
|
838
|
-
css?: string;
|
|
839
|
-
js?: string;
|
|
840
|
-
data?: unknown;
|
|
841
|
-
configs?: unknown;
|
|
842
|
-
}
|
|
843
|
-
declare function applyReviewAction(result: ImportResult, moduleId: string, action: 'keep' | 'skip' | 'ai' | 'marketplace', payload?: AIGeneratedCustomOverlay | {
|
|
844
|
-
layer: OverlayLayerState;
|
|
845
|
-
module: OverlayModuleState;
|
|
846
|
-
extras?: Array<{
|
|
847
|
-
layer: OverlayLayerState;
|
|
848
|
-
module: OverlayModuleState;
|
|
849
|
-
}>;
|
|
850
|
-
}): ImportResult;
|
|
851
|
-
declare function getAILandingBounds(widget: SEWidget, canvas?: {
|
|
852
|
-
width: number;
|
|
853
|
-
height: number;
|
|
854
|
-
}): {
|
|
855
|
-
width: number;
|
|
856
|
-
height: number;
|
|
857
|
-
};
|
|
858
|
-
declare function buildAIPromptForSEWidget(widget: SEWidget, canvas?: {
|
|
859
|
-
width: number;
|
|
860
|
-
height: number;
|
|
861
|
-
}): string;
|
|
862
|
-
|
|
863
|
-
export { type AIGeneratedCustomOverlay, type AssetMirrorProgress, type BuildChatMessageContentOptions, type ChatMessageContentItem, type ChatMessageEmoteStore, type ChatMessageToken, type ChatMessageTokenizationOptions, type ChatboxMediaPreview, type ChatboxMediaPreviewKind, type ChatterProfileResolver, type ChatterProfileResolverPayload, type ChatterProfileUrlInput, FLAG_OFF_REASONS, type IVariables, type ImportCoverage, type ImportResult, LSButton, type LSButtonProps, LSCheckbox, LSCheckboxField, LSColorPicker, type LSColorPickerProps, LSFontPicker, LSInput, type LSInputProps$1 as LSInputProps, LSMultiSelect, LSRadio, LSRadioGroup, LSSelect, LSSliderInput, type LSInputProps as LSSliderInputProps, LSTextField, type LSTextFieldProps, type LSVariableInputContextValue, LSVariableInputField, type LSVariableInputFieldProps, LSVariableInputProvider, MEDIA_PREVIEW_USER_LEVEL_VALUES, MarketplacePicker, type MarketplacePickerProps, type MediaPreviewRoleSettings, type MediaPreviewRoleSettingsInput, type MediaPreviewUserLevel, type MessageLinkPart, type ModuleType, type OverlayLayerBounds, type OverlayLayerState, type OverlayLayerType, type OverlayModuleAlertState, type OverlayModuleState, type OverlaySettings, type OverlayState, type ResolveChatterProfileUrlWithResolversInput, type ReviewItem, type SEAccountClaims, SEAuthError, type SEAuthErrorCode, type SEBootstrapResponse, type SEChannelSummary, SEClient, type SECustomEmbedProps, type SEExistingAsset, type SEImportBindings, SEImportWizard, type SEImportWizardProps, type SESaveOverlayBody, type SEUploadAssetResult, type SEUsersCurrentResponse, type SEWidget, SE_IMPORT_FLAGS, SE_WIDGET_TO_MARKETPLACE_CANDIDATES, type TransplantedUnit, applyReviewAction, buildAIPromptForSEWidget, buildBootstrapUrl, buildChatMessageContent, codeMirrorlinterOptions, decodeJwtPayload, extractSEOverlayId, extractSEPreviewParts, fetchSEBootstrap, fetchUsableChannels, filenameFromURL, findSEAssetURLs, getAILandingBounds, getMarketplaceCandidates, getMediaPreviewFromUrl, getNormalizedUserLevels, hasMarketplaceCandidates, importSEBootstrap, isMediaPreviewAllowedForUser, isSEBootstrap, isWidgetFlaggedOff, listTransplantableLayers, mirrorOneAsset, normalizeHttpUrl, normalizeMediaPreviewUserLevels, parseMessageLinks, resolveChatterProfileUrlWithResolvers, resolveMediaPreviewRoleSettings, resolveMediaPreviewSetting, resolvePlatformChatterProfileUrl, rewriteAssetURLs, tokenizeChatMessage, transplantLayer, variableCompletionOptions };
|
|
1
|
+
export { LSButton, LSButtonProps } from './LSButton.js';
|
|
2
|
+
export { LSInput, LSInputProps } from './LSInput.js';
|
|
3
|
+
export { LSSliderInput, LSSliderInputProps } from './LSSliderInput.js';
|
|
4
|
+
export { LSSelect } from './LSSelect.js';
|
|
5
|
+
export { LSCheckbox, LSCheckboxField } from './LSCheckbox.js';
|
|
6
|
+
export { LSColorPicker, LSColorPickerProps } from './LSColorPicker.js';
|
|
7
|
+
export { LSDatePicker, LSDatePickerProps } from './LSDatePicker.js';
|
|
8
|
+
export { LSFontPicker } from './LSFontPicker.js';
|
|
9
|
+
export { LSMultiSelect } from './LSMultiSelect.js';
|
|
10
|
+
export { LSRadio, LSRadioGroup } from './LSRadio.js';
|
|
11
|
+
export { LSTextField, LSTextFieldProps } from './LSTextField.js';
|
|
12
|
+
export { IVariables, LSVariableInputContextValue, LSVariableInputField, LSVariableInputFieldProps, LSVariableInputProvider } from './LSVariableInputField.js';
|
|
13
|
+
export { codeMirrorlinterOptions, variableCompletionOptions } from './utils.js';
|
|
14
|
+
export { BuildChatMessageContentOptions, ChatMessageContentItem, ChatMessageEmoteStore, ChatMessageToken, ChatMessageTokenizationOptions, ChatboxMediaPreview, ChatboxMediaPreviewKind, ChatterProfileResolver, ChatterProfileResolverPayload, ChatterProfileUrlInput, MEDIA_PREVIEW_USER_LEVEL_VALUES, MediaPreviewRoleSettings, MediaPreviewRoleSettingsInput, MediaPreviewUserLevel, MessageLinkPart, ResolveChatterProfileUrlWithResolversInput, buildChatMessageContent, getMediaPreviewFromUrl, getNormalizedUserLevels, isMediaPreviewAllowedForUser, normalizeHttpUrl, normalizeMediaPreviewUserLevels, parseMessageLinks, resolveChatterProfileUrlWithResolvers, resolveMediaPreviewRoleSettings, resolveMediaPreviewSetting, resolvePlatformChatterProfileUrl, tokenizeChatMessage } from './utils/chatMedia.js';
|
|
15
|
+
export { AIGeneratedCustomOverlay, AssetMirrorProgress, FLAG_OFF_REASONS, ImportCoverage, ImportResult, JWT_DASHBOARD_URL, JwtInstructionStep, MarketplacePicker, MarketplacePickerProps, ModuleType, OverlayLayerBounds, OverlayLayerState, OverlayLayerType, OverlayModuleAlertState, OverlayModuleState, OverlaySettings, OverlayState, ReviewItem, SEAccountClaims, SEAuthDiagnostic, SEAuthError, SEAuthErrorCode, SEAuthMode, SEAuthProbeResult, SEBootstrapResponse, SEChannelSummary, SEClient, SECustomEmbedProps, SEExistingAsset, SEImportBindings, SEImportWizard, SEImportWizardProps, SEOverlaySummary, SESaveOverlayBody, SEUploadAssetResult, SEUsersCurrentResponse, SEWidget, SE_WIDGET_TO_MARKETPLACE_CANDIDATES, TransplantedUnit, applyReviewAction, buildAIPromptForSEWidget, buildBootstrapUrl, decodeJwtPayload, diagnoseSEAuth, extractSEOverlayId, extractSEPreviewParts, fetchSEBootstrap, fetchSEFiltersRaw, fetchSEOverlays, fetchUsableChannels, filenameFromURL, findSEAssetURLs, getAILandingBounds, getJwtInstructionSteps, getMarketplaceCandidates, hasMarketplaceCandidates, importSEBootstrap, isSEBootstrap, isWidgetFlaggedOff, listTransplantableLayers, mirrorOneAsset, rewriteAssetURLs, streamElementsCopyJwt, transplantLayer } from './se-import.js';
|
|
16
|
+
import 'react/jsx-runtime';
|
|
17
|
+
import '@mui/material/Button';
|
|
18
|
+
import 'react';
|
|
19
|
+
import '@mui/material/TextField';
|
|
20
|
+
import '@mui/material/Select';
|
|
21
|
+
import '@mui/material/Checkbox';
|
|
22
|
+
import 'react-hook-form';
|
|
23
|
+
import '@mui/material/Radio';
|
|
24
|
+
import '@mui/material/RadioGroup';
|
|
25
|
+
import '@mui/material/Autocomplete';
|
|
26
|
+
import '@codemirror/autocomplete';
|