@ikas/storefront-config 4.0.0-alpha.48 → 4.0.0-alpha.5

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.
Files changed (2) hide show
  1. package/package.json +3 -3
  2. package/src/index.ts +0 -16
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikas/storefront-config",
3
- "version": "4.0.0-alpha.48",
3
+ "version": "4.0.0-alpha.5",
4
4
  "description": "Common configuration for ikas storefront packages.",
5
5
  "main": "./src/index.ts",
6
6
  "module": "./src/index.ts",
@@ -17,7 +17,7 @@
17
17
  "license": "ISC",
18
18
  "dependencies": {},
19
19
  "devDependencies": {
20
- "@ikas/storefront-models": "^4.0.0-alpha.48",
20
+ "@ikas/storefront-models": "^4.0.0-alpha.5",
21
21
  "prettier": "^2.2.1",
22
22
  "rollup": "^2.75.6",
23
23
  "rollup-plugin-terser": "^7.0.2",
@@ -27,6 +27,6 @@
27
27
  "typescript-transform-paths": "^2.2.2"
28
28
  },
29
29
  "peerDependencies": {
30
- "@ikas/storefront-models": "^4.0.0-alpha.48"
30
+ "@ikas/storefront-models": "^4.0.0-alpha.5"
31
31
  }
32
32
  }
package/src/index.ts CHANGED
@@ -41,8 +41,6 @@ export class IkasStorefrontConfig {
41
41
  private static currentPageComponents?: Record<string, any>;
42
42
  private static isEditor = false;
43
43
 
44
- private static sessionId?: string;
45
- private static visitorId?: string;
46
44
  private static observers: IkasStorefrontConfigObserver[] = [];
47
45
 
48
46
  static addObserver(observer: IkasStorefrontConfigObserver) {
@@ -65,9 +63,6 @@ export class IkasStorefrontConfig {
65
63
  //@ts-ignore
66
64
  IkasStorefrontConfig[key] = value;
67
65
  });
68
- if (config.token) {
69
- IkasStorefrontConfig.apiKey = config.token;
70
- }
71
66
  this.notify();
72
67
  } catch (err) {
73
68
  console.error(err);
@@ -263,14 +258,6 @@ export class IkasStorefrontConfig {
263
258
  static getIsEditor() {
264
259
  return IkasStorefrontConfig.isEditor;
265
260
  }
266
-
267
- static getSessionId() {
268
- return IkasStorefrontConfig.sessionId;
269
- }
270
-
271
- static getVisitorId() {
272
- return IkasStorefrontConfig.visitorId;
273
- }
274
261
  }
275
262
 
276
263
  export type IkasStorefrontConfigObserver = {
@@ -285,7 +272,6 @@ export type IkasStorefrontConfigParams = {
285
272
  adminApiUrl?: string;
286
273
  cdnUrl?: string;
287
274
  apiKey?: string;
288
- token?: string;
289
275
  customerToken?: string;
290
276
  storefrontId?: string;
291
277
  storefrontRoutingId?: string;
@@ -312,6 +298,4 @@ export type IkasStorefrontConfigParams = {
312
298
  merchantSettings?: IkasMerchantSettings | null;
313
299
  currentPageComponents?: Record<string, any>;
314
300
  isEditor: boolean;
315
- sessionId?: string;
316
- visitorId?: string;
317
301
  };