@plusscommunities/pluss-feature-builder-web-a 1.0.2-beta.0 → 1.0.2-beta.2

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": "@plusscommunities/pluss-feature-builder-web-a",
3
- "version": "1.0.2-beta.0",
3
+ "version": "1.0.2-beta.2",
4
4
  "description": "Contains the feature builder extension for the pluss communities ",
5
5
  "main": "dist/index.cjs.js",
6
6
  "scripts": {
@@ -16,6 +16,10 @@ import {
16
16
  selectFormFields,
17
17
  } from "../selectors/featureBuilderSelectors";
18
18
 
19
+ // Import values config and form actions
20
+ import { values } from "../values.config";
21
+ import { clearFormSubmissionState } from "./formActions";
22
+
19
23
  // Wizard action types
20
24
  export const SET_WIZARD_MODE = "SET_WIZARD_MODE";
21
25
  export const SET_NAVIGATION_STATE = "SET_NAVIGATION_STATE";
@@ -47,7 +51,7 @@ export const setCurrentStep = (step, previousStep = null) => ({
47
51
  });
48
52
 
49
53
  export const goToStep = (step) => (dispatch, getState) => {
50
- const state = getState()[require("../values.config").reducerKey];
54
+ const state = getState()[values.reducerKey];
51
55
  const currentStep =
52
56
  state &&
53
57
  state.wizard &&
@@ -55,7 +59,6 @@ export const goToStep = (step) => (dispatch, getState) => {
55
59
  state.wizard.navigation.currentStep;
56
60
 
57
61
  // Clear form submission state when changing steps
58
- const { clearFormSubmissionState } = require("./formActions");
59
62
  dispatch(clearFormSubmissionState());
60
63
 
61
64
  dispatch(setCurrentStep(step, currentStep));
@@ -130,7 +130,6 @@ const FormOverviewStepInner = (props) => {
130
130
 
131
131
  // Clear submission state after showing toast (only for non-edit cases)
132
132
  if (!isEditMode) {
133
- const { clearFormSubmissionState } = require("../actions/formActions");
134
133
  dispatch(clearFormSubmissionState());
135
134
  }
136
135
  }