@retailrocketgroup/retailrocket-edit.product-still-out-of-stock-vue-email-template-render 5.0.384700 → 6.0.388330-dev
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/package.json
CHANGED
|
@@ -7,7 +7,7 @@ import { createVuetify } from 'vuetify';
|
|
|
7
7
|
import { ClickOutside } from 'vuetify/directives';
|
|
8
8
|
|
|
9
9
|
import { createSimpleDataForm, matcherFactory } from '@easy-wizzy/core';
|
|
10
|
-
import {
|
|
10
|
+
import { WysiwygTemplateEditor } from '@easy-wizzy/core';
|
|
11
11
|
import { expressionEvaluatorFactory } from '@easy-wizzy/core';
|
|
12
12
|
import { listExpressionEvaluatorFactory } from '@easy-wizzy/core';
|
|
13
13
|
import { numberExpressionEvaluatorDelegate } from '@easy-wizzy/core';
|
|
@@ -23,7 +23,7 @@ import { defaultComponentLibraryFactory } from '@easy-wizzy/component-library';
|
|
|
23
23
|
import type { ApiMachineFetchDelegate } from '@easy-wizzy/common-app';
|
|
24
24
|
|
|
25
25
|
import { apiMachineFetchFactory } from '@easy-wizzy/common-app';
|
|
26
|
-
import {
|
|
26
|
+
import { wysiwygTemplateEditorDepsFactory } from '@easy-wizzy/common-app';
|
|
27
27
|
import { productImageUrlBuilderExpressionEvaluatorFactory } from '@easy-wizzy/common-app';
|
|
28
28
|
import { wysiwygTemplateEditorBffClientFactory } from '@easy-wizzy/common-app';
|
|
29
29
|
import { variableSelectorDepsFactory } from '@easy-wizzy/common-app';
|
|
@@ -94,10 +94,8 @@ const _apiMachineFetchFactory = (arg: {
|
|
|
94
94
|
});
|
|
95
95
|
|
|
96
96
|
const productStillOutOfStockMainPageBffClient = createTriggerProductStillOutOfStockWysiwygTemplateEditorClient(
|
|
97
|
-
|
|
98
|
-
baseUrl: params.wysiwygTemplateEditorBffBaseUrl
|
|
99
|
-
antiForgeryTokenHeaderName: params.antiForgeryHeaderTokenName,
|
|
100
|
-
antiForgeryTokenValue: params.antiForgeryHeaderTokenValue
|
|
97
|
+
_apiMachineFetchFactory({
|
|
98
|
+
baseUrl: params.wysiwygTemplateEditorBffBaseUrl
|
|
101
99
|
})
|
|
102
100
|
);
|
|
103
101
|
|
|
@@ -111,7 +109,8 @@ const resetTemplate = (): void => {
|
|
|
111
109
|
const formData = new FormData();
|
|
112
110
|
formData.append(
|
|
113
111
|
params.antiForgeryFormTokenName,
|
|
114
|
-
params.antiForgeryFormTokenValue
|
|
112
|
+
params.antiForgeryFormTokenValue
|
|
113
|
+
);
|
|
115
114
|
|
|
116
115
|
const form = createSimpleDataForm({
|
|
117
116
|
method: 'POST',
|
|
@@ -182,13 +181,13 @@ const dataStructExpressionEvaluator = dataStructBuilderExpressionEvaluatorFactor
|
|
|
182
181
|
});
|
|
183
182
|
|
|
184
183
|
const app = createApp(
|
|
185
|
-
|
|
184
|
+
WysiwygTemplateEditor,
|
|
186
185
|
{
|
|
187
186
|
onTemplateReset: () => {
|
|
188
187
|
resetTemplate();
|
|
189
188
|
},
|
|
190
189
|
deps:
|
|
191
|
-
|
|
190
|
+
wysiwygTemplateEditorDepsFactory<
|
|
192
191
|
ProductStillOutOfStockListExpressionDataSource,
|
|
193
192
|
ProductStillOutOfStockNumberExpressionDataSource,
|
|
194
193
|
ProductStillOutOfStockStringExpressionDataSource
|