@scayle/storefront-nuxt 7.73.0 → 7.74.0
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 +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/module.d.mts +2 -2
- package/dist/module.d.ts +2 -2
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/rpc.d.mts +1 -1
- package/dist/rpc.d.ts +1 -1
- package/dist/runtime/utils/zodSchema.d.ts +10 -10
- package/dist/runtime/utils/zodSchema.mjs +4 -1
- package/dist/shared/{storefront-nuxt.d9a4c377.d.mts → storefront-nuxt.db7a2f93.d.mts} +3 -3
- package/dist/shared/{storefront-nuxt.d9a4c377.d.ts → storefront-nuxt.db7a2f93.d.ts} +3 -3
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @scayle/storefront-nuxt
|
|
2
2
|
|
|
3
|
+
## 7.74.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Support for `isDefault` to be an empty string.
|
|
8
|
+
This resolves an issue where an `undefined` value of `isDefault` within a shop config is changed to an empty string during build-time and fails the config validation.
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
- @scayle/storefront-core@7.55.0
|
|
14
|
+
|
|
3
15
|
## 7.73.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { d as AdditionalShopConfig, A as AppKeys, B as BapiConfig, h as CheckoutEvent, C as CheckoutShopConfig, M as ModuleBaseOptions, i as ModulePublicRuntimeConfig, P as PublicShopConfig, R as RedisConfig, a as SessionConfig, e as ShopConfig, f as ShopConfigIndexed, c as StorageConfig, b as StorageEntity, S as StorageProvider, g as StorefrontConfig } from './shared/storefront-nuxt.
|
|
1
|
+
export { d as AdditionalShopConfig, A as AppKeys, B as BapiConfig, h as CheckoutEvent, C as CheckoutShopConfig, M as ModuleBaseOptions, i as ModulePublicRuntimeConfig, P as PublicShopConfig, R as RedisConfig, a as SessionConfig, e as ShopConfig, f as ShopConfigIndexed, c as StorageConfig, b as StorageEntity, S as StorageProvider, g as StorefrontConfig } from './shared/storefront-nuxt.db7a2f93.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 { d as AdditionalShopConfig, A as AppKeys, B as BapiConfig, h as CheckoutEvent, C as CheckoutShopConfig, M as ModuleBaseOptions, i as ModulePublicRuntimeConfig, P as PublicShopConfig, R as RedisConfig, a as SessionConfig, e as ShopConfig, f as ShopConfigIndexed, c as StorageConfig, b as StorageEntity, S as StorageProvider, g as StorefrontConfig } from './shared/storefront-nuxt.
|
|
1
|
+
export { d as AdditionalShopConfig, A as AppKeys, B as BapiConfig, h as CheckoutEvent, C as CheckoutShopConfig, M as ModuleBaseOptions, i as ModulePublicRuntimeConfig, P as PublicShopConfig, R as RedisConfig, a as SessionConfig, e as ShopConfig, f as ShopConfigIndexed, c as StorageConfig, b as StorageEntity, S as StorageProvider, g as StorefrontConfig } from './shared/storefront-nuxt.db7a2f93.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 ModuleBaseOptions } from './shared/storefront-nuxt.
|
|
3
|
-
export { d as AdditionalShopConfig, A as AppKeys, B as BapiConfig, h as CheckoutEvent, C as CheckoutShopConfig, i as ModulePublicRuntimeConfig, P as PublicShopConfig, R as RedisConfig, a as SessionConfig, e as ShopConfig, f as ShopConfigIndexed, c as StorageConfig, b as StorageEntity, S as StorageProvider, g as StorefrontConfig } from './shared/storefront-nuxt.
|
|
2
|
+
import { M as ModuleBaseOptions } from './shared/storefront-nuxt.db7a2f93.mjs';
|
|
3
|
+
export { d as AdditionalShopConfig, A as AppKeys, B as BapiConfig, h as CheckoutEvent, C as CheckoutShopConfig, i as ModulePublicRuntimeConfig, P as PublicShopConfig, R as RedisConfig, a as SessionConfig, e as ShopConfig, f as ShopConfigIndexed, c as StorageConfig, b as StorageEntity, S as StorageProvider, g as StorefrontConfig } from './shared/storefront-nuxt.db7a2f93.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 ModuleBaseOptions } from './shared/storefront-nuxt.
|
|
3
|
-
export { d as AdditionalShopConfig, A as AppKeys, B as BapiConfig, h as CheckoutEvent, C as CheckoutShopConfig, i as ModulePublicRuntimeConfig, P as PublicShopConfig, R as RedisConfig, a as SessionConfig, e as ShopConfig, f as ShopConfigIndexed, c as StorageConfig, b as StorageEntity, S as StorageProvider, g as StorefrontConfig } from './shared/storefront-nuxt.
|
|
2
|
+
import { M as ModuleBaseOptions } from './shared/storefront-nuxt.db7a2f93.js';
|
|
3
|
+
export { d as AdditionalShopConfig, A as AppKeys, B as BapiConfig, h as CheckoutEvent, C as CheckoutShopConfig, i as ModulePublicRuntimeConfig, P as PublicShopConfig, R as RedisConfig, a as SessionConfig, e as ShopConfig, f as ShopConfigIndexed, c as StorageConfig, b as StorageEntity, S as StorageProvider, g as StorefrontConfig } from './shared/storefront-nuxt.db7a2f93.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
package/dist/module.mjs
CHANGED
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.
|
|
3
|
+
import { P as PublicShopConfig } from './shared/storefront-nuxt.db7a2f93.mjs';
|
|
4
4
|
import '@nuxt/schema';
|
|
5
5
|
import '@scayle/unstorage-compression-driver';
|
|
6
6
|
import 'unstorage';
|
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.
|
|
3
|
+
import { P as PublicShopConfig } from './shared/storefront-nuxt.db7a2f93.js';
|
|
4
4
|
import '@nuxt/schema';
|
|
5
5
|
import '@scayle/unstorage-compression-driver';
|
|
6
6
|
import 'unstorage';
|
|
@@ -388,7 +388,7 @@ declare const ShopConfigSchema: z.ZodObject<{
|
|
|
388
388
|
tls?: boolean | undefined;
|
|
389
389
|
} | undefined;
|
|
390
390
|
}>>;
|
|
391
|
-
isDefault: z.ZodOptional<z.ZodBoolean>;
|
|
391
|
+
isDefault: z.ZodUnion<[z.ZodOptional<z.ZodBoolean>, z.ZodEffects<z.ZodString, string, string>]>;
|
|
392
392
|
/** @deprecated shop-specific storefront.redis config is being removed in favor of global nitro.storage config */
|
|
393
393
|
redis: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
394
394
|
port: z.ZodOptional<z.ZodNumber>;
|
|
@@ -507,7 +507,7 @@ declare const ShopConfigSchema: z.ZodObject<{
|
|
|
507
507
|
tls?: boolean | undefined;
|
|
508
508
|
} | undefined;
|
|
509
509
|
} | undefined;
|
|
510
|
-
isDefault?: boolean | undefined;
|
|
510
|
+
isDefault?: string | boolean | undefined;
|
|
511
511
|
}, {
|
|
512
512
|
locale: string;
|
|
513
513
|
checkout: {
|
|
@@ -588,7 +588,7 @@ declare const ShopConfigSchema: z.ZodObject<{
|
|
|
588
588
|
tls?: boolean | undefined;
|
|
589
589
|
} | undefined;
|
|
590
590
|
} | undefined;
|
|
591
|
-
isDefault?: boolean | undefined;
|
|
591
|
+
isDefault?: string | boolean | undefined;
|
|
592
592
|
}>;
|
|
593
593
|
declare const ShopSelectorSchema: z.ZodEnum<["path", "domain", "path_or_default"]>;
|
|
594
594
|
declare const StorefrontConfigSchema: z.ZodObject<{
|
|
@@ -1684,7 +1684,7 @@ export declare const RuntimeConfigSchema: z.ZodObject<{
|
|
|
1684
1684
|
tls?: boolean | undefined;
|
|
1685
1685
|
} | undefined;
|
|
1686
1686
|
}>>;
|
|
1687
|
-
isDefault: z.ZodOptional<z.ZodBoolean>;
|
|
1687
|
+
isDefault: z.ZodUnion<[z.ZodOptional<z.ZodBoolean>, z.ZodEffects<z.ZodString, string, string>]>;
|
|
1688
1688
|
/** @deprecated shop-specific storefront.redis config is being removed in favor of global nitro.storage config */
|
|
1689
1689
|
redis: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
1690
1690
|
port: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1803,7 +1803,7 @@ export declare const RuntimeConfigSchema: z.ZodObject<{
|
|
|
1803
1803
|
tls?: boolean | undefined;
|
|
1804
1804
|
} | undefined;
|
|
1805
1805
|
} | undefined;
|
|
1806
|
-
isDefault?: boolean | undefined;
|
|
1806
|
+
isDefault?: string | boolean | undefined;
|
|
1807
1807
|
}, {
|
|
1808
1808
|
locale: string;
|
|
1809
1809
|
checkout: {
|
|
@@ -1884,7 +1884,7 @@ export declare const RuntimeConfigSchema: z.ZodObject<{
|
|
|
1884
1884
|
tls?: boolean | undefined;
|
|
1885
1885
|
} | undefined;
|
|
1886
1886
|
} | undefined;
|
|
1887
|
-
isDefault?: boolean | undefined;
|
|
1887
|
+
isDefault?: string | boolean | undefined;
|
|
1888
1888
|
}>>;
|
|
1889
1889
|
redirects: z.ZodOptional<z.ZodObject<{
|
|
1890
1890
|
enabled: z.ZodBoolean;
|
|
@@ -1978,7 +1978,7 @@ export declare const RuntimeConfigSchema: z.ZodObject<{
|
|
|
1978
1978
|
tls?: boolean | undefined;
|
|
1979
1979
|
} | undefined;
|
|
1980
1980
|
} | undefined;
|
|
1981
|
-
isDefault?: boolean | undefined;
|
|
1981
|
+
isDefault?: string | boolean | undefined;
|
|
1982
1982
|
}>;
|
|
1983
1983
|
redirects?: {
|
|
1984
1984
|
enabled: boolean;
|
|
@@ -2066,7 +2066,7 @@ export declare const RuntimeConfigSchema: z.ZodObject<{
|
|
|
2066
2066
|
tls?: boolean | undefined;
|
|
2067
2067
|
} | undefined;
|
|
2068
2068
|
} | undefined;
|
|
2069
|
-
isDefault?: boolean | undefined;
|
|
2069
|
+
isDefault?: string | boolean | undefined;
|
|
2070
2070
|
}>;
|
|
2071
2071
|
redirects?: {
|
|
2072
2072
|
enabled: boolean;
|
|
@@ -2269,7 +2269,7 @@ export declare const RuntimeConfigSchema: z.ZodObject<{
|
|
|
2269
2269
|
tls?: boolean | undefined;
|
|
2270
2270
|
} | undefined;
|
|
2271
2271
|
} | undefined;
|
|
2272
|
-
isDefault?: boolean | undefined;
|
|
2272
|
+
isDefault?: string | boolean | undefined;
|
|
2273
2273
|
}>;
|
|
2274
2274
|
redirects?: {
|
|
2275
2275
|
enabled: boolean;
|
|
@@ -2442,7 +2442,7 @@ export declare const RuntimeConfigSchema: z.ZodObject<{
|
|
|
2442
2442
|
tls?: boolean | undefined;
|
|
2443
2443
|
} | undefined;
|
|
2444
2444
|
} | undefined;
|
|
2445
|
-
isDefault?: boolean | undefined;
|
|
2445
|
+
isDefault?: string | boolean | undefined;
|
|
2446
2446
|
}>;
|
|
2447
2447
|
redirects?: {
|
|
2448
2448
|
enabled: boolean;
|
|
@@ -83,6 +83,9 @@ const CheckoutShopConfigSchema = z.object({
|
|
|
83
83
|
user: z.string().or(z.number()),
|
|
84
84
|
cbdExpiration: z.number().optional()
|
|
85
85
|
});
|
|
86
|
+
const emptyString = z.string().refine((val) => val === "", {
|
|
87
|
+
message: "Expected boolean, received string"
|
|
88
|
+
});
|
|
86
89
|
const ShopConfigSchema = z.object({
|
|
87
90
|
idp: IdpSchema.optional(),
|
|
88
91
|
shopId: z.number(),
|
|
@@ -105,7 +108,7 @@ const ShopConfigSchema = z.object({
|
|
|
105
108
|
session: StorageSchema.optional(),
|
|
106
109
|
cache: StorageSchema.optional()
|
|
107
110
|
}).optional(),
|
|
108
|
-
isDefault: z.boolean().optional(),
|
|
111
|
+
isDefault: z.boolean().optional().or(emptyString),
|
|
109
112
|
/** @deprecated shop-specific storefront.redis config is being removed in favor of global nitro.storage config */
|
|
110
113
|
redis: RedisConfigSchema.optional()
|
|
111
114
|
});
|
|
@@ -392,7 +392,7 @@ declare const ShopConfigSchema: z.ZodObject<{
|
|
|
392
392
|
ttl?: number | undefined;
|
|
393
393
|
} | undefined;
|
|
394
394
|
}>>;
|
|
395
|
-
isDefault: z.ZodOptional<z.ZodBoolean>;
|
|
395
|
+
isDefault: z.ZodUnion<[z.ZodOptional<z.ZodBoolean>, z.ZodEffects<z.ZodString, string, string>]>;
|
|
396
396
|
/** @deprecated shop-specific storefront.redis config is being removed in favor of global nitro.storage config */
|
|
397
397
|
redis: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
398
398
|
port: z.ZodOptional<z.ZodNumber>;
|
|
@@ -511,7 +511,7 @@ declare const ShopConfigSchema: z.ZodObject<{
|
|
|
511
511
|
ttl?: number | undefined;
|
|
512
512
|
} | undefined;
|
|
513
513
|
} | undefined;
|
|
514
|
-
isDefault?: boolean | undefined;
|
|
514
|
+
isDefault?: string | boolean | undefined;
|
|
515
515
|
}, {
|
|
516
516
|
domain: string;
|
|
517
517
|
shopId: number;
|
|
@@ -592,7 +592,7 @@ declare const ShopConfigSchema: z.ZodObject<{
|
|
|
592
592
|
ttl?: number | undefined;
|
|
593
593
|
} | undefined;
|
|
594
594
|
} | undefined;
|
|
595
|
-
isDefault?: boolean | undefined;
|
|
595
|
+
isDefault?: string | boolean | undefined;
|
|
596
596
|
}>;
|
|
597
597
|
declare const ShopSelectorSchema: z.ZodEnum<["path", "domain", "path_or_default"]>;
|
|
598
598
|
declare const StorefrontConfigSchema: z.ZodObject<{
|
|
@@ -392,7 +392,7 @@ declare const ShopConfigSchema: z.ZodObject<{
|
|
|
392
392
|
ttl?: number | undefined;
|
|
393
393
|
} | undefined;
|
|
394
394
|
}>>;
|
|
395
|
-
isDefault: z.ZodOptional<z.ZodBoolean>;
|
|
395
|
+
isDefault: z.ZodUnion<[z.ZodOptional<z.ZodBoolean>, z.ZodEffects<z.ZodString, string, string>]>;
|
|
396
396
|
/** @deprecated shop-specific storefront.redis config is being removed in favor of global nitro.storage config */
|
|
397
397
|
redis: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
398
398
|
port: z.ZodOptional<z.ZodNumber>;
|
|
@@ -511,7 +511,7 @@ declare const ShopConfigSchema: z.ZodObject<{
|
|
|
511
511
|
ttl?: number | undefined;
|
|
512
512
|
} | undefined;
|
|
513
513
|
} | undefined;
|
|
514
|
-
isDefault?: boolean | undefined;
|
|
514
|
+
isDefault?: string | boolean | undefined;
|
|
515
515
|
}, {
|
|
516
516
|
domain: string;
|
|
517
517
|
shopId: number;
|
|
@@ -592,7 +592,7 @@ declare const ShopConfigSchema: z.ZodObject<{
|
|
|
592
592
|
ttl?: number | undefined;
|
|
593
593
|
} | undefined;
|
|
594
594
|
} | undefined;
|
|
595
|
-
isDefault?: boolean | undefined;
|
|
595
|
+
isDefault?: string | boolean | undefined;
|
|
596
596
|
}>;
|
|
597
597
|
declare const ShopSelectorSchema: z.ZodEnum<["path", "domain", "path_or_default"]>;
|
|
598
598
|
declare const StorefrontConfigSchema: z.ZodObject<{
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scayle/storefront-nuxt",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "7.
|
|
4
|
+
"version": "7.74.0",
|
|
5
5
|
"description": "Nuxt integration for the SCAYLE Commerce Engine and Storefront API",
|
|
6
6
|
"author": "SCAYLE Commerce Engine",
|
|
7
7
|
"license": "MIT",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"@nuxt/kit": "3.11.1",
|
|
61
61
|
"@opentelemetry/api": "1.8.0",
|
|
62
62
|
"@scayle/h3-session": "0.4.0",
|
|
63
|
-
"@scayle/storefront-core": "7.
|
|
63
|
+
"@scayle/storefront-core": "7.55.0",
|
|
64
64
|
"@scayle/unstorage-compression-driver": "0.1.3",
|
|
65
65
|
"@vueuse/core": "10.10.0",
|
|
66
66
|
"consola": "3.2.3",
|