@scayle/storefront-nuxt 8.23.0 → 8.24.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.
@@ -1,7 +1,7 @@
1
- import { StorefrontHooks, RpcContext, RpcMethodName, HashAlgorithm, WithParams, rpcMethods, ShopUser } from '@scayle/storefront-core';
1
+ import { WithParams, rpcMethods, StorefrontHooks, RpcContext, RpcMethodName, HashAlgorithm, ShopUser } from '@scayle/storefront-core';
2
2
  import { CompressionEncodings } from '@scayle/unstorage-compression-driver';
3
- import { BuiltinDriverOptions, BuiltinDriverName } from 'unstorage';
4
- import { CheckoutShopConfigType, SessionType, StorageType, SapiConfigType, ShopConfigType, IdpType, StorefrontConfigType, ModulePublicRuntimeConfigType, ShopSelectorType, RedirectType } from '../../dist/runtime/utils/zodSchema.js';
3
+ import { BuiltinDriverName, BuiltinDriverOptions } from 'unstorage';
4
+ import { StorefrontConfigType, ShopSelectorType, RedirectType, ShopConfigType, ModulePublicRuntimeConfigType, CheckoutShopConfigType, SessionType, StorageType, SapiConfigType, IdpType } from '../../dist/runtime/utils/zodSchema.js';
5
5
  import { HookResult } from '@nuxt/schema';
6
6
 
7
7
  /**
@@ -1,5 +1,5 @@
1
1
  import { Factory } from 'fishery';
2
- import { M as ModuleBaseOptions, e as ShopConfig } from '../shared/storefront-nuxt.d0683fc1.mjs';
2
+ import { M as ModuleBaseOptions, e as ShopConfig } from '../shared/storefront-nuxt.CRtTNUi9.mjs';
3
3
  import { RpcContext } from '@scayle/storefront-core';
4
4
  import { RouteLocationNormalizedLoadedGeneric } from 'vue-router';
5
5
  export * from '@scayle/storefront-core/dist/test/factories';
@@ -1,5 +1,5 @@
1
1
  import { Factory } from 'fishery';
2
- import { HashAlgorithm, StorefrontAPIClient, Log } from '@scayle/storefront-core';
2
+ import { HashAlgorithm, Log, StorefrontAPIClient } from '@scayle/storefront-core';
3
3
  export * from '@scayle/storefront-core/dist/test/factories';
4
4
 
5
5
  const moduleOptionsFactory = Factory.define(({ transientParams }) => {
package/dist/types.d.mts CHANGED
@@ -1,11 +1,18 @@
1
1
  import type { NuxtModule } from '@nuxt/schema'
2
2
 
3
- import type { default as Module, ModulePublicRuntimeConfig } from './module.js'
3
+ import type { default as Module, ModuleHooks, ModulePublicRuntimeConfig } from './module.mjs'
4
4
 
5
5
  declare module '@nuxt/schema' {
6
+ interface NuxtHooks extends ModuleHooks {}
6
7
  interface PublicRuntimeConfig extends ModulePublicRuntimeConfig {}
7
8
  }
8
9
 
9
10
  export type ModuleOptions = typeof Module extends NuxtModule<infer O> ? Partial<O> : Record<string, any>
10
11
 
11
- export { type AdditionalShopConfig, type AppKeys, type CheckoutEvent, type CheckoutShopConfig, type ModulePublicRuntimeConfig, type PublicShopConfig, type SapiConfig, type SessionConfig, type ShopConfig, type ShopConfigIndexed, type StorageConfig, type StorageEntity, type StorefrontConfig, type SupportedDriverName } from './module.js'
12
+ export { type AdditionalShopConfig, type AppKeys, type CheckoutEvent, type CheckoutShopConfig, type ModulePublicRuntimeConfig, type PublicShopConfig, type SapiConfig, type SessionConfig, type ShopConfig, type ShopConfigIndexed, type StorageConfig, type StorageEntity, type StorefrontConfig, type SupportedDriverName } from './shared/storefront-nuxt.CRtTNUi9.mjs'
13
+
14
+ export { type LogLevel } from '@scayle/storefront-core'
15
+
16
+ export { type ModuleBaseOptions, default } from './module.mjs'
17
+
18
+ export { type ModuleHooks } from './module.mjs'
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@scayle/storefront-nuxt",
3
3
  "type": "module",
4
- "version": "8.23.0",
4
+ "version": "8.24.1",
5
5
  "description": "Nuxt integration for the SCAYLE Commerce Engine and Storefront API",
6
6
  "author": "SCAYLE Commerce Engine",
7
7
  "license": "MIT",
@@ -19,16 +19,15 @@
19
19
  "sideEffects": false,
20
20
  "exports": {
21
21
  "./rpc": {
22
- "types": "./dist/rpc.d.ts",
22
+ "types": "./dist/rpc.d.mts",
23
23
  "import": "./dist/rpc.mjs"
24
24
  },
25
25
  "./dist/rpc": {
26
- "types": "./dist/rpc.d.ts",
26
+ "types": "./dist/rpc.d.mts",
27
27
  "import": "./dist/rpc.mjs"
28
28
  },
29
29
  "./module": {
30
- "types": "./dist/module.d.ts",
31
- "require": "./dist/module.cjs",
30
+ "types": "./dist/module.d.mts",
32
31
  "import": "./dist/module.mjs"
33
32
  },
34
33
  "./composables": {
@@ -36,15 +35,15 @@
36
35
  "import": "./dist/runtime/composables/index.js"
37
36
  },
38
37
  "./dist/test/factories": {
39
- "types": "./dist/test/factories.d.ts",
38
+ "types": "./dist/test/factories.d.mts",
40
39
  "import": "./dist/test/factories.mjs"
41
40
  },
42
41
  "./test/factories": {
43
- "types": "./dist/test/factories.d.ts",
42
+ "types": "./dist/test/factories.d.mts",
44
43
  "import": "./dist/test/factories.mjs"
45
44
  },
46
45
  ".": {
47
- "types": "./dist/index.d.ts",
46
+ "types": "./dist/index.d.mts",
48
47
  "default": "./dist/index.mjs"
49
48
  }
50
49
  },
@@ -52,7 +51,6 @@
52
51
  "#storefront/composables": "./dist/runtime/composables/index.js"
53
52
  },
54
53
  "main": "./dist/index.mjs",
55
- "types": "./dist/index.d.ts",
56
54
  "files": [
57
55
  "CHANGELOG.md",
58
56
  "CHANGELOG-V7.md",
@@ -82,7 +80,7 @@
82
80
  "dependencies": {
83
81
  "@opentelemetry/api": "^1.9.0",
84
82
  "@scayle/h3-session": "0.6.0",
85
- "@scayle/storefront-core": "8.23.0",
83
+ "@scayle/storefront-core": "8.24.1",
86
84
  "@scayle/unstorage-compression-driver": "^0.2.6",
87
85
  "@vercel/nft": "0.29.2",
88
86
  "@vueuse/core": "13.1.0",
@@ -104,7 +102,7 @@
104
102
  "@eslint/eslintrc": "3.3.1",
105
103
  "@nuxt/eslint": "1.3.0",
106
104
  "@nuxt/kit": "3.15.4",
107
- "@nuxt/module-builder": "0.8.4",
105
+ "@nuxt/module-builder": "1.0.1",
108
106
  "@nuxt/schema": "3.15.4",
109
107
  "@nuxt/test-utils": "3.17.2",
110
108
  "@scayle/eslint-config-storefront": "4.5.0",
package/dist/index.d.ts DELETED
@@ -1,21 +0,0 @@
1
- export { d as AdditionalShopConfig, A as AppKeys, i as CheckoutEvent, C as CheckoutShopConfig, M as ModuleBaseOptions, j as ModulePublicRuntimeConfig, P as PublicShopConfig, c as SapiConfig, S as SessionConfig, e as ShopConfig, f as ShopConfigIndexed, b as StorageConfig, a as StorageEntity, g as StorefrontConfig, h as SupportedDriverName } from './shared/storefront-nuxt.d0683fc1.js';
2
- export { ModuleHooks } from './module.js';
3
- export { rpcCall } from '../dist/runtime/rpc/rpcCall.js';
4
- export { extendPromise } from '../dist/runtime/utils/promise.js';
5
- export * from '../dist/runtime/utils/seo.js';
6
- export * from '@scayle/storefront-core';
7
- export { LogLevel } from '@scayle/storefront-core';
8
- export { unwrap } from '@scayle/storefront-core/dist/utils/response';
9
- import '@scayle/unstorage-compression-driver';
10
- import 'unstorage';
11
- import '../dist/runtime/utils/zodSchema.js';
12
- import '@nuxt/schema';
13
-
14
- interface RpcMethodsStorefront {
15
- }
16
- declare module '@scayle/storefront-core' {
17
- interface RpcMethodsStorefrontInternal extends RpcMethodsStorefront {
18
- }
19
- }
20
-
21
- export type { RpcMethodsStorefront };
package/dist/module.cjs DELETED
@@ -1,5 +0,0 @@
1
- module.exports = function(...args) {
2
- return import('./module.mjs').then(m => m.default.call(this, ...args))
3
- }
4
- const _meta = module.exports.meta = require('./module.json')
5
- module.exports.getMeta = () => Promise.resolve(_meta)
package/dist/module.d.ts DELETED
@@ -1,62 +0,0 @@
1
- import * as _nuxt_schema from '@nuxt/schema';
2
- import { HookResult } from '@nuxt/schema';
3
- import { M as ModuleBaseOptions } from './shared/storefront-nuxt.d0683fc1.js';
4
- export { d as AdditionalShopConfig, A as AppKeys, i as CheckoutEvent, C as CheckoutShopConfig, j as ModulePublicRuntimeConfig, P as PublicShopConfig, c as SapiConfig, S as SessionConfig, e as ShopConfig, f as ShopConfigIndexed, b as StorageConfig, a as StorageEntity, g as StorefrontConfig, h as SupportedDriverName } from './shared/storefront-nuxt.d0683fc1.js';
5
- export { LogLevel } from '@scayle/storefront-core';
6
- import '@scayle/unstorage-compression-driver';
7
- import 'unstorage';
8
- import '../dist/runtime/utils/zodSchema.js';
9
-
10
- /**
11
- * Definition of a custom RPC import
12
- */
13
- interface CustomRpcImport {
14
- /** The location from which to import the RPC method(s) */
15
- source: string;
16
- /** The specifiers to import as RPC methods */
17
- names: string[];
18
- }
19
- /**
20
- * Build-time hooks used by the module
21
- */
22
- interface ModuleHooks {
23
- 'storefront:custom-rpc:extend': (customRpcImports: CustomRpcImport[]) => HookResult;
24
- }
25
- declare module '@nuxt/schema' {
26
- interface NuxtHooks extends ModuleHooks {
27
- }
28
- }
29
- /**
30
- * Defines the Storefront Nuxt module (`@scayle/storefront-nuxt`).
31
- *
32
- * @param options Module base options.
33
- * @param options.session The session configuration.
34
- * @param options.session.cookieName The name of the session cookie.
35
- * @param options.session.sameSite The SameSite attribute for the session cookie.
36
- * @param options.shopSelector The shop selector.
37
- * @param options.oauth The OAuth configuration.
38
- * @param options.oauth.apiHost The API host.
39
- * @param options.oauth.clientId The client ID.
40
- * @param options.oauth.clientSecret The client secret.
41
- * @param options.idp The IDP configuration.
42
- * @param options.idp.enabled Whether IDP is enabled.
43
- * @param options.idp.idpKeys The IDP keys.
44
- * @param options.idp.idpRedirectURL The IDP redirect URL.
45
- * @param options.appKeys The application keys configuration.
46
- * @param options.appKeys.wishlistKey The wishlist key.
47
- * @param options.appKeys.basketKey The basket key.
48
- * @param options.appKeys.hashAlgorithm The hash algorithm.
49
- * @param options.legacy The legacy configuration.
50
- * @param options.legacy.enableSessionMigration Whether session migration is enabled.
51
- * @param options.rpcMethodNames The RPC method names.
52
- * @param options.rpcDir The RPC directory.
53
- * @param options.rpcMethodOverrides RPC method overrides.
54
- * @param options.shops The shops configuration.
55
- * @param options.storage The storage configuration.
56
- *
57
- * @returns The Nuxt module.
58
- */
59
- declare const _default: _nuxt_schema.NuxtModule<ModuleBaseOptions, ModuleBaseOptions, false>;
60
-
61
- export { ModuleBaseOptions, _default as default };
62
- export type { ModuleHooks };
package/dist/rpc.d.ts DELETED
@@ -1 +0,0 @@
1
- export { rpcCall } from '../dist/runtime/rpc/rpcCall.js';
@@ -1,268 +0,0 @@
1
- import { StorefrontHooks, RpcContext, RpcMethodName, HashAlgorithm, WithParams, rpcMethods, ShopUser } from '@scayle/storefront-core';
2
- import { CompressionEncodings } from '@scayle/unstorage-compression-driver';
3
- import { BuiltinDriverOptions, BuiltinDriverName } from 'unstorage';
4
- import { CheckoutShopConfigType, SessionType, StorageType, SapiConfigType, ShopConfigType, IdpType, StorefrontConfigType, ModulePublicRuntimeConfigType, ShopSelectorType, RedirectType } from '../../dist/runtime/utils/zodSchema.js';
5
- import { HookResult } from '@nuxt/schema';
6
-
7
- /**
8
- * Represents shop-specific configuration relating to the SCAYLE Checkout.
9
- *
10
- * @see https://scayle.dev/en/checkout-guide/authentication-accounts/general#create-api-client
11
- */
12
- type CheckoutShopConfig = CheckoutShopConfigType;
13
- /**
14
- * Representation of options to configure how the storefront core manages sessions
15
- *
16
- * @see https://scayle.dev/en/storefront-guide/developer-guide/basic-setup/sessions#configuration
17
- */
18
- type SessionConfig = SessionType;
19
- /**
20
- * Representation of a custom [Unstorage](https://unstorage.unjs.io/) driver name.
21
- *
22
- * @see https://unstorage.unjs.io/guide/custom-driver
23
- */
24
- type CustomDriverName = string & {
25
- _custom?: unknown;
26
- };
27
- /**
28
- * Representation of an [Unstorage](https://unstorage.unjs.io/) storage entity.
29
- *
30
- * @template Driver The storage driver.
31
- * @template DriverOptions The driver options.
32
- *
33
- * @see https://scayle.dev/en/storefront-guide/developer-guide/basic-setup/caching#storefront-storage-cache-configuration
34
- */
35
- type StorageEntity<Driver extends SupportedDriverName | CustomDriverName | unknown = unknown, DriverOptions = Driver extends keyof BuiltinDriverOptions ? BuiltinDriverOptions[Driver] : unknown> = {
36
- driver: Driver;
37
- compression?: CompressionEncodings;
38
- } & DriverOptions;
39
- /**
40
- * Represents the storage configuration for [Unstorage](https://unstorage.unjs.io/), leveraging the Nitro caching system.
41
- * Storefront Core utilizes pre-configured and reusable mount points built on top of Unstorage
42
- * and the Nitro Storage Layer, providing various caching capabilities.
43
- *
44
- * @see https://scayle.dev/en/storefront-guide/developer-guide/basic-setup/introduction#storage
45
- */
46
- interface StorageConfig {
47
- /**
48
- * The cache storage configuration.
49
- *
50
- * Should no dedicated `StorageType` / `StorageEntity` be configured,
51
- * Storefront Core will use an In-Memory driver as default for this storage mountpoints.
52
- *
53
- * @see https://scayle.dev/en/storefront-guide/developer-guide/basic-setup/caching#storefront-storage-cache-configuration
54
- */
55
- cache?: StorageType;
56
- /**
57
- * The session storage configuration.
58
- *
59
- * Should no dedicated `StorageType` / `StorageEntity` be configured,
60
- * Storefront Core will use an In-Memory driver as default for this storage mountpoints.
61
- *
62
- * @see https://scayle.dev/en/storefront-guide/developer-guide/basic-setup/caching#storefront-storage-cache-configuration
63
- */
64
- session?: StorageType;
65
- }
66
- /**
67
- * Represents the Storefront API configuration used authenticate with it.
68
- *
69
- * @see https://scayle.dev/en/api-guides/storefront-api/getting-started/authentication
70
- * @see https://scayle.dev/en/storefront-guide/developer-guide/basic-setup/introduction#storefront-api
71
- */
72
- type SapiConfig = SapiConfigType;
73
- /**
74
- * Representation of Application-specific keys,
75
- * defining how keys are generated for baskets and wishlists.
76
- *
77
- * @see https://scayle.dev/en/storefront-guide/developer-guide/basic-setup/authentication#app-keys-for-baskets-and-wishlists
78
- */
79
- interface AppKeys {
80
- /** The wishlist key used as prefix to generate user-specific wishlist identifier. */
81
- wishlistKey: string;
82
- /** The basket key used as prefix to generate user-specific basket identifier. */
83
- basketKey: string;
84
- /** The hash algorithm used to generate user-specific basket and wishlist identifier. */
85
- hashAlgorithm: HashAlgorithm;
86
- }
87
- /**
88
- * Provides a structure for additional shop configuration.
89
- * Extending this interface allows to add custom metadata to each shop's settings
90
- * in a Storefront application.
91
- *
92
- * @see https://scayle.dev/en/storefront-guide/developer-guide/basic-setup/introduction#additional-shop-data
93
- */
94
- interface AdditionalShopConfig {
95
- }
96
- /**
97
- * Shop configuration.
98
- */
99
- type ShopConfig = ShopConfigType & AdditionalShopConfig;
100
- /**
101
- * Shop configuration indexed by shop ID.
102
- */
103
- type ShopConfigIndexed = Record<string, ShopConfig>;
104
- /**
105
- * Public shop configuration. This configuration is accessible on the client-side.
106
- */
107
- interface PublicShopConfig extends Pick<ShopConfig, 'shopId' | 'domain' | 'locale' | 'currency' | 'currencyFractionDigits'> {
108
- /** Checkout configuration. */
109
- checkout: Pick<CheckoutShopConfig, 'host'>;
110
- /** API base path. */
111
- apiBasePath: string;
112
- /** IDP configuration. */
113
- idp?: IdpType;
114
- /** Path. */
115
- path?: string;
116
- }
117
- /**
118
- * Storefront configuration.
119
- */
120
- type StorefrontConfig = StorefrontConfigType & {
121
- /**
122
- * Default "with" parameters for Storefront API requests. These are used as defaults
123
- * within composables like `useWishlist` and can be overridden if needed. Some
124
- * composables also enforce minimum "with" parameters.
125
- *
126
- * @example
127
- * // Default `with` parameters for product listings.
128
- * withParams: {
129
- * items: {
130
- * product: {
131
- * attributes: "all",
132
- * advancedAttributes: "all",
133
- * variants: {
134
- * attributes: "all",
135
- * advancedAttributes: "all",
136
- * },
137
- * images: "all",
138
- * categories: {
139
- * properties: "all"
140
- * },
141
- * priceRange: boolean
142
- * },
143
- * variant: {
144
- * attributes: "all",
145
- * },
146
- * },
147
- * }
148
- * @see https://scayle.dev/en/storefront-guide/support-and-resources/upgrade-guides/nuxt-3/storefront-core-changes#withparameters
149
- */
150
- withParams?: WithParams;
151
- };
152
- /**
153
- * Nuxt module options.
154
- */
155
- type ModuleOption = {
156
- /**
157
- * Shop selector.
158
- *
159
- * This determines how the application identifies and switches between different shops.
160
- * It influences how the `domain` and `path` properties are used within the `shops` configuration.
161
- *
162
- * @see https://scayle.dev/en/storefront-guide/developer-guide/basic-setup/introduction#path-and-domain
163
- */
164
- shopSelector: ShopSelectorType;
165
- /**
166
- * Redirects configuration.
167
- *
168
- * This controls how the application handles URL redirects by leveraging the Storefront API,
169
- * which is synchronized with the SCAYLE Panel. When enabled,
170
- * the Storefront Core intercepts requests and checks for potential
171
- * redirects via the Storefront API. If a match is found, a 30x HTTP response
172
- * is returned with the target in the `Location` header and the appropriate
173
- * status code.
174
- *
175
- * @see https://scayle.dev/en/storefront-guide/developer-guide/basic-setup/redirects
176
- */
177
- redirects?: RedirectType;
178
- /**
179
- * Shops configuration indexed by shop ID.
180
- *
181
- * Storefront applications typically support multiple shops for different regions or languages.
182
- * This configuration specifies the shops to use from your SCAYLE tenant space.
183
- *
184
- * @see https://scayle.dev/en/storefront-guide/developer-guide/basic-setup/introduction#shops
185
- */
186
- shops: ShopConfigIndexed;
187
- };
188
- type SupportedDriverName = BuiltinDriverName | 'scayleKv';
189
- /**
190
- * Module base options. Extends `StorefrontConfig` and `ModuleOption`.
191
- */
192
- type ModuleBaseOptions = StorefrontConfig & ModuleOption & {
193
- /**
194
- * The RPC directory where the custom application RPCs are defined.
195
- * The directory should have an `index.ts` file where all RPCs are exported using their name.
196
- * By default this will be `./rpcMethods`.
197
- */
198
- rpcDir?: string;
199
- /**
200
- * The RPC method names which are exported from the `rpcDir`.
201
- * Usually this can just be `Object.keys(rpcMethodsDir)`.
202
- */
203
- rpcMethodNames?: string[];
204
- /** Specify explicitly overridden RPC methods that are provided by the Storefront Core package. */
205
- rpcMethodOverrides?: Array<keyof typeof rpcMethods>;
206
- };
207
- /**
208
- * Checkout event used for tracking with Google Tag Manager.
209
- *
210
- * @see https://scayle.dev/en/checkout-guide/integration/webcomponent#tracking
211
- */
212
- interface CheckoutEvent {
213
- /** Action. */
214
- action?: 'authenticated';
215
- /** Type. */
216
- type?: 'tracking';
217
- /** User. */
218
- user: ShopUser;
219
- /**
220
- * The OAuth 2.0 access token for the authenticated user.
221
- * This token can be used to access protected resources on behalf of the user.
222
- *
223
- * @see https://www.rfc-editor.org/rfc/rfc6749
224
- */
225
- accessToken: string;
226
- /**
227
- * Details about a specific event within the checkout process.
228
- * This field is optional and is only used when tracking specific actions
229
- * like `add_to_cart` or `remove_from_cart`.
230
- *
231
- * @see https://scayle.dev/en/checkout-guide/integration/tracking#application-integration
232
- */
233
- event?: {
234
- /** Event name. */
235
- event: 'login' | 'add_to_cart' | 'remove_from_cart';
236
- /** Event status. */
237
- status: 'successful' | 'error';
238
- };
239
- }
240
- interface ModulePublicRuntimeConfig extends ModulePublicRuntimeConfigType {
241
- }
242
- declare module '@nuxt/schema' {
243
- interface RuntimeConfig {
244
- storefront: ModuleBaseOptions;
245
- }
246
- interface PublicRuntimeConfig {
247
- storefront: ModulePublicRuntimeConfig;
248
- }
249
- }
250
- declare module 'nitropack' {
251
- /**
252
- * Nitro runtime hooks.
253
- *
254
- * @see https://nitro.build/guide/plugins#nitro-runtime-hooks
255
- */
256
- interface NitroRuntimeHooks extends StorefrontHooks {
257
- /** Storefront hook called after the RPC context created . */
258
- 'storefront:context:created': (context: RpcContext) => HookResult;
259
- /** Storefront hook called before the RPC method is executed. */
260
- 'storefront:rpc:before': (rpcName: RpcMethodName, context: RpcContext, payload: unknown) => HookResult;
261
- /** Storefront hook called after the RPC method is executed. */
262
- 'storefront:rpc:after': (rpcName: RpcMethodName, context: RpcContext, result: unknown) => HookResult;
263
- /** Storefront hook called if an error occurs during RPC method execution. */
264
- 'storefront:rpc:error': (rpcName: RpcMethodName, context: RpcContext, error: unknown) => HookResult;
265
- }
266
- }
267
-
268
- export type { AppKeys as A, CheckoutShopConfig as C, ModuleBaseOptions as M, PublicShopConfig as P, SessionConfig as S, StorageEntity as a, StorageConfig as b, SapiConfig as c, AdditionalShopConfig as d, ShopConfig as e, ShopConfigIndexed as f, StorefrontConfig as g, SupportedDriverName as h, CheckoutEvent as i, ModulePublicRuntimeConfig as j };
@@ -1,25 +0,0 @@
1
- import { Factory } from 'fishery';
2
- import { M as ModuleBaseOptions, e as ShopConfig } from '../shared/storefront-nuxt.d0683fc1.js';
3
- import { RpcContext } from '@scayle/storefront-core';
4
- import { RouteLocationNormalizedLoadedGeneric } from 'vue-router';
5
- export * from '@scayle/storefront-core/dist/test/factories';
6
- import '@scayle/unstorage-compression-driver';
7
- import 'unstorage';
8
- import '../../dist/runtime/utils/zodSchema.js';
9
- import '@nuxt/schema';
10
-
11
- interface ModuleOptionsFactoryParams {
12
- shops: ShopConfig[];
13
- }
14
- declare const moduleOptionsFactory: Factory<ModuleBaseOptions, ModuleOptionsFactoryParams, ModuleBaseOptions>;
15
-
16
- declare const shopConfigFactory: Factory<ShopConfig, any, ShopConfig>;
17
-
18
- interface RpcContextFactoryParams {
19
- isLoggedIn: boolean;
20
- }
21
- declare const rpcContextFactory: Factory<RpcContext, RpcContextFactoryParams, RpcContext>;
22
-
23
- declare const routeFactory: Factory<RouteLocationNormalizedLoadedGeneric, any, RouteLocationNormalizedLoadedGeneric>;
24
-
25
- export { moduleOptionsFactory, routeFactory, rpcContextFactory, shopConfigFactory };
package/dist/types.d.ts DELETED
@@ -1,11 +0,0 @@
1
- import type { NuxtModule } from '@nuxt/schema'
2
-
3
- import type { default as Module, ModulePublicRuntimeConfig } from './module'
4
-
5
- declare module '@nuxt/schema' {
6
- interface PublicRuntimeConfig extends ModulePublicRuntimeConfig {}
7
- }
8
-
9
- export type ModuleOptions = typeof Module extends NuxtModule<infer O> ? Partial<O> : Record<string, any>
10
-
11
- export { type AdditionalShopConfig, type AppKeys, type CheckoutEvent, type CheckoutShopConfig, type ModulePublicRuntimeConfig, type PublicShopConfig, type SapiConfig, type SessionConfig, type ShopConfig, type ShopConfigIndexed, type StorageConfig, type StorageEntity, type StorefrontConfig, type SupportedDriverName } from './module'