@open-xamu-co/ui-common-types 3.0.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 +7 -1
- 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
|
|
@@ -108,7 +112,9 @@ export interface iPluginOptions<ComponentType = unknown> {
|
|
|
108
112
|
*/
|
|
109
113
|
country?: string;
|
|
110
114
|
/**
|
|
111
|
-
* Countries API base endpoint
|
|
115
|
+
* Countries API base endpoint
|
|
116
|
+
*
|
|
117
|
+
* Pathname or full URL (With pathname)
|
|
112
118
|
*
|
|
113
119
|
* If using nuxt, get better performance with the module
|
|
114
120
|
* @see https://www.npmjs.com/package/nuxt-countries-api
|
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;
|