@scayle/storefront-nuxt 8.20.1 → 8.22.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 +44 -0
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/api/rpcHandler.js +2 -2
- package/dist/runtime/handler.d.ts +1 -1
- package/dist/runtime/handler.js +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,49 @@
|
|
|
1
1
|
# @scayle/storefront-nuxt
|
|
2
2
|
|
|
3
|
+
## 8.22.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- The `useIDP` composable supports the `authUrlParameters` option for `getExternalIdpRedirects`. Values provided here will be processed by the Auth service and appended to the IDP URL.
|
|
8
|
+
|
|
9
|
+
Example:
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
const idp = useIDP({
|
|
13
|
+
authUrlParameters: {
|
|
14
|
+
theme: 'dark',
|
|
15
|
+
},
|
|
16
|
+
})
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
**Dependencies**
|
|
22
|
+
|
|
23
|
+
**@scayle/storefront-core v8.22.0**
|
|
24
|
+
|
|
25
|
+
- Minor
|
|
26
|
+
- Allow passing `authUrlParameters` to the `getExternalIdpRedirect` RPC method. This parameter is an optional `Record<string, string>`. Values provided here will be processed by the Auth service and appended to the final redirect URL.
|
|
27
|
+
- Exported the `ShopCountryCustomData` interface.
|
|
28
|
+
|
|
29
|
+
## 8.21.0
|
|
30
|
+
|
|
31
|
+
### Patch Changes
|
|
32
|
+
|
|
33
|
+
**Dependencies**
|
|
34
|
+
|
|
35
|
+
**@scayle/storefront-core v8.21.0**
|
|
36
|
+
|
|
37
|
+
- Minor
|
|
38
|
+
|
|
39
|
+
- Expose the following filter types from `storefront-api`:
|
|
40
|
+
|
|
41
|
+
- `FilterItemWithValues`
|
|
42
|
+
- `BooleanFilterItemWithValues`
|
|
43
|
+
- `RangeFilterItemWithValues`
|
|
44
|
+
- `IdenfitierFilterItemWithValues`
|
|
45
|
+
- `AttributesFilterValue`
|
|
46
|
+
|
|
3
47
|
## 8.20.1
|
|
4
48
|
|
|
5
49
|
### Patch Changes
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineEventHandler, readBody, createError, getRequestURL } from "h3";
|
|
2
2
|
import { purifySensitiveData, HttpStatusCode } from "@scayle/storefront-core";
|
|
3
3
|
import { trace, SpanStatusCode } from "@opentelemetry/api";
|
|
4
|
-
import {
|
|
4
|
+
import { invokeRpc } from "../handler.js";
|
|
5
5
|
import { resolveError } from "../error/handler.js";
|
|
6
6
|
import { useNitroApp } from "nitropack/runtime";
|
|
7
7
|
export default defineEventHandler(async (event) => {
|
|
@@ -50,7 +50,7 @@ export default defineEventHandler(async (event) => {
|
|
|
50
50
|
$rpcContext,
|
|
51
51
|
body?.payload
|
|
52
52
|
);
|
|
53
|
-
result = await
|
|
53
|
+
result = await invokeRpc(method, body?.payload, $rpcContext);
|
|
54
54
|
await nitroApp.hooks.callHook(
|
|
55
55
|
"storefront:rpc:after",
|
|
56
56
|
method,
|
|
@@ -19,4 +19,4 @@ import type { RpcContext, RpcMethodName, RpcMethodParameters, RpcMethodReturnTyp
|
|
|
19
19
|
*
|
|
20
20
|
* @throws {Error} If the specified RPC method is not found.
|
|
21
21
|
*/
|
|
22
|
-
export declare const
|
|
22
|
+
export declare const invokeRpc: <N extends RpcMethodName, P extends RpcMethodParameters<N>, TResult extends Awaited<RpcMethodReturnType<N>>, TakesParameters = P extends RpcContext ? undefined : boolean, TParams = TakesParameters extends undefined ? null : P>(method: N, payload: TParams, rpcContext: RpcContext) => Promise<TResult | Response>;
|
package/dist/runtime/handler.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { rpcMethods as coreRpcMethods } from "@scayle/storefront-core";
|
|
2
2
|
import * as storefrontRpcMethods from "#virtual/customRpcMethods";
|
|
3
|
-
export const
|
|
3
|
+
export const invokeRpc = async (method, payload, rpcContext) => {
|
|
4
4
|
const rpcMethods = {
|
|
5
5
|
...coreRpcMethods,
|
|
6
6
|
...storefrontRpcMethods
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scayle/storefront-nuxt",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "8.
|
|
4
|
+
"version": "8.22.0",
|
|
5
5
|
"description": "Nuxt integration for the SCAYLE Commerce Engine and Storefront API",
|
|
6
6
|
"author": "SCAYLE Commerce Engine",
|
|
7
7
|
"license": "MIT",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"dependencies": {
|
|
83
83
|
"@opentelemetry/api": "^1.9.0",
|
|
84
84
|
"@scayle/h3-session": "0.6.0",
|
|
85
|
-
"@scayle/storefront-core": "8.
|
|
85
|
+
"@scayle/storefront-core": "8.22.0",
|
|
86
86
|
"@scayle/unstorage-compression-driver": "^0.2.6",
|
|
87
87
|
"@vercel/nft": "0.29.2",
|
|
88
88
|
"@vueuse/core": "13.1.0",
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
"@scayle/eslint-config-storefront": "4.5.0",
|
|
111
111
|
"@scayle/eslint-plugin-vue-composable": "0.2.1",
|
|
112
112
|
"@scayle/unstorage-scayle-kv-driver": "0.1.1",
|
|
113
|
-
"@types/node": "22.14.
|
|
113
|
+
"@types/node": "22.14.1",
|
|
114
114
|
"dprint": "0.49.1",
|
|
115
115
|
"eslint-formatter-gitlab": "5.1.0",
|
|
116
116
|
"eslint": "9.24.0",
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
"publint": "0.2.12",
|
|
124
124
|
"typescript": "5.8.3",
|
|
125
125
|
"unbuild": "2.0.0",
|
|
126
|
-
"vitest": "
|
|
126
|
+
"vitest": "3.1.1",
|
|
127
127
|
"vue-tsc": "2.2.8"
|
|
128
128
|
},
|
|
129
129
|
"peerDependencies": {
|