@bluepic/embed 0.4.0-next.184 → 0.4.0-next.187
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/bluepic-embed.iife.js +89 -89
- package/dist/bluepic-embed.umd.js +89 -89
- package/dist/components/TemplateEditor/BatchExportPopup.vue.d.ts +1 -1
- package/dist/main.cjs +63 -63
- package/dist/main.mjs +11947 -11916
- package/dist/style.css +1 -1
- package/dist/util/batch/export.d.ts +5 -4
- package/dist/util/export.d.ts +6 -2
- package/package.json +2 -2
|
@@ -21,11 +21,12 @@ export interface BatchFileExportContext {
|
|
|
21
21
|
remoteOptions: RenderRemoteOptions;
|
|
22
22
|
remoteVideoOptions: RenderRemoteVideoOptions;
|
|
23
23
|
/**
|
|
24
|
-
* Called once per successfully rendered row with that row's data
|
|
25
|
-
* editor binds it to its per-output credit consumer,
|
|
26
|
-
* exactly once per session (and never twice for the
|
|
24
|
+
* Called once per successfully rendered row with that row's data and the
|
|
25
|
+
* media it produced. The editor binds it to its per-output credit consumer,
|
|
26
|
+
* so each row is charged exactly once per session (and never twice for the
|
|
27
|
+
* same content) at the batch rate for that medium.
|
|
27
28
|
*/
|
|
28
|
-
consumeOutput: (data: Record<string, unknown
|
|
29
|
+
consumeOutput: (data: Record<string, unknown>, kind: 'image' | 'video') => Promise<void>;
|
|
29
30
|
/** Cooperative cancellation: checked before every row starts. */
|
|
30
31
|
signal?: AbortSignal;
|
|
31
32
|
}
|
package/dist/util/export.d.ts
CHANGED
|
@@ -92,12 +92,16 @@ svgLoadWaitDelay?: Ref<number | undefined>): {
|
|
|
92
92
|
triggerExport: () => Promise<void>;
|
|
93
93
|
consumeOutputFor: (rowData: {
|
|
94
94
|
[k: string]: unknown;
|
|
95
|
-
}) => Promise<void>;
|
|
95
|
+
}, kind?: "image" | "video") => Promise<void>;
|
|
96
96
|
preCacheLocalRender: () => Promise<void>;
|
|
97
97
|
rendering: Ref<boolean, boolean>;
|
|
98
98
|
videoRenderingProgress: Ref<number | undefined, number | undefined>;
|
|
99
99
|
};
|
|
100
|
-
export declare function consumeCredits(apiBaseUrl: string, env: 'dev' | 'prod', campaignId: number, templateId: string, sessionState: string, billingKey: number
|
|
100
|
+
export declare function consumeCredits(apiBaseUrl: string, env: 'dev' | 'prod', campaignId: number, templateId: string, sessionState: string, billingKey: number,
|
|
101
|
+
/** Which rate to bill at. Omitted = `conversion`, the single-export rate. */
|
|
102
|
+
action?: Studio.ConsumeRenderCreditsAction,
|
|
103
|
+
/** Units of that action — 1 for anything but a video, which bills in video credit units. */
|
|
104
|
+
amount?: number): Promise<void>;
|
|
101
105
|
export declare function hasMobileShareCapability(files: File[]): boolean;
|
|
102
106
|
export declare function blobsToShareFiles(files: Blob[], baseName: string): File[];
|
|
103
107
|
export declare function performDownload(files: Blob[], baseName: string): Promise<void>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bluepic/embed",
|
|
3
|
-
"version": "0.4.0-next.
|
|
3
|
+
"version": "0.4.0-next.187",
|
|
4
4
|
"description": "Bluepic embed sdk",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@auth0/auth0-vue": "^2.4.0",
|
|
49
|
-
"@bluepic/types": "^0.8.
|
|
49
|
+
"@bluepic/types": "^0.8.70",
|
|
50
50
|
"@hono/zod-openapi": "^1.1.4",
|
|
51
51
|
"@types/css": "^0.0.38",
|
|
52
52
|
"@types/downloadjs": "^1.4.6",
|