@bluepic/embed 0.4.0-next.187 → 0.4.0-next.188
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 +174 -174
- package/dist/bluepic-embed.umd.js +174 -174
- package/dist/main.cjs +89 -89
- package/dist/main.mjs +15054 -14981
- package/dist/markdown-it-BEy9XzVB.js +3781 -0
- package/dist/markdown-it-csfK_Q_K.cjs +16 -0
- package/dist/style.css +1 -1
- package/dist/util/export.d.ts +12 -5
- package/package.json +2 -2
- package/dist/markdown-it-DnV0iSVd.js +0 -3822
- package/dist/markdown-it-zGmILegC.cjs +0 -16
package/dist/util/export.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FieldsBridge, Render, Studio, Template } from '@bluepic/types';
|
|
1
|
+
import { BillingV3, FieldsBridge, Render, Studio, Template } from '@bluepic/types';
|
|
2
2
|
import { Ref } from 'vue';
|
|
3
3
|
import { z } from '@hono/zod-openapi';
|
|
4
4
|
import BxLiveTemplate from '../components/TemplateEditor/BxLiveTemplate.vue';
|
|
@@ -97,11 +97,18 @@ svgLoadWaitDelay?: Ref<number | undefined>): {
|
|
|
97
97
|
rendering: Ref<boolean, boolean>;
|
|
98
98
|
videoRenderingProgress: Ref<number | undefined, number | undefined>;
|
|
99
99
|
};
|
|
100
|
+
/**
|
|
101
|
+
* Report ONE delivered output to the server.
|
|
102
|
+
*
|
|
103
|
+
* The SDK names the surface (`usage`) and describes what it produced
|
|
104
|
+
* (`assets`) — it never sends, and never learns, a price. The rate table lives
|
|
105
|
+
* server-side in `@bluepic/types` (`BillingV3.calculateCenticreditConsumption`).
|
|
106
|
+
*/
|
|
100
107
|
export declare function consumeCredits(apiBaseUrl: string, env: 'dev' | 'prod', campaignId: number, templateId: string, sessionState: string, billingKey: number,
|
|
101
|
-
/** Which
|
|
102
|
-
|
|
103
|
-
/**
|
|
104
|
-
|
|
108
|
+
/** Which surface produced this. Omitted = a single editor export. */
|
|
109
|
+
usage?: Studio.ConsumeRenderCreditsUsage,
|
|
110
|
+
/** One entry per delivered file — an array of one for a single export. */
|
|
111
|
+
assets?: BillingV3.BillableUsageAsset[]): Promise<void>;
|
|
105
112
|
export declare function hasMobileShareCapability(files: File[]): boolean;
|
|
106
113
|
export declare function blobsToShareFiles(files: Blob[], baseName: string): File[];
|
|
107
114
|
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.188",
|
|
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.75",
|
|
50
50
|
"@hono/zod-openapi": "^1.1.4",
|
|
51
51
|
"@types/css": "^0.0.38",
|
|
52
52
|
"@types/downloadjs": "^1.4.6",
|