@scayle/storefront-nuxt 7.85.9 → 7.85.11
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 +12 -0
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.mjs +2 -2
- package/dist/module.d.mts +3 -3
- package/dist/module.d.ts +3 -3
- package/dist/module.json +12 -0
- package/dist/module.mjs +2 -2
- package/dist/rpc.d.mts +1 -1
- package/dist/rpc.d.ts +1 -1
- package/dist/rpc.mjs +1 -1
- package/dist/runtime/api/{purgeAll.mjs → purgeAll.js} +1 -1
- package/dist/runtime/api/{purgeTags.mjs → purgeTags.js} +1 -1
- package/dist/runtime/api/{rpcHandler.mjs → rpcHandler.js} +2 -2
- package/dist/runtime/composables/core/useAvailableShops.d.ts +1 -1
- package/dist/runtime/composables/core/useCurrentShop.d.ts +1 -1
- package/dist/runtime/composables/core/{useFormatHelpers.mjs → useFormatHelpers.js} +1 -1
- package/dist/runtime/composables/core/useIDP.d.ts +1 -1
- package/dist/runtime/composables/core/{useIDP.mjs → useIDP.js} +3 -3
- package/dist/runtime/composables/core/{useRpc.mjs → useRpc.js} +3 -3
- package/dist/runtime/composables/core/{useRpcCall.mjs → useRpcCall.js} +2 -2
- package/dist/runtime/composables/core/{useSession.mjs → useSession.js} +1 -1
- package/dist/runtime/composables/core/useUser.d.ts +1 -1
- package/dist/runtime/composables/core/{useUser.mjs → useUser.js} +4 -4
- package/dist/runtime/composables/index.d.ts +36 -36
- package/dist/runtime/composables/index.js +36 -0
- package/dist/runtime/composables/storefront/useBasket.d.ts +1 -1
- package/dist/runtime/composables/storefront/{useBasket.mjs → useBasket.js} +3 -3
- package/dist/runtime/composables/storefront/useBrand.d.ts +1 -1
- package/dist/runtime/composables/storefront/{useBrand.mjs → useBrand.js} +1 -1
- package/dist/runtime/composables/storefront/useBrands.d.ts +1 -1
- package/dist/runtime/composables/storefront/{useBrands.mjs → useBrands.js} +1 -1
- package/dist/runtime/composables/storefront/useCategories.d.ts +1 -1
- package/dist/runtime/composables/storefront/{useCategories.mjs → useCategories.js} +3 -3
- package/dist/runtime/composables/storefront/useCategoryById.d.ts +1 -1
- package/dist/runtime/composables/storefront/{useCategoryById.mjs → useCategoryById.js} +1 -1
- package/dist/runtime/composables/storefront/useCategoryByPath.d.ts +1 -1
- package/dist/runtime/composables/storefront/{useCategoryByPath.mjs → useCategoryByPath.js} +1 -1
- package/dist/runtime/composables/storefront/useCurrentPromotions.d.ts +1 -1
- package/dist/runtime/composables/storefront/{useCurrentPromotions.mjs → useCurrentPromotions.js} +1 -1
- package/dist/runtime/composables/storefront/{useFacet.mjs → useFacet.js} +5 -5
- package/dist/runtime/composables/storefront/useFilters.d.ts +1 -1
- package/dist/runtime/composables/storefront/{useFilters.mjs → useFilters.js} +1 -1
- package/dist/runtime/composables/storefront/useNavigationTree.d.ts +1 -1
- package/dist/runtime/composables/storefront/{useNavigationTree.mjs → useNavigationTree.js} +1 -1
- package/dist/runtime/composables/storefront/useNavigationTrees.d.ts +1 -1
- package/dist/runtime/composables/storefront/{useNavigationTrees.mjs → useNavigationTrees.js} +1 -1
- package/dist/runtime/composables/storefront/useOrder.d.ts +1 -1
- package/dist/runtime/composables/storefront/{useOrder.mjs → useOrder.js} +1 -1
- package/dist/runtime/composables/storefront/useOrderConfirmation.d.ts +1 -1
- package/dist/runtime/composables/storefront/{useOrderConfirmation.mjs → useOrderConfirmation.js} +1 -1
- package/dist/runtime/composables/storefront/useProduct.d.ts +1 -1
- package/dist/runtime/composables/storefront/{useProduct.mjs → useProduct.js} +1 -1
- package/dist/runtime/composables/storefront/useProducts.d.ts +1 -1
- package/dist/runtime/composables/storefront/{useProducts.mjs → useProducts.js} +1 -1
- package/dist/runtime/composables/storefront/useProductsByIds.d.ts +1 -1
- package/dist/runtime/composables/storefront/{useProductsByIds.mjs → useProductsByIds.js} +1 -1
- package/dist/runtime/composables/storefront/useProductsByReferenceKeys.d.ts +1 -1
- package/dist/runtime/composables/storefront/{useProductsByReferenceKeys.mjs → useProductsByReferenceKeys.js} +1 -1
- package/dist/runtime/composables/storefront/useProductsCount.d.ts +1 -1
- package/dist/runtime/composables/storefront/{useProductsCount.mjs → useProductsCount.js} +1 -1
- package/dist/runtime/composables/storefront/usePromotions.d.ts +1 -1
- package/dist/runtime/composables/storefront/{usePromotions.mjs → usePromotions.js} +1 -1
- package/dist/runtime/composables/storefront/usePromotionsByIds.d.ts +1 -1
- package/dist/runtime/composables/storefront/{usePromotionsByIds.mjs → usePromotionsByIds.js} +1 -1
- package/dist/runtime/composables/storefront/{useQueryFilterState.mjs → useQueryFilterState.js} +1 -1
- package/dist/runtime/composables/storefront/{useSearch.mjs → useSearch.js} +1 -1
- package/dist/runtime/composables/storefront/useShopConfiguration.d.ts +1 -1
- package/dist/runtime/composables/storefront/{useShopConfiguration.mjs → useShopConfiguration.js} +1 -1
- package/dist/runtime/composables/storefront/{useStorefrontSearch.mjs → useStorefrontSearch.js} +1 -1
- package/dist/runtime/composables/storefront/useUserAddresses.d.ts +1 -1
- package/dist/runtime/composables/storefront/{useUserAddresses.mjs → useUserAddresses.js} +1 -1
- package/dist/runtime/composables/storefront/useVariant.d.ts +1 -1
- package/dist/runtime/composables/storefront/{useVariant.mjs → useVariant.js} +1 -1
- package/dist/runtime/composables/storefront/useWishlist.d.ts +1 -1
- package/dist/runtime/composables/storefront/{useWishlist.mjs → useWishlist.js} +3 -3
- package/dist/runtime/composables/{useCoreLog.mjs → useCoreLog.js} +1 -1
- package/dist/runtime/context.d.ts +1 -1
- package/dist/runtime/{context.mjs → context.js} +1 -1
- package/dist/runtime/createLog.d.ts +2 -2
- package/dist/runtime/{createLog.mjs → createLog.js} +1 -1
- package/dist/runtime/nitro/plugins/{configValidation.mjs → configValidation.js} +1 -1
- package/dist/runtime/nitro/plugins/{nitroLogger.mjs → nitroLogger.js} +1 -1
- package/dist/runtime/nitro/plugins/{nitroRuntimeStorageConfig.mjs → nitroRuntimeStorageConfig.js} +2 -2
- package/dist/runtime/plugin/{log.client.mjs → log.client.js} +1 -1
- package/dist/runtime/plugin/{shop.mjs → shop.js} +2 -2
- package/dist/runtime/rpc/rpcCall.d.ts +1 -1
- package/dist/runtime/server/middleware/{bootstrap.utils.d.ts → bootstrap-utils.d.ts} +1 -1
- package/dist/runtime/server/middleware/bootstrap.d.ts +1 -1
- package/dist/runtime/server/middleware/{bootstrap.mjs → bootstrap.js} +4 -4
- package/dist/runtime/server/middleware/{redirects.mjs → redirects.js} +1 -1
- package/dist/runtime/server/utils/cacheStorage.d.ts +1 -1
- package/dist/shared/{storefront-nuxt.77c99ba5.d.mts → storefront-nuxt.80aa5060.d.mts} +1 -1
- package/dist/shared/{storefront-nuxt.77c99ba5.d.ts → storefront-nuxt.80aa5060.d.ts} +1 -1
- package/dist/types.d.mts +11 -0
- package/dist/types.d.ts +11 -0
- package/package.json +5 -5
- package/dist/runtime/composables/index.mjs +0 -36
- /package/dist/runtime/api/{cacheAuth.mjs → cacheAuth.js} +0 -0
- /package/dist/runtime/api/{up.mjs → up.js} +0 -0
- /package/dist/runtime/{campaignKey.mjs → campaignKey.js} +0 -0
- /package/dist/runtime/composables/core/{useAvailableShops.mjs → useAvailableShops.js} +0 -0
- /package/dist/runtime/composables/core/{useCurrentShop.mjs → useCurrentShop.js} +0 -0
- /package/dist/runtime/composables/core/{useLog.mjs → useLog.js} +0 -0
- /package/dist/runtime/error/{handler.mjs → handler.js} +0 -0
- /package/dist/runtime/{handler.mjs → handler.js} +0 -0
- /package/dist/runtime/{log.mjs → log.js} +0 -0
- /package/dist/runtime/nitro/plugins/{cacheRuntimeConfig.mjs → cacheRuntimeConfig.js} +0 -0
- /package/dist/runtime/nitro/plugins/{nitroSetXPoweredByHeader.mjs → nitroSetXPoweredByHeader.js} +0 -0
- /package/dist/runtime/plugin/{log.server.mjs → log.server.js} +0 -0
- /package/dist/runtime/rpc/{rpcCall.mjs → rpcCall.js} +0 -0
- /package/dist/runtime/server/middleware/{bootstrap.utils.mjs → bootstrap-utils.js} +0 -0
- /package/dist/runtime/server/middleware/{redirects.utils.mjs → redirects.utils.js} +0 -0
- /package/dist/runtime/server/utils/{cacheStorage.mjs → cacheStorage.js} +0 -0
- /package/dist/runtime/utils/{promise.mjs → promise.js} +0 -0
- /package/dist/runtime/utils/{route.mjs → route.js} +0 -0
- /package/dist/runtime/utils/{zodSchema.mjs → zodSchema.js} +0 -0
package/CHANGELOG.md
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export { e as AdditionalShopConfig, A as AppKeys, B as BapiConfig, i as CheckoutEvent, C as CheckoutShopConfig, M as ModuleBaseOptions, j as ModulePublicRuntimeConfig, P as PublicShopConfig, R as RedisConfig, d as SapiConfig, a as SessionConfig, f as ShopConfig, g as ShopConfigIndexed, c as StorageConfig, b as StorageEntity, S as StorageProvider, h as StorefrontConfig } from './shared/storefront-nuxt.
|
|
2
|
-
export { rpcCall } from '
|
|
3
|
-
export { extendPromise } from '
|
|
1
|
+
export { e as AdditionalShopConfig, A as AppKeys, B as BapiConfig, i as CheckoutEvent, C as CheckoutShopConfig, M as ModuleBaseOptions, j as ModulePublicRuntimeConfig, P as PublicShopConfig, R as RedisConfig, d as SapiConfig, a as SessionConfig, f as ShopConfig, g as ShopConfigIndexed, c as StorageConfig, b as StorageEntity, S as StorageProvider, h as StorefrontConfig } from './shared/storefront-nuxt.80aa5060.mjs';
|
|
2
|
+
export { rpcCall } from '../dist/runtime/rpc/rpcCall.js';
|
|
3
|
+
export { extendPromise } from '../dist/runtime/utils/promise.js';
|
|
4
4
|
export * from '@scayle/storefront-core';
|
|
5
5
|
export { LogLevel } from '@scayle/storefront-core';
|
|
6
6
|
export { unwrap } from '@scayle/storefront-core/dist/utils/response';
|
|
7
7
|
import '@scayle/unstorage-compression-driver';
|
|
8
8
|
import 'unstorage';
|
|
9
|
-
import '
|
|
9
|
+
import '../dist/runtime/utils/zodSchema.js';
|
|
10
10
|
import '@nuxt/schema';
|
|
11
11
|
|
|
12
12
|
interface RpcMethodsStorefront {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export { e as AdditionalShopConfig, A as AppKeys, B as BapiConfig, i as CheckoutEvent, C as CheckoutShopConfig, M as ModuleBaseOptions, j as ModulePublicRuntimeConfig, P as PublicShopConfig, R as RedisConfig, d as SapiConfig, a as SessionConfig, f as ShopConfig, g as ShopConfigIndexed, c as StorageConfig, b as StorageEntity, S as StorageProvider, h as StorefrontConfig } from './shared/storefront-nuxt.
|
|
2
|
-
export { rpcCall } from '
|
|
3
|
-
export { extendPromise } from '
|
|
1
|
+
export { e as AdditionalShopConfig, A as AppKeys, B as BapiConfig, i as CheckoutEvent, C as CheckoutShopConfig, M as ModuleBaseOptions, j as ModulePublicRuntimeConfig, P as PublicShopConfig, R as RedisConfig, d as SapiConfig, a as SessionConfig, f as ShopConfig, g as ShopConfigIndexed, c as StorageConfig, b as StorageEntity, S as StorageProvider, h as StorefrontConfig } from './shared/storefront-nuxt.80aa5060.js';
|
|
2
|
+
export { rpcCall } from '../dist/runtime/rpc/rpcCall.js';
|
|
3
|
+
export { extendPromise } from '../dist/runtime/utils/promise.js';
|
|
4
4
|
export * from '@scayle/storefront-core';
|
|
5
5
|
export { LogLevel } from '@scayle/storefront-core';
|
|
6
6
|
export { unwrap } from '@scayle/storefront-core/dist/utils/response';
|
|
7
7
|
import '@scayle/unstorage-compression-driver';
|
|
8
8
|
import 'unstorage';
|
|
9
|
-
import '
|
|
9
|
+
import '../dist/runtime/utils/zodSchema.js';
|
|
10
10
|
import '@nuxt/schema';
|
|
11
11
|
|
|
12
12
|
interface RpcMethodsStorefront {
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { rpcCall } from '
|
|
2
|
-
export { extendPromise } from '
|
|
1
|
+
export { rpcCall } from '../dist/runtime/rpc/rpcCall.js';
|
|
2
|
+
export { extendPromise } from '../dist/runtime/utils/promise.js';
|
|
3
3
|
export * from '@scayle/storefront-core';
|
|
4
4
|
export { unwrap } from '@scayle/storefront-core/dist/utils/response';
|
package/dist/module.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as _nuxt_schema from '@nuxt/schema';
|
|
2
|
-
import { M as ModuleBaseOptions } from './shared/storefront-nuxt.
|
|
3
|
-
export { e as AdditionalShopConfig, A as AppKeys, B as BapiConfig, i as CheckoutEvent, C as CheckoutShopConfig, j as ModulePublicRuntimeConfig, P as PublicShopConfig, R as RedisConfig, d as SapiConfig, a as SessionConfig, f as ShopConfig, g as ShopConfigIndexed, c as StorageConfig, b as StorageEntity, S as StorageProvider, h as StorefrontConfig } from './shared/storefront-nuxt.
|
|
2
|
+
import { M as ModuleBaseOptions } from './shared/storefront-nuxt.80aa5060.mjs';
|
|
3
|
+
export { e as AdditionalShopConfig, A as AppKeys, B as BapiConfig, i as CheckoutEvent, C as CheckoutShopConfig, j as ModulePublicRuntimeConfig, P as PublicShopConfig, R as RedisConfig, d as SapiConfig, a as SessionConfig, f as ShopConfig, g as ShopConfigIndexed, c as StorageConfig, b as StorageEntity, S as StorageProvider, h as StorefrontConfig } from './shared/storefront-nuxt.80aa5060.mjs';
|
|
4
4
|
export { LogLevel } from '@scayle/storefront-core';
|
|
5
5
|
import '@scayle/unstorage-compression-driver';
|
|
6
6
|
import 'unstorage';
|
|
7
|
-
import '
|
|
7
|
+
import '../dist/runtime/utils/zodSchema.js';
|
|
8
8
|
|
|
9
9
|
declare const _default: _nuxt_schema.NuxtModule<ModuleBaseOptions, ModuleBaseOptions, false>;
|
|
10
10
|
|
package/dist/module.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as _nuxt_schema from '@nuxt/schema';
|
|
2
|
-
import { M as ModuleBaseOptions } from './shared/storefront-nuxt.
|
|
3
|
-
export { e as AdditionalShopConfig, A as AppKeys, B as BapiConfig, i as CheckoutEvent, C as CheckoutShopConfig, j as ModulePublicRuntimeConfig, P as PublicShopConfig, R as RedisConfig, d as SapiConfig, a as SessionConfig, f as ShopConfig, g as ShopConfigIndexed, c as StorageConfig, b as StorageEntity, S as StorageProvider, h as StorefrontConfig } from './shared/storefront-nuxt.
|
|
2
|
+
import { M as ModuleBaseOptions } from './shared/storefront-nuxt.80aa5060.js';
|
|
3
|
+
export { e as AdditionalShopConfig, A as AppKeys, B as BapiConfig, i as CheckoutEvent, C as CheckoutShopConfig, j as ModulePublicRuntimeConfig, P as PublicShopConfig, R as RedisConfig, d as SapiConfig, a as SessionConfig, f as ShopConfig, g as ShopConfigIndexed, c as StorageConfig, b as StorageEntity, S as StorageProvider, h as StorefrontConfig } from './shared/storefront-nuxt.80aa5060.js';
|
|
4
4
|
export { LogLevel } from '@scayle/storefront-core';
|
|
5
5
|
import '@scayle/unstorage-compression-driver';
|
|
6
6
|
import 'unstorage';
|
|
7
|
-
import '
|
|
7
|
+
import '../dist/runtime/utils/zodSchema.js';
|
|
8
8
|
|
|
9
9
|
declare const _default: _nuxt_schema.NuxtModule<ModuleBaseOptions, ModuleBaseOptions, false>;
|
|
10
10
|
|
package/dist/module.json
ADDED
package/dist/module.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import { defu } from 'defu';
|
|
|
4
4
|
import { genImport, genSafeVariableName } from 'knitwork';
|
|
5
5
|
import { builtinDrivers } from 'unstorage';
|
|
6
6
|
import { createConsola } from 'consola';
|
|
7
|
-
import { convertShopsToList, getApiBasePath } from '
|
|
7
|
+
import { convertShopsToList, getApiBasePath } from '../dist/runtime/server/middleware/bootstrap-utils.js';
|
|
8
8
|
|
|
9
9
|
function stringToBoolean(value, defaultValue = false) {
|
|
10
10
|
return value ? value.toLowerCase() === "true" : defaultValue;
|
|
@@ -48,7 +48,7 @@ export default {
|
|
|
48
48
|
}`;
|
|
49
49
|
}
|
|
50
50
|
const PACKAGE_NAME = "@scayle/storefront-nuxt";
|
|
51
|
-
const PACKAGE_VERSION = "7.85.
|
|
51
|
+
const PACKAGE_VERSION = "7.85.11";
|
|
52
52
|
const logger = createConsola({
|
|
53
53
|
fancy: true,
|
|
54
54
|
formatOptions: {
|
package/dist/rpc.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { rpcCall } from '
|
|
1
|
+
export { rpcCall } from '../dist/runtime/rpc/rpcCall.js';
|
package/dist/rpc.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { rpcCall } from '
|
|
1
|
+
export { rpcCall } from '../dist/runtime/rpc/rpcCall.js';
|
package/dist/rpc.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { rpcCall } from '
|
|
1
|
+
export { rpcCall } from '../dist/runtime/rpc/rpcCall.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineEventHandler, setResponseStatus } from "h3";
|
|
2
2
|
import { HttpStatusCode } from "@scayle/storefront-core";
|
|
3
|
-
import { eventHandlerWithCacheAuth } from "./cacheAuth.
|
|
3
|
+
import { eventHandlerWithCacheAuth } from "./cacheAuth.js";
|
|
4
4
|
export default eventHandlerWithCacheAuth(
|
|
5
5
|
defineEventHandler(async (event) => {
|
|
6
6
|
const logger = event.context.$rpcContext.log.space("purge-all");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineEventHandler, setResponseStatus, readBody } from "h3";
|
|
2
2
|
import { HttpStatusCode } from "@scayle/storefront-core";
|
|
3
|
-
import { eventHandlerWithCacheAuth } from "./cacheAuth.
|
|
3
|
+
import { eventHandlerWithCacheAuth } from "./cacheAuth.js";
|
|
4
4
|
export default eventHandlerWithCacheAuth(
|
|
5
5
|
defineEventHandler(async (event) => {
|
|
6
6
|
const tags = await readBody(event);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineEventHandler, readBody, createError, getRequestURL } from "h3";
|
|
2
2
|
import { purifySensitiveData } from "@scayle/storefront-core";
|
|
3
3
|
import { trace, SpanStatusCode } from "@opentelemetry/api";
|
|
4
|
-
import { handler } from "../handler.
|
|
5
|
-
import { resolveError } from "../error/handler.
|
|
4
|
+
import { handler } from "../handler.js";
|
|
5
|
+
import { resolveError } from "../error/handler.js";
|
|
6
6
|
import { useNitroApp } from "nitropack/runtime";
|
|
7
7
|
const tracer = trace.getTracer(
|
|
8
8
|
"storefront-nuxt",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { PublicShopConfig } from '../../../module';
|
|
1
|
+
import type { PublicShopConfig } from '../../../module.js';
|
|
2
2
|
export declare function useAvailableShops(): import("vue").Ref<PublicShopConfig[], PublicShopConfig[]>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getDefaultFractionDigits } from "@scayle/storefront-core";
|
|
2
|
-
import { useCurrentShop } from "./useCurrentShop.
|
|
2
|
+
import { useCurrentShop } from "./useCurrentShop.js";
|
|
3
3
|
export function useFormatHelpers() {
|
|
4
4
|
const currentShop = useCurrentShop();
|
|
5
5
|
const formatCurrency = (value, options) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { MaybeRefOrGetter } from 'vue';
|
|
2
2
|
import type { RpcMethodParameters, RpcMethodReturnType } from '@scayle/storefront-core';
|
|
3
|
-
import { type UseRpcReturn } from '../core/useRpc';
|
|
3
|
+
import { type UseRpcReturn } from '../core/useRpc.js';
|
|
4
4
|
type UseIDPBaseReturn = Pick<Awaited<UseRpcReturn<'getExternalIdpRedirect'>>, 'data' | 'error' | 'status' | 'fetch' | 'fetching' | 'refresh'> & {
|
|
5
5
|
handleIDPLoginCallback: (params: RpcMethodParameters<'handleIDPLoginCallback'>) => RpcMethodReturnType<'handleIDPLoginCallback'>;
|
|
6
6
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { useRpc } from "../core/useRpc.
|
|
2
|
-
import { extendPromise } from "../../utils/promise.
|
|
3
|
-
import { useRpcCall } from "../core/useRpcCall.
|
|
1
|
+
import { useRpc } from "../core/useRpc.js";
|
|
2
|
+
import { extendPromise } from "../../utils/promise.js";
|
|
3
|
+
import { useRpcCall } from "../core/useRpcCall.js";
|
|
4
4
|
export function useIDP(params = {}, key) {
|
|
5
5
|
const useRpcPromise = useRpc(
|
|
6
6
|
"getExternalIdpRedirect",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { unwrap } from "@scayle/storefront-core/dist/utils/response";
|
|
2
2
|
import { useNuxtApp, useAsyncData } from "nuxt/app";
|
|
3
|
-
import { useCoreLog } from "../useCoreLog.
|
|
4
|
-
import { useCurrentShop } from "./useCurrentShop.
|
|
5
|
-
import { extendPromise } from "../../utils/promise.
|
|
3
|
+
import { useCoreLog } from "../useCoreLog.js";
|
|
4
|
+
import { useCurrentShop } from "./useCurrentShop.js";
|
|
5
|
+
import { extendPromise } from "../../utils/promise.js";
|
|
6
6
|
import { toValue, computed, isRef } from "#imports";
|
|
7
7
|
import { useRuntimeConfig } from "#app/nuxt";
|
|
8
8
|
function getFetch(nuxtApp, log) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { rpcCall } from "../../rpc/rpcCall.
|
|
1
|
+
import { rpcCall } from "../../rpc/rpcCall.js";
|
|
2
2
|
import { useNuxtApp } from "nuxt/app";
|
|
3
|
-
import { useCurrentShop } from "./useCurrentShop.
|
|
3
|
+
import { useCurrentShop } from "./useCurrentShop.js";
|
|
4
4
|
export function useRpcCall(method) {
|
|
5
5
|
const nuxtApp = useNuxtApp();
|
|
6
6
|
const currentShop = useCurrentShop();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ShopUser, UpdatePasswordParams } from '@scayle/storefront-core';
|
|
2
|
-
import { type UseRpcReturn } from './useRpc';
|
|
2
|
+
import { type UseRpcReturn } from './useRpc.js';
|
|
3
3
|
import { type ComputedRef } from '#imports';
|
|
4
4
|
export type ExtendedUseUserParams = {
|
|
5
5
|
key?: string;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { useNuxtApp } from "nuxt/app";
|
|
2
2
|
import { computed } from "vue";
|
|
3
|
-
import { useCoreLog } from "../useCoreLog.
|
|
4
|
-
import { extendPromise } from "../../utils/promise.
|
|
5
|
-
import { useRpc } from "./useRpc.
|
|
3
|
+
import { useCoreLog } from "../useCoreLog.js";
|
|
4
|
+
import { extendPromise } from "../../utils/promise.js";
|
|
5
|
+
import { useRpc } from "./useRpc.js";
|
|
6
6
|
import { toValue } from "#imports";
|
|
7
|
-
import { useRpcCall } from "../core/useRpcCall.
|
|
7
|
+
import { useRpcCall } from "../core/useRpcCall.js";
|
|
8
8
|
export function useUser(options = {}) {
|
|
9
9
|
const nuxtApp = useNuxtApp();
|
|
10
10
|
const log = useCoreLog("useUser");
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
export * from './core/useAvailableShops';
|
|
2
|
-
export * from './core/useCurrentShop';
|
|
3
|
-
export * from './core/useFormatHelpers';
|
|
4
|
-
export * from './core/useIDP';
|
|
5
|
-
export * from './core/useLog';
|
|
6
|
-
export * from './core/useRpc';
|
|
7
|
-
export * from './core/useRpcCall';
|
|
8
|
-
export * from './core/useSession';
|
|
9
|
-
export * from './core/useUser';
|
|
10
|
-
export * from './storefront/useBasket';
|
|
11
|
-
export * from './storefront/useBrand';
|
|
12
|
-
export * from './storefront/useBrands';
|
|
13
|
-
export * from './storefront/useCategories';
|
|
14
|
-
export * from './storefront/useCategoryById';
|
|
15
|
-
export * from './storefront/useCategoryByPath';
|
|
16
|
-
export * from './storefront/useCurrentPromotions';
|
|
17
|
-
export * from './storefront/useFacet';
|
|
18
|
-
export * from './storefront/useFilters';
|
|
19
|
-
export * from './storefront/useNavigationTree';
|
|
20
|
-
export * from './storefront/useNavigationTrees';
|
|
21
|
-
export * from './storefront/useOrder';
|
|
22
|
-
export * from './storefront/useOrderConfirmation';
|
|
23
|
-
export * from './storefront/useProduct';
|
|
24
|
-
export * from './storefront/useProducts';
|
|
25
|
-
export * from './storefront/useProductsByIds';
|
|
26
|
-
export * from './storefront/useProductsByReferenceKeys';
|
|
27
|
-
export * from './storefront/useProductsCount';
|
|
28
|
-
export * from './storefront/usePromotions';
|
|
29
|
-
export * from './storefront/usePromotionsByIds';
|
|
30
|
-
export * from './storefront/useQueryFilterState';
|
|
31
|
-
export * from './storefront/useSearch';
|
|
32
|
-
export * from './storefront/useShopConfiguration';
|
|
33
|
-
export * from './storefront/useStorefrontSearch';
|
|
34
|
-
export * from './storefront/useUserAddresses';
|
|
35
|
-
export * from './storefront/useVariant';
|
|
36
|
-
export * from './storefront/useWishlist';
|
|
1
|
+
export * from './core/useAvailableShops.js';
|
|
2
|
+
export * from './core/useCurrentShop.js';
|
|
3
|
+
export * from './core/useFormatHelpers.js';
|
|
4
|
+
export * from './core/useIDP.js';
|
|
5
|
+
export * from './core/useLog.js';
|
|
6
|
+
export * from './core/useRpc.js';
|
|
7
|
+
export * from './core/useRpcCall.js';
|
|
8
|
+
export * from './core/useSession.js';
|
|
9
|
+
export * from './core/useUser.js';
|
|
10
|
+
export * from './storefront/useBasket.js';
|
|
11
|
+
export * from './storefront/useBrand.js';
|
|
12
|
+
export * from './storefront/useBrands.js';
|
|
13
|
+
export * from './storefront/useCategories.js';
|
|
14
|
+
export * from './storefront/useCategoryById.js';
|
|
15
|
+
export * from './storefront/useCategoryByPath.js';
|
|
16
|
+
export * from './storefront/useCurrentPromotions.js';
|
|
17
|
+
export * from './storefront/useFacet.js';
|
|
18
|
+
export * from './storefront/useFilters.js';
|
|
19
|
+
export * from './storefront/useNavigationTree.js';
|
|
20
|
+
export * from './storefront/useNavigationTrees.js';
|
|
21
|
+
export * from './storefront/useOrder.js';
|
|
22
|
+
export * from './storefront/useOrderConfirmation.js';
|
|
23
|
+
export * from './storefront/useProduct.js';
|
|
24
|
+
export * from './storefront/useProducts.js';
|
|
25
|
+
export * from './storefront/useProductsByIds.js';
|
|
26
|
+
export * from './storefront/useProductsByReferenceKeys.js';
|
|
27
|
+
export * from './storefront/useProductsCount.js';
|
|
28
|
+
export * from './storefront/usePromotions.js';
|
|
29
|
+
export * from './storefront/usePromotionsByIds.js';
|
|
30
|
+
export * from './storefront/useQueryFilterState.js';
|
|
31
|
+
export * from './storefront/useSearch.js';
|
|
32
|
+
export * from './storefront/useShopConfiguration.js';
|
|
33
|
+
export * from './storefront/useStorefrontSearch.js';
|
|
34
|
+
export * from './storefront/useUserAddresses.js';
|
|
35
|
+
export * from './storefront/useVariant.js';
|
|
36
|
+
export * from './storefront/useWishlist.js';
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export * from "./core/useAvailableShops.js";
|
|
2
|
+
export * from "./core/useCurrentShop.js";
|
|
3
|
+
export * from "./core/useFormatHelpers.js";
|
|
4
|
+
export * from "./core/useIDP.js";
|
|
5
|
+
export * from "./core/useLog.js";
|
|
6
|
+
export * from "./core/useRpc.js";
|
|
7
|
+
export * from "./core/useRpcCall.js";
|
|
8
|
+
export * from "./core/useSession.js";
|
|
9
|
+
export * from "./core/useUser.js";
|
|
10
|
+
export * from "./storefront/useBasket.js";
|
|
11
|
+
export * from "./storefront/useBrand.js";
|
|
12
|
+
export * from "./storefront/useBrands.js";
|
|
13
|
+
export * from "./storefront/useCategories.js";
|
|
14
|
+
export * from "./storefront/useCategoryById.js";
|
|
15
|
+
export * from "./storefront/useCategoryByPath.js";
|
|
16
|
+
export * from "./storefront/useCurrentPromotions.js";
|
|
17
|
+
export * from "./storefront/useFacet.js";
|
|
18
|
+
export * from "./storefront/useFilters.js";
|
|
19
|
+
export * from "./storefront/useNavigationTree.js";
|
|
20
|
+
export * from "./storefront/useNavigationTrees.js";
|
|
21
|
+
export * from "./storefront/useOrder.js";
|
|
22
|
+
export * from "./storefront/useOrderConfirmation.js";
|
|
23
|
+
export * from "./storefront/useProduct.js";
|
|
24
|
+
export * from "./storefront/useProducts.js";
|
|
25
|
+
export * from "./storefront/useProductsByIds.js";
|
|
26
|
+
export * from "./storefront/useProductsByReferenceKeys.js";
|
|
27
|
+
export * from "./storefront/useProductsCount.js";
|
|
28
|
+
export * from "./storefront/usePromotions.js";
|
|
29
|
+
export * from "./storefront/usePromotionsByIds.js";
|
|
30
|
+
export * from "./storefront/useQueryFilterState.js";
|
|
31
|
+
export * from "./storefront/useSearch.js";
|
|
32
|
+
export * from "./storefront/useShopConfiguration.js";
|
|
33
|
+
export * from "./storefront/useStorefrontSearch.js";
|
|
34
|
+
export * from "./storefront/useUserAddresses.js";
|
|
35
|
+
export * from "./storefront/useVariant.js";
|
|
36
|
+
export * from "./storefront/useWishlist.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { AddOrUpdateItemType, RpcMethodParameters, RpcMethodReturnType, BasketItem, Product, BasketTotalPrice } from '@scayle/storefront-core';
|
|
2
2
|
import { ExistingItemHandling } from '@scayle/storefront-core';
|
|
3
|
-
import { type UseRpcReturn } from '../core/useRpc';
|
|
3
|
+
import { type UseRpcReturn } from '../core/useRpc.js';
|
|
4
4
|
import { type MaybeRefOrGetter, type ComputedRef } from '#imports';
|
|
5
5
|
import type { BasketKey, BasketPackageInformation } from '@scayle/storefront-api';
|
|
6
6
|
type UseBasketOptions = Partial<{
|
|
@@ -8,9 +8,9 @@ import {
|
|
|
8
8
|
} from "@scayle/storefront-core";
|
|
9
9
|
import { useNuxtApp } from "nuxt/app";
|
|
10
10
|
import { computed } from "vue";
|
|
11
|
-
import { extendPromise } from "../../utils/promise.
|
|
12
|
-
import { useRpc } from "../core/useRpc.
|
|
13
|
-
import { useRpcCall } from "../core/useRpcCall.
|
|
11
|
+
import { extendPromise } from "../../utils/promise.js";
|
|
12
|
+
import { useRpc } from "../core/useRpc.js";
|
|
13
|
+
import { useRpcCall } from "../core/useRpcCall.js";
|
|
14
14
|
import {
|
|
15
15
|
toValue,
|
|
16
16
|
toRef
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { RpcMethodParameters } from '@scayle/storefront-core';
|
|
2
|
-
import type { UseRpcOptions, UseRpcReturn, NormalizedRpcResponse, KeysOf } from '../core/useRpc';
|
|
2
|
+
import type { UseRpcOptions, UseRpcReturn, NormalizedRpcResponse, KeysOf } from '../core/useRpc.js';
|
|
3
3
|
import type { MaybeRefOrGetter } from '#imports';
|
|
4
4
|
export declare function useBrand<DataT = NormalizedRpcResponse<'getBrandById'>, PickKeys extends KeysOf<DataT> = KeysOf<DataT>, DefaultT = null>({ params, options, key: _key, }?: Partial<{
|
|
5
5
|
params: MaybeRefOrGetter<RpcMethodParameters<'getBrandById'>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { RpcMethodParameters } from '@scayle/storefront-core';
|
|
2
|
-
import type { UseRpcOptions, UseRpcReturn, NormalizedRpcResponse, KeysOf } from '../core/useRpc';
|
|
2
|
+
import type { UseRpcOptions, UseRpcReturn, NormalizedRpcResponse, KeysOf } from '../core/useRpc.js';
|
|
3
3
|
import type { MaybeRefOrGetter } from '#imports';
|
|
4
4
|
export declare function useBrands<DataT = NormalizedRpcResponse<'getBrands'>, PickKeys extends KeysOf<DataT> = KeysOf<DataT>, DefaultT = null>({ params, options, key: _key, }?: Partial<{
|
|
5
5
|
params: MaybeRefOrGetter<RpcMethodParameters<'getBrands'>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { RpcMethodParameters, RpcMethodReturnType } from '@scayle/storefront-core';
|
|
2
|
-
import type { KeysOf, UseRpcOptions, UseRpcReturn, NormalizedRpcResponse } from '../core/useRpc';
|
|
2
|
+
import type { KeysOf, UseRpcOptions, UseRpcReturn, NormalizedRpcResponse } from '../core/useRpc.js';
|
|
3
3
|
import type { MaybeRefOrGetter } from '#imports';
|
|
4
4
|
type UseCategoriesBaseReturn<DataT, PickKeys extends KeysOf<DataT>, DefaultT> = Pick<Awaited<UseRpcReturn<'getCategoriesByPath', DataT, PickKeys, DefaultT>>, 'data' | 'error' | 'status' | 'fetch' | 'fetching' | 'refresh'> & {
|
|
5
5
|
getCategoryById: (id: number, includeHidden?: true) => RpcMethodReturnType<'getCategoryById'>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { useRpc } from "../core/useRpc.
|
|
2
|
-
import { extendPromise } from "../../utils/promise.
|
|
3
|
-
import { useRpcCall } from "../core/useRpcCall.
|
|
1
|
+
import { useRpc } from "../core/useRpc.js";
|
|
2
|
+
import { extendPromise } from "../../utils/promise.js";
|
|
3
|
+
import { useRpcCall } from "../core/useRpcCall.js";
|
|
4
4
|
export function useCategories({
|
|
5
5
|
params,
|
|
6
6
|
options,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { RpcMethodParameters } from '@scayle/storefront-core';
|
|
2
|
-
import type { UseRpcOptions, UseRpcReturn, NormalizedRpcResponse, KeysOf } from '../core/useRpc';
|
|
2
|
+
import type { UseRpcOptions, UseRpcReturn, NormalizedRpcResponse, KeysOf } from '../core/useRpc.js';
|
|
3
3
|
import type { MaybeRefOrGetter } from '#imports';
|
|
4
4
|
export declare function useCategoryById<DataT = NormalizedRpcResponse<'getCategoryById'>, PickKeys extends KeysOf<DataT> = KeysOf<DataT>, DefaultT = null>({ params, options, key: _key, }?: Partial<{
|
|
5
5
|
params: MaybeRefOrGetter<RpcMethodParameters<'getCategoryById'>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { RpcMethodParameters } from '@scayle/storefront-core';
|
|
2
|
-
import type { UseRpcOptions, UseRpcReturn, NormalizedRpcResponse, KeysOf } from '../core/useRpc';
|
|
2
|
+
import type { UseRpcOptions, UseRpcReturn, NormalizedRpcResponse, KeysOf } from '../core/useRpc.js';
|
|
3
3
|
import type { MaybeRefOrGetter } from '#imports';
|
|
4
4
|
export declare function useCategoryByPath<DataT = NormalizedRpcResponse<'getCategoryByPath'>, PickKeys extends KeysOf<DataT> = KeysOf<DataT>, DefaultT = null>({ params, options, key: _key, }: {
|
|
5
5
|
params: MaybeRefOrGetter<RpcMethodParameters<'getCategoryByPath'>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { RpcMethodParameters } from '@scayle/storefront-core';
|
|
2
|
-
import type { KeysOf, UseRpcOptions, UseRpcReturn, NormalizedRpcResponse } from '../core/useRpc';
|
|
2
|
+
import type { KeysOf, UseRpcOptions, UseRpcReturn, NormalizedRpcResponse } from '../core/useRpc.js';
|
|
3
3
|
import type { MaybeRefOrGetter } from '#imports';
|
|
4
4
|
export declare function useCurrentPromotions<DataT = NormalizedRpcResponse<'getCurrentPromotions'>, PickKeys extends KeysOf<DataT> = KeysOf<DataT>, DefaultT = null>({ params, options, key: _key, }?: Partial<{
|
|
5
5
|
params: MaybeRefOrGetter<RpcMethodParameters<'getCurrentPromotions'>>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { useState } from "nuxt/app";
|
|
2
2
|
import { computed } from "vue";
|
|
3
|
-
import { useCategories } from "../storefront/useCategories.
|
|
4
|
-
import { useFilters } from "../storefront/useFilters.
|
|
5
|
-
import { useProducts } from "../storefront/useProducts.
|
|
6
|
-
import { useProductsCount } from "../storefront/useProductsCount.
|
|
7
|
-
import { extendPromise } from "../../utils/promise.
|
|
3
|
+
import { useCategories } from "../storefront/useCategories.js";
|
|
4
|
+
import { useFilters } from "../storefront/useFilters.js";
|
|
5
|
+
import { useProducts } from "../storefront/useProducts.js";
|
|
6
|
+
import { useProductsCount } from "../storefront/useProductsCount.js";
|
|
7
|
+
import { extendPromise } from "../../utils/promise.js";
|
|
8
8
|
export function useFacet({
|
|
9
9
|
key: optionsKey,
|
|
10
10
|
params = { initialPath: "/" }
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { RpcMethodParameters } from '@scayle/storefront-core';
|
|
2
|
-
import type { UseRpcOptions, UseRpcReturn, NormalizedRpcResponse, KeysOf } from '../core/useRpc';
|
|
2
|
+
import type { UseRpcOptions, UseRpcReturn, NormalizedRpcResponse, KeysOf } from '../core/useRpc.js';
|
|
3
3
|
import type { MaybeRefOrGetter } from '#imports';
|
|
4
4
|
export declare function useFilters<DataT = NormalizedRpcResponse<'getFilters'>, PickKeys extends KeysOf<DataT> = KeysOf<DataT>, DefaultT = null>({ params, options, key: _key, }?: Partial<{
|
|
5
5
|
params: MaybeRefOrGetter<RpcMethodParameters<'getFilters'>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { RpcMethodParameters } from '@scayle/storefront-core';
|
|
2
|
-
import type { UseRpcOptions, UseRpcReturn, NormalizedRpcResponse, KeysOf } from '../core/useRpc';
|
|
2
|
+
import type { UseRpcOptions, UseRpcReturn, NormalizedRpcResponse, KeysOf } from '../core/useRpc.js';
|
|
3
3
|
import type { MaybeRefOrGetter } from '#imports';
|
|
4
4
|
export declare function useNavigationTree<DataT = NormalizedRpcResponse<'fetchNavigationTreeById'>, PickKeys extends KeysOf<DataT> = KeysOf<DataT>, DefaultT = null>({ params, options, key: _key, }?: Partial<{
|
|
5
5
|
params: MaybeRefOrGetter<RpcMethodParameters<'fetchNavigationTreeById'>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { RpcMethodParameters } from '@scayle/storefront-core';
|
|
2
|
-
import type { UseRpcReturn, UseRpcOptions, NormalizedRpcResponse, KeysOf } from '../core/useRpc';
|
|
2
|
+
import type { UseRpcReturn, UseRpcOptions, NormalizedRpcResponse, KeysOf } from '../core/useRpc.js';
|
|
3
3
|
import type { MaybeRefOrGetter } from '#imports';
|
|
4
4
|
export declare function useNavigationTrees<DataT = NormalizedRpcResponse<'fetchAllNavigationTrees'>, PickKeys extends KeysOf<DataT> = KeysOf<DataT>, DefaultT = null>({ params, options, key: _key, }?: Partial<{
|
|
5
5
|
params: MaybeRefOrGetter<RpcMethodParameters<'fetchAllNavigationTrees'>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { RpcMethodParameters, Order } from '@scayle/storefront-core';
|
|
2
2
|
import type { AsyncDataOptions } from 'nuxt/app';
|
|
3
|
-
import { type RpcOptions, type KeysOf, type ExtendedAsyncData } from '../core/useRpc';
|
|
3
|
+
import { type RpcOptions, type KeysOf, type ExtendedAsyncData } from '../core/useRpc.js';
|
|
4
4
|
import type { MaybeRefOrGetter } from 'vue';
|
|
5
5
|
type ItemsType = Exclude<Order['items'], undefined>;
|
|
6
6
|
type NewItemsType<P, V> = Exclude<ItemsType[number], 'product' | 'variant'> & {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { RpcMethodParameters, Order } from '@scayle/storefront-core';
|
|
2
2
|
import type { AsyncDataOptions } from 'nuxt/app';
|
|
3
|
-
import type { RpcOptions, ExtendedAsyncData, KeysOf } from '../core/useRpc';
|
|
3
|
+
import type { RpcOptions, ExtendedAsyncData, KeysOf } from '../core/useRpc.js';
|
|
4
4
|
import type { MaybeRefOrGetter } from 'vue';
|
|
5
5
|
type ItemsType = Exclude<Order['items'], undefined>;
|
|
6
6
|
type NewItemsType<P, V> = Exclude<ItemsType[number], 'product' | 'variant'> & {
|