@lumiastream/ui 0.2.8-alpha.15 → 0.2.8-alpha.17
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/index.d.ts +1 -1
- package/dist/index.js +361 -300
- package/dist/se-import.d.ts +8 -4
- package/dist/se-import.js +360 -299
- package/package.json +5 -2
package/dist/se-import.d.ts
CHANGED
|
@@ -179,6 +179,11 @@ interface AssetMirrorProgress {
|
|
|
179
179
|
* function is intentionally single-shot. Pass `signal` (AbortSignal) to abort
|
|
180
180
|
* the source-side `fetch` when the modal closes mid-mirror — the upload itself
|
|
181
181
|
* is consumer-defined and the caller decides whether/how to short-circuit it.
|
|
182
|
+
*
|
|
183
|
+
* Bails out with a typed error if the SE server advertises a Content-Length
|
|
184
|
+
* over MAX_MIRROR_ASSET_BYTES (cheap pre-check) or if the downloaded blob
|
|
185
|
+
* exceeds the same cap (covers chunked responses where Content-Length is
|
|
186
|
+
* absent or lying).
|
|
182
187
|
*/
|
|
183
188
|
declare function mirrorOneAsset(url: string, upload: (file: File) => Promise<{
|
|
184
189
|
asset: {
|
|
@@ -208,7 +213,6 @@ declare const SE_WIDGET_TO_MARKETPLACE_CANDIDATES: Record<string, number[]>;
|
|
|
208
213
|
declare function getMarketplaceCandidates(seWidgetType: string): number[];
|
|
209
214
|
declare function hasMarketplaceCandidates(seWidgetType: string): boolean;
|
|
210
215
|
|
|
211
|
-
declare const SE_IMPORT_FLAGS: {};
|
|
212
216
|
declare function isWidgetFlaggedOff(_seType: string): boolean;
|
|
213
217
|
declare const FLAG_OFF_REASONS: Record<string, string>;
|
|
214
218
|
|
|
@@ -369,12 +373,12 @@ interface ImportResult {
|
|
|
369
373
|
declare function extractSEOverlayId(input: string): string | null;
|
|
370
374
|
declare function extractSEPreviewParts(input: string): {
|
|
371
375
|
overlayId: string;
|
|
372
|
-
apikey: string;
|
|
376
|
+
apikey: string | null;
|
|
373
377
|
} | null;
|
|
374
378
|
declare function buildBootstrapUrl(overlayId: string): string;
|
|
375
379
|
declare function fetchSEBootstrap({ overlayId, apikey }: {
|
|
376
380
|
overlayId: string;
|
|
377
|
-
apikey: string;
|
|
381
|
+
apikey: string | null;
|
|
378
382
|
}): Promise<SEBootstrapResponse>;
|
|
379
383
|
declare function isSEBootstrap(value: unknown): value is SEBootstrapResponse;
|
|
380
384
|
declare function importSEBootstrap(bootstrap: SEBootstrapResponse): ImportResult;
|
|
@@ -406,4 +410,4 @@ declare function buildAIPromptForSEWidget(widget: SEWidget, canvas?: {
|
|
|
406
410
|
height: number;
|
|
407
411
|
}): string;
|
|
408
412
|
|
|
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,
|
|
413
|
+
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_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 };
|