@plusscommunities/pluss-feature-builder-web 1.0.7 → 1.0.9-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 CHANGED
@@ -1,15 +1,18 @@
1
1
  {
2
2
  "name": "@plusscommunities/pluss-feature-builder-web",
3
- "version": "1.0.7",
3
+ "version": "1.0.9-beta.0",
4
4
  "description": "Contains the feature builder extension for the pluss communities ",
5
- "main": "dist/index.cjs.js",
5
+ "exports": {
6
+ ".": "./dist/index.js"
7
+ },
6
8
  "scripts": {
7
- "build": "npm i && rollup -c",
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 run build && npm publish --access public --tag beta && rm -rf node_modules",
13
+ "betaupload": "npm publish --access public --tag beta",
11
14
  "betaupload:p": "npm run betapatch && npm run betaupload",
12
- "upload": "npm run build && npm publish --access public && rm -rf node_modules",
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,36 +21,23 @@
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
- "@babel/runtime": "^7.14.0"
25
+ "@babel/runtime": "^7.14.0",
26
+ "@fortawesome/free-solid-svg-icons": "^6.0.0",
27
+ "@fortawesome/react-fontawesome": "^0.2.0",
28
+ "@dnd-kit/sortable": "^7.0.0",
29
+ "@dnd-kit/core": "^6.0.0"
40
30
  },
41
31
  "peerDependencies": {
42
- "@fortawesome/fontawesome-svg-core": "*",
43
- "@fortawesome/free-solid-svg-icons": "*",
44
- "@fortawesome/react-fontawesome": "*",
45
32
  "@plusscommunities/pluss-core-web": "*",
46
33
  "lodash": "*",
47
34
  "moment": "*",
48
35
  "react": "*",
49
36
  "react-bootstrap": "*",
50
37
  "react-dom": "*",
38
+ "react-redux": "*",
39
+ "react-router-dom": "*",
40
+ "react-router": "*",
51
41
  "react-fontawesome": "*"
52
42
  },
53
43
  "keywords": []
package/rollup.config.js CHANGED
@@ -1,69 +1,5 @@
1
- import styles from "rollup-plugin-styles";
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
- // the entry point for the library
9
- const input = "src/index.js";
3
+ const inputs = [{ path: "src/index.js", output: "index" }];
10
4
 
11
- var MODE = [
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);
@@ -220,7 +220,7 @@ const ListingEditor = ({ mode = "create", listingId, onSuccess, onCancel }) => {
220
220
  return (
221
221
  <OverlayPage onClose={handleClose}>
222
222
  <OverlayPageContents>
223
- <OverlayPageSection className="pageSectionWrapper--newPopup1000">
223
+ <OverlayPageSection className="pageSectionWrapper--newPopup1000 padding-20">
224
224
  <div className={`padding-20 ${styles.centered}`}>
225
225
  <Text type="h2">Access Restricted</Text>
226
226
  <Text type="body">
@@ -248,7 +248,7 @@ const ListingEditor = ({ mode = "create", listingId, onSuccess, onCancel }) => {
248
248
  return (
249
249
  <OverlayPage onClose={handleClose}>
250
250
  <OverlayPageContents>
251
- <OverlayPageSection className="pageSectionWrapper--newPopup1000">
251
+ <OverlayPageSection className="pageSectionWrapper--newPopup1000 padding-20">
252
252
  <div className="padding-20">
253
253
  <SkeletonLoader type="form-input" count={4} />
254
254
  </div>
@@ -265,7 +265,7 @@ const ListingEditor = ({ mode = "create", listingId, onSuccess, onCancel }) => {
265
265
  return (
266
266
  <OverlayPage onClose={handleClose}>
267
267
  <OverlayPageContents>
268
- <OverlayPageSection className="pageSectionWrapper--newPopup1000">
268
+ <OverlayPageSection className="pageSectionWrapper--newPopup1000 padding-20">
269
269
  <div className={`padding-20 ${styles.centered}`}>
270
270
  <Text type="body">Error loading data: {error}</Text>
271
271
  </div>
@@ -295,7 +295,7 @@ const ListingEditor = ({ mode = "create", listingId, onSuccess, onCancel }) => {
295
295
  return (
296
296
  <OverlayPage onClose={handleClose}>
297
297
  <OverlayPageContents>
298
- <OverlayPageSection className="pageSectionWrapper--newPopup1000">
298
+ <OverlayPageSection className="pageSectionWrapper--newPopup1000 padding-20">
299
299
  <div className={`padding-20 ${styles.centered}`}>
300
300
  <Text type="h2">No Feature Definition</Text>
301
301
  <Text type="body">
@@ -318,7 +318,7 @@ const ListingEditor = ({ mode = "create", listingId, onSuccess, onCancel }) => {
318
318
  <Fragment>
319
319
  <OverlayPage onClose={handleClose}>
320
320
  <OverlayPageContents>
321
- <OverlayPageSection className="pageSectionWrapper--newPopup">
321
+ <OverlayPageSection className="pageSectionWrapper--newPopup padding-20">
322
322
  <Text type="formTitleLarge" className="marginBottom-16">
323
323
  {isEditMode
324
324
  ? `Edit ${capitalizeTextWithFallback(displayName, values.singularName)} listing`
package/.babelrc DELETED
@@ -1,4 +0,0 @@
1
- {
2
- "presets": ["@babel/preset-react", "@babel/preset-env"],
3
- "plugins": ["@babel/plugin-transform-react-jsx", "@babel/plugin-transform-optional-chaining", "@babel/plugin-transform-class-properties"]
4
- }