@open-xamu-co/ui-common-types 3.0.2-next.1 → 3.1.0-next.1
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/package.json +1 -1
- package/src/plugin.ts +4 -0
- package/src/values.ts +5 -0
package/package.json
CHANGED
package/src/plugin.ts
CHANGED
|
@@ -51,6 +51,10 @@ export interface iPluginOptions<ComponentType = unknown> {
|
|
|
51
51
|
* Optional image optimization component
|
|
52
52
|
*/
|
|
53
53
|
imageComponent?: ComponentType | string;
|
|
54
|
+
/**
|
|
55
|
+
* Url to an image to be used as placeholder for images that failed to load
|
|
56
|
+
*/
|
|
57
|
+
imagePlaceholder?: string;
|
|
54
58
|
/**
|
|
55
59
|
* Host that contain images
|
|
56
60
|
* Treat the url within them as images
|
package/src/values.ts
CHANGED
|
@@ -50,6 +50,11 @@ export interface iProperty<
|
|
|
50
50
|
* Render using this component instead
|
|
51
51
|
*/
|
|
52
52
|
component?: ComponentType;
|
|
53
|
+
/**
|
|
54
|
+
* Url to an image to be used as placeholder for images that failed to load
|
|
55
|
+
* Overrides the plugin's imagePlaceholder
|
|
56
|
+
*/
|
|
57
|
+
imagePlaceholder?: string;
|
|
53
58
|
}
|
|
54
59
|
|
|
55
60
|
export type tPropertyOrderFn = (a: [string, any], b: [string, any]) => -1 | 0 | 1;
|