@scayle/storefront-nuxt 7.94.3 → 7.94.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/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # @scayle/storefront-nuxt
2
2
 
3
+ ## 7.94.5
4
+
5
+ ### Patch Changes
6
+
7
+ **Dependencies**
8
+
9
+ - Updated dependency to @scayle/storefront-core@7.67.0
10
+
11
+ ## 7.94.4
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependency `@scayle/storefront-core@7.66.5` to `@scayle/storefront-core@7.66.6`
16
+ **Dependencies**
17
+
18
+ - Updated dependency to @scayle/storefront-core@7.66.7
19
+
3
20
  ## 7.94.3
4
21
 
5
22
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -3,10 +3,10 @@ export { e as AdditionalShopConfig, A as AppKeys, B as BapiConfig, i as Checkout
3
3
  export { rpcCall } from '../dist/runtime/rpc/rpcCall.js';
4
4
  export { extendPromise } from '../dist/runtime/utils/promise.js';
5
5
  export * from '../dist/runtime/utils/seo.js';
6
- import { Category, Product, Variant, AttributeGroup, AdvancedAttribute, Price, RpcContext } from '@scayle/storefront-core';
6
+ import { Factory } from 'fishery';
7
+ import { RpcContext } from '@scayle/storefront-core';
7
8
  export * from '@scayle/storefront-core';
8
9
  export { LogLevel } from '@scayle/storefront-core';
9
- import { Factory } from 'fishery';
10
10
  import { RouteLocationNormalizedLoadedGeneric } from 'vue-router';
11
11
  export { unwrap } from '@scayle/storefront-core/dist/utils/response';
12
12
  import '@scayle/unstorage-compression-driver';
@@ -14,17 +14,6 @@ import 'unstorage';
14
14
  import '../dist/runtime/utils/zodSchema.js';
15
15
  import '@nuxt/schema';
16
16
 
17
- declare const categoryFactory: Factory<Category, any, Category>;
18
-
19
- declare const productFactory: Factory<Product, any, Product>;
20
-
21
- declare const variantFactory: Factory<Variant, any, Variant>;
22
-
23
- declare const attributeGroupFactory: Factory<AttributeGroup, any, AttributeGroup>;
24
- declare const advancedAttributeFactory: Factory<AdvancedAttribute, any, AdvancedAttribute>;
25
-
26
- declare const priceFactory: Factory<Price, any, Price>;
27
-
28
17
  interface ModuleOptionsFactoryParams {
29
18
  shops: ShopConfig[];
30
19
  }
@@ -46,4 +35,4 @@ declare module '@scayle/storefront-core' {
46
35
  }
47
36
  }
48
37
 
49
- export { ModuleBaseOptions, type RpcMethodsStorefront, ShopConfig, advancedAttributeFactory, attributeGroupFactory, categoryFactory, moduleOptionsFactory, priceFactory, productFactory, routeFactory, rpcContextFactory, shopConfigFactory, variantFactory };
38
+ export { ModuleBaseOptions, type RpcMethodsStorefront, ShopConfig, moduleOptionsFactory, routeFactory, rpcContextFactory, shopConfigFactory };
package/dist/index.d.ts CHANGED
@@ -3,10 +3,10 @@ export { e as AdditionalShopConfig, A as AppKeys, B as BapiConfig, i as Checkout
3
3
  export { rpcCall } from '../dist/runtime/rpc/rpcCall.js';
4
4
  export { extendPromise } from '../dist/runtime/utils/promise.js';
5
5
  export * from '../dist/runtime/utils/seo.js';
6
- import { Category, Product, Variant, AttributeGroup, AdvancedAttribute, Price, RpcContext } from '@scayle/storefront-core';
6
+ import { Factory } from 'fishery';
7
+ import { RpcContext } from '@scayle/storefront-core';
7
8
  export * from '@scayle/storefront-core';
8
9
  export { LogLevel } from '@scayle/storefront-core';
9
- import { Factory } from 'fishery';
10
10
  import { RouteLocationNormalizedLoadedGeneric } from 'vue-router';
11
11
  export { unwrap } from '@scayle/storefront-core/dist/utils/response';
12
12
  import '@scayle/unstorage-compression-driver';
@@ -14,17 +14,6 @@ import 'unstorage';
14
14
  import '../dist/runtime/utils/zodSchema.js';
15
15
  import '@nuxt/schema';
16
16
 
17
- declare const categoryFactory: Factory<Category, any, Category>;
18
-
19
- declare const productFactory: Factory<Product, any, Product>;
20
-
21
- declare const variantFactory: Factory<Variant, any, Variant>;
22
-
23
- declare const attributeGroupFactory: Factory<AttributeGroup, any, AttributeGroup>;
24
- declare const advancedAttributeFactory: Factory<AdvancedAttribute, any, AdvancedAttribute>;
25
-
26
- declare const priceFactory: Factory<Price, any, Price>;
27
-
28
17
  interface ModuleOptionsFactoryParams {
29
18
  shops: ShopConfig[];
30
19
  }
@@ -46,4 +35,4 @@ declare module '@scayle/storefront-core' {
46
35
  }
47
36
  }
48
37
 
49
- export { ModuleBaseOptions, type RpcMethodsStorefront, ShopConfig, advancedAttributeFactory, attributeGroupFactory, categoryFactory, moduleOptionsFactory, priceFactory, productFactory, routeFactory, rpcContextFactory, shopConfigFactory, variantFactory };
38
+ export { ModuleBaseOptions, type RpcMethodsStorefront, ShopConfig, moduleOptionsFactory, routeFactory, rpcContextFactory, shopConfigFactory };
package/dist/index.mjs CHANGED
@@ -6,131 +6,6 @@ export * from '@scayle/storefront-core';
6
6
  export { unwrap } from '@scayle/storefront-core/dist/utils/response';
7
7
  import { Factory } from 'fishery';
8
8
 
9
- const categoryFactory = Factory.define(() => {
10
- return {
11
- id: 1,
12
- path: "/women",
13
- name: "women",
14
- slug: "test",
15
- parentId: 2048,
16
- rootlineIds: [2045, 2048, 2058],
17
- childrenIds: [],
18
- properties: [],
19
- isHidden: false,
20
- depth: 3,
21
- supportedFilter: ["color", "brand", "size"],
22
- shopLevelCustomData: {},
23
- countryLevelCustomData: {}
24
- };
25
- });
26
-
27
- const attributeGroupFactory = Factory.define(() => {
28
- return {
29
- id: 1,
30
- key: "name",
31
- label: "Test Attribute",
32
- type: null,
33
- multiSelect: false,
34
- values: {
35
- label: "Test Attribute"
36
- }
37
- };
38
- });
39
- const advancedAttributeFactory = Factory.define(
40
- () => ({
41
- id: 553,
42
- key: "productName",
43
- label: "Produktname",
44
- type: "",
45
- values: [
46
- {
47
- fieldSet: [[{ value: "Jacke 'Premium Essentials'" }]],
48
- groupSet: []
49
- }
50
- ]
51
- })
52
- );
53
-
54
- const priceFactory = Factory.define(() => {
55
- return {
56
- currencyCode: "USD",
57
- tax: { vat: { amount: 1, rate: 0 } },
58
- withoutTax: 2,
59
- withTax: 100,
60
- appliedReductions: []
61
- };
62
- });
63
-
64
- const variantFactory = Factory.define(() => ({
65
- id: 1,
66
- lowestPriorPrice: {
67
- withTax: 23,
68
- relativeDifferenceToPrice: null
69
- },
70
- stock: { warehouseId: 1, quantity: 2 },
71
- createdAt: "",
72
- updatedAt: "",
73
- price: priceFactory.build()
74
- }));
75
-
76
- const productFactory = Factory.define((options) => {
77
- const attributes = {
78
- name: attributeGroupFactory.build({
79
- key: "name",
80
- label: "Test Product",
81
- values: {
82
- label: "Test Product"
83
- }
84
- }),
85
- brand: attributeGroupFactory.build({
86
- key: "brand",
87
- label: "Brand",
88
- type: "string",
89
- values: {
90
- label: "Brand Name",
91
- id: 101,
92
- value: "brand-name"
93
- }
94
- }),
95
- color: attributeGroupFactory.build({
96
- key: "color",
97
- label: "Color",
98
- type: "",
99
- values: {
100
- id: 6,
101
- label: "Wei\xDF",
102
- value: "weiss"
103
- }
104
- })
105
- };
106
- return {
107
- id: 1,
108
- attributes: options.params.attributes ?? attributes,
109
- isActive: true,
110
- isSoldOut: false,
111
- isNew: false,
112
- createdAt: "",
113
- updatedAt: "",
114
- images: [{ hash: "test image" }],
115
- siblings: [
116
- {
117
- id: 5,
118
- attributes: options.params.attributes ?? attributes,
119
- isActive: true,
120
- isSoldOut: false,
121
- isNew: false,
122
- createdAt: "",
123
- updatedAt: "",
124
- images: []
125
- }
126
- ],
127
- variants: [
128
- variantFactory.build({ id: 1 }),
129
- variantFactory.build({ id: 2 })
130
- ]
131
- };
132
- });
133
-
134
9
  const moduleOptionsFactory = Factory.define(({ transientParams }) => {
135
10
  return {
136
11
  sapi: {
@@ -242,4 +117,4 @@ const routeFactory = Factory.define(
242
117
  })
243
118
  );
244
119
 
245
- export { advancedAttributeFactory, attributeGroupFactory, categoryFactory, moduleOptionsFactory, priceFactory, productFactory, routeFactory, rpcContextFactory, shopConfigFactory, variantFactory };
120
+ export { moduleOptionsFactory, routeFactory, rpcContextFactory, shopConfigFactory };
package/dist/module.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scayle/storefront-nuxt",
3
- "version": "7.94.3",
3
+ "version": "7.94.5",
4
4
  "configKey": "storefront",
5
5
  "compatibility": {
6
6
  "nuxt": "^3.9.0"
package/dist/module.mjs CHANGED
@@ -48,7 +48,7 @@ export default {
48
48
  }`;
49
49
  }
50
50
  const PACKAGE_NAME = "@scayle/storefront-nuxt";
51
- const PACKAGE_VERSION = "7.94.3";
51
+ const PACKAGE_VERSION = "7.94.5";
52
52
  const logger = createConsola({
53
53
  fancy: true,
54
54
  formatOptions: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@scayle/storefront-nuxt",
3
3
  "type": "module",
4
- "version": "7.94.3",
4
+ "version": "7.94.5",
5
5
  "description": "Nuxt integration for the SCAYLE Commerce Engine and Storefront API",
6
6
  "author": "SCAYLE Commerce Engine",
7
7
  "license": "MIT",
@@ -65,7 +65,7 @@
65
65
  "@nuxt/kit": "^3.12.2",
66
66
  "@opentelemetry/api": "^1.9.0",
67
67
  "@scayle/h3-session": "^0.4.1",
68
- "@scayle/storefront-core": "7.66.6",
68
+ "@scayle/storefront-core": "7.67.0",
69
69
  "@scayle/unstorage-compression-driver": "^0.1.5",
70
70
  "@vueuse/core": "11.2.0",
71
71
  "consola": "^3.2.3",