@bluepic/embed 0.5.11 → 0.6.0
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 +122 -122
- package/dist/bluepic-embed.umd.js +122 -122
- package/dist/main.cjs +62 -62
- package/dist/main.mjs +7412 -7117
- package/dist/util/cloudflareImages.d.ts +3 -0
- package/dist/util/gallery.d.ts +12 -9
- package/package.json +2 -2
|
@@ -23,4 +23,7 @@ export declare function uploadImage(apiBaseUrl: string, templateId: string, cont
|
|
|
23
23
|
uploadedAt: string;
|
|
24
24
|
imageId?: string | undefined;
|
|
25
25
|
deliveryBase?: string | undefined;
|
|
26
|
+
uploadURL?: string | undefined;
|
|
27
|
+
uploadExpiresAt?: string | undefined;
|
|
28
|
+
deleteToken?: string | undefined;
|
|
26
29
|
}>;
|
package/dist/util/gallery.d.ts
CHANGED
|
@@ -2,22 +2,25 @@ import { Studio } from '@bluepic/types';
|
|
|
2
2
|
import { z } from '@hono/zod-openapi';
|
|
3
3
|
/**
|
|
4
4
|
* The floor every descriptor shape this file handles satisfies — the legacy
|
|
5
|
-
* EmbedProjects one
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* in, which is exactly what broke when `useTemplateSelection`'s type stopped
|
|
11
|
-
* matching this file's old hardcoded legacy shape.
|
|
5
|
+
* EmbedProjects one, the old campaign one, and the canvases-first campaign one
|
|
6
|
+
* (`Studio.publicCampaignTemplateDescriptor`, where `canvases` is always
|
|
7
|
+
* present). Structural on purpose: every function below reads nothing but
|
|
8
|
+
* `name` and `canvases`, and is generic over the CALLER's actual `T`, so a
|
|
9
|
+
* richer shape passes through untouched.
|
|
12
10
|
*/
|
|
13
|
-
type BaseTemplateDescriptor =
|
|
11
|
+
type BaseTemplateDescriptor = {
|
|
12
|
+
name: string;
|
|
13
|
+
canvases?: readonly unknown[] | null;
|
|
14
|
+
};
|
|
14
15
|
/**
|
|
15
16
|
* A multi-canvas template (canvases v2) is ATOMIC in the gallery: its canvases
|
|
16
17
|
* ARE its format variants, so it never merges with same-named templates — and
|
|
17
18
|
* two multi-canvas templates sharing a name stay two cards. Single-format
|
|
18
19
|
* templates keep merging by name exactly as before.
|
|
19
20
|
*/
|
|
20
|
-
export declare function isMultiCanvasTemplateDescriptor(td:
|
|
21
|
+
export declare function isMultiCanvasTemplateDescriptor(td: {
|
|
22
|
+
canvases?: readonly unknown[] | null;
|
|
23
|
+
}): boolean;
|
|
21
24
|
export declare function groupTemplatesByName<T extends BaseTemplateDescriptor>(templates: {
|
|
22
25
|
[k: string]: T;
|
|
23
26
|
}): {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bluepic/embed",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"description": "Bluepic embed sdk",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@auth0/auth0-vue": "^2.4.0",
|
|
53
|
-
"@bluepic/types": "^0.
|
|
53
|
+
"@bluepic/types": "^0.9.3",
|
|
54
54
|
"@hono/zod-openapi": "^1.1.4",
|
|
55
55
|
"@types/css": "^0.0.38",
|
|
56
56
|
"@types/downloadjs": "^1.4.6",
|