@lumiastream/ui 0.2.8-alpha.13 → 0.2.8-alpha.14
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/index.d.ts +1 -1
- package/dist/index.js +529 -179
- package/dist/se-import.d.ts +35 -5
- package/dist/se-import.js +529 -179
- package/package.json +1 -1
package/dist/se-import.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { ComponentType } from 'react';
|
|
2
|
+
import { ComponentType, ReactNode } from 'react';
|
|
3
3
|
|
|
4
4
|
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';
|
|
5
5
|
type OverlayLayerType = 'layer' | 'group';
|
|
@@ -225,6 +225,7 @@ interface SEAccountClaims {
|
|
|
225
225
|
user_id?: string;
|
|
226
226
|
}
|
|
227
227
|
type SEAuthErrorCode = 'invalid-jwt' | 'expired' | 'unauthorized' | 'forbidden';
|
|
228
|
+
type SEAuthMode = 'apikey-authToken' | 'apikey-jwt' | 'bearer-jwt';
|
|
228
229
|
declare class SEAuthError extends Error {
|
|
229
230
|
code: SEAuthErrorCode;
|
|
230
231
|
constructor(code: SEAuthErrorCode, message: string);
|
|
@@ -232,8 +233,12 @@ declare class SEAuthError extends Error {
|
|
|
232
233
|
declare function decodeJwtPayload(jwt: string): SEAccountClaims;
|
|
233
234
|
declare class SEClient {
|
|
234
235
|
private readonly claims;
|
|
235
|
-
|
|
236
|
-
|
|
236
|
+
private readonly jwt;
|
|
237
|
+
authMode: SEAuthMode;
|
|
238
|
+
constructor(claims: SEAccountClaims, jwt: string, authMode?: SEAuthMode);
|
|
239
|
+
static fromJwt(jwt: string, authMode?: SEAuthMode): SEClient;
|
|
240
|
+
withAuthMode(mode: SEAuthMode): SEClient;
|
|
241
|
+
private authHeader;
|
|
237
242
|
get channelId(): string;
|
|
238
243
|
get provider(): string;
|
|
239
244
|
get providerId(): string;
|
|
@@ -268,6 +273,20 @@ interface SEUsersCurrentResponse {
|
|
|
268
273
|
channels: SEChannelSummary[];
|
|
269
274
|
}
|
|
270
275
|
declare function fetchUsableChannels(client: SEClient): Promise<SEChannelSummary[]>;
|
|
276
|
+
declare function fetchSEFiltersRaw(client: SEClient): Promise<unknown>;
|
|
277
|
+
interface SEAuthProbeResult {
|
|
278
|
+
endpoint: string;
|
|
279
|
+
mode: SEAuthMode;
|
|
280
|
+
status: number;
|
|
281
|
+
ok: boolean;
|
|
282
|
+
errorMessage?: string;
|
|
283
|
+
}
|
|
284
|
+
interface SEAuthDiagnostic {
|
|
285
|
+
jwtPreview: string;
|
|
286
|
+
channelId: string;
|
|
287
|
+
results: SEAuthProbeResult[];
|
|
288
|
+
}
|
|
289
|
+
declare function diagnoseSEAuth(jwt: string): Promise<SEAuthDiagnostic>;
|
|
271
290
|
|
|
272
291
|
interface SEExistingAsset {
|
|
273
292
|
file_name?: string;
|
|
@@ -311,13 +330,15 @@ interface SEImportBindings {
|
|
|
311
330
|
CustomEmbed?: ComponentType<SECustomEmbedProps>;
|
|
312
331
|
t?: (key: string) => string | undefined;
|
|
313
332
|
onAuthError?: (err: SEAuthError) => void;
|
|
333
|
+
onOpenFullImport?: () => void;
|
|
314
334
|
}
|
|
315
335
|
|
|
316
336
|
interface SEImportWizardProps {
|
|
317
337
|
bindings: SEImportBindings;
|
|
318
338
|
initialUrl?: string;
|
|
339
|
+
initialJwt?: string;
|
|
319
340
|
}
|
|
320
|
-
declare function SEImportWizard({ bindings, initialUrl, }: SEImportWizardProps): react_jsx_runtime.JSX.Element;
|
|
341
|
+
declare function SEImportWizard({ bindings, initialUrl, initialJwt, }: SEImportWizardProps): react_jsx_runtime.JSX.Element;
|
|
321
342
|
|
|
322
343
|
interface MarketplacePickerProps {
|
|
323
344
|
seWidgetType: string;
|
|
@@ -331,6 +352,15 @@ interface MarketplacePickerProps {
|
|
|
331
352
|
}
|
|
332
353
|
declare function MarketplacePicker({ seWidgetType, fetchMarketplaceOverlay, CustomEmbed, onPick, onCancel }: MarketplacePickerProps): react_jsx_runtime.JSX.Element;
|
|
333
354
|
|
|
355
|
+
declare const streamElementsCopyJwt: string;
|
|
356
|
+
declare const JWT_DASHBOARD_URL = "https://streamelements.com/dashboard/account/channels";
|
|
357
|
+
interface JwtInstructionStep {
|
|
358
|
+
content: ReactNode;
|
|
359
|
+
}
|
|
360
|
+
declare function getJwtInstructionSteps({ pasteHint }?: {
|
|
361
|
+
pasteHint?: string;
|
|
362
|
+
}): JwtInstructionStep[];
|
|
363
|
+
|
|
334
364
|
interface ImportResult {
|
|
335
365
|
overlay: OverlayState;
|
|
336
366
|
coverage: ImportCoverage;
|
|
@@ -376,4 +406,4 @@ declare function buildAIPromptForSEWidget(widget: SEWidget, canvas?: {
|
|
|
376
406
|
height: number;
|
|
377
407
|
}): string;
|
|
378
408
|
|
|
379
|
-
export { type AIGeneratedCustomOverlay, type AssetMirrorProgress, FLAG_OFF_REASONS, type ImportCoverage, type ImportResult, MarketplacePicker, type MarketplacePickerProps, type ModuleType, type OverlayLayerBounds, type OverlayLayerState, type OverlayLayerType, type OverlayModuleAlertState, type OverlayModuleState, type OverlaySettings, type OverlayState, 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, decodeJwtPayload, extractSEOverlayId, extractSEPreviewParts, fetchSEBootstrap, fetchUsableChannels, filenameFromURL, findSEAssetURLs, getAILandingBounds, getMarketplaceCandidates, hasMarketplaceCandidates, importSEBootstrap, isSEBootstrap, isWidgetFlaggedOff, listTransplantableLayers, mirrorOneAsset, rewriteAssetURLs, transplantLayer };
|
|
409
|
+
export { type AIGeneratedCustomOverlay, type AssetMirrorProgress, FLAG_OFF_REASONS, type ImportCoverage, type ImportResult, JWT_DASHBOARD_URL, type JwtInstructionStep, MarketplacePicker, type MarketplacePickerProps, type ModuleType, type OverlayLayerBounds, type OverlayLayerState, type OverlayLayerType, type OverlayModuleAlertState, type OverlayModuleState, type OverlaySettings, type OverlayState, type ReviewItem, type SEAccountClaims, type SEAuthDiagnostic, SEAuthError, type SEAuthErrorCode, type SEAuthMode, type SEAuthProbeResult, 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, decodeJwtPayload, diagnoseSEAuth, extractSEOverlayId, extractSEPreviewParts, fetchSEBootstrap, fetchSEFiltersRaw, fetchUsableChannels, filenameFromURL, findSEAssetURLs, getAILandingBounds, getJwtInstructionSteps, getMarketplaceCandidates, hasMarketplaceCandidates, importSEBootstrap, isSEBootstrap, isWidgetFlaggedOff, listTransplantableLayers, mirrorOneAsset, rewriteAssetURLs, streamElementsCopyJwt, transplantLayer };
|