@plusscommunities/pluss-feature-builder-web-a 1.0.2-beta.1 → 1.0.2-beta.3
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/dist/index.cjs.js +580 -586
- package/package.json +2 -2
- package/src/actions/wizardActions.js +5 -2
- package/src/index.js +6 -6
- package/src/screens/FormOverviewStep.jsx +0 -1
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.
|
|
3
|
+
"version": "1.0.2-beta.3",
|
|
4
4
|
"description": "Contains the feature builder extension for the pluss communities ",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"scripts": {
|
|
@@ -51,4 +51,4 @@
|
|
|
51
51
|
"react-fontawesome": "^1.6.1"
|
|
52
52
|
},
|
|
53
53
|
"keywords": []
|
|
54
|
-
}
|
|
54
|
+
}
|
|
@@ -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()[
|
|
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));
|
package/src/index.js
CHANGED
|
@@ -18,12 +18,12 @@ export const Reducers = (() => {
|
|
|
18
18
|
export const Screens = (() => {
|
|
19
19
|
const screens = {};
|
|
20
20
|
|
|
21
|
-
screens[
|
|
22
|
-
screens[
|
|
23
|
-
screens[
|
|
24
|
-
screens[
|
|
25
|
-
screens[
|
|
26
|
-
screens[
|
|
21
|
+
screens[values.screenFormOverviewStep] = FormOverviewStep;
|
|
22
|
+
screens[values.screenFormFieldsStep] = FormFieldsStep;
|
|
23
|
+
screens[values.screenFormLayoutStep] = FormLayoutStep;
|
|
24
|
+
screens[values.screenListingScreen] = ListingScreen;
|
|
25
|
+
screens[values.pageCreateListing] = CreateListingPage;
|
|
26
|
+
screens[values.pageEditListing] = EditListingPage;
|
|
27
27
|
return screens;
|
|
28
28
|
})();
|
|
29
29
|
|
|
@@ -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
|
}
|