@ikas/storefront-providers 4.2.0-beta.4 → 4.2.0-beta.6

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.
@@ -0,0 +1,4 @@
1
+ export declare type IkasImagePropValue = {
2
+ id: string;
3
+ altText: string | null;
4
+ };
@@ -1 +1 @@
1
- import{IkasProductType as t,IkasRaffleVerificationType as e}from"@ikas/storefront-models";function a(){return{id:"",name:"",type:t.PHYSICAL,description:"",shortDescription:"",metaData:null,brand:null,categories:[],tags:[],variants:[],attributes:[],variantTypes:[],productOptionSetId:null,baseUnit:null,averageRating:null,reviewCount:null}}function n(){return{categoryPath:[],description:null,imageId:null,name:"",parentId:null,metaData:null,categoryPathItems:[],orderType:null,id:"",createdAt:0,updatedAt:0}}function d(){return{description:null,imageId:null,metaData:null,orderType:null,name:"",id:"",createdAt:0,updatedAt:0}}function l(){return{createdAt:0,id:"",updatedAt:0,blogContent:{content:"",createdAt:0,id:"",updatedAt:0},categoryId:"",imageId:"",isPublished:!1,locale:null,metadata:{canonicals:[],description:"",disableIndex:!1,pageTitle:null,slug:"",targetId:null,targetType:null,createdAt:0,id:"",updatedAt:0},publishedAt:null,shortDescription:"",storefrontId:"",tagIds:[],tags:[],title:"",writer:{firstName:"",lastName:""},category:r()}}function r(){return{createdAt:0,id:"",updatedAt:0,imageId:"",metadata:{canonicals:[],description:"",disableIndex:!1,pageTitle:null,slug:"",targetId:null,targetType:null,createdAt:0,id:"",updatedAt:0},name:""}}function i(){return{createdAt:0,id:"",updatedAt:0,deleted:!1,dateRange:null,metadata:null,name:"",requiredCustomerAccount:!1,status:!1,variants:[],products:[],verificationType:e.EMAIL}}export{l as getPlaceholderBlog,r as getPlaceholderBlogCategory,d as getPlaceholderBrand,n as getPlaceholderCategory,a as getPlaceholderProduct,i as getPlaceholderRaffle};
1
+ import{IkasProductType as t,IkasRaffleVerificationType as e}from"@ikas/storefront-models";function a(){return{id:"",name:"",type:t.PHYSICAL,description:"",shortDescription:"",metaData:null,brand:null,categories:[],tags:[],variants:[],attributes:[],variantTypes:[],productOptionSetId:null,baseUnit:null,averageRating:null,reviewCount:null,groupVariantsByVariantTypeId:null}}function n(){return{categoryPath:[],description:null,imageId:null,name:"",parentId:null,metaData:null,categoryPathItems:[],orderType:null,id:"",createdAt:0,updatedAt:0}}function d(){return{description:null,imageId:null,metaData:null,orderType:null,name:"",id:"",createdAt:0,updatedAt:0}}function l(){return{createdAt:0,id:"",updatedAt:0,blogContent:{content:"",createdAt:0,id:"",updatedAt:0},categoryId:"",imageId:"",isPublished:!1,locale:null,metadata:{canonicals:[],description:"",disableIndex:!1,pageTitle:null,slug:"",targetId:null,targetType:null,createdAt:0,id:"",updatedAt:0},publishedAt:null,shortDescription:"",storefrontId:"",tagIds:[],tags:[],title:"",writer:{firstName:"",lastName:""},category:r()}}function r(){return{createdAt:0,id:"",updatedAt:0,imageId:"",metadata:{canonicals:[],description:"",disableIndex:!1,pageTitle:null,slug:"",targetId:null,targetType:null,createdAt:0,id:"",updatedAt:0},name:""}}function i(){return{createdAt:0,id:"",updatedAt:0,deleted:!1,dateRange:null,metadata:null,name:"",requiredCustomerAccount:!1,status:!1,variants:[],products:[],verificationType:e.EMAIL}}export{l as getPlaceholderBlog,r as getPlaceholderBlogCategory,d as getPlaceholderBrand,n as getPlaceholderCategory,a as getPlaceholderProduct,i as getPlaceholderRaffle};
@@ -1,7 +1,8 @@
1
1
  import { IkasImage } from "@ikas/storefront-models";
2
2
  import IkasPropValueProvider from ".";
3
+ import { IkasImagePropValue } from "../../models/prop-value/image";
3
4
  export declare class IkasImageListPropValueProvider implements IkasPropValueProvider<IkasImage[]> {
4
5
  private imageListPropValue;
5
- constructor(imageListPropValue: string[]);
6
+ constructor(imageListPropValue: (string | IkasImagePropValue)[]);
6
7
  getValue(): Promise<IkasImage[]>;
7
8
  }
@@ -1 +1 @@
1
- import{__awaiter as t,__generator as i}from'./../../ext/tslib/tslib.es6.js';var n=function(){function n(t){this.imageListPropValue=t}return n.prototype.getValue=function(){return t(this,void 0,void 0,(function(){return i(this,(function(t){return[2,this.imageListPropValue.map((function(t){return{id:t,isVideo:!1}}))]}))}))},n}();export{n as IkasImageListPropValueProvider};
1
+ import{__awaiter as t,__generator as e}from'./../../ext/tslib/tslib.es6.js';var i=function(){function i(t){this.imageListPropValue=t}return i.prototype.getValue=function(){return t(this,void 0,void 0,(function(){return e(this,(function(t){return[2,this.imageListPropValue.map((function(t){return{id:"object"==typeof t?t.id:t,isVideo:!1,altText:"object"==typeof t?t.altText:null}}))]}))}))},i}();export{i as IkasImageListPropValueProvider};
@@ -1,7 +1,9 @@
1
1
  import { IkasImage } from "@ikas/storefront-models";
2
2
  import IkasPropValueProvider from ".";
3
+ import { IkasImagePropValue } from "../../models/prop-value/image";
3
4
  export declare class IkasImagePropValueProvider implements IkasPropValueProvider<IkasImage> {
4
5
  private imagePropValue;
5
- constructor(imagePropValue: string);
6
+ private isObject;
7
+ constructor(imagePropValue: string | IkasImagePropValue);
6
8
  getValue(): Promise<IkasImage>;
7
9
  }
@@ -1 +1 @@
1
- import{__awaiter as t,__generator as i}from'./../../ext/tslib/tslib.es6.js';var o=function(){function o(t){this.imagePropValue=t}return o.prototype.getValue=function(){return t(this,void 0,void 0,(function(){return i(this,(function(t){return[2,{id:this.imagePropValue,isVideo:!1}]}))}))},o}();export{o as IkasImagePropValueProvider};
1
+ import{__awaiter as t,__generator as e}from'./../../ext/tslib/tslib.es6.js';var i=function(){function i(t){this.isObject="object"==typeof t,this.isObject,this.imagePropValue=t}return i.prototype.getValue=function(){return t(this,void 0,void 0,(function(){return e(this,(function(t){return[2,{id:"object"==typeof this.imagePropValue?this.imagePropValue.id:this.imagePropValue,isVideo:!1,altText:"object"==typeof this.imagePropValue?this.imagePropValue.altText:null}]}))}))},i}();export{i as IkasImagePropValueProvider};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikas/storefront-providers",
3
- "version": "4.2.0-beta.4",
3
+ "version": "4.2.0-beta.6",
4
4
  "description": "Data providers for ikas storefront theme components.",
5
5
  "author": "ikas",
6
6
  "license": "ISC",
@@ -17,10 +17,10 @@
17
17
  },
18
18
  "devDependencies": {
19
19
  "@rollup/plugin-commonjs": "^22.0.0",
20
- "@ikas/storefront-api": "^4.2.0-beta.4",
21
- "@ikas/storefront-config": "^4.2.0-beta.4",
22
- "@ikas/storefront-model-functions": "^4.2.0-beta.4",
23
- "@ikas/storefront-models": "^4.2.0-beta.4",
20
+ "@ikas/storefront-api": "^4.2.0-beta.6",
21
+ "@ikas/storefront-config": "^4.2.0-beta.6",
22
+ "@ikas/storefront-model-functions": "^4.2.0-beta.6",
23
+ "@ikas/storefront-models": "^4.2.0-beta.6",
24
24
  "@rollup/plugin-node-resolve": "^13.3.0",
25
25
  "rollup-plugin-rename-node-modules": "^1.2.0",
26
26
  "@types/lodash": "^4.14.168",
@@ -38,10 +38,10 @@
38
38
  },
39
39
  "peerDependencies": {
40
40
  "mobx": "^6.1.3",
41
- "@ikas/storefront-api": "^4.2.0-beta.4",
42
- "@ikas/storefront-config": "^4.2.0-beta.4",
43
- "@ikas/storefront-model-functions": "^4.2.0-beta.4",
44
- "@ikas/storefront-models": "^4.2.0-beta.4",
41
+ "@ikas/storefront-api": "^4.2.0-beta.6",
42
+ "@ikas/storefront-config": "^4.2.0-beta.6",
43
+ "@ikas/storefront-model-functions": "^4.2.0-beta.6",
44
+ "@ikas/storefront-models": "^4.2.0-beta.6",
45
45
  "lodash": "^4.17.21"
46
46
  }
47
47
  }