@scayle/storefront-nuxt 7.53.1 → 7.55.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 CHANGED
@@ -1,5 +1,22 @@
1
1
  # @scayle/storefront-nuxt
2
2
 
3
+ ## 7.55.0
4
+
5
+ ### Minor Changes
6
+
7
+ - Export `unwrap()` from `@scayle/storefront-core`
8
+
9
+ ## 7.54.0
10
+
11
+ ### Minor Changes
12
+
13
+ - Authentication RPC methods include status codes in error cases
14
+
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies
18
+ - @scayle/storefront-core@7.39.0
19
+
3
20
  ## 7.53.1
4
21
 
5
22
  ### Patch Changes
package/README.md CHANGED
@@ -1,15 +1,27 @@
1
- # Storefront Core Nuxt
2
-
3
- [![npm version][npm-version-src]][npm-version-href]
4
- [![npm downloads][npm-downloads-src]][npm-downloads-href]
5
- [![License][license-src]][license-href]
6
- [![Nuxt][nuxt-src]][nuxt-href]
7
-
8
- Nuxt 3 integration for the SCAYLE Commerce Engine and Storefront API
9
-
10
- ## Quick Setup
11
-
12
- 1. Add `@scayle/storefront-nuxt` dependency to your project
1
+ <div align="center">
2
+ <img src="https://cdn-prod.scayle.com/public/media/general/SCAYLE-Commerce-Engine-header.png" />
3
+ </div>
4
+
5
+ <div align="center">
6
+ <h1>SCAYLE Storefront Nuxt</h1>
7
+ </div>
8
+
9
+ <div align="center">
10
+ <h4><a href="https://scayle.dev">Documentation</a> | <a href="https://www.scayle.com/">Website</a></h4>
11
+ </div>
12
+
13
+ <div align="center">
14
+ The SCAYLE <strong>Storefront Nuxt</strong> package provides an integration into the Nuxt 3 Framework for the SCAYLE Commerce Engine.
15
+ </div>
16
+ <br/>
17
+ <div align="center">
18
+ <a href="https://www.npmjs.com/package/@scayle/storefront-nuxt"><img src="https://img.shields.io/npm/v/@scayle/storefront-nuxt/latest.svg?style=flat&colorB=007ec6" /></a>
19
+ <a href="https://www.npmjs.com/package/@scayle/storefront-nuxt"><img src="https://img.shields.io/npm/dm/@scayle/storefront-nuxt.svg?style=flat&colorB=007ec6" /></a>
20
+ <a href="https://www.npmjs.com/package/@scayle/storefront-nuxt"><img src="https://img.shields.io/badge/license-MIT-blue.svg" /></a>
21
+ <a href="https://nuxt.com"><img src="https://img.shields.io/badge/Nuxt-18181B?logo=nuxt.js" /></a>
22
+ </div>
23
+
24
+ ## Installation
13
25
 
14
26
  ```bash
15
27
  # Using pnpm
@@ -22,38 +34,26 @@ yarn add --dev @scayle/storefront-nuxt
22
34
  npm install --save-dev @scayle/storefront-nuxt
23
35
  ```
24
36
 
25
- 2. Add `@scayle/storefront-nuxt` to the `modules` section of `nuxt.config.ts`
37
+ ## Getting Started
26
38
 
27
- ```js
28
- export default defineNuxtConfig({
29
- modules: ['@scayle/storefront-nuxt'],
30
- })
31
- ```
39
+ Visit the [Quickstart Guide](https://scayle.dev/en/dev/storefront-core/getting-started-sfb) to get started with Storefront Nuxt.
32
40
 
33
- That's it! You can now use Storefront Core Nuxt3 in your Nuxt app ✨
41
+ Visit the [Docs](https://scayle.dev) to learn more about our system requirements.
34
42
 
35
- ## Development
43
+ ## What is SCAYLE?
36
44
 
37
- ```bash
38
- # Install dependencies
39
- yarn install
45
+ [SCAYLE](https://scayle.com) is a full-featured e-commerce software solution that comes with flexible APIs. Within SCAYLE, you can manage all aspects of your shop, such as products, stocks, customers, and transactions.
40
46
 
41
- # Generate type stubs
42
- yarn dev:prepare
47
+ Learn more about [Scayle’s architecture](https://scayle.dev/en/dev/getting-started/introduction) and [commerce modules](https://scayle.dev/en/dev/getting-started/introduction) in the Docs.
43
48
 
44
- # Develop with the playground
45
- yarn dev
49
+ ## Other channels
46
50
 
47
- # Build the playground
48
- yarn dev:build
51
+ - [LinkedIn](https://www.linkedin.com/company/scaylecommerce/)
52
+ - [Jobs](https://careers.smartrecruiters.com/ABOUTYOUGmbH/scayle)
49
53
 
50
- # Run ESLint
51
- yarn lint
54
+ ## License
52
55
 
53
- # Run Vitest
54
- yarn test
55
- yarn test:watch
56
- ```
56
+ Licensed under the [MIT](https://opensource.org/license/mit/)
57
57
 
58
58
  <!-- Badges -->
59
59
 
package/dist/index.d.mts CHANGED
@@ -2,6 +2,7 @@ export { g as AdditionalShopConfig, A as AppKeys, f as AuthenticationConfig, B a
2
2
  export { rpcCall } from './rpc.mjs';
3
3
  export * from '@scayle/storefront-core';
4
4
  export { LogLevel } from '@scayle/storefront-core';
5
+ export { unwrap } from '@scayle/storefront-core/dist/utils/response';
5
6
  import '@scayle/unstorage-compression-driver';
6
7
  import 'unstorage';
7
8
  import 'nuxt/app';
package/dist/index.d.ts CHANGED
@@ -2,6 +2,7 @@ export { g as AdditionalShopConfig, A as AppKeys, f as AuthenticationConfig, B a
2
2
  export { rpcCall } from './rpc.js';
3
3
  export * from '@scayle/storefront-core';
4
4
  export { LogLevel } from '@scayle/storefront-core';
5
+ export { unwrap } from '@scayle/storefront-core/dist/utils/response';
5
6
  import '@scayle/unstorage-compression-driver';
6
7
  import 'unstorage';
7
8
  import 'nuxt/app';
package/dist/index.mjs CHANGED
@@ -1,3 +1,3 @@
1
1
  export { rpcCall } from './rpc.mjs';
2
2
  export * from '@scayle/storefront-core';
3
- import '@scayle/storefront-core/dist/utils/response';
3
+ export { unwrap } from '@scayle/storefront-core/dist/utils/response';
package/dist/module.json CHANGED
@@ -4,5 +4,5 @@
4
4
  "compatibility": {
5
5
  "nuxt": "^3.9.0"
6
6
  },
7
- "version": "7.53.0"
7
+ "version": "7.54.0"
8
8
  }
@@ -1,7 +1,7 @@
1
1
  export declare function useSession(): {
2
- login: (params: import("utility-types").Optional<import("@scayle/storefront-core").LoginRequest, "shop_id">) => Promise<undefined>;
3
- register: (params: import("utility-types").Optional<import("@scayle/storefront-core").RegisterRequest, "shop_id">) => Promise<undefined>;
4
- guestLogin: (params: import("utility-types").Optional<import("@scayle/storefront-core").GuestRequest, "shop_id">) => Promise<undefined>;
2
+ login: (params: import("utility-types").Optional<import("@scayle/storefront-core").LoginRequest, "shop_id">) => Promise<void | undefined>;
3
+ register: (params: import("utility-types").Optional<import("@scayle/storefront-core").RegisterRequest, "shop_id">) => Promise<void | undefined>;
4
+ guestLogin: (params: import("utility-types").Optional<import("@scayle/storefront-core").GuestRequest, "shop_id">) => Promise<void | undefined>;
5
5
  refreshToken: () => Promise<{
6
6
  success: boolean;
7
7
  }>;
@@ -13,5 +13,5 @@ export declare function useSession(): {
13
13
  }) => Promise<{
14
14
  success: boolean;
15
15
  }>;
16
- resetPasswordByHash: (params: import("utility-types").Optional<import("@scayle/storefront-core").UpdatePasswordByHashRequest, "shop_id">) => Promise<undefined>;
16
+ resetPasswordByHash: (params: import("utility-types").Optional<import("@scayle/storefront-core").UpdatePasswordByHashRequest, "shop_id">) => Promise<void | undefined>;
17
17
  };
@@ -7,11 +7,7 @@ type Options = Partial<{
7
7
  key: string;
8
8
  }>;
9
9
  export declare function useProducts({ params, options, key, }?: Options): Promise<{
10
- data: import("vue").Ref<import("@scayle/storefront-core").ProductsResponse | ({
11
- pagination: import("@scayle/storefront-core").Pagination;
12
- } & {
13
- products: import("@scayle/storefront-core").Product[];
14
- })>;
10
+ data: import("vue").Ref<import("@scayle/storefront-core").ProductsResponse>;
15
11
  fetching: import("vue").Ref<boolean>;
16
12
  fetch: () => Promise<void>;
17
13
  error: import("vue").Ref<import("nuxt/app").NuxtError<unknown> | undefined>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@scayle/storefront-nuxt",
3
3
  "type": "module",
4
- "version": "7.53.1",
4
+ "version": "7.55.0",
5
5
  "description": "Nuxt integration for the SCAYLE Commerce Engine and Storefront API",
6
6
  "author": "SCAYLE Commerce Engine",
7
7
  "license": "MIT",
@@ -62,13 +62,13 @@
62
62
  "dependencies": {
63
63
  "@nuxt/kit": "3.9.3",
64
64
  "@scayle/h3-session": "0.3.5",
65
- "@scayle/storefront-core": "7.38.1",
65
+ "@scayle/storefront-core": "7.39.0",
66
66
  "@scayle/unstorage-compression-driver": "0.1.1",
67
67
  "@vueuse/core": "10.7.2",
68
68
  "consola": "3.2.3",
69
69
  "core-js": "3.35.1",
70
70
  "defu": "6.1.4",
71
- "h3": "1.10.0",
71
+ "h3": "1.10.1",
72
72
  "jose": "^5.2.0",
73
73
  "knitwork": "1.0.0",
74
74
  "nitropack": "2.8.1",
@@ -82,17 +82,17 @@
82
82
  "devDependencies": {
83
83
  "@nuxt/module-builder": "0.5.5",
84
84
  "@nuxt/schema": "3.9.3",
85
- "@nuxt/test-utils": "3.10.0",
85
+ "@nuxt/test-utils": "3.11.0",
86
86
  "@scayle/eslint-config-storefront": "3.2.6",
87
87
  "@scayle/prettier-config-storefront": "2.0.2",
88
- "@types/node": "20.11.5",
88
+ "@types/node": "20.11.13",
89
89
  "eslint": "8.56.0",
90
90
  "eslint-formatter-gitlab": "5.1.0",
91
91
  "node-mocks-http": "1.14.1",
92
92
  "nuxt": "3.9.3",
93
93
  "prettier": "3.0.0",
94
94
  "publint": "0.2.7",
95
- "vitest": "1.2.1",
95
+ "vitest": "1.2.2",
96
96
  "vue-tsc": "1.8.27"
97
97
  },
98
98
  "peerDependencies": {