@vue-storefront/next 7.0.0-next.4 → 7.0.0-next.5
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.cjs
CHANGED
|
@@ -27,8 +27,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
27
27
|
}) : target, mod));
|
|
28
28
|
|
|
29
29
|
//#endregion
|
|
30
|
-
const require_env = require('./env-
|
|
31
|
-
let
|
|
30
|
+
const require_env = require('./env-BxyAENtV.cjs');
|
|
31
|
+
let _alokai_instrumentation_next_component = require("@alokai/instrumentation-next-component");
|
|
32
32
|
let next_script = require("next/script");
|
|
33
33
|
next_script = __toESM(next_script);
|
|
34
34
|
let react = require("react");
|
|
@@ -129,7 +129,7 @@ function createSfStateProvider() {
|
|
|
129
129
|
}
|
|
130
130
|
|
|
131
131
|
//#endregion
|
|
132
|
-
//#region \0@oxc-project+runtime@0.
|
|
132
|
+
//#region \0@oxc-project+runtime@0.107.0/helpers/objectWithoutPropertiesLoose.js
|
|
133
133
|
function _objectWithoutPropertiesLoose(r, e) {
|
|
134
134
|
if (null == r) return {};
|
|
135
135
|
var t = {};
|
|
@@ -141,7 +141,7 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
|
141
141
|
}
|
|
142
142
|
|
|
143
143
|
//#endregion
|
|
144
|
-
//#region \0@oxc-project+runtime@0.
|
|
144
|
+
//#region \0@oxc-project+runtime@0.107.0/helpers/objectWithoutProperties.js
|
|
145
145
|
function _objectWithoutProperties(e, t) {
|
|
146
146
|
if (null == e) return {};
|
|
147
147
|
var o, r, i = _objectWithoutPropertiesLoose(e, t);
|
|
@@ -203,7 +203,7 @@ function createAlokaiContext() {
|
|
|
203
203
|
}), publicEnv && /* @__PURE__ */ react.default.createElement(next_script.default, {
|
|
204
204
|
id: "alokaiEnv",
|
|
205
205
|
strategy: "beforeInteractive"
|
|
206
|
-
}, envScript), /* @__PURE__ */ react.default.createElement(
|
|
206
|
+
}, envScript), /* @__PURE__ */ react.default.createElement(_alokai_instrumentation_next_component.AlokaiInstrumentation, null), /* @__PURE__ */ react.default.createElement(SfStateProvider, { initialData }, children));
|
|
207
207
|
}
|
|
208
208
|
const useSdk = () => {
|
|
209
209
|
const contextSdk = (0, react.useContext)(SdkContext);
|
package/dist/client.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
import { n as _objectSpread2, r as PUBLIC_ENV_KEY, t as env } from "./env-
|
|
3
|
+
import { n as _objectSpread2, r as PUBLIC_ENV_KEY, t as env } from "./env-BFUtR_CT.mjs";
|
|
4
4
|
import { AlokaiInstrumentation } from "@alokai/instrumentation-next-component";
|
|
5
5
|
import Script from "next/script";
|
|
6
6
|
import React, { createContext, useContext, useRef } from "react";
|
|
@@ -100,7 +100,7 @@ function createSfStateProvider() {
|
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
//#endregion
|
|
103
|
-
//#region \0@oxc-project+runtime@0.
|
|
103
|
+
//#region \0@oxc-project+runtime@0.107.0/helpers/objectWithoutPropertiesLoose.js
|
|
104
104
|
function _objectWithoutPropertiesLoose(r, e) {
|
|
105
105
|
if (null == r) return {};
|
|
106
106
|
var t = {};
|
|
@@ -112,7 +112,7 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
//#endregion
|
|
115
|
-
//#region \0@oxc-project+runtime@0.
|
|
115
|
+
//#region \0@oxc-project+runtime@0.107.0/helpers/objectWithoutProperties.js
|
|
116
116
|
function _objectWithoutProperties(e, t) {
|
|
117
117
|
if (null == e) return {};
|
|
118
118
|
var o, r, i = _objectWithoutPropertiesLoose(e, t);
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
const PUBLIC_ENV_KEY = "__ALOKAI_ENV__";
|
|
6
6
|
|
|
7
7
|
//#endregion
|
|
8
|
-
//#region \0@oxc-project+runtime@0.
|
|
8
|
+
//#region \0@oxc-project+runtime@0.107.0/helpers/typeof.js
|
|
9
9
|
function _typeof(o) {
|
|
10
10
|
"@babel/helpers - typeof";
|
|
11
11
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o$1) {
|
|
@@ -16,7 +16,7 @@ function _typeof(o) {
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
//#endregion
|
|
19
|
-
//#region \0@oxc-project+runtime@0.
|
|
19
|
+
//#region \0@oxc-project+runtime@0.107.0/helpers/toPrimitive.js
|
|
20
20
|
function toPrimitive(t, r) {
|
|
21
21
|
if ("object" != _typeof(t) || !t) return t;
|
|
22
22
|
var e = t[Symbol.toPrimitive];
|
|
@@ -29,14 +29,14 @@ function toPrimitive(t, r) {
|
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
//#endregion
|
|
32
|
-
//#region \0@oxc-project+runtime@0.
|
|
32
|
+
//#region \0@oxc-project+runtime@0.107.0/helpers/toPropertyKey.js
|
|
33
33
|
function toPropertyKey(t) {
|
|
34
34
|
var i = toPrimitive(t, "string");
|
|
35
35
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
//#endregion
|
|
39
|
-
//#region \0@oxc-project+runtime@0.
|
|
39
|
+
//#region \0@oxc-project+runtime@0.107.0/helpers/defineProperty.js
|
|
40
40
|
function _defineProperty(e, r, t) {
|
|
41
41
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
42
42
|
value: t,
|
|
@@ -47,7 +47,7 @@ function _defineProperty(e, r, t) {
|
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
//#endregion
|
|
50
|
-
//#region \0@oxc-project+runtime@0.
|
|
50
|
+
//#region \0@oxc-project+runtime@0.107.0/helpers/objectSpread2.js
|
|
51
51
|
function ownKeys(e, r) {
|
|
52
52
|
var t = Object.keys(e);
|
|
53
53
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
const PUBLIC_ENV_KEY = "__ALOKAI_ENV__";
|
|
7
7
|
|
|
8
8
|
//#endregion
|
|
9
|
-
//#region \0@oxc-project+runtime@0.
|
|
9
|
+
//#region \0@oxc-project+runtime@0.107.0/helpers/typeof.js
|
|
10
10
|
function _typeof(o) {
|
|
11
11
|
"@babel/helpers - typeof";
|
|
12
12
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o$1) {
|
|
@@ -17,7 +17,7 @@ function _typeof(o) {
|
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
//#endregion
|
|
20
|
-
//#region \0@oxc-project+runtime@0.
|
|
20
|
+
//#region \0@oxc-project+runtime@0.107.0/helpers/toPrimitive.js
|
|
21
21
|
function toPrimitive(t, r) {
|
|
22
22
|
if ("object" != _typeof(t) || !t) return t;
|
|
23
23
|
var e = t[Symbol.toPrimitive];
|
|
@@ -30,14 +30,14 @@ function toPrimitive(t, r) {
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
//#endregion
|
|
33
|
-
//#region \0@oxc-project+runtime@0.
|
|
33
|
+
//#region \0@oxc-project+runtime@0.107.0/helpers/toPropertyKey.js
|
|
34
34
|
function toPropertyKey(t) {
|
|
35
35
|
var i = toPrimitive(t, "string");
|
|
36
36
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
//#endregion
|
|
40
|
-
//#region \0@oxc-project+runtime@0.
|
|
40
|
+
//#region \0@oxc-project+runtime@0.107.0/helpers/defineProperty.js
|
|
41
41
|
function _defineProperty(e, r, t) {
|
|
42
42
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
43
43
|
value: t,
|
|
@@ -48,7 +48,7 @@ function _defineProperty(e, r, t) {
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
//#endregion
|
|
51
|
-
//#region \0@oxc-project+runtime@0.
|
|
51
|
+
//#region \0@oxc-project+runtime@0.107.0/helpers/objectSpread2.js
|
|
52
52
|
function ownKeys(e, r) {
|
|
53
53
|
var t = Object.keys(e);
|
|
54
54
|
if (Object.getOwnPropertySymbols) {
|
package/dist/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const require_env = require('./env-
|
|
1
|
+
const require_env = require('./env-BxyAENtV.cjs');
|
|
2
2
|
const require_client = require('./client.cjs');
|
|
3
|
-
let
|
|
4
|
-
let
|
|
3
|
+
let _alokai_connect_logger = require("@alokai/connect/logger");
|
|
4
|
+
let _alokai_connect_sdk = require("@alokai/connect/sdk");
|
|
5
5
|
|
|
6
6
|
//#region src/logger/injectMetadata.ts
|
|
7
7
|
function injectMetadata(logger, externalData) {
|
|
@@ -18,7 +18,7 @@ function injectMetadata(logger, externalData) {
|
|
|
18
18
|
//#endregion
|
|
19
19
|
//#region src/logger/index.ts
|
|
20
20
|
const createLogger = (options) => {
|
|
21
|
-
return injectMetadata(
|
|
21
|
+
return injectMetadata(_alokai_connect_logger.LoggerFactory.create(_alokai_connect_logger.LoggerType.ConsolaGcp, options), { alokai: { context: "storefront" } });
|
|
22
22
|
};
|
|
23
23
|
|
|
24
24
|
//#endregion
|
|
@@ -68,7 +68,7 @@ const defaultMethodsRequestConfig = {
|
|
|
68
68
|
};
|
|
69
69
|
|
|
70
70
|
//#endregion
|
|
71
|
-
//#region \0@oxc-project+runtime@0.
|
|
71
|
+
//#region \0@oxc-project+runtime@0.107.0/helpers/asyncToGenerator.js
|
|
72
72
|
function asyncGeneratorStep(n, t, e, r, o, a, c) {
|
|
73
73
|
try {
|
|
74
74
|
var i = n[a](c), u = i.value;
|
|
@@ -175,8 +175,8 @@ function createSdk(options, configDefinition) {
|
|
|
175
175
|
function getSdk(dynamicContext = {}) {
|
|
176
176
|
var _options$middleware$c;
|
|
177
177
|
const { getRequestHeaders } = resolveDynamicContext(dynamicContext);
|
|
178
|
-
return (0,
|
|
179
|
-
buildModule:
|
|
178
|
+
return (0, _alokai_connect_sdk.initSDK)(configDefinition({
|
|
179
|
+
buildModule: _alokai_connect_sdk.buildModule,
|
|
180
180
|
config: {
|
|
181
181
|
apiUrl: options.middleware.apiUrl,
|
|
182
182
|
cdnCacheBustingId: (_options$middleware$c = options.middleware.cdnCacheBustingId) !== null && _options$middleware$c !== void 0 ? _options$middleware$c : "no-cache-busting-id-set",
|
|
@@ -185,7 +185,7 @@ function createSdk(options, configDefinition) {
|
|
|
185
185
|
},
|
|
186
186
|
defaults: defaultMethodsRequestConfig,
|
|
187
187
|
getRequestHeaders,
|
|
188
|
-
middlewareModule:
|
|
188
|
+
middlewareModule: _alokai_connect_sdk.middlewareModule
|
|
189
189
|
}));
|
|
190
190
|
}
|
|
191
191
|
return { getSdk };
|
|
@@ -249,7 +249,7 @@ exports.createSdk = createSdk;
|
|
|
249
249
|
Object.defineProperty(exports, 'defineGetConfigSwitcherHeader', {
|
|
250
250
|
enumerable: true,
|
|
251
251
|
get: function () {
|
|
252
|
-
return
|
|
252
|
+
return _alokai_connect_sdk.defineGetConfigSwitcherHeader;
|
|
253
253
|
}
|
|
254
254
|
});
|
|
255
255
|
exports.defineSdkConfig = defineSdkConfig;
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as _objectSpread2, t as env } from "./env-
|
|
1
|
+
import { n as _objectSpread2, t as env } from "./env-BFUtR_CT.mjs";
|
|
2
2
|
import { LoggerFactory, LoggerType } from "@alokai/connect/logger";
|
|
3
3
|
import { buildModule, defineGetConfigSwitcherHeader, initSDK, middlewareModule } from "@alokai/connect/sdk";
|
|
4
4
|
|
|
@@ -67,7 +67,7 @@ const defaultMethodsRequestConfig = {
|
|
|
67
67
|
};
|
|
68
68
|
|
|
69
69
|
//#endregion
|
|
70
|
-
//#region \0@oxc-project+runtime@0.
|
|
70
|
+
//#region \0@oxc-project+runtime@0.107.0/helpers/asyncToGenerator.js
|
|
71
71
|
function asyncGeneratorStep(n, t, e, r, o, a, c) {
|
|
72
72
|
try {
|
|
73
73
|
var i = n[a](c), u = i.value;
|
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": "7.0.0-next.
|
|
5
|
+
"version": "7.0.0-next.5",
|
|
6
6
|
"exports": {
|
|
7
7
|
".": {
|
|
8
8
|
"types": "./dist/index.d.mts",
|
|
@@ -27,11 +27,11 @@
|
|
|
27
27
|
"version": "cp CHANGELOG.md ../../docs/enterprise/content/storefront/6.change-log/next.md"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@alokai/instrumentation-next-component": "1.0.1-next.
|
|
30
|
+
"@alokai/instrumentation-next-component": "1.0.1-next.1",
|
|
31
31
|
"zustand": "^4.5.4"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@alokai/connect": "^2.0.0-next.
|
|
34
|
+
"@alokai/connect": "^2.0.0-next.3",
|
|
35
35
|
"@types/react": "^19",
|
|
36
36
|
"@types/react-dom": "^19",
|
|
37
37
|
"eslint": "9.23.0",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"react": "19.2.0",
|
|
41
41
|
"react-dom": "19.2.0",
|
|
42
42
|
"start-server-and-test": "^2.0.11",
|
|
43
|
-
"tsdown": "0.
|
|
43
|
+
"tsdown": "0.19.0",
|
|
44
44
|
"vitest": "2.1.9"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|