@zumer/snapdom 2.7.0 → 2.8.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/README.md +43 -1
- package/dist/plugins.mjs +1 -1
- package/dist/preCache.mjs +3 -3
- package/dist/snapdom.js +8 -8
- package/dist/snapdom.mjs +8 -8
- package/package.json +1 -1
- package/types/snapdom.d.ts +13 -0
package/package.json
CHANGED
package/types/snapdom.d.ts
CHANGED
|
@@ -109,6 +109,19 @@ export interface SnapdomOptions {
|
|
|
109
109
|
/** Show placeholders when resources are missing. Default true. */
|
|
110
110
|
placeholders?: boolean;
|
|
111
111
|
|
|
112
|
+
/**
|
|
113
|
+
* Resolve lazy `<picture>` placeholders / `data-src` patterns before clone (default true).
|
|
114
|
+
* Set false to skip; register the `picture-resolver` plugin explicitly if you need overrides while core is off.
|
|
115
|
+
*/
|
|
116
|
+
resolvePicturePlaceholders?: boolean;
|
|
117
|
+
/** Fine-tune the built-in picture/lazy resolver (timeout, concurrency, etc.). */
|
|
118
|
+
pictureResolver?: {
|
|
119
|
+
timeout?: number;
|
|
120
|
+
concurrency?: number;
|
|
121
|
+
resolveLazySrc?: boolean;
|
|
122
|
+
silent?: boolean;
|
|
123
|
+
};
|
|
124
|
+
|
|
112
125
|
/** Arbitrary plugin configuration at call-site (see PluginUse). */
|
|
113
126
|
plugins?: PluginUse[];
|
|
114
127
|
}
|