@plusscommunities/pluss-feature-builder-web-d 1.0.2-beta.9 → 1.0.3-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/package.json +14 -32
- package/rollup.config.js +3 -67
- package/src/values.config.default.js +49 -0
- package/.babelrc +0 -4
- package/dist/index.cjs.js +0 -7709
package/package.json
CHANGED
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plusscommunities/pluss-feature-builder-web-d",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3-beta.0",
|
|
4
4
|
"description": "Contains the feature builder extension for the pluss communities ",
|
|
5
|
-
"
|
|
5
|
+
"exports": {
|
|
6
|
+
".": "./dist/index.js"
|
|
7
|
+
},
|
|
6
8
|
"scripts": {
|
|
7
|
-
"build": "
|
|
9
|
+
"build": "rollup -c",
|
|
10
|
+
"prepublishOnly": "(cd .. && npm install) && npm run build",
|
|
8
11
|
"betapatch": "npm version prepatch --preid=beta",
|
|
9
12
|
"patch": "npm version patch",
|
|
10
|
-
"betaupload": "npm
|
|
13
|
+
"betaupload": "npm publish --access public --tag beta",
|
|
11
14
|
"betaupload:p": "npm run betapatch && npm run betaupload",
|
|
12
|
-
"upload": "npm
|
|
15
|
+
"upload": "npm publish --access public",
|
|
13
16
|
"upload:p": "npm run patch && npm run upload",
|
|
14
17
|
"copy:add": "run(){ ext=${1:-default}; test -f src/values.config.$ext.js || cp src/values.config.default.js src/values.config.$ext.js; }; run",
|
|
15
18
|
"copy:get": "echo $npm_package_name",
|
|
@@ -18,37 +21,16 @@
|
|
|
18
21
|
"copy:upload": "npm run patch; for file in `ls ./src/values.config.*.js`; do dup=`echo $file | sed 's/.*values\\.config\\.\\(.*\\)\\.js/\\1/'`; npm run copy:set $dup; npm run upload; done; npm run copy:set;"
|
|
19
22
|
},
|
|
20
23
|
"author": "Phillip Suh",
|
|
21
|
-
"devDependencies": {
|
|
22
|
-
"@babel/cli": "^7.14.3",
|
|
23
|
-
"@babel/core": "^7.14.3",
|
|
24
|
-
"@babel/plugin-transform-class-properties": "^7.27.1",
|
|
25
|
-
"@babel/plugin-transform-optional-chaining": "^7.14.5",
|
|
26
|
-
"@babel/plugin-transform-react-jsx": "^7.14.3",
|
|
27
|
-
"@babel/plugin-transform-runtime": "^7.14.3",
|
|
28
|
-
"@babel/preset-env": "^7.14.2",
|
|
29
|
-
"@babel/preset-react": "^7.13.13",
|
|
30
|
-
"@rollup/plugin-babel": "^5.3.0",
|
|
31
|
-
"@rollup/plugin-image": "^2.0.6",
|
|
32
|
-
"@rollup/plugin-json": "^4.1.0",
|
|
33
|
-
"autoprefixer": "^10.2.6",
|
|
34
|
-
"rollup": "^2.50.1",
|
|
35
|
-
"rollup-plugin-local-resolve": "^1.0.7",
|
|
36
|
-
"rollup-plugin-styles": "^3.14.1"
|
|
37
|
-
},
|
|
38
24
|
"dependencies": {
|
|
39
25
|
"@babel/runtime": "^7.14.0"
|
|
40
26
|
},
|
|
41
27
|
"peerDependencies": {
|
|
42
|
-
"@
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"react": "^16.14.0",
|
|
49
|
-
"react-bootstrap": "^0.31.2",
|
|
50
|
-
"react-dom": "^16.14.0",
|
|
51
|
-
"react-fontawesome": "^1.6.1"
|
|
28
|
+
"@plusscommunities/pluss-core-web": "*",
|
|
29
|
+
"lodash": "*",
|
|
30
|
+
"moment": "*",
|
|
31
|
+
"react": "*",
|
|
32
|
+
"react-bootstrap": "*",
|
|
33
|
+
"react-dom": "*"
|
|
52
34
|
},
|
|
53
35
|
"keywords": []
|
|
54
36
|
}
|
package/rollup.config.js
CHANGED
|
@@ -1,69 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
const autoprefixer = require("autoprefixer");
|
|
3
|
-
import babel from "@rollup/plugin-babel";
|
|
4
|
-
import json from "@rollup/plugin-json";
|
|
5
|
-
import image from "@rollup/plugin-image";
|
|
6
|
-
import localResolve from "rollup-plugin-local-resolve";
|
|
1
|
+
import { defineConfig } from "../common/rollup.common";
|
|
7
2
|
|
|
8
|
-
|
|
9
|
-
const input = "src/index.js";
|
|
3
|
+
const inputs = [{ path: "src/index.js", output: "index" }];
|
|
10
4
|
|
|
11
|
-
|
|
12
|
-
{
|
|
13
|
-
format: "cjs",
|
|
14
|
-
},
|
|
15
|
-
];
|
|
16
|
-
|
|
17
|
-
var config = [];
|
|
18
|
-
|
|
19
|
-
MODE.map((m) => {
|
|
20
|
-
var conf = {
|
|
21
|
-
input: input,
|
|
22
|
-
output: {
|
|
23
|
-
// then name of your package
|
|
24
|
-
name: "@plusscommunities/pluss-feature-builder-web",
|
|
25
|
-
file: `dist/index.${m.format}.js`,
|
|
26
|
-
format: m.format,
|
|
27
|
-
exports: "auto",
|
|
28
|
-
},
|
|
29
|
-
// this externelizes react to prevent rollup from compiling it
|
|
30
|
-
external: [
|
|
31
|
-
"react",
|
|
32
|
-
"react-dom",
|
|
33
|
-
"react-redux",
|
|
34
|
-
"react-router-dom",
|
|
35
|
-
"@fortawesome/react-fontawesome",
|
|
36
|
-
"@fortawesome/fontawesome-svg-core",
|
|
37
|
-
"@fortawesome/free-solid-svg-icons",
|
|
38
|
-
"@plusscommunities/pluss-core-web",
|
|
39
|
-
/@babel\/runtime/,
|
|
40
|
-
],
|
|
41
|
-
plugins: [
|
|
42
|
-
// these are babel comfigurations
|
|
43
|
-
babel({
|
|
44
|
-
exclude: "node_modules/**",
|
|
45
|
-
presets: ["@babel/preset-react", "@babel/preset-env"],
|
|
46
|
-
plugins: [
|
|
47
|
-
"@babel/transform-runtime",
|
|
48
|
-
"@babel/plugin-transform-react-jsx",
|
|
49
|
-
"@babel/plugin-transform-optional-chaining",
|
|
50
|
-
["@babel/plugin-transform-class-properties", { loose: true }],
|
|
51
|
-
],
|
|
52
|
-
babelHelpers: "runtime",
|
|
53
|
-
}),
|
|
54
|
-
// this adds support for styles
|
|
55
|
-
styles({
|
|
56
|
-
postcss: {
|
|
57
|
-
plugins: [autoprefixer()],
|
|
58
|
-
},
|
|
59
|
-
autoModules: /\.module\.css$/,
|
|
60
|
-
}),
|
|
61
|
-
json(),
|
|
62
|
-
image(),
|
|
63
|
-
localResolve(),
|
|
64
|
-
],
|
|
65
|
-
};
|
|
66
|
-
config.push(conf);
|
|
67
|
-
});
|
|
68
|
-
|
|
69
|
-
export default [...config];
|
|
5
|
+
export default defineConfig(inputs);
|
|
@@ -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
|
+
};
|
package/.babelrc
DELETED