@ikas/storefront 2.0.39-alpha.2 → 2.0.39

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.
@@ -1,7 +1,6 @@
1
1
  export declare class IkasImage {
2
2
  id: string;
3
- isVideo: boolean;
4
- constructor(id: string, isVideo?: boolean);
3
+ constructor(id: string);
5
4
  get editorApiKey(): any;
6
5
  get src(): string;
7
6
  get thumbnailSrc(): string;
@@ -1 +1 @@
1
- import{makeAutoObservable as e}from"mobx";import{decodeBase64 as t}from"../../../utils/helper.js";import{IkasStorefrontConfig as i}from"../../../storefront/index.js";import"../../../utils/i18n.js";var o=function(){function o(t,i){this.id=t,this.isVideo=i||!1,e(this)}return Object.defineProperty(o.prototype,"editorApiKey",{get:function(){if("undefined"!=typeof window)return window.editorApiKey},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"src",{get:function(){return this.getSrc(1080)},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"thumbnailSrc",{get:function(){return this.getSrc(180)},enumerable:!1,configurable:!0}),o.prototype.getSrc=function(e){if(this.id.includes("/"))return this.isVideo?"".concat(process.env.NEXT_PUBLIC_IMG_BASE_URL,"videos/").concat(this.id,"/original.mp4"):"".concat(process.env.NEXT_PUBLIC_IMG_BASE_URL,"images/").concat(this.id,"/image_").concat(e,".webp");var o=t(this.editorApiKey||i.config.apiKey||"");return this.isVideo?"".concat(process.env.NEXT_PUBLIC_IMG_BASE_URL,"videos/").concat(o,"/").concat(this.id,"/original.mp4"):"".concat(process.env.NEXT_PUBLIC_IMG_BASE_URL,"images/").concat(o,"/").concat(this.id,"/image_").concat(e,".webp")},o}();export{o as IkasImage};
1
+ import{makeAutoObservable as e}from"mobx";import{decodeBase64 as t}from"../../../utils/helper.js";import{IkasStorefrontConfig as i}from"../../../storefront/index.js";import"../../../utils/i18n.js";var r=function(){function r(t){this.id=t,e(this)}return Object.defineProperty(r.prototype,"editorApiKey",{get:function(){if("undefined"!=typeof window)return window.editorApiKey},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"src",{get:function(){return this.getSrc(1080)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"thumbnailSrc",{get:function(){return this.getSrc(180)},enumerable:!1,configurable:!0}),r.prototype.getSrc=function(e){if(this.id.includes("/"))return"".concat(process.env.NEXT_PUBLIC_IMG_BASE_URL,"images/").concat(this.id,"/image_").concat(e,".webp");var r=t(this.editorApiKey||i.config.apiKey||"");return"".concat(process.env.NEXT_PUBLIC_IMG_BASE_URL,"images/").concat(r,"/").concat(this.id,"/image_").concat(e,".webp")},r}();export{r as IkasImage};
@@ -53,7 +53,6 @@ export interface ISimpleProductPrice {
53
53
  export interface ISimpleProductImage {
54
54
  order: number;
55
55
  isMain: boolean;
56
- isVideo?: boolean;
57
56
  id: string;
58
57
  }
59
58
  export interface ISimpleVariationValueRelation {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikas/storefront",
3
- "version": "2.0.39-alpha.2",
3
+ "version": "2.0.39",
4
4
  "main": "./build/index.js",
5
5
  "module": "./build/index.js",
6
6
  "author": "Umut Ozan Yıldırım",
@@ -77,8 +77,6 @@
77
77
  "next": "12.0.7",
78
78
  "postcss": "^8.4.4",
79
79
  "prettier": "^2.2.1",
80
- "react": "17.0.2",
81
- "react-dom": "17.0.2",
82
80
  "rollup": "^2.38.4",
83
81
  "rollup-plugin-copy-assets": "^2.0.3",
84
82
  "rollup-plugin-executable": "^1.6.3",