@bluepic/embed 0.5.7 → 0.5.8
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 +1 -1
- package/dist/bluepic-embed.umd.js +1 -1
- package/dist/components/BxPreviewLayer.vue.d.ts +17 -0
- package/dist/main.cjs +1 -1
- package/dist/main.mjs +15 -12
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -13,6 +13,23 @@ type __VLS_Props = {
|
|
|
13
13
|
alt?: string;
|
|
14
14
|
/** Width hint for `optimizePreviewUrl` on the base layer. */
|
|
15
15
|
baseWidth?: number;
|
|
16
|
+
/**
|
|
17
|
+
* "What this preview stands in for is still coming" — keeps the shimmer ON
|
|
18
|
+
* TOP of an already-loaded layer instead of ending it the moment an image
|
|
19
|
+
* decodes. The skeleton tint is translucent, so the preview stays readable
|
|
20
|
+
* underneath and only reads as provisional.
|
|
21
|
+
*
|
|
22
|
+
* This is the editor case: `BxLiveTemplate` shows this over the sandbox
|
|
23
|
+
* iframe, and the thing being waited for is the LIVE TEMPLATE, not the
|
|
24
|
+
* placeholder image. The base preview is a committed CDN image and decodes
|
|
25
|
+
* almost instantly, so without this the shimmer is gone a frame after it
|
|
26
|
+
* appeared while the sandbox still has seconds to go — the preview just sits
|
|
27
|
+
* there looking final and frozen.
|
|
28
|
+
*
|
|
29
|
+
* Omit it for plain image placeholders (a gallery card), where an image
|
|
30
|
+
* finishing IS the end of the wait.
|
|
31
|
+
*/
|
|
32
|
+
busy?: boolean;
|
|
16
33
|
};
|
|
17
34
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
35
|
export default _default;
|