@scayle/storefront-nuxt 7.52.0 → 7.53.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/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # @scayle/storefront-nuxt
2
2
 
3
+ ## 7.53.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Fix potential empty user after login
8
+ - Updated dependencies
9
+ - @scayle/storefront-core@7.38.1
10
+
11
+ ## 7.53.0
12
+
13
+ ### Minor Changes
14
+
15
+ - Nest public `runtimeConfig` properties under the `storefront` key
16
+
17
+ Breaking: `useRuntimeConfig().public.log` and `useRuntimeConfig().public.auth` should be replaced by `useRuntimeConfig().public.storefront.log` and `useRuntimeConfig().public.storefront.log`
18
+
3
19
  ## 7.52.0
4
20
 
5
21
  ### Minor Changes
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- export { g as AdditionalShopConfig, A as AppKeys, f as AuthenticationConfig, B as BapiConfig, b as CacheConfig, k as CheckoutEvent, C as CheckoutShopConfig, M as ModuleOptions, O as OauthConfig, P as PublicShopConfig, e as RedirectsConfig, R as RedisConfig, a as SessionConfig, h as ShopConfig, i as ShopConfigIndexed, d as StorageConfig, c as StorageEntity, S as StorageProvider, j as StorefrontConfig } from './shared/storefront-nuxt.8b6c06b3.mjs';
1
+ export { g as AdditionalShopConfig, A as AppKeys, f as AuthenticationConfig, B as BapiConfig, b as CacheConfig, k as CheckoutEvent, C as CheckoutShopConfig, M as ModuleOptions, O as OauthConfig, P as PublicShopConfig, e as RedirectsConfig, R as RedisConfig, a as SessionConfig, h as ShopConfig, i as ShopConfigIndexed, d as StorageConfig, c as StorageEntity, S as StorageProvider, j as StorefrontConfig } from './shared/storefront-nuxt.32ffc293.mjs';
2
2
  export { rpcCall } from './rpc.mjs';
3
3
  export * from '@scayle/storefront-core';
4
4
  export { LogLevel } from '@scayle/storefront-core';
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { g as AdditionalShopConfig, A as AppKeys, f as AuthenticationConfig, B as BapiConfig, b as CacheConfig, k as CheckoutEvent, C as CheckoutShopConfig, M as ModuleOptions, O as OauthConfig, P as PublicShopConfig, e as RedirectsConfig, R as RedisConfig, a as SessionConfig, h as ShopConfig, i as ShopConfigIndexed, d as StorageConfig, c as StorageEntity, S as StorageProvider, j as StorefrontConfig } from './shared/storefront-nuxt.8b6c06b3.js';
1
+ export { g as AdditionalShopConfig, A as AppKeys, f as AuthenticationConfig, B as BapiConfig, b as CacheConfig, k as CheckoutEvent, C as CheckoutShopConfig, M as ModuleOptions, O as OauthConfig, P as PublicShopConfig, e as RedirectsConfig, R as RedisConfig, a as SessionConfig, h as ShopConfig, i as ShopConfigIndexed, d as StorageConfig, c as StorageEntity, S as StorageProvider, j as StorefrontConfig } from './shared/storefront-nuxt.32ffc293.js';
2
2
  export { rpcCall } from './rpc.js';
3
3
  export * from '@scayle/storefront-core';
4
4
  export { LogLevel } from '@scayle/storefront-core';
package/dist/module.d.mts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as _nuxt_schema from '@nuxt/schema';
2
- import { M as ModuleOptions } from './shared/storefront-nuxt.8b6c06b3.mjs';
3
- export { g as AdditionalShopConfig, A as AppKeys, f as AuthenticationConfig, B as BapiConfig, b as CacheConfig, k as CheckoutEvent, C as CheckoutShopConfig, O as OauthConfig, P as PublicShopConfig, e as RedirectsConfig, R as RedisConfig, a as SessionConfig, h as ShopConfig, i as ShopConfigIndexed, d as StorageConfig, c as StorageEntity, S as StorageProvider, j as StorefrontConfig } from './shared/storefront-nuxt.8b6c06b3.mjs';
2
+ import { M as ModuleOptions } from './shared/storefront-nuxt.32ffc293.mjs';
3
+ export { g as AdditionalShopConfig, A as AppKeys, f as AuthenticationConfig, B as BapiConfig, b as CacheConfig, k as CheckoutEvent, C as CheckoutShopConfig, O as OauthConfig, P as PublicShopConfig, e as RedirectsConfig, R as RedisConfig, a as SessionConfig, h as ShopConfig, i as ShopConfigIndexed, d as StorageConfig, c as StorageEntity, S as StorageProvider, j as StorefrontConfig } from './shared/storefront-nuxt.32ffc293.mjs';
4
4
  export { LogLevel } from '@scayle/storefront-core';
5
5
  import '@scayle/unstorage-compression-driver';
6
6
  import 'unstorage';
package/dist/module.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as _nuxt_schema from '@nuxt/schema';
2
- import { M as ModuleOptions } from './shared/storefront-nuxt.8b6c06b3.js';
3
- export { g as AdditionalShopConfig, A as AppKeys, f as AuthenticationConfig, B as BapiConfig, b as CacheConfig, k as CheckoutEvent, C as CheckoutShopConfig, O as OauthConfig, P as PublicShopConfig, e as RedirectsConfig, R as RedisConfig, a as SessionConfig, h as ShopConfig, i as ShopConfigIndexed, d as StorageConfig, c as StorageEntity, S as StorageProvider, j as StorefrontConfig } from './shared/storefront-nuxt.8b6c06b3.js';
2
+ import { M as ModuleOptions } from './shared/storefront-nuxt.32ffc293.js';
3
+ export { g as AdditionalShopConfig, A as AppKeys, f as AuthenticationConfig, B as BapiConfig, b as CacheConfig, k as CheckoutEvent, C as CheckoutShopConfig, O as OauthConfig, P as PublicShopConfig, e as RedirectsConfig, R as RedisConfig, a as SessionConfig, h as ShopConfig, i as ShopConfigIndexed, d as StorageConfig, c as StorageEntity, S as StorageProvider, j as StorefrontConfig } from './shared/storefront-nuxt.32ffc293.js';
4
4
  export { LogLevel } from '@scayle/storefront-core';
5
5
  import '@scayle/unstorage-compression-driver';
6
6
  import 'unstorage';
package/dist/module.json CHANGED
@@ -4,5 +4,5 @@
4
4
  "compatibility": {
5
5
  "nuxt": "^3.9.0"
6
6
  },
7
- "version": "7.51.2"
7
+ "version": "7.53.0"
8
8
  }
package/dist/module.mjs CHANGED
@@ -100,12 +100,10 @@ const module = defineNuxtModule({
100
100
  nuxt.options.runtimeConfig.storefront,
101
101
  options
102
102
  );
103
- nuxt.options.runtimeConfig.cache = {
104
- auth: options.cache?.auth
103
+ nuxt.options.runtimeConfig.public.storefront = {
104
+ log: options.log,
105
+ auth: options.auth
105
106
  };
106
- nuxt.options.runtimeConfig.public.publicShopData = options.publicShopData;
107
- nuxt.options.runtimeConfig.public.log = options.log;
108
- nuxt.options.runtimeConfig.public.auth = options.auth;
109
107
  extendViteConfig((config) => {
110
108
  config.optimizeDeps = config.optimizeDeps || {};
111
109
  config.optimizeDeps.include = config.optimizeDeps.include || [];
package/dist/rpc.d.mts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { RpcMethodName, RpcMethodParameters, RpcMethodReturnType, RpcContext } from '@scayle/storefront-core';
2
2
  import { NuxtApp } from 'nuxt/app';
3
- import { P as PublicShopConfig } from './shared/storefront-nuxt.8b6c06b3.mjs';
3
+ import { P as PublicShopConfig } from './shared/storefront-nuxt.32ffc293.mjs';
4
4
  import '@scayle/unstorage-compression-driver';
5
5
  import 'unstorage';
6
6
 
package/dist/rpc.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { RpcMethodName, RpcMethodParameters, RpcMethodReturnType, RpcContext } from '@scayle/storefront-core';
2
2
  import { NuxtApp } from 'nuxt/app';
3
- import { P as PublicShopConfig } from './shared/storefront-nuxt.8b6c06b3.js';
3
+ import { P as PublicShopConfig } from './shared/storefront-nuxt.32ffc293.js';
4
4
  import '@scayle/unstorage-compression-driver';
5
5
  import 'unstorage';
6
6
 
@@ -3,7 +3,11 @@ import { createConsola } from "consola/browser";
3
3
  import createLog from "../createLog.mjs";
4
4
  export default defineNuxtPlugin((nuxtApp) => {
5
5
  const config = useRuntimeConfig().public;
6
- const log = createLog(createConsola, config.log.name, config.log.level);
6
+ const log = createLog(
7
+ createConsola,
8
+ config.storefront.log.name,
9
+ config.storefront.log.level
10
+ );
7
11
  const coreLog = log.space("sfc");
8
12
  coreLog.debug("Attached client-side logger");
9
13
  addClientSideErrorHandling(log, nuxtApp.vueApp);
@@ -175,12 +175,13 @@ declare module '@nuxt/schema' {
175
175
  storefront: ModuleOptions;
176
176
  }
177
177
  interface PublicRuntimeConfig {
178
- imageBaseUrl: string;
179
- log: {
180
- name: string;
181
- level: LogLevel;
178
+ storefront: {
179
+ log: {
180
+ name: string;
181
+ level: LogLevel;
182
+ };
183
+ auth: AuthenticationConfig;
182
184
  };
183
- auth: AuthenticationConfig;
184
185
  }
185
186
  }
186
187
 
@@ -175,12 +175,13 @@ declare module '@nuxt/schema' {
175
175
  storefront: ModuleOptions;
176
176
  }
177
177
  interface PublicRuntimeConfig {
178
- imageBaseUrl: string;
179
- log: {
180
- name: string;
181
- level: LogLevel;
178
+ storefront: {
179
+ log: {
180
+ name: string;
181
+ level: LogLevel;
182
+ };
183
+ auth: AuthenticationConfig;
182
184
  };
183
- auth: AuthenticationConfig;
184
185
  }
185
186
  }
186
187
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@scayle/storefront-nuxt",
3
3
  "type": "module",
4
- "version": "7.52.0",
4
+ "version": "7.53.1",
5
5
  "description": "Nuxt integration for the SCAYLE Commerce Engine and Storefront API",
6
6
  "author": "SCAYLE Commerce Engine",
7
7
  "license": "MIT",
@@ -62,7 +62,7 @@
62
62
  "dependencies": {
63
63
  "@nuxt/kit": "3.9.3",
64
64
  "@scayle/h3-session": "0.3.5",
65
- "@scayle/storefront-core": "7.38.0",
65
+ "@scayle/storefront-core": "7.38.1",
66
66
  "@scayle/unstorage-compression-driver": "0.1.1",
67
67
  "@vueuse/core": "10.7.2",
68
68
  "consola": "3.2.3",