@plusscommunities/pluss-feature-builder-web-a 1.0.2-beta.7 → 1.0.4-beta.0
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 +123 -96
- package/package.json +11 -11
- package/src/actions/formActions.js +148 -148
- package/src/actions/wizardActions.js +166 -166
- package/src/components/BaseFieldConfig.jsx +3 -3
- package/src/components/ListingEditor.jsx +2 -2
- package/src/components/SidebarLayout.jsx +4 -4
- package/src/components/listing/ListingFileInput.jsx +98 -80
- package/src/components/listing/ListingFileInput.module.css +1 -4
- package/src/components/listing/ListingGalleryInput.module.css +2 -1
- package/src/images/full.png +0 -0
- package/src/images/fullNoTitle.png +0 -0
- package/src/images/previewWidget.png +0 -0
- package/src/images/widget.png +0 -0
- package/src/reducers/featureBuilderReducer.js +12 -6
- package/src/screens/FormLayoutStep.jsx +421 -420
- package/src/screens/FormOverviewStep.jsx +349 -349
- package/src/selectors/featureBuilderSelectors.js +1 -6
- package/src/values.config.default.js +49 -0
|
@@ -131,14 +131,9 @@ export const selectDefinitionMode = (state) => {
|
|
|
131
131
|
|
|
132
132
|
// Check if we have a definition loaded or if we've determined the mode
|
|
133
133
|
// This is used by hiddenFromFeaturePicker to determine if feature should be shown
|
|
134
|
-
// When mode is "create", definition is null but we've determined the feature doesn't exist
|
|
135
|
-
// When mode is "edit", definition exists and we've determined the feature exists
|
|
136
134
|
export const selectHasDefinition = (state) => {
|
|
137
135
|
const definition = selectDefinition(state);
|
|
138
|
-
|
|
139
|
-
// Consider feature "loaded" if definition exists OR mode is set
|
|
140
|
-
// Mode being set means we've successfully fetched and determined the state
|
|
141
|
-
return !!definition || !!mode;
|
|
136
|
+
return !!definition;
|
|
142
137
|
};
|
|
143
138
|
|
|
144
139
|
// ============ LISTINGS SELECTORS ============
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/*
|
|
2
|
+
"values" defines configurable options for this extension.
|
|
3
|
+
It can be swapped prior to publishing via copy:set
|
|
4
|
+
*/
|
|
5
|
+
export const values = {
|
|
6
|
+
featureKey: "feature-builder",
|
|
7
|
+
featureKeyRoute: "/feature-builder", // Dynamic route prefix
|
|
8
|
+
featureId: "feature-builder-default", // Fixed ID for the single feature definition
|
|
9
|
+
reducerKey: "featureBuilder", // Define reducer 'slice' key.
|
|
10
|
+
singularName: "Build Your Feature",
|
|
11
|
+
description: "Create custom forms for mobile application.",
|
|
12
|
+
emptyText: "No custom forms available",
|
|
13
|
+
textMenuTitle: "Build Your Feature",
|
|
14
|
+
textPermissionFeatureBuilderDefinition: "Build Your Feature Definition",
|
|
15
|
+
textPermissionFeatureBuilderContent:
|
|
16
|
+
"Create and Manage Content in Build Your Feature",
|
|
17
|
+
|
|
18
|
+
// Routes
|
|
19
|
+
routeFormOverviewStep: "/feature-builder/definition/overview",
|
|
20
|
+
routeFormFieldsStep: "/feature-builder/definition/fields",
|
|
21
|
+
routeFormLayoutStep: "/feature-builder/definition/layout",
|
|
22
|
+
routeListingScreen: "/feature-builder/listing",
|
|
23
|
+
routeCreateListing: "/feature-builder/listing/create",
|
|
24
|
+
|
|
25
|
+
routeEditListing: "/feature-builder/listing/edit/:id",
|
|
26
|
+
|
|
27
|
+
// Screen names
|
|
28
|
+
screenFormOverviewStep: "FormOverviewStep",
|
|
29
|
+
screenFormFieldsStep: "FormFieldsStep",
|
|
30
|
+
screenFormLayoutStep: "FormLayoutStep",
|
|
31
|
+
screenListingScreen: "ListingScreen",
|
|
32
|
+
|
|
33
|
+
// Page names
|
|
34
|
+
pageCreateListing: "CreateListingPage",
|
|
35
|
+
pageEditListing: "EditListingPage",
|
|
36
|
+
|
|
37
|
+
// Permissions
|
|
38
|
+
permissionFeatureBuilderDefinition: "featureBuilderDefinition",
|
|
39
|
+
permissionFeatureBuilderContent: "featureBuilderContent",
|
|
40
|
+
|
|
41
|
+
// Menu
|
|
42
|
+
menuIcon: "tool",
|
|
43
|
+
menuKey: "feature-builder-definition",
|
|
44
|
+
menuIsFontAwesome: true,
|
|
45
|
+
menuOrder: 20, // Lower number = higher priority
|
|
46
|
+
|
|
47
|
+
// Default Values
|
|
48
|
+
defaultIcon: "star",
|
|
49
|
+
};
|