@scayle/storefront-nuxt 7.85.8 → 7.85.9

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 (42) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/index.d.mts +5 -15
  3. package/dist/index.d.ts +5 -15
  4. package/dist/index.mjs +2 -16
  5. package/dist/module.d.mts +4 -4
  6. package/dist/module.d.ts +4 -4
  7. package/dist/module.mjs +5 -25
  8. package/dist/rpc.d.mts +1 -16
  9. package/dist/rpc.d.ts +1 -16
  10. package/dist/rpc.mjs +1 -20
  11. package/dist/runtime/api/rpcHandler.d.ts +55 -1
  12. package/dist/runtime/api/rpcHandler.mjs +1 -1
  13. package/dist/runtime/composables/core/useAvailableShops.d.ts +1 -1
  14. package/dist/runtime/composables/storefront/useFacet.d.ts +28 -24
  15. package/dist/runtime/composables/storefront/useSearch.d.ts +3 -3
  16. package/dist/runtime/composables/storefront/useStorefrontSearch.d.ts +2 -2
  17. package/dist/runtime/context.mjs +1 -1
  18. package/dist/runtime/error/handler.d.ts +1 -1
  19. package/dist/runtime/nitro/plugins/cacheRuntimeConfig.d.ts +1 -1
  20. package/dist/runtime/nitro/plugins/cacheRuntimeConfig.mjs +2 -1
  21. package/dist/runtime/nitro/plugins/configValidation.d.ts +8 -3
  22. package/dist/runtime/nitro/plugins/configValidation.mjs +7 -5
  23. package/dist/runtime/nitro/plugins/nitroLogger.d.ts +1 -1
  24. package/dist/runtime/nitro/plugins/nitroLogger.mjs +2 -1
  25. package/dist/runtime/nitro/plugins/nitroRuntimeStorageConfig.d.ts +1 -1
  26. package/dist/runtime/nitro/plugins/nitroRuntimeStorageConfig.mjs +7 -5
  27. package/dist/runtime/nitro/plugins/nitroSetXPoweredByHeader.d.ts +1 -1
  28. package/dist/runtime/nitro/plugins/nitroSetXPoweredByHeader.mjs +1 -1
  29. package/dist/runtime/server/middleware/bootstrap.mjs +1 -1
  30. package/dist/runtime/server/middleware/bootstrap.utils.d.ts +6 -2
  31. package/dist/runtime/server/middleware/bootstrap.utils.mjs +2 -2
  32. package/dist/runtime/server/tsconfig.json +1 -1
  33. package/dist/runtime/utils/zodSchema.d.ts +261 -153
  34. package/dist/runtime/utils/zodSchema.mjs +16 -7
  35. package/dist/shared/storefront-nuxt.77c99ba5.d.mts +102 -0
  36. package/dist/shared/storefront-nuxt.77c99ba5.d.ts +102 -0
  37. package/package.json +11 -11
  38. package/dist/module.json +0 -8
  39. package/dist/shared/storefront-nuxt.891170da.d.mts +0 -1205
  40. package/dist/shared/storefront-nuxt.891170da.d.ts +0 -1205
  41. package/dist/types.d.mts +0 -14
  42. package/dist/types.d.ts +0 -14
@@ -1,6 +1,6 @@
1
1
  import { type H3Event } from 'h3';
2
2
  import type { ModuleBaseOptions, PublicShopConfig, ShopConfig, ShopConfigIndexed } from '../../../module';
3
- import type { NitroRuntimeConfig } from 'nitropack';
3
+ import type { NitroRuntimeConfigApp } from 'nitropack';
4
4
  type BootstrapPath = {
5
5
  path: string;
6
6
  originalPath: string;
@@ -9,7 +9,11 @@ export declare function getBootstrapPath(event: H3Event): BootstrapPath;
9
9
  export declare const getShopByPath: (event: H3Event, shops: ShopConfig[], appBasePath: string) => ShopConfig | undefined;
10
10
  export declare const convertShopsToList: (shops: ShopConfig[] | ShopConfigIndexed) => ShopConfig[];
11
11
  export declare function getApiBasePath(storefrontConfig: ModuleBaseOptions, shop: ShopConfig, baseUrl: string): string;
12
- export declare function getCurrentShopConfigForRequest(event: H3Event, storefrontConfig: ModuleBaseOptions, runtimeConfig: NitroRuntimeConfig): ShopConfig | undefined;
12
+ export declare function getCurrentShopConfigForRequest(event: H3Event, storefrontConfig: Pick<Extract<ModuleBaseOptions, {
13
+ shops: ShopConfigIndexed;
14
+ }>, 'shops' | 'shopSelector'> | Pick<Extract<ModuleBaseOptions, {
15
+ stores: ShopConfigIndexed;
16
+ }>, 'stores' | 'shopSelector'>, runtimeConfig: NitroRuntimeConfigApp): ShopConfig | undefined;
13
17
  export declare function getPublicShopData(data: ShopConfig, currentShopId: number, apiBasePath: string, publicShopData?: (keyof ShopConfig)[]): PublicShopConfig & {
14
18
  isActive: boolean;
15
19
  };
@@ -59,12 +59,12 @@ export function getCurrentShopConfigForRequest(event, storefrontConfig, runtimeC
59
59
  } else if (shopSelector === "domain") {
60
60
  $shopConfig = getShopByDomain(event, shopsList);
61
61
  } else if (shopSelector === "path") {
62
- $shopConfig = getShopByPath(event, shopsList, runtimeConfig.app.baseURL);
62
+ $shopConfig = getShopByPath(event, shopsList, runtimeConfig.baseURL);
63
63
  } else if (shopSelector === "path_or_default") {
64
64
  $shopConfig = getShopByPathOrDefault(
65
65
  event,
66
66
  shopsList,
67
- runtimeConfig.app.baseURL
67
+ runtimeConfig.baseURL
68
68
  );
69
69
  }
70
70
  return $shopConfig;
@@ -1,4 +1,4 @@
1
1
  {
2
- "extends": "../../../playground/.nuxt/tsconfig.server.json",
2
+ "extends": "../../../.nuxt/tsconfig.server.json",
3
3
  "exclude": ["../../../dist", "../../../test", "../../../playground"]
4
4
  }