@vue-storefront/next 6.0.0-rc.5 → 6.0.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/dist/client.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SDKApi } from '@alokai/connect/sdk';
|
|
2
|
-
import { S as SfContract, C as CreateSdkContextReturn } from './types-
|
|
3
|
-
export { M as Maybe, b as SfState, a as SfStateProps, c as createSfStateProvider } from './types-
|
|
2
|
+
import { S as SfContract, C as CreateSdkContextReturn } from './types-B9h_AU7R.mjs';
|
|
3
|
+
export { M as Maybe, b as SfState, a as SfStateProps, c as createSfStateProvider } from './types-B9h_AU7R.mjs';
|
|
4
4
|
import 'next/headers';
|
|
5
5
|
import 'react';
|
|
6
6
|
|
package/dist/client.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SDKApi } from '@alokai/connect/sdk';
|
|
2
|
-
import { S as SfContract, C as CreateSdkContextReturn } from './types-
|
|
3
|
-
export { M as Maybe, b as SfState, a as SfStateProps, c as createSfStateProvider } from './types-
|
|
2
|
+
import { S as SfContract, C as CreateSdkContextReturn } from './types-B9h_AU7R.js';
|
|
3
|
+
export { M as Maybe, b as SfState, a as SfStateProps, c as createSfStateProvider } from './types-B9h_AU7R.js';
|
|
4
4
|
import 'next/headers';
|
|
5
5
|
import 'react';
|
|
6
6
|
|
package/dist/index.d.mts
CHANGED
|
@@ -2,7 +2,7 @@ import * as _alokai_connect_logger from '@alokai/connect/logger';
|
|
|
2
2
|
import { NextRequest, NextResponse } from 'next/server';
|
|
3
3
|
import { buildModule } from '@alokai/connect/sdk';
|
|
4
4
|
export { defineGetConfigSwitcherHeader } from '@alokai/connect/sdk';
|
|
5
|
-
import { d as CreateSdkOptions, e as Config, f as CreateSdkReturn, I as InjectedContext } from './types-
|
|
5
|
+
import { d as CreateSdkOptions, e as Config, f as CreateSdkReturn, I as InjectedContext } from './types-B9h_AU7R.mjs';
|
|
6
6
|
import 'next/headers';
|
|
7
7
|
import 'react';
|
|
8
8
|
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as _alokai_connect_logger from '@alokai/connect/logger';
|
|
|
2
2
|
import { NextRequest, NextResponse } from 'next/server';
|
|
3
3
|
import { buildModule } from '@alokai/connect/sdk';
|
|
4
4
|
export { defineGetConfigSwitcherHeader } from '@alokai/connect/sdk';
|
|
5
|
-
import { d as CreateSdkOptions, e as Config, f as CreateSdkReturn, I as InjectedContext } from './types-
|
|
5
|
+
import { d as CreateSdkOptions, e as Config, f as CreateSdkReturn, I as InjectedContext } from './types-B9h_AU7R.js';
|
|
6
6
|
import 'next/headers';
|
|
7
7
|
import 'react';
|
|
8
8
|
|
|
@@ -30,30 +30,12 @@ declare function createSfStateProvider<TSfContract extends SfContract>(): {
|
|
|
30
30
|
SfStateProvider: ({ children, initialData, }: {
|
|
31
31
|
initialData: SfStateProps<TSfContract>;
|
|
32
32
|
} & PropsWithChildren) => React.JSX.Element;
|
|
33
|
-
useSfCartState: () => [
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
];
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
(currencies: TSfContract["SfCurrency"][]) => void
|
|
40
|
-
];
|
|
41
|
-
useSfCurrencyState: () => [
|
|
42
|
-
TSfContract["SfCurrency"],
|
|
43
|
-
(currency: TSfContract["SfCurrency"]) => void
|
|
44
|
-
];
|
|
45
|
-
useSfCustomerState: () => [
|
|
46
|
-
null | TSfContract["SfCustomer"] | undefined,
|
|
47
|
-
(customer?: null | TSfContract["SfCustomer"]) => void
|
|
48
|
-
];
|
|
49
|
-
useSfLocalesState: () => [
|
|
50
|
-
TSfContract["SfLocale"][],
|
|
51
|
-
(locales: TSfContract["SfLocale"][]) => void
|
|
52
|
-
];
|
|
53
|
-
useSfLocaleState: () => [
|
|
54
|
-
TSfContract["SfLocale"],
|
|
55
|
-
(locale: TSfContract["SfLocale"]) => void
|
|
56
|
-
];
|
|
33
|
+
useSfCartState: () => [null | TSfContract["SfCart"] | undefined, (cart?: null | TSfContract["SfCart"]) => void];
|
|
34
|
+
useSfCurrenciesState: () => [TSfContract["SfCurrency"][], (currencies: TSfContract["SfCurrency"][]) => void];
|
|
35
|
+
useSfCurrencyState: () => [TSfContract["SfCurrency"], (currency: TSfContract["SfCurrency"]) => void];
|
|
36
|
+
useSfCustomerState: () => [null | TSfContract["SfCustomer"] | undefined, (customer?: null | TSfContract["SfCustomer"]) => void];
|
|
37
|
+
useSfLocalesState: () => [TSfContract["SfLocale"][], (locales: TSfContract["SfLocale"][]) => void];
|
|
38
|
+
useSfLocaleState: () => [TSfContract["SfLocale"], (locale: TSfContract["SfLocale"]) => void];
|
|
57
39
|
};
|
|
58
40
|
|
|
59
41
|
declare const defaultMethodsRequestConfig: {
|
|
@@ -30,30 +30,12 @@ declare function createSfStateProvider<TSfContract extends SfContract>(): {
|
|
|
30
30
|
SfStateProvider: ({ children, initialData, }: {
|
|
31
31
|
initialData: SfStateProps<TSfContract>;
|
|
32
32
|
} & PropsWithChildren) => React.JSX.Element;
|
|
33
|
-
useSfCartState: () => [
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
];
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
(currencies: TSfContract["SfCurrency"][]) => void
|
|
40
|
-
];
|
|
41
|
-
useSfCurrencyState: () => [
|
|
42
|
-
TSfContract["SfCurrency"],
|
|
43
|
-
(currency: TSfContract["SfCurrency"]) => void
|
|
44
|
-
];
|
|
45
|
-
useSfCustomerState: () => [
|
|
46
|
-
null | TSfContract["SfCustomer"] | undefined,
|
|
47
|
-
(customer?: null | TSfContract["SfCustomer"]) => void
|
|
48
|
-
];
|
|
49
|
-
useSfLocalesState: () => [
|
|
50
|
-
TSfContract["SfLocale"][],
|
|
51
|
-
(locales: TSfContract["SfLocale"][]) => void
|
|
52
|
-
];
|
|
53
|
-
useSfLocaleState: () => [
|
|
54
|
-
TSfContract["SfLocale"],
|
|
55
|
-
(locale: TSfContract["SfLocale"]) => void
|
|
56
|
-
];
|
|
33
|
+
useSfCartState: () => [null | TSfContract["SfCart"] | undefined, (cart?: null | TSfContract["SfCart"]) => void];
|
|
34
|
+
useSfCurrenciesState: () => [TSfContract["SfCurrency"][], (currencies: TSfContract["SfCurrency"][]) => void];
|
|
35
|
+
useSfCurrencyState: () => [TSfContract["SfCurrency"], (currency: TSfContract["SfCurrency"]) => void];
|
|
36
|
+
useSfCustomerState: () => [null | TSfContract["SfCustomer"] | undefined, (customer?: null | TSfContract["SfCustomer"]) => void];
|
|
37
|
+
useSfLocalesState: () => [TSfContract["SfLocale"][], (locales: TSfContract["SfLocale"][]) => void];
|
|
38
|
+
useSfLocaleState: () => [TSfContract["SfLocale"], (locale: TSfContract["SfLocale"]) => void];
|
|
57
39
|
};
|
|
58
40
|
|
|
59
41
|
declare const defaultMethodsRequestConfig: {
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@vue-storefront/next",
|
|
3
3
|
"description": "Alokai dedicated features for Next.js",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"version": "6.0.0
|
|
5
|
+
"version": "6.0.0",
|
|
6
6
|
"exports": {
|
|
7
7
|
".": {
|
|
8
8
|
"types": "./dist/index.d.ts",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"zustand": "^4.5.4"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@alokai/connect": "^1.0.0
|
|
33
|
+
"@alokai/connect": "^1.0.0",
|
|
34
34
|
"@types/react": "18.3.2",
|
|
35
35
|
"@types/react-dom": "18.3.0",
|
|
36
36
|
"react-dom": "18.3.1",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"next": "14.2.25"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
|
-
"@alokai/connect": "^1.0.0
|
|
44
|
+
"@alokai/connect": "^1.0.0",
|
|
45
45
|
"react": "^18.2.0",
|
|
46
46
|
"next": "^13.4.7 || ^14.0.0"
|
|
47
47
|
},
|