@bluepic/embed 0.6.24 → 0.6.25
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 +136 -125
- package/dist/bluepic-embed.umd.js +136 -125
- package/dist/embed/embed.d.ts +2 -0
- package/dist/embed/popup.d.ts +13 -1
- package/dist/main.cjs +70 -59
- package/dist/main.mjs +972 -949
- package/dist/style.css +1 -1
- package/dist/util/PopupProvider.d.ts +3 -0
- package/dist/util/blankData.d.ts +24 -0
- package/package.json +3 -2
|
@@ -3,5 +3,8 @@ import MessageProvider from '../components/MessageProvider.vue';
|
|
|
3
3
|
export default class BluepicPopupProvider {
|
|
4
4
|
overlayProviderRef: InstanceType<typeof PopupProvider>;
|
|
5
5
|
messageProviderRef: InstanceType<typeof MessageProvider>;
|
|
6
|
+
private wrapper;
|
|
6
7
|
constructor();
|
|
8
|
+
/** Put the overlay root into <body> if it is not there yet and there is a body. Idempotent. */
|
|
9
|
+
attach(): void;
|
|
7
10
|
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* "Not provided" in host-supplied data.
|
|
3
|
+
*
|
|
4
|
+
* A host fills our data from its own merge tags — a ticket shop's
|
|
5
|
+
* `{ picture: "{{picture}}" }` — and a tag with nothing behind it arrives as an
|
|
6
|
+
* EMPTY STRING, not as a missing key. Taken at face value that empty string
|
|
7
|
+
* replaces the template's default: an empty text, and for a picture something
|
|
8
|
+
* worse — an image with no src, which bluepic-core draws as its random
|
|
9
|
+
* placeholder photo (picsum.photos). The buyer without a photo then got a café
|
|
10
|
+
* or a skyline instead of the template's portrait.
|
|
11
|
+
*
|
|
12
|
+
* So an empty or whitespace-only string means "not provided" and is dropped,
|
|
13
|
+
* and the template's own binding value stays. `undefined`/`null` say the same
|
|
14
|
+
* thing, and so does an image value whose src is blank (`{ src: "" }`, what a
|
|
15
|
+
* blank URL becomes once it is shaped into an image value).
|
|
16
|
+
*/
|
|
17
|
+
export declare function isBlankDataValue(value: unknown): boolean;
|
|
18
|
+
/** `data` without its blank values (see {@link isBlankDataValue}); a fresh object, never the input. */
|
|
19
|
+
export declare function withoutBlankDataValues<T extends {
|
|
20
|
+
[key: string]: unknown;
|
|
21
|
+
}>(data: T): Partial<T>;
|
|
22
|
+
export declare function withoutBlankDataValues<T extends {
|
|
23
|
+
[key: string]: unknown;
|
|
24
|
+
}>(data: T | undefined): Partial<T> | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bluepic/embed",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.25",
|
|
4
4
|
"description": "Bluepic embed sdk",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -44,7 +44,8 @@
|
|
|
44
44
|
"test:fieldhints": "tsx src/util/fieldHints/fieldHints.test.ts",
|
|
45
45
|
"test:clone": "tsx src/util/cloneDeep.test.ts",
|
|
46
46
|
"test:imagestates": "tsx src/util/imageStates/imageStates.test.ts",
|
|
47
|
-
"test:imageaspect": "tsx src/util/imageAspect/imageAspect.test.ts"
|
|
47
|
+
"test:imageaspect": "tsx src/util/imageAspect/imageAspect.test.ts",
|
|
48
|
+
"test:blankdata": "tsx src/util/blankData.test.ts"
|
|
48
49
|
},
|
|
49
50
|
"peerDependencies": {
|
|
50
51
|
"vue": "^3.5.23"
|