@vue-storefront/next 5.0.0 → 6.0.0-rc.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 +3 -3
- package/dist/client.d.ts +3 -3
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/dist/{types-DGN1ZAgC.d.mts → types-SbOpJvFm.d.mts} +1 -1
- package/dist/{types-DGN1ZAgC.d.ts → types-SbOpJvFm.d.ts} +1 -1
- package/package.json +4 -5
package/dist/client.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { SDKApi } from '@
|
|
2
|
-
import { S as SfContract, c as CreateSdkContextReturn } from './types-
|
|
3
|
-
export { M as Maybe, e as SfState, d as SfStateProps, f as createSfStateProvider } from './types-
|
|
1
|
+
import { SDKApi } from '@alokai/connect/sdk';
|
|
2
|
+
import { S as SfContract, c as CreateSdkContextReturn } from './types-SbOpJvFm.mjs';
|
|
3
|
+
export { M as Maybe, e as SfState, d as SfStateProps, f as createSfStateProvider } from './types-SbOpJvFm.mjs';
|
|
4
4
|
import 'react';
|
|
5
5
|
import 'next/headers';
|
|
6
6
|
|
package/dist/client.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { SDKApi } from '@
|
|
2
|
-
import { S as SfContract, c as CreateSdkContextReturn } from './types-
|
|
3
|
-
export { M as Maybe, e as SfState, d as SfStateProps, f as createSfStateProvider } from './types-
|
|
1
|
+
import { SDKApi } from '@alokai/connect/sdk';
|
|
2
|
+
import { S as SfContract, c as CreateSdkContextReturn } from './types-SbOpJvFm.js';
|
|
3
|
+
export { M as Maybe, e as SfState, d as SfStateProps, f as createSfStateProvider } from './types-SbOpJvFm.js';
|
|
4
4
|
import 'react';
|
|
5
5
|
import 'next/headers';
|
|
6
6
|
|
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as CreateSdkOptions, a as Config, b as CreateSdkReturn } from './types-
|
|
2
|
-
import * as
|
|
3
|
-
import '@
|
|
1
|
+
import { C as CreateSdkOptions, a as Config, b as CreateSdkReturn } from './types-SbOpJvFm.mjs';
|
|
2
|
+
import * as _alokai_connect_logger from '@alokai/connect/logger';
|
|
3
|
+
import '@alokai/connect/sdk';
|
|
4
4
|
import 'react';
|
|
5
5
|
import 'next/headers';
|
|
6
6
|
|
|
@@ -95,6 +95,6 @@ type LoggerOptions = Partial<{
|
|
|
95
95
|
includeStackTrace: boolean;
|
|
96
96
|
}>;
|
|
97
97
|
|
|
98
|
-
declare const createLogger: (options?: LoggerOptions) =>
|
|
98
|
+
declare const createLogger: (options?: LoggerOptions) => _alokai_connect_logger.LoggerInterface;
|
|
99
99
|
|
|
100
100
|
export { CreateSdkOptions, createLogger, createSdk, defineSdkConfig, resolveSdkOptions };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as CreateSdkOptions, a as Config, b as CreateSdkReturn } from './types-
|
|
2
|
-
import * as
|
|
3
|
-
import '@
|
|
1
|
+
import { C as CreateSdkOptions, a as Config, b as CreateSdkReturn } from './types-SbOpJvFm.js';
|
|
2
|
+
import * as _alokai_connect_logger from '@alokai/connect/logger';
|
|
3
|
+
import '@alokai/connect/sdk';
|
|
4
4
|
import 'react';
|
|
5
5
|
import 'next/headers';
|
|
6
6
|
|
|
@@ -95,6 +95,6 @@ type LoggerOptions = Partial<{
|
|
|
95
95
|
includeStackTrace: boolean;
|
|
96
96
|
}>;
|
|
97
97
|
|
|
98
|
-
declare const createLogger: (options?: LoggerOptions) =>
|
|
98
|
+
declare const createLogger: (options?: LoggerOptions) => _alokai_connect_logger.LoggerInterface;
|
|
99
99
|
|
|
100
100
|
export { CreateSdkOptions, createLogger, createSdk, defineSdkConfig, resolveSdkOptions };
|
package/dist/index.js
CHANGED
|
@@ -101,7 +101,7 @@ var defaultMethodsRequestConfig = {
|
|
|
101
101
|
};
|
|
102
102
|
|
|
103
103
|
// src/sdk/index.tsx
|
|
104
|
-
var import_sdk = require("@
|
|
104
|
+
var import_sdk = require("@alokai/connect/sdk");
|
|
105
105
|
function createSdk(options, configDefinition) {
|
|
106
106
|
function getSdk(dynamicContext = {}) {
|
|
107
107
|
var _a;
|
|
@@ -132,7 +132,7 @@ function resolveSdkOptions(input, _options = {}) {
|
|
|
132
132
|
}
|
|
133
133
|
|
|
134
134
|
// src/logger/index.ts
|
|
135
|
-
var import_logger = require("@
|
|
135
|
+
var import_logger = require("@alokai/connect/logger");
|
|
136
136
|
|
|
137
137
|
// src/logger/injectMetadata.ts
|
|
138
138
|
function injectMetadata(logger, externalData) {
|
package/dist/index.mjs
CHANGED
|
@@ -60,7 +60,7 @@ var defaultMethodsRequestConfig = {
|
|
|
60
60
|
};
|
|
61
61
|
|
|
62
62
|
// src/sdk/index.tsx
|
|
63
|
-
import { buildModule, initSDK, middlewareModule } from "@
|
|
63
|
+
import { buildModule, initSDK, middlewareModule } from "@alokai/connect/sdk";
|
|
64
64
|
function createSdk(options, configDefinition) {
|
|
65
65
|
function getSdk(dynamicContext = {}) {
|
|
66
66
|
var _a;
|
|
@@ -91,7 +91,7 @@ function resolveSdkOptions(input, _options = {}) {
|
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
// src/logger/index.ts
|
|
94
|
-
import { LoggerFactory, LoggerType } from "@
|
|
94
|
+
import { LoggerFactory, LoggerType } from "@alokai/connect/logger";
|
|
95
95
|
|
|
96
96
|
// src/logger/injectMetadata.ts
|
|
97
97
|
function injectMetadata(logger, externalData) {
|
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": "
|
|
5
|
+
"version": "6.0.0-rc.0",
|
|
6
6
|
"exports": {
|
|
7
7
|
".": {
|
|
8
8
|
"types": "./dist/index.d.ts",
|
|
@@ -26,13 +26,12 @@
|
|
|
26
26
|
"version": "cp CHANGELOG.md ../../docs/content/storefront/6.change-log/next.md"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"zustand": "^4.5.4"
|
|
30
|
-
"@vue-storefront/logger": "1.0.0"
|
|
29
|
+
"zustand": "^4.5.4"
|
|
31
30
|
},
|
|
32
31
|
"devDependencies": {
|
|
32
|
+
"@alokai/connect": "^1.0.0",
|
|
33
33
|
"@types/react": "18.3.2",
|
|
34
34
|
"@types/react-dom": "18.3.0",
|
|
35
|
-
"@vue-storefront/sdk": "3.4.1",
|
|
36
35
|
"react-dom": "18.3.1",
|
|
37
36
|
"start-server-and-test": "^2.0.3",
|
|
38
37
|
"tsup": "8.3.0",
|
|
@@ -41,7 +40,7 @@
|
|
|
41
40
|
"next": "14.2.23"
|
|
42
41
|
},
|
|
43
42
|
"peerDependencies": {
|
|
44
|
-
"@
|
|
43
|
+
"@alokai/connect": "^1.0.0",
|
|
45
44
|
"react": "^18.2.0",
|
|
46
45
|
"next": "^13.4.7 || ^14.0.0"
|
|
47
46
|
},
|