@ikas/storefront 2.0.0-alpha.9 → 2.0.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/build/__generated__/global-types.d.ts +9 -2
- package/build/__generated__/global-types.js +1 -1
- package/build/_virtual/index.js_commonjs-proxy2.js +1 -1
- package/build/_virtual/index.js_commonjs-proxy3.js +1 -1
- package/build/analytics/facebookPixel.js +1 -1
- package/build/analytics/googleTagManager.js +1 -1
- package/build/analytics/head/index.js +1 -1
- package/build/analytics/ikas.js +1 -1
- package/build/api/apollo.js +1 -1
- package/build/api/blog/__generated__/getBlog.d.ts +14 -16
- package/build/api/blog/__generated__/listBlog.d.ts +14 -16
- package/build/api/blog/__generated__/listBlogCategory.d.ts +14 -16
- package/build/api/blog/__generated__/listBlogMetaData.d.ts +14 -16
- package/build/api/brand/__generated__/listProductBrand.d.ts +3 -3
- package/build/api/cart/__generated__/getCart.d.ts +2 -4
- package/build/api/cart/__generated__/saveItemToCart.d.ts +2 -4
- package/build/api/category/__generated__/listCategory.d.ts +3 -3
- package/build/api/checkout/__generated__/getCheckoutById.d.ts +2 -4
- package/build/api/checkout/__generated__/getOrder.d.ts +5 -11
- package/build/api/checkout/__generated__/listCheckoutSettings.d.ts +1 -1
- package/build/api/checkout/index.js +1 -1
- package/build/api/customer/__generated__/createOrderRefundRequest.d.ts +5 -11
- package/build/api/customer/__generated__/customerLogin.d.ts +12 -5
- package/build/api/customer/__generated__/customerSocialLogin.d.ts +161 -0
- package/build/api/customer/__generated__/getCustomerOrders.d.ts +5 -11
- package/build/api/customer/__generated__/getMyCustomer.d.ts +4 -5
- package/build/api/customer/__generated__/registerCustomer.d.ts +12 -5
- package/build/api/customer/__generated__/saveMyCustomer.d.ts +12 -5
- package/build/api/customer/index.d.ts +5 -0
- package/build/api/customer/index.js +1 -1
- package/build/api/customer-review/__generated__/listCustomerReviews.d.ts +14 -16
- package/build/api/product-option-set/index.js +1 -1
- package/build/api/raffle/__generated__/listRaffle.d.ts +14 -16
- package/build/api/raffle/__generated__/saveRaffleParticipant.d.ts +2 -2
- package/build/api/raffle/index.js +1 -1
- package/build/api/variant-type/__generated__/listVariantType.d.ts +3 -7
- package/build/components/checkout/components/address-form/index.js +1 -1
- package/build/components/checkout/components/address-form/model.d.ts +8 -0
- package/build/components/checkout/components/cart-summary/cart-item/index.js +1 -1
- package/build/components/checkout/components/cart-summary/index.js +1 -1
- package/build/components/checkout/components/cart-summary/style.module.scss.js +1 -1
- package/build/components/checkout/components/step-container/index.js +1 -1
- package/build/components/checkout/index.js +1 -1
- package/build/components/checkout/model.d.ts +2 -0
- package/build/components/checkout/model.js +1 -1
- package/build/components/checkout/steps/step-payment/payment-gateways/index.js +1 -1
- package/build/components/checkout/steps/step-payment/payment-gateways/installments/index.js +1 -1
- package/build/components/checkout/steps/step-shipping/index.js +1 -1
- package/build/components/checkout/steps/step-success/index.js +1 -1
- package/build/components/index.d.ts +1 -1
- package/build/components/page/ThemeComponent.js +1 -1
- package/build/components/page/head.js +1 -1
- package/build/components/page/index.js +1 -1
- package/build/components/page-editor/ThemeComponentEditor.d.ts +1 -2
- package/build/components/page-editor/ThemeComponentEditor.js +1 -1
- package/build/components/page-editor/index.d.ts +3 -1
- package/build/components/page-editor/index.js +1 -1
- package/build/components/page-editor/loader/index.d.ts +5 -1
- package/build/components/page-editor/loader/index.js +1 -1
- package/build/components/page-editor/loader/style.module.scss.js +1 -1
- package/build/components/page-editor/model.d.ts +8 -4
- package/build/components/page-editor/model.js +1 -1
- package/build/ext/@apollo/client/cache/inmemory/entityStore.js +1 -1
- package/build/ext/@apollo/client/cache/inmemory/inMemoryCache.js +1 -1
- package/build/ext/@apollo/client/cache/inmemory/policies.js +1 -1
- package/build/ext/@apollo/client/cache/inmemory/readFromStore.js +1 -1
- package/build/ext/@apollo/client/cache/inmemory/writeToStore.js +1 -1
- package/build/ext/@apollo/client/core/ApolloClient.js +1 -1
- package/build/ext/@apollo/client/core/LocalState.js +1 -1
- package/build/ext/@apollo/client/core/ObservableQuery.js +1 -1
- package/build/ext/@apollo/client/core/QueryManager.js +1 -1
- package/build/ext/@apollo/client/errors/index.js +1 -1
- package/build/ext/@apollo/client/ext/tslib/tslib.es6.js +15 -0
- package/build/ext/@apollo/client/link/context/index.js +1 -1
- package/build/ext/@apollo/client/link/core/ApolloLink.js +1 -1
- package/build/ext/@apollo/client/link/error/index.js +1 -1
- package/build/ext/@apollo/client/link/http/HttpLink.js +1 -1
- package/build/ext/@apollo/client/link/http/createHttpLink.js +1 -1
- package/build/ext/@apollo/client/link/http/selectHttpOptionsAndBody.js +1 -1
- package/build/ext/@apollo/client/link/utils/createOperation.js +1 -1
- package/build/ext/@apollo/client/utilities/common/mergeDeep.js +1 -1
- package/build/ext/@apollo/client/utilities/graphql/fragments.js +1 -1
- package/build/ext/@apollo/client/utilities/graphql/transform.js +1 -1
- package/build/ext/@apollo/client/utilities/observables/Concast.js +1 -1
- package/build/ext/ts-invariant/ext/tslib/tslib.es6.js +15 -0
- package/build/ext/ts-invariant/lib/invariant.esm.js +1 -1
- package/build/ext/tslib/tslib.es6.js +1 -1
- package/build/ikas.js +67 -2
- package/build/index.js +1 -1
- package/build/models/data/blog/index.js +1 -1
- package/build/models/data/brand/index.js +1 -1
- package/build/models/data/category/index.js +1 -1
- package/build/models/data/checkout/index.js +1 -1
- package/build/models/data/checkout-settings/index.d.ts +1 -1
- package/build/models/data/checkout-settings/index.js +1 -1
- package/build/models/data/customer/address/index.d.ts +4 -1
- package/build/models/data/customer/address/index.js +1 -1
- package/build/models/data/image/index.js +1 -1
- package/build/models/data/index.d.ts +1 -0
- package/build/models/data/language/index.d.ts +6 -0
- package/build/models/data/order/address/index.d.ts +2 -1
- package/build/models/data/order/address/index.js +1 -1
- package/build/models/data/order/line-item/variant/index.js +1 -1
- package/build/models/data/product/index.js +1 -1
- package/build/models/data/product-filter/index.js +1 -1
- package/build/models/data/product-option-set/index.d.ts +4 -0
- package/build/models/data/product-option-set/index.js +1 -1
- package/build/models/data/raffle/index.d.ts +1 -1
- package/build/models/data/raffle/index.js +1 -1
- package/build/models/data/slider/index.d.ts +5 -0
- package/build/models/data/slider/index.js +1 -0
- package/build/models/theme/component/index.d.ts +9 -0
- package/build/models/theme/component/index.js +1 -1
- package/build/models/theme/component/prop/index.d.ts +21 -0
- package/build/models/theme/component/prop/index.js +1 -1
- package/build/models/theme/custom-data/index.d.ts +20 -1
- package/build/models/theme/custom-data/index.js +1 -1
- package/build/models/theme/settings/color/index.d.ts +14 -0
- package/build/models/theme/settings/color/index.js +1 -0
- package/build/models/theme/settings/{prop/favicon → favicon}/index.d.ts +0 -0
- package/build/models/theme/settings/{prop/favicon → favicon}/index.js +0 -0
- package/build/models/theme/settings/font-family/index.d.ts +5 -0
- package/build/models/theme/settings/font-family/index.js +1 -0
- package/build/models/theme/settings/index.d.ts +4 -2
- package/build/models/theme/settings/index.js +1 -1
- package/build/models/ui/product-detail/index.js +1 -1
- package/build/models/ui/product-list/index.d.ts +1 -1
- package/build/models/ui/product-list/index.js +1 -1
- package/build/models/ui/validator/form/account-info.js +1 -1
- package/build/models/ui/validator/form/address.js +1 -1
- package/build/models/ui/validator/form/register.js +1 -1
- package/build/pages/checkout.js +1 -1
- package/build/pages/editor.d.ts +4 -3
- package/build/pages/editor.js +1 -1
- package/build/providers/page-data-get.d.ts +1 -1
- package/build/providers/page-data-get.js +1 -1
- package/build/providers/page-data-init.d.ts +3 -1
- package/build/providers/page-data-init.js +1 -1
- package/build/providers/page-data-next.d.ts +2 -1
- package/build/providers/page-data-next.js +1 -1
- package/build/providers/prop-value/custom.d.ts +1 -0
- package/build/providers/prop-value/custom.js +1 -1
- package/build/providers/prop-value/slider.d.ts +11 -0
- package/build/providers/prop-value/slider.js +1 -0
- package/build/scripts/generators/components/index.js +1 -1
- package/build/scripts/generators/config/content.d.ts +2 -3
- package/build/scripts/generators/config/content.js +1 -1
- package/build/scripts/generators/config/index.js +1 -1
- package/build/scripts/generators/index.d.ts +1 -0
- package/build/scripts/generators/pages/index.js +1 -1
- package/build/scripts/generators/store/index.js +1 -1
- package/build/scripts/generators/theme/index.js +1 -1
- package/build/scripts/generators/types/index.d.ts +15 -0
- package/build/scripts/generators/types/index.js +1 -0
- package/build/store/cart.d.ts +6 -7
- package/build/store/cart.js +1 -1
- package/build/store/customer.d.ts +19 -0
- package/build/store/customer.js +1 -1
- package/build/storefront/index.d.ts +5 -3
- package/build/storefront/index.js +1 -1
- package/build/utils/fs.js +1 -1
- package/build/utils/google-fonts.d.ts +2 -0
- package/build/utils/google-fonts.js +1 -0
- package/package.json +9 -9
- package/build/models/theme/settings/prop/color/index.d.ts +0 -7
- package/build/models/theme/settings/prop/color/index.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
var t=function(){function t(){}return t.init=function(n,o
|
|
1
|
+
var t=function(){function t(){}return t.init=function(n,r,o){t.store=n,t.config=r,t.apiUrlOverride=o||null,"local"===process.env.NEXT_PUBLIC_ENV&&(this.storefrontId=r.storefrontId)},t.initWithJson=function(n,r){try{Object.entries(n).forEach((function(n){var r=n[0],o=n[1];t[r]=o})),t.router=r}catch(t){console.log(t)}},t.getCurrentLocale=function(){var n;return(null===(n=t.routings.find((function(n){return n.id===t.storefrontRoutingId})))||void 0===n?void 0:n.locale)||"en"},t.getJson=function(){return{domain:t.domain,storefrontId:t.storefrontId||null,storefrontRoutingId:t.storefrontRoutingId||null,storefrontThemeId:t.storefrontThemeId||null,salesChannelId:t.salesChannelId||null,priceListId:t.priceListId||null,stockLocationIds:t.stockLocationIds||null,routings:JSON.parse(JSON.stringify(t.routings))||null,paymentGateways:JSON.parse(JSON.stringify(t.paymentGateways))||null,gtmId:t.gtmId||null,fbpId:t.fbpId||null,favicon:JSON.parse(JSON.stringify(t.favicon)),stockPreference:t.stockPreference||null,storefrontJSScripts:t.storefrontJSScripts||[],translations:this.translations,customerReviewSettings:t.customerReviewSettings,productBackInStockSettings:t.productBackInStockSettings?JSON.parse(JSON.stringify(t.productBackInStockSettings)):null}},t.config={},t.apiUrlOverride=null,t.routings=[],t.paymentGateways=[],t.translations={},t.storefrontJSScripts=[],t.isEditor=!1,t}();export{t as IkasStorefrontConfig};
|
package/build/utils/fs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__awaiter as r,__generator as t,
|
|
1
|
+
import{__awaiter as r,__generator as t,__spreadArray as n}from'../ext/tslib/tslib.es6.js';import i from"fs";import e from"path";function o(r){var t=r.split("/");return t.length>1?{dirParts:t.slice(0,t.length-1),filePart:t[t.length-1]}:{filePart:r}}function u(n,o){return r(this,void 0,void 0,(function(){return t(this,(function(r){try{return i.readdirSync(n).forEach((function(r){(null==o?void 0:o.includes(r))||i.unlinkSync(e.join(n,r))})),[2,!0]}catch(r){return[2,!1]}return[2]}))}))}function c(u,c,l){var s;return r(this,void 0,void 0,(function(){var r,d,f;return t(this,(function(t){try{return r=u,d=o(c),(null===(s=d.dirParts)||void 0===s?void 0:s.length)&&(r=e.join.apply(e,n([r],d.dirParts,!1))),i.existsSync(r)||i.mkdirSync(r,{recursive:!0}),f=e.join(r,d.filePart),i.writeFileSync(f,l),[2,!0]}catch(r){return console.error(r),[2,!1]}return[2]}))}))}export{c as createFile,u as deleteDirContent,o as getFilePathParts};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var a=function(a){if(a.name){var t=a.name.replace(/ /g,"+"),e="";if(a.variants){e+=":";var r=a.variants.some((function(a){return"italic"===a}));if(r&&(e+="ital,"),e+="wght@",r){var n=new RegExp("italic","i");e+=a.variants.reduce((function(a,t){return n.test(t)?a:a+"0,".concat(t.replace("regular","400"),";")}),""),e+=a.variants.reduce((function(a,t){return n.test(t)?a+"1,".concat("italic"===t?"400":t.replace("italic",""),";"):a}),"")}else e+=a.variants.reduce((function(a,t){return a+"".concat(t.replace("regular","400"),";")}),"");e=e.substring(0,e.length-1),e+="&display=swap"}return"https://fonts.googleapis.com/css2?family=".concat(t).concat(e)}};export{a as getGoogleFontHref};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ikas/storefront",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"main": "./build/index.js",
|
|
5
5
|
"module": "./build/index.js",
|
|
6
6
|
"author": "Umut Ozan Yıldırım",
|
|
@@ -23,10 +23,9 @@
|
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"mobx": "^6.1.3",
|
|
25
25
|
"mobx-react-lite": "^3.1.5",
|
|
26
|
-
"next": "12.0.
|
|
26
|
+
"next": "12.0.7",
|
|
27
27
|
"react": "17.0.2",
|
|
28
|
-
"react-dom": "17.0.2"
|
|
29
|
-
"fs-extra": "^10.0.0"
|
|
28
|
+
"react-dom": "17.0.2"
|
|
30
29
|
},
|
|
31
30
|
"dependencies": {
|
|
32
31
|
"@apollo/client": "3.3.7",
|
|
@@ -54,7 +53,6 @@
|
|
|
54
53
|
"@types/archiver": "^5.1.0",
|
|
55
54
|
"@types/command-line-args": "^5.2.0",
|
|
56
55
|
"@types/cors": "^2.8.9",
|
|
57
|
-
"@types/fs-extra": "^9.0.13",
|
|
58
56
|
"@types/jest": "^26.0.14",
|
|
59
57
|
"@types/lodash": "^4.14.168",
|
|
60
58
|
"@types/node": "^14.14.6",
|
|
@@ -74,10 +72,9 @@
|
|
|
74
72
|
"eslint-plugin-prettier": "^3.3.1",
|
|
75
73
|
"eslint-plugin-react": "^7.21.2",
|
|
76
74
|
"jest": "^26.4.2",
|
|
77
|
-
"fs-extra": "^10.0.0",
|
|
78
75
|
"mobx": "^6.1.3",
|
|
79
76
|
"mobx-react-lite": "^3.1.5",
|
|
80
|
-
"next": "
|
|
77
|
+
"next": "12.0.7",
|
|
81
78
|
"postcss": "^8.4.4",
|
|
82
79
|
"prettier": "^2.2.1",
|
|
83
80
|
"react": "17.0.2",
|
|
@@ -91,12 +88,15 @@
|
|
|
91
88
|
"rollup-plugin-rename-node-modules": "^1.2.0",
|
|
92
89
|
"rollup-plugin-terser": "^7.0.2",
|
|
93
90
|
"rollup-plugin-typescript": "^1.0.1",
|
|
94
|
-
"rollup-plugin-typescript2": "^0.
|
|
91
|
+
"rollup-plugin-typescript2": "^0.31.1",
|
|
95
92
|
"sass": "^1.44.0",
|
|
93
|
+
"rollup-watch": "^4.3.1",
|
|
96
94
|
"ts-essentials": "^7.0.1",
|
|
97
95
|
"ts-jest": "^26.4.0",
|
|
96
|
+
"ts-loader": "^8.0.4",
|
|
97
|
+
"tslib": "^2.3.1",
|
|
98
98
|
"ttypescript": "^1.5.12",
|
|
99
|
-
"typescript": "^4.
|
|
99
|
+
"typescript": "^4.5.4",
|
|
100
100
|
"typescript-transform-paths": "^2.2.2",
|
|
101
101
|
"typings": "^2.1.1"
|
|
102
102
|
},
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{makeAutoObservable as i}from"mobx";import o from'../../../../../ext/uuid/dist/esm-browser/v4.js';var s=function(s){this.id=s.id||o(),this.displayName=s.displayName||"",this.key=s.key||"",this.color=s.color||"",i(this)};export{s as IkasThemeColor};
|