@bluepic/embed 0.4.0-next.176 → 0.4.0-next.178
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 +126 -126
- package/dist/bluepic-embed.umd.js +126 -126
- package/dist/components/TemplateEditor/BxLiveTemplate.vue.d.ts +2 -0
- package/dist/components/TemplateEditor/BxTemplateEditor.vue.d.ts +44 -0
- package/dist/components/TemplateEditor/TemplateView.vue.d.ts +8 -0
- package/dist/embed/embed.d.ts +102 -0
- package/dist/main.cjs +80 -80
- package/dist/main.mjs +17817 -17722
- package/dist/style.css +1 -1
- package/dist/util/contextCapture.d.ts +19 -0
- package/dist/util/export.d.ts +14 -2
- package/dist/util/gallery.d.ts +7 -0
- package/package.json +2 -2
|
@@ -1 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Everything the host app injects, flattened so a popup — which renders in a
|
|
3
|
+
* SEPARATE Vue app (see PopupProvider) — can be given the same context.
|
|
4
|
+
*
|
|
5
|
+
* APP-LEVEL PROVIDES ARE THE HALF THIS USED TO MISS, and they are the half
|
|
6
|
+
* that matters most. Vue builds a component's provides as
|
|
7
|
+
*
|
|
8
|
+
* provides: parent ? parent.provides : Object.create(appContext.provides)
|
|
9
|
+
*
|
|
10
|
+
* so anything installed with `app.use(...)` or `app.provide(...)` — the router
|
|
11
|
+
* above all, but equally a store or an i18n instance — lives on
|
|
12
|
+
* `appContext.provides` and reaches components through the PROTOTYPE chain.
|
|
13
|
+
* `Object.assign` copies own properties only, so walking the parent chain
|
|
14
|
+
* never saw them: `useRouter()` inside any popup returned undefined, and every
|
|
15
|
+
* `router.push` in a dialog, drawer or toast silently did nothing.
|
|
16
|
+
*
|
|
17
|
+
* Merged FIRST, so a component-level `provide()` closer to the caller still
|
|
18
|
+
* wins over an app-level one of the same key.
|
|
19
|
+
*/
|
|
1
20
|
export declare function captureCurrentContext(): Record<string | symbol, any>;
|
package/dist/util/export.d.ts
CHANGED
|
@@ -53,7 +53,9 @@ export declare function renderSerialAsImages(bxLiveTemplateComponent: InstanceTy
|
|
|
53
53
|
[k: string]: unknown;
|
|
54
54
|
}, format: keyof typeof imageFormats, campaignId: number, templateId: string, remoteOptions: RenderRemoteOptions, enforceServerSideRendering: boolean, watermark: boolean, sessionState: string,
|
|
55
55
|
/** Multi-canvas: the selected canvas — remote render only; the LOCAL path already renders the materialized `serial`. */
|
|
56
|
-
canvasId?: string
|
|
56
|
+
canvasId?: string,
|
|
57
|
+
/** Local render only: see the option of the same name on `BxLiveTemplate.render`. */
|
|
58
|
+
svgLoadWaitDelay?: number): Promise<{
|
|
57
59
|
files: Blob[];
|
|
58
60
|
renderLocation: RenderLocation;
|
|
59
61
|
clientRenderFailed: boolean;
|
|
@@ -76,7 +78,17 @@ campaignCaption?: Ref<string | undefined>,
|
|
|
76
78
|
* server materializes the same canvas from the serial it refetches.
|
|
77
79
|
* Undefined (the default) = single-format / Default canvas = today's payload.
|
|
78
80
|
*/
|
|
79
|
-
canvasId?: Ref<string | undefined
|
|
81
|
+
canvasId?: Ref<string | undefined>,
|
|
82
|
+
/**
|
|
83
|
+
* Milliseconds `renderSVG` sleeps between the serialized SVG's `load` event and
|
|
84
|
+
* drawing it (see `BxLiveTemplate.render`). Undefined = the raster default of
|
|
85
|
+
* 150ms, i.e. today's behaviour. A host can lower it to reclaim a flat per-render
|
|
86
|
+
* tax that matters most where renders are repeated — batch export, local video
|
|
87
|
+
* frames — at the risk of drawing before an engine has decoded the inlined
|
|
88
|
+
* fonts/images. Kept host-settable precisely so that trade-off can be measured
|
|
89
|
+
* rather than guessed.
|
|
90
|
+
*/
|
|
91
|
+
svgLoadWaitDelay?: Ref<number | undefined>): {
|
|
80
92
|
triggerExport: () => Promise<void>;
|
|
81
93
|
consumeOutputFor: (rowData: {
|
|
82
94
|
[k: string]: unknown;
|
package/dist/util/gallery.d.ts
CHANGED
|
@@ -31,6 +31,13 @@ export declare function groupTemplatesByName(templates: {
|
|
|
31
31
|
export declare const OTHER_CATEGORY = "Other";
|
|
32
32
|
export type PortalAsset = z.infer<typeof Studio.publicCampaignAssetDescriptor>;
|
|
33
33
|
export type CampaignCategory = Studio.CampaignCategory;
|
|
34
|
+
/**
|
|
35
|
+
* The one ordering for portal assets — alphabetical by title, same as the
|
|
36
|
+
* campaign editor. Used both within a category bucket and for the flat,
|
|
37
|
+
* uncategorised list, so toggling "sort by categories" only changes GROUPING,
|
|
38
|
+
* never the relative order of two given assets.
|
|
39
|
+
*/
|
|
40
|
+
export declare function sortPortalAssetsByTitle(assets: PortalAsset[]): PortalAsset[];
|
|
34
41
|
/**
|
|
35
42
|
* Group templates AND assets by the campaign's categories.
|
|
36
43
|
*
|
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.178",
|
|
4
4
|
"description": "Bluepic embed sdk",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@auth0/auth0-vue": "^2.4.0",
|
|
48
|
-
"@bluepic/types": "^0.8.
|
|
48
|
+
"@bluepic/types": "^0.8.58",
|
|
49
49
|
"@hono/zod-openapi": "^1.1.4",
|
|
50
50
|
"@types/css": "^0.0.38",
|
|
51
51
|
"@types/downloadjs": "^1.4.6",
|