project-booster-vue 10.7.12 → 10.7.13

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "project-booster-vue",
3
- "version": "10.7.12",
3
+ "version": "10.7.13",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -777,9 +777,9 @@ const updateCdlValues = () => {
777
777
 
778
778
  eventData.value = formatEvent(
779
779
  {
780
- field_name: props.payload.viewModel.label,
781
- funnel_name: props.payload.viewModel.analytics.funnel_name,
782
- field_value: answers,
780
+ field_name: props.payload.viewModel.label || '',
781
+ funnel_name: props.payload.viewModel.analytics.funnel_name || '',
782
+ field_value: answers || '',
783
783
  },
784
784
  EventTypeEnum.FIELD,
785
785
  );
@@ -33,7 +33,7 @@ export interface FormatEventInterface {
33
33
  export const formatEvent = (
34
34
  { button_name, button_location, funnel_name, field_name, field_value }: FormatEventInterface,
35
35
  type: EventTypeEnum,
36
- ) => {
36
+ ): string => {
37
37
  let event_data = {};
38
38
 
39
39
  switch (type) {
@@ -64,7 +64,7 @@
64
64
  :sticky-bottom-offset="stickyBottomOffset()"
65
65
  :min-height="minHeight"
66
66
  :is-collaborator="isCollaborator"
67
- :step-location="state.currentStep?.slots?.beforeContent.label"
67
+ :step-location="state.currentStep?.slots?.beforeContent?.label || ''"
68
68
  @step-completed="handleStepCompleted"
69
69
  @update-selected="handleSemiUpdateSelected"
70
70
  @redirection="handleRedirection"
@@ -190,7 +190,7 @@ export interface ScenarioStep {
190
190
  payload?: ScenarioStepPayload;
191
191
  stepCode?: ScenarioStepNextStep;
192
192
  meta?: any;
193
- slots?: ScenarioNestedScenarioSlot[];
193
+ slots?: ScenarioNestedScenarioSlot;
194
194
  trackProgress?: boolean;
195
195
  // Step
196
196
  resetAnswersOnBack?: boolean;
@@ -204,6 +204,16 @@ export interface ScenarioNestedScenarioSlotPayload {
204
204
  export interface ScenarioNestedScenarioSlot {
205
205
  component?: string;
206
206
  payload?: ScenarioNestedScenarioSlotPayload;
207
+ beforeContent?: ScenarioNestedScenarioSlotBeforeContent;
208
+ }
209
+
210
+ export interface ScenarioNestedScenarioSlotBeforeContent {
211
+ label?: string;
212
+ display?: boolean;
213
+ sizeXlWidth?: boolean;
214
+ component?: string;
215
+ totalStep?: number;
216
+ currentStep?: number;
207
217
  }
208
218
 
209
219
  export interface ScenarioStepNextStep {