@retailrocketgroup/retailrocket-edit.abandoned-basket-vue-email-template-render 3.0.381747 → 5.0.384700

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.
Files changed (44) hide show
  1. package/.turbo/turbo-build.log +25 -0
  2. package/dist/assets/index.css +1 -0
  3. package/dist/assets/index.js +379 -0
  4. package/dist/assets/index.js.map +1 -0
  5. package/dist/editAbandonedBasketEmailTemplate.d.ts +0 -0
  6. package/dist/implementation/Apps/components/WysiwygTemplateEditor/AsideMenu/ComponentLibrary/CreateComponentLibrarySectionModalWindow/abandonedBasketComponentSectionItemFactory.d.ts +4 -0
  7. package/dist/implementation/Apps/components/WysiwygTemplateEditor/AsideMenu/ComponentLibrary/CreateComponentLibrarySectionModalWindow/abandonedBasketEmailComponentFactory.d.ts +4 -0
  8. package/dist/implementation/Apps/components/WysiwygTemplateEditor/AsideMenu/ComponentLibrary/CustomComponentLibrary/abandonedBasketComponentLibraryFactory.d.ts +4 -0
  9. package/dist/implementation/Apps/components/WysiwygTemplateEditor/AsideMenu/ComponentLibrary/CustomComponentLibrary/abandonedBasketSectionFactory.d.ts +4 -0
  10. package/dist/implementation/DataSources/ListDataExpressionSource/abandonedBasketEvaluateListExpressionDataSourceFactory.d.ts +8 -0
  11. package/dist/implementation/DataSources/NumberExpressionDataSource/abandonedBasketEvaluateNumberExpressionDataSourceFactory.d.ts +2 -0
  12. package/dist/implementation/DataSources/StringExpressionDataSource/abandonedBasketEvaluateStringExpressionDataSource.d.ts +9 -0
  13. package/dist/implementation/EmailComponentSettingsModifierPlugin/ProductShelfDataSourceExpressionBuilder/AbandonedBasketProductShelfDataSourceExpressionBuilderModal/ShelfBuilders/abandonedBasketProductListShelfBuilderDepsFactory.d.ts +8 -0
  14. package/dist/implementation/EmailComponentSettingsModifierPlugin/ProductShelfDataSourceExpressionBuilder/AbandonedBasketProductShelfDataSourceExpressionBuilderModal/ShelfBuilders/alternativeProductsForAbandonedBasketProductListShelfBuilderDepsFactory.d.ts +8 -0
  15. package/dist/implementation/EmailComponentSettingsModifierPlugin/ProductShelfDataSourceExpressionBuilder/AbandonedBasketProductShelfDataSourceExpressionBuilderModal/ShelfBuilders/relatedProductsForAbandonedBasketProductListShelfBuilderDepsFactory.d.ts +8 -0
  16. package/dist/implementation/EmailComponentSettingsModifierPlugin/ProductShelfDataSourceExpressionBuilder/AbandonedBasketProductShelfDataSourceExpressionBuilderModal/abandonedBasketProductShelfDataSourceExpressionBuilderModalDepsFactory.d.ts +11 -0
  17. package/dist/implementation/EmailComponentSettingsModifierPlugin/ProductShelfDataSourceExpressionBuilder/abandonedBasketProductShelfDataSourceExpressionBuilderDepsFactory.d.ts +11 -0
  18. package/dist/index.d.ts +1 -0
  19. package/dist/index.html +37 -0
  20. package/env.d.ts +1 -0
  21. package/index.html +34 -33
  22. package/package.json +1 -1
  23. package/src/editAbandonedBasketEmailTemplate.ts +408 -0
  24. package/src/implementation/Apps/components/WysiwygTemplateEditor/AsideMenu/ComponentLibrary/CreateComponentLibrarySectionModalWindow/abandonedBasketComponentSectionItemFactory.ts +32 -0
  25. package/src/implementation/Apps/components/WysiwygTemplateEditor/AsideMenu/ComponentLibrary/CreateComponentLibrarySectionModalWindow/abandonedBasketEmailComponentFactory.ts +26 -0
  26. package/src/implementation/Apps/components/WysiwygTemplateEditor/AsideMenu/ComponentLibrary/CustomComponentLibrary/abandonedBasketComponentLibraryFactory.ts +29 -0
  27. package/src/implementation/Apps/components/WysiwygTemplateEditor/AsideMenu/ComponentLibrary/CustomComponentLibrary/abandonedBasketSectionFactory.ts +34 -0
  28. package/src/implementation/DataSources/ListDataExpressionSource/abandonedBasketEvaluateListExpressionDataSourceFactory.ts +132 -0
  29. package/src/implementation/DataSources/NumberExpressionDataSource/abandonedBasketEvaluateNumberExpressionDataSourceFactory.ts +10 -0
  30. package/src/implementation/DataSources/StringExpressionDataSource/abandonedBasketEvaluateStringExpressionDataSource.ts +54 -0
  31. package/src/implementation/EmailComponentSettingsModifierPlugin/ProductShelfDataSourceExpressionBuilder/AbandonedBasketProductShelfDataSourceExpressionBuilderModal/ShelfBuilders/abandonedBasketProductListShelfBuilderDepsFactory.ts +33 -0
  32. package/src/implementation/EmailComponentSettingsModifierPlugin/ProductShelfDataSourceExpressionBuilder/AbandonedBasketProductShelfDataSourceExpressionBuilderModal/ShelfBuilders/alternativeProductsForAbandonedBasketProductListShelfBuilderDepsFactory.ts +33 -0
  33. package/src/implementation/EmailComponentSettingsModifierPlugin/ProductShelfDataSourceExpressionBuilder/AbandonedBasketProductShelfDataSourceExpressionBuilderModal/ShelfBuilders/relatedProductsForAbandonedBasketProductListShelfBuilderDepsFactory.ts +33 -0
  34. package/src/implementation/EmailComponentSettingsModifierPlugin/ProductShelfDataSourceExpressionBuilder/AbandonedBasketProductShelfDataSourceExpressionBuilderModal/abandonedBasketProductShelfDataSourceExpressionBuilderModalDepsFactory.ts +150 -0
  35. package/src/implementation/EmailComponentSettingsModifierPlugin/ProductShelfDataSourceExpressionBuilder/abandonedBasketProductShelfDataSourceExpressionBuilderDepsFactory.ts +34 -0
  36. package/src/index.ts +0 -0
  37. package/tsconfig.app.json +19 -0
  38. package/tsconfig.json +14 -0
  39. package/tsconfig.node.json +11 -0
  40. package/tsconfig.test.json +11 -0
  41. package/vite.config.ts +37 -0
  42. package/assets/main.css +0 -1
  43. package/assets/main.js +0 -217
  44. package/favicon.ico +0 -0
@@ -0,0 +1,10 @@
1
+ import type {
2
+ NumberExpressionDataSourceEvaluatorDelegate
3
+ } from '@easy-wizzy/core';
4
+
5
+ export const abandonedBasketEvaluateNumberExpressionDataSourceFactory = <
6
+ TNumberExpressionDataSource
7
+ >():
8
+ NumberExpressionDataSourceEvaluatorDelegate<TNumberExpressionDataSource> => {
9
+ return () => Promise.resolve(0);
10
+ }
@@ -0,0 +1,54 @@
1
+ import type {
2
+ StringExpressionDataSourceEvaluatorDelegate
3
+ } from '@easy-wizzy/core';
4
+ import type { ContactCustomData } from '@easy-wizzy/retailrocket-common';
5
+ import type {
6
+ ProductImageUrlBuilderExpressionEvaluatorDelegate
7
+ } from '@easy-wizzy/common-app';
8
+ import type { DataType } from '@easy-wizzy/core';
9
+ import type {
10
+ AbandonedBasketListExpressionDataSource
11
+ } from '@easy-wizzy/retailrocket-abandoned-basket';
12
+ import type {
13
+ AbandonedBasketNumberExpressionDataSource
14
+ } from '@easy-wizzy/retailrocket-abandoned-basket';
15
+ import type {
16
+ AbandonedBasketStringExpressionDataSource
17
+ } from '@easy-wizzy/retailrocket-abandoned-basket';
18
+ import {
19
+ abandonedBasketStringExpressionDataSourceMatcher
20
+ } from '@easy-wizzy/retailrocket-abandoned-basket';
21
+ import type { NextCouponFromBatchType } from '@easy-wizzy/retailrocket-common';
22
+
23
+ export const abandonedBasketStringExpressionDataSourceEvaluatorFactory = (arg: {
24
+ productImageUrlBuilderExpressionEvaluator: ProductImageUrlBuilderExpressionEvaluatorDelegate<
25
+ AbandonedBasketListExpressionDataSource,
26
+ AbandonedBasketNumberExpressionDataSource
27
+ >
28
+ contactCustomData: ContactCustomData
29
+ nextCouponFromBatch: NextCouponFromBatchType
30
+ }): StringExpressionDataSourceEvaluatorDelegate<
31
+ AbandonedBasketStringExpressionDataSource
32
+ > => {
33
+ const abandonedBasketContactCustomData = arg.contactCustomData;
34
+
35
+ return (a: {
36
+ stringExpressionDataSource: AbandonedBasketStringExpressionDataSource,
37
+ context: DataType
38
+ }) => abandonedBasketStringExpressionDataSourceMatcher(
39
+ a.stringExpressionDataSource
40
+ )
41
+ .Match({
42
+ StringFromContactCustomData: (x) => Promise.resolve(abandonedBasketContactCustomData[x.FieldName] as string),
43
+ StringFromContactCustomDataWithFallback: (x) => Promise.resolve(
44
+ x.FieldName in abandonedBasketContactCustomData && typeof abandonedBasketContactCustomData[x.FieldName] === 'string'
45
+ ? abandonedBasketContactCustomData[x.FieldName] as string
46
+ : x.FallbackValue
47
+ ),
48
+ ProductImageUrlBuilderExpression: e => arg.productImageUrlBuilderExpressionEvaluator({
49
+ expression: e,
50
+ context: a.context
51
+ }),
52
+ NextCouponFromBatch: () => Promise.resolve('Coupon')
53
+ });
54
+ }
@@ -0,0 +1,33 @@
1
+ import type { LocaleKey } from '@easy-wizzy/core';
2
+ import type { ProductShelfBuilderModalWindowBffClient } from '@easy-wizzy/common-app';
3
+ import {
4
+ getAllStockIdsFactory
5
+ } from '@easy-wizzy/common-app';
6
+ import type {
7
+ AbandonedBasketProductListShelfBuilderDeps
8
+ } from '@easy-wizzy/retailrocket-abandoned-basket';
9
+
10
+ export const abandonedBasketProductListShelfBuilderDepsFactory = (
11
+ arg: {
12
+ localeKey: LocaleKey;
13
+ partnerId: string,
14
+ getAllStockIdsHttpClient: ProductShelfBuilderModalWindowBffClient['postGetAllStockIds']
15
+ }
16
+ ): AbandonedBasketProductListShelfBuilderDeps => {
17
+ return {
18
+ localeKey: arg.localeKey,
19
+ getAllStockIds: getAllStockIdsFactory({
20
+ partnerId: arg.partnerId,
21
+ getAllStockIdsHttpClient: arg.getAllStockIdsHttpClient
22
+ }),
23
+ stockSelectorDeps: {
24
+ localeKey: arg.localeKey,
25
+ stockSourceSelectorDeps: {
26
+ localeKey: arg.localeKey
27
+ }
28
+ },
29
+ productListShelfLimiterDeps: {
30
+ localeKey: arg.localeKey
31
+ }
32
+ }
33
+ }
@@ -0,0 +1,33 @@
1
+ import type { LocaleKey } from '@easy-wizzy/core';
2
+ import type { ProductShelfBuilderModalWindowBffClient } from '@easy-wizzy/common-app';
3
+ import {
4
+ getAllStockIdsFactory
5
+ } from '@easy-wizzy/common-app';
6
+ import type {
7
+ AlternativeProductsForAbandonedBasketProductListShelfBuilderDeps
8
+ } from '@easy-wizzy/retailrocket-abandoned-basket';
9
+
10
+ export const alternativeProductsForAbandonedProductListShelfBuilderDepsFactory = (
11
+ arg: {
12
+ localeKey: LocaleKey;
13
+ partnerId: string,
14
+ getAllStockIdsHttpClient: ProductShelfBuilderModalWindowBffClient['postGetAllStockIds']
15
+ }
16
+ ): AlternativeProductsForAbandonedBasketProductListShelfBuilderDeps => {
17
+ return {
18
+ localeKey: arg.localeKey,
19
+ getAllStockIds: getAllStockIdsFactory({
20
+ partnerId: arg.partnerId,
21
+ getAllStockIdsHttpClient: arg.getAllStockIdsHttpClient
22
+ }),
23
+ stockSelectorDeps: {
24
+ localeKey: arg.localeKey,
25
+ stockSourceSelectorDeps: {
26
+ localeKey: arg.localeKey
27
+ }
28
+ },
29
+ productListShelfLimiterDeps: {
30
+ localeKey: arg.localeKey
31
+ }
32
+ }
33
+ }
@@ -0,0 +1,33 @@
1
+ import type { LocaleKey } from '@easy-wizzy/core';
2
+ import type { ProductShelfBuilderModalWindowBffClient } from '@easy-wizzy/common-app';
3
+ import {
4
+ getAllStockIdsFactory
5
+ } from '@easy-wizzy/common-app';
6
+ import type {
7
+ RelatedProductsForAbandonedBasketProductListShelfBuilderDeps
8
+ } from '@easy-wizzy/retailrocket-abandoned-basket';
9
+
10
+ export const relatedProductsForAbandonedProductListShelfBuilderDepsFactory = (
11
+ arg: {
12
+ localeKey: LocaleKey;
13
+ partnerId: string,
14
+ getAllStockIdsHttpClient: ProductShelfBuilderModalWindowBffClient['postGetAllStockIds']
15
+ }
16
+ ): RelatedProductsForAbandonedBasketProductListShelfBuilderDeps => {
17
+ return {
18
+ localeKey: arg.localeKey,
19
+ getAllStockIds: getAllStockIdsFactory({
20
+ partnerId: arg.partnerId,
21
+ getAllStockIdsHttpClient: arg.getAllStockIdsHttpClient
22
+ }),
23
+ stockSelectorDeps: {
24
+ localeKey: arg.localeKey,
25
+ stockSourceSelectorDeps: {
26
+ localeKey: arg.localeKey
27
+ }
28
+ },
29
+ productListShelfLimiterDeps: {
30
+ localeKey: arg.localeKey
31
+ }
32
+ }
33
+ }
@@ -0,0 +1,150 @@
1
+ import type { LocaleKey } from '@easy-wizzy/core';
2
+ import {
3
+ popularProductListShelfBuilderDepsFactory
4
+ } from '@easy-wizzy/common-app';
5
+ import type { ProductShelfBuilderModalWindowBffClient } from '@easy-wizzy/common-app';
6
+ import type {
7
+ AbandonedBasketProductShelfDataSourceExpressionBuilderModalDeps
8
+ } from '@easy-wizzy/retailrocket-abandoned-basket';
9
+ import {
10
+ alternativeProductsForAbandonedProductListShelfBuilderDepsFactory
11
+ } from '@/implementation/EmailComponentSettingsModifierPlugin/ProductShelfDataSourceExpressionBuilder/AbandonedBasketProductShelfDataSourceExpressionBuilderModal/ShelfBuilders/alternativeProductsForAbandonedBasketProductListShelfBuilderDepsFactory';
12
+ import {
13
+ abandonedBasketProductListShelfBuilderDepsFactory
14
+ } from '@/implementation/EmailComponentSettingsModifierPlugin/ProductShelfDataSourceExpressionBuilder/AbandonedBasketProductShelfDataSourceExpressionBuilderModal/ShelfBuilders/abandonedBasketProductListShelfBuilderDepsFactory';
15
+ import {
16
+ relatedProductsForAbandonedProductListShelfBuilderDepsFactory
17
+ } from '@/implementation/EmailComponentSettingsModifierPlugin/ProductShelfDataSourceExpressionBuilder/AbandonedBasketProductShelfDataSourceExpressionBuilderModal/ShelfBuilders/relatedProductsForAbandonedBasketProductListShelfBuilderDepsFactory';
18
+ import {
19
+ latestProductListShelfBuilderDepsFactory
20
+ } from '@easy-wizzy/common-app';
21
+ import {
22
+ saleByPopularProductListShelfBuilderDepsFactory
23
+ } from '@easy-wizzy/common-app';
24
+ import {
25
+ saleByLatestProductListShelfBuilderDepsFactory
26
+ } from '@easy-wizzy/common-app';
27
+ import {
28
+ productListComposerModalWindowDepsFactory
29
+ } from '@easy-wizzy/common-app';
30
+ import type {
31
+ ProductCategoryPickerModalWindowBffClient
32
+ } from '@easy-wizzy/common-app';
33
+ import type { ProductPickerModalWindowBffClient } from '@easy-wizzy/common-app';
34
+ import {
35
+ categoryListComposerModalWindowDepsFactory
36
+ } from '@easy-wizzy/common-app';
37
+ import {
38
+ alternativeProductListShelfBuilderDepsFactory
39
+ } from '@easy-wizzy/common-app';
40
+ import {
41
+ relatedProductListShelfBuilderDepsFactory
42
+ } from '@easy-wizzy/common-app';
43
+ import {
44
+ productListShelfBuilderDepsFactory
45
+ } from '@easy-wizzy/common-app';
46
+ import {
47
+ popularFromCategoryListShelfBuilderDepsFactory
48
+ } from '@easy-wizzy/common-app';
49
+
50
+ export const abandonedBasketProductShelfDataSourceExpressionBuilderModalDepsFactory = (
51
+ arg: {
52
+ localeKey: LocaleKey;
53
+ partnerId: string,
54
+ customerStockId: string | undefined,
55
+ productShelfBuilderModalWindowBffClient: ProductShelfBuilderModalWindowBffClient,
56
+ productCategoryPickerModalWindowBffClient: ProductCategoryPickerModalWindowBffClient,
57
+ productPickerModalWindowBffClient: ProductPickerModalWindowBffClient,
58
+ }
59
+ ): AbandonedBasketProductShelfDataSourceExpressionBuilderModalDeps => {
60
+
61
+ const productCache = {};
62
+ const categoryCache = {};
63
+
64
+ const productListComposerModalWindowDeps = productListComposerModalWindowDepsFactory({
65
+ localeKey: arg.localeKey,
66
+ partnerId: arg.partnerId,
67
+ customerStockId: arg.customerStockId,
68
+ productPickerModalWindowBffClient: arg.productPickerModalWindowBffClient,
69
+ });
70
+
71
+ return {
72
+ localeKey: arg.localeKey,
73
+ ProductListComposerModalWindowDeps: productListComposerModalWindowDeps,
74
+ CategoryListComposerModalWindowDeps: categoryListComposerModalWindowDepsFactory({
75
+ localeKey: arg.localeKey,
76
+ partnerId: arg.partnerId,
77
+ productCategoryPickerModalWindowBffClient: arg.productCategoryPickerModalWindowBffClient
78
+ }),
79
+ AbandonedBasketProductListShelfBuilderDeps: abandonedBasketProductListShelfBuilderDepsFactory({
80
+ localeKey: arg.localeKey,
81
+ partnerId: arg.partnerId,
82
+ getAllStockIdsHttpClient: arg.productShelfBuilderModalWindowBffClient.postGetAllStockIds
83
+ }),
84
+ AlternativeProductsForAbandonedBasketProductListShelfBuilderDeps: alternativeProductsForAbandonedProductListShelfBuilderDepsFactory({
85
+ localeKey: arg.localeKey,
86
+ partnerId: arg.partnerId,
87
+ getAllStockIdsHttpClient: arg.productShelfBuilderModalWindowBffClient.postGetAllStockIds
88
+ }),
89
+ RelatedProductsForAbandonedBasketProductListShelfBuilderDeps: relatedProductsForAbandonedProductListShelfBuilderDepsFactory({
90
+ localeKey: arg.localeKey,
91
+ partnerId: arg.partnerId,
92
+ getAllStockIdsHttpClient: arg.productShelfBuilderModalWindowBffClient.postGetAllStockIds
93
+ }),
94
+ ProductListShelfBuilderDeps: productListShelfBuilderDepsFactory({
95
+ localeKey: arg.localeKey,
96
+ partnerId: arg.partnerId,
97
+ customerStockId: arg.customerStockId,
98
+ productCache: productCache,
99
+ getProductsByIDsHttpClient: arg.productShelfBuilderModalWindowBffClient.postGetProductsByIds,
100
+ getAllStockIdsHttpClient: arg.productShelfBuilderModalWindowBffClient.postGetAllStockIds,
101
+ productListComposerModalWindowDeps: productListComposerModalWindowDeps
102
+ }),
103
+ RelatedProductListShelfBuilderDeps: relatedProductListShelfBuilderDepsFactory({
104
+ localeKey: arg.localeKey,
105
+ partnerId: arg.partnerId,
106
+ customerStockId: arg.customerStockId,
107
+ productCache: productCache,
108
+ getProductsByIDsHttpClient: arg.productShelfBuilderModalWindowBffClient.postGetProductsByIds,
109
+ getAllStockIdsHttpClient: arg.productShelfBuilderModalWindowBffClient.postGetAllStockIds,
110
+ productListComposerModalWindowDeps: productListComposerModalWindowDeps
111
+ }),
112
+ AlternativeProductListShelfBuilderDeps: alternativeProductListShelfBuilderDepsFactory({
113
+ localeKey: arg.localeKey,
114
+ partnerId: arg.partnerId,
115
+ customerStockId: arg.customerStockId,
116
+ productCache: productCache,
117
+ getProductsByIDsHttpClient: arg.productShelfBuilderModalWindowBffClient.postGetProductsByIds,
118
+ getAllStockIdsHttpClient: arg.productShelfBuilderModalWindowBffClient.postGetAllStockIds,
119
+ productListComposerModalWindowDeps: productListComposerModalWindowDeps
120
+ }),
121
+ PopularFromCategoryListShelfBuilderDeps: popularFromCategoryListShelfBuilderDepsFactory({
122
+ localeKey: arg.localeKey,
123
+ partnerId: arg.partnerId,
124
+ categoryCache: categoryCache,
125
+ getAllStockIdsHttpClient: arg.productShelfBuilderModalWindowBffClient.postGetAllStockIds,
126
+ getCategoriesByIDsHttpClient: arg.productShelfBuilderModalWindowBffClient.postGetProductCategoriesByIds,
127
+ productCategoryPickerModalWindowBffClient: arg.productCategoryPickerModalWindowBffClient
128
+ }),
129
+ PopularProductListShelfBuilderDeps: popularProductListShelfBuilderDepsFactory({
130
+ localeKey: arg.localeKey,
131
+ partnerId: arg.partnerId,
132
+ getAllStockIdsHttpClient: arg.productShelfBuilderModalWindowBffClient.postGetAllStockIds
133
+ }),
134
+ LatestProductListShelfBuilderDeps: latestProductListShelfBuilderDepsFactory({
135
+ localeKey: arg.localeKey,
136
+ partnerId: arg.partnerId,
137
+ getAllStockIdsHttpClient: arg.productShelfBuilderModalWindowBffClient.postGetAllStockIds
138
+ }),
139
+ SaleByPopularProductListShelfBuilderDeps: saleByPopularProductListShelfBuilderDepsFactory({
140
+ localeKey: arg.localeKey,
141
+ partnerId: arg.partnerId,
142
+ getAllStockIdsHttpClient: arg.productShelfBuilderModalWindowBffClient.postGetAllStockIds
143
+ }),
144
+ SaleByLatestProductListShelfBuilderDeps: saleByLatestProductListShelfBuilderDepsFactory({
145
+ localeKey: arg.localeKey,
146
+ partnerId: arg.partnerId,
147
+ getAllStockIdsHttpClient: arg.productShelfBuilderModalWindowBffClient.postGetAllStockIds
148
+ })
149
+ }
150
+ }
@@ -0,0 +1,34 @@
1
+ import type { LocaleKey } from '@easy-wizzy/core';
2
+ import type { ProductShelfBuilderModalWindowBffClient } from '@easy-wizzy/common-app';
3
+ import type {
4
+ AbandonedBasketProductShelfDataSourceExpressionBuilderDeps
5
+ } from '@easy-wizzy/retailrocket-abandoned-basket';
6
+ import {
7
+ abandonedBasketProductShelfDataSourceExpressionBuilderModalDepsFactory
8
+ } from '@/implementation/EmailComponentSettingsModifierPlugin/ProductShelfDataSourceExpressionBuilder/AbandonedBasketProductShelfDataSourceExpressionBuilderModal/abandonedBasketProductShelfDataSourceExpressionBuilderModalDepsFactory';
9
+ import type {
10
+ ProductCategoryPickerModalWindowBffClient
11
+ } from '@easy-wizzy/common-app';
12
+ import type { ProductPickerModalWindowBffClient } from '@easy-wizzy/common-app';
13
+
14
+ export const abandonedBasketProductShelfDataSourceExpressionBuilderDepsFactory = (
15
+ arg: {
16
+ localeKey: LocaleKey;
17
+ partnerId: string,
18
+ customerStockId: string | undefined,
19
+ productShelfBuilderModalWindowBffClient: ProductShelfBuilderModalWindowBffClient,
20
+ productCategoryPickerModalWindowBffClient: ProductCategoryPickerModalWindowBffClient,
21
+ productPickerModalWindowBffClient: ProductPickerModalWindowBffClient
22
+ }
23
+ ): AbandonedBasketProductShelfDataSourceExpressionBuilderDeps => {
24
+ return {
25
+ abandonedBasketProductShelfDataSourceExpressionBuilderModalDeps: abandonedBasketProductShelfDataSourceExpressionBuilderModalDepsFactory({
26
+ localeKey: arg.localeKey,
27
+ partnerId: arg.partnerId,
28
+ customerStockId: arg.customerStockId,
29
+ productShelfBuilderModalWindowBffClient: arg.productShelfBuilderModalWindowBffClient,
30
+ productCategoryPickerModalWindowBffClient: arg.productCategoryPickerModalWindowBffClient,
31
+ productPickerModalWindowBffClient: arg.productPickerModalWindowBffClient
32
+ })
33
+ }
34
+ }
package/src/index.ts ADDED
File without changes
@@ -0,0 +1,19 @@
1
+ {
2
+ "extends": "@easy-wizzy/ts-config/app.json",
3
+ "include": [
4
+ "env.d.ts",
5
+ "src/**/*.ts",
6
+ "src/**/*.vue"
7
+ ],
8
+ "exclude": [
9
+ "src/**/*.spec.ts"
10
+ ],
11
+ "compilerOptions": {
12
+ "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
13
+ "paths": {
14
+ "@/*": [
15
+ "./src/*"
16
+ ]
17
+ }
18
+ }
19
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,14 @@
1
+ {
2
+ "files": [],
3
+ "references": [
4
+ {
5
+ "path": "./tsconfig.node.json"
6
+ },
7
+ {
8
+ "path": "./tsconfig.app.json"
9
+ },
10
+ {
11
+ "path": "./tsconfig.test.json"
12
+ }
13
+ ]
14
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "extends": "@easy-wizzy/ts-config/node.json",
3
+ "include": [
4
+ "vite.config.*",
5
+ "vitest.config.*",
6
+ "eslint.config.*"
7
+ ],
8
+ "compilerOptions": {
9
+ "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo"
10
+ }
11
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "extends": "./tsconfig.app.json",
3
+ "include": [
4
+ "env.d.ts",
5
+ "src/**/*.spec.ts"
6
+ ],
7
+ "exclude": [],
8
+ "compilerOptions": {
9
+ "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.test.tsbuildinfo"
10
+ }
11
+ }
package/vite.config.ts ADDED
@@ -0,0 +1,37 @@
1
+ import vue from '@vitejs/plugin-vue';
2
+ import { fileURLToPath, URL } from 'node:url';
3
+ import { defineConfig } from 'vite';
4
+ import dts from 'vite-plugin-dts';
5
+
6
+ export default defineConfig({
7
+ build: {
8
+ rollupOptions: {
9
+ input: fileURLToPath(new URL('./index.html', import.meta.url)),
10
+ output: {
11
+ entryFileNames: 'assets/[name].js',
12
+ chunkFileNames: 'assets/[name].js',
13
+ assetFileNames: 'assets/[name].[ext]',
14
+ },
15
+ },
16
+ sourcemap: true,
17
+ },
18
+ plugins: [
19
+ vue({
20
+ template: {
21
+ compilerOptions: {
22
+ isCustomElement: tag => ['center'].includes(tag)
23
+ }
24
+ }
25
+ }),
26
+ dts({
27
+ insertTypesEntry: true,
28
+ tsconfigPath: './tsconfig.app.json',
29
+ })
30
+ ],
31
+ resolve: {
32
+ alias: {
33
+ '@': fileURLToPath(new URL('./src', import.meta.url)),
34
+ },
35
+ dedupe: ['vue'],
36
+ },
37
+ });