@plusscommunities/pluss-core-web 1.6.12-beta.1 → 1.6.13-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 +10 -8
- package/dist/index.esm.js +9 -8
- package/dist/index.umd.js +13 -11
- package/package.json +3 -1
- package/src/components/MakerPopup.js +15 -5
package/dist/index.cjs.js
CHANGED
|
@@ -28,7 +28,7 @@ var Dropzone = require('react-dropzone');
|
|
|
28
28
|
var reactRouter = require('react-router');
|
|
29
29
|
var reactBootstrap = require('react-bootstrap');
|
|
30
30
|
var reactFontawesome = require('@fortawesome/react-fontawesome');
|
|
31
|
-
var
|
|
31
|
+
var Lottie = require('react-lottie');
|
|
32
32
|
var reactCsv = require('react-csv');
|
|
33
33
|
var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
|
|
34
34
|
var reactColor = require('react-color');
|
|
@@ -59,6 +59,7 @@ var Textarea__default = /*#__PURE__*/_interopDefaultLegacy(Textarea);
|
|
|
59
59
|
var _toConsumableArray__default = /*#__PURE__*/_interopDefaultLegacy(_toConsumableArray);
|
|
60
60
|
var _typeof__default = /*#__PURE__*/_interopDefaultLegacy(_typeof);
|
|
61
61
|
var Dropzone__default = /*#__PURE__*/_interopDefaultLegacy(Dropzone);
|
|
62
|
+
var Lottie__default = /*#__PURE__*/_interopDefaultLegacy(Lottie);
|
|
62
63
|
var _objectWithoutProperties__default = /*#__PURE__*/_interopDefaultLegacy(_objectWithoutProperties);
|
|
63
64
|
var tinycolor__default = /*#__PURE__*/_interopDefaultLegacy(tinycolor);
|
|
64
65
|
|
|
@@ -10366,6 +10367,7 @@ var MakerPopup = /*#__PURE__*/function (_Component) {
|
|
|
10366
10367
|
Key: 'jpg',
|
|
10367
10368
|
Title: 'JPEG'
|
|
10368
10369
|
}];
|
|
10370
|
+
_this.lottieAnimationUrl = 'https://pluss-prd-media.s3-ap-southeast-2.amazonaws.com/assets/lottie-layout.json';
|
|
10369
10371
|
_this.state = _objectSpread$2(_objectSpread$2({}, _this.props.initialData), {}, {
|
|
10370
10372
|
logo: null,
|
|
10371
10373
|
colour: null,
|
|
@@ -10375,8 +10377,8 @@ var MakerPopup = /*#__PURE__*/function (_Component) {
|
|
|
10375
10377
|
selectedSize: 'A4',
|
|
10376
10378
|
selectedFormat: 'pdf',
|
|
10377
10379
|
lottieConfig: {
|
|
10378
|
-
path: 'https://pluss-prd-media.s3-ap-southeast-2.amazonaws.com/assets/lottie-layout.json',
|
|
10379
10380
|
loop: true,
|
|
10381
|
+
autoplay: true,
|
|
10380
10382
|
name: 'lottie-layout'
|
|
10381
10383
|
}
|
|
10382
10384
|
});
|
|
@@ -10413,11 +10415,10 @@ var MakerPopup = /*#__PURE__*/function (_Component) {
|
|
|
10413
10415
|
|
|
10414
10416
|
unauthedFunction({
|
|
10415
10417
|
method: 'GET',
|
|
10416
|
-
url: this.
|
|
10418
|
+
url: this.lottieAnimationUrl
|
|
10417
10419
|
}).then(function (res) {
|
|
10418
10420
|
_this3.setState({
|
|
10419
10421
|
lottieConfig: _objectSpread$2(_objectSpread$2({}, _this3.state.lottieConfig), {}, {
|
|
10420
|
-
path: undefined,
|
|
10421
10422
|
animationData: res.data
|
|
10422
10423
|
})
|
|
10423
10424
|
});
|
|
@@ -10493,11 +10494,12 @@ var MakerPopup = /*#__PURE__*/function (_Component) {
|
|
|
10493
10494
|
if (this.state.submitting) {
|
|
10494
10495
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
10495
10496
|
className: "flex flex-column flex-center"
|
|
10496
|
-
}, /*#__PURE__*/React__default['default'].createElement(
|
|
10497
|
+
}, this.state.lottieConfig.animationData && /*#__PURE__*/React__default['default'].createElement(Lottie__default['default'], {
|
|
10497
10498
|
key: "lottie-layout",
|
|
10498
|
-
height:
|
|
10499
|
-
width:
|
|
10500
|
-
|
|
10499
|
+
height: 260,
|
|
10500
|
+
width: 260,
|
|
10501
|
+
options: this.state.lottieConfig,
|
|
10502
|
+
isClickToPauseDisabled: true
|
|
10501
10503
|
}), /*#__PURE__*/React__default['default'].createElement(Text, {
|
|
10502
10504
|
type: "h3",
|
|
10503
10505
|
className: "marginTop-16"
|
package/dist/index.esm.js
CHANGED
|
@@ -24,7 +24,7 @@ import Dropzone from 'react-dropzone';
|
|
|
24
24
|
import { withRouter } from 'react-router';
|
|
25
25
|
import { MenuItem, DropdownButton, FormGroup, ControlLabel, FormControl, HelpBlock } from 'react-bootstrap';
|
|
26
26
|
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
|
27
|
-
import
|
|
27
|
+
import Lottie from 'react-lottie';
|
|
28
28
|
import { CSVLink } from 'react-csv';
|
|
29
29
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
30
30
|
import { ChromePicker } from 'react-color';
|
|
@@ -10336,6 +10336,7 @@ var MakerPopup = /*#__PURE__*/function (_Component) {
|
|
|
10336
10336
|
Key: 'jpg',
|
|
10337
10337
|
Title: 'JPEG'
|
|
10338
10338
|
}];
|
|
10339
|
+
_this.lottieAnimationUrl = 'https://pluss-prd-media.s3-ap-southeast-2.amazonaws.com/assets/lottie-layout.json';
|
|
10339
10340
|
_this.state = _objectSpread$2(_objectSpread$2({}, _this.props.initialData), {}, {
|
|
10340
10341
|
logo: null,
|
|
10341
10342
|
colour: null,
|
|
@@ -10345,8 +10346,8 @@ var MakerPopup = /*#__PURE__*/function (_Component) {
|
|
|
10345
10346
|
selectedSize: 'A4',
|
|
10346
10347
|
selectedFormat: 'pdf',
|
|
10347
10348
|
lottieConfig: {
|
|
10348
|
-
path: 'https://pluss-prd-media.s3-ap-southeast-2.amazonaws.com/assets/lottie-layout.json',
|
|
10349
10349
|
loop: true,
|
|
10350
|
+
autoplay: true,
|
|
10350
10351
|
name: 'lottie-layout'
|
|
10351
10352
|
}
|
|
10352
10353
|
});
|
|
@@ -10383,11 +10384,10 @@ var MakerPopup = /*#__PURE__*/function (_Component) {
|
|
|
10383
10384
|
|
|
10384
10385
|
unauthedFunction({
|
|
10385
10386
|
method: 'GET',
|
|
10386
|
-
url: this.
|
|
10387
|
+
url: this.lottieAnimationUrl
|
|
10387
10388
|
}).then(function (res) {
|
|
10388
10389
|
_this3.setState({
|
|
10389
10390
|
lottieConfig: _objectSpread$2(_objectSpread$2({}, _this3.state.lottieConfig), {}, {
|
|
10390
|
-
path: undefined,
|
|
10391
10391
|
animationData: res.data
|
|
10392
10392
|
})
|
|
10393
10393
|
});
|
|
@@ -10463,11 +10463,12 @@ var MakerPopup = /*#__PURE__*/function (_Component) {
|
|
|
10463
10463
|
if (this.state.submitting) {
|
|
10464
10464
|
return /*#__PURE__*/React.createElement("div", {
|
|
10465
10465
|
className: "flex flex-column flex-center"
|
|
10466
|
-
}, /*#__PURE__*/React.createElement(Lottie, {
|
|
10466
|
+
}, this.state.lottieConfig.animationData && /*#__PURE__*/React.createElement(Lottie, {
|
|
10467
10467
|
key: "lottie-layout",
|
|
10468
|
-
height:
|
|
10469
|
-
width:
|
|
10470
|
-
|
|
10468
|
+
height: 260,
|
|
10469
|
+
width: 260,
|
|
10470
|
+
options: this.state.lottieConfig,
|
|
10471
|
+
isClickToPauseDisabled: true
|
|
10471
10472
|
}), /*#__PURE__*/React.createElement(Text, {
|
|
10472
10473
|
type: "h3",
|
|
10473
10474
|
className: "marginTop-16"
|
package/dist/index.umd.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@babel/runtime/helpers/asyncToGenerator'), require('@babel/runtime/regenerator'), require('lodash'), require('axios'), require('aws-amplify'), require('@babel/runtime/helpers/defineProperty'), require('moment'), require('react'), require('jquery'), require('js-cookie'), require('@babel/runtime/helpers/classCallCheck'), require('@babel/runtime/helpers/createClass'), require('@babel/runtime/helpers/inherits'), require('@babel/runtime/helpers/possibleConstructorReturn'), require('@babel/runtime/helpers/getPrototypeOf'), require('react-fontawesome'), require('@babel/runtime/helpers/extends'), require('@babel/runtime/helpers/assertThisInitialized'), require('react-redux'), require('react-textarea-autosize'), require('@babel/runtime/helpers/toConsumableArray'), require('@babel/runtime/helpers/typeof'), require('react-dropzone'), require('react-router'), require('react-bootstrap'), require('@fortawesome/react-fontawesome'), require('
|
|
3
|
-
typeof define === 'function' && define.amd ? define(['exports', '@babel/runtime/helpers/asyncToGenerator', '@babel/runtime/regenerator', 'lodash', 'axios', 'aws-amplify', '@babel/runtime/helpers/defineProperty', 'moment', 'react', 'jquery', 'js-cookie', '@babel/runtime/helpers/classCallCheck', '@babel/runtime/helpers/createClass', '@babel/runtime/helpers/inherits', '@babel/runtime/helpers/possibleConstructorReturn', '@babel/runtime/helpers/getPrototypeOf', 'react-fontawesome', '@babel/runtime/helpers/extends', '@babel/runtime/helpers/assertThisInitialized', 'react-redux', 'react-textarea-autosize', '@babel/runtime/helpers/toConsumableArray', '@babel/runtime/helpers/typeof', 'react-dropzone', 'react-router', 'react-bootstrap', '@fortawesome/react-fontawesome', '
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global['@plusscommunities/pluss-core-web'] = {}, global._asyncToGenerator, global._regeneratorRuntime, global._, global.axios, global.awsAmplify, global._defineProperty, global.moment, global.React, global.$, global.Cookies, global._classCallCheck, global._createClass, global._inherits, global._possibleConstructorReturn, global._getPrototypeOf, global.FontAwesome, global._extends, global._assertThisInitialized, global.reactRedux, global.Textarea, global._toConsumableArray, global._typeof, global.Dropzone, global.reactRouter, global.reactBootstrap, global.reactFontawesome, global.
|
|
5
|
-
}(this, (function (exports, _asyncToGenerator, _regeneratorRuntime, _, axios, awsAmplify, _defineProperty, moment, React, $, Cookies, _classCallCheck, _createClass, _inherits, _possibleConstructorReturn, _getPrototypeOf, FontAwesome, _extends, _assertThisInitialized, reactRedux, Textarea, _toConsumableArray, _typeof, Dropzone, reactRouter, reactBootstrap, reactFontawesome,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@babel/runtime/helpers/asyncToGenerator'), require('@babel/runtime/regenerator'), require('lodash'), require('axios'), require('aws-amplify'), require('@babel/runtime/helpers/defineProperty'), require('moment'), require('react'), require('jquery'), require('js-cookie'), require('@babel/runtime/helpers/classCallCheck'), require('@babel/runtime/helpers/createClass'), require('@babel/runtime/helpers/inherits'), require('@babel/runtime/helpers/possibleConstructorReturn'), require('@babel/runtime/helpers/getPrototypeOf'), require('react-fontawesome'), require('@babel/runtime/helpers/extends'), require('@babel/runtime/helpers/assertThisInitialized'), require('react-redux'), require('react-textarea-autosize'), require('@babel/runtime/helpers/toConsumableArray'), require('@babel/runtime/helpers/typeof'), require('react-dropzone'), require('react-router'), require('react-bootstrap'), require('@fortawesome/react-fontawesome'), require('react-lottie'), require('react-csv'), require('@babel/runtime/helpers/objectWithoutProperties'), require('react-color'), require('tinycolor2'), require('react-router-dom'), require('@fortawesome/free-solid-svg-icons')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(['exports', '@babel/runtime/helpers/asyncToGenerator', '@babel/runtime/regenerator', 'lodash', 'axios', 'aws-amplify', '@babel/runtime/helpers/defineProperty', 'moment', 'react', 'jquery', 'js-cookie', '@babel/runtime/helpers/classCallCheck', '@babel/runtime/helpers/createClass', '@babel/runtime/helpers/inherits', '@babel/runtime/helpers/possibleConstructorReturn', '@babel/runtime/helpers/getPrototypeOf', 'react-fontawesome', '@babel/runtime/helpers/extends', '@babel/runtime/helpers/assertThisInitialized', 'react-redux', 'react-textarea-autosize', '@babel/runtime/helpers/toConsumableArray', '@babel/runtime/helpers/typeof', 'react-dropzone', 'react-router', 'react-bootstrap', '@fortawesome/react-fontawesome', 'react-lottie', 'react-csv', '@babel/runtime/helpers/objectWithoutProperties', 'react-color', 'tinycolor2', 'react-router-dom', '@fortawesome/free-solid-svg-icons'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global['@plusscommunities/pluss-core-web'] = {}, global._asyncToGenerator, global._regeneratorRuntime, global._, global.axios, global.awsAmplify, global._defineProperty, global.moment, global.React, global.$, global.Cookies, global._classCallCheck, global._createClass, global._inherits, global._possibleConstructorReturn, global._getPrototypeOf, global.FontAwesome, global._extends, global._assertThisInitialized, global.reactRedux, global.Textarea, global._toConsumableArray, global._typeof, global.Dropzone, global.reactRouter, global.reactBootstrap, global.reactFontawesome, global.Lottie, global.reactCsv, global._objectWithoutProperties, global.reactColor, global.tinycolor, global.reactRouterDom, global.freeSolidSvgIcons));
|
|
5
|
+
}(this, (function (exports, _asyncToGenerator, _regeneratorRuntime, _, axios, awsAmplify, _defineProperty, moment, React, $, Cookies, _classCallCheck, _createClass, _inherits, _possibleConstructorReturn, _getPrototypeOf, FontAwesome, _extends, _assertThisInitialized, reactRedux, Textarea, _toConsumableArray, _typeof, Dropzone, reactRouter, reactBootstrap, reactFontawesome, Lottie, reactCsv, _objectWithoutProperties, reactColor, tinycolor, reactRouterDom, freeSolidSvgIcons) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
var _toConsumableArray__default = /*#__PURE__*/_interopDefaultLegacy(_toConsumableArray);
|
|
28
28
|
var _typeof__default = /*#__PURE__*/_interopDefaultLegacy(_typeof);
|
|
29
29
|
var Dropzone__default = /*#__PURE__*/_interopDefaultLegacy(Dropzone);
|
|
30
|
+
var Lottie__default = /*#__PURE__*/_interopDefaultLegacy(Lottie);
|
|
30
31
|
var _objectWithoutProperties__default = /*#__PURE__*/_interopDefaultLegacy(_objectWithoutProperties);
|
|
31
32
|
var tinycolor__default = /*#__PURE__*/_interopDefaultLegacy(tinycolor);
|
|
32
33
|
|
|
@@ -10334,6 +10335,7 @@
|
|
|
10334
10335
|
Key: 'jpg',
|
|
10335
10336
|
Title: 'JPEG'
|
|
10336
10337
|
}];
|
|
10338
|
+
_this.lottieAnimationUrl = 'https://pluss-prd-media.s3-ap-southeast-2.amazonaws.com/assets/lottie-layout.json';
|
|
10337
10339
|
_this.state = _objectSpread$2(_objectSpread$2({}, _this.props.initialData), {}, {
|
|
10338
10340
|
logo: null,
|
|
10339
10341
|
colour: null,
|
|
@@ -10343,8 +10345,8 @@
|
|
|
10343
10345
|
selectedSize: 'A4',
|
|
10344
10346
|
selectedFormat: 'pdf',
|
|
10345
10347
|
lottieConfig: {
|
|
10346
|
-
path: 'https://pluss-prd-media.s3-ap-southeast-2.amazonaws.com/assets/lottie-layout.json',
|
|
10347
10348
|
loop: true,
|
|
10349
|
+
autoplay: true,
|
|
10348
10350
|
name: 'lottie-layout'
|
|
10349
10351
|
}
|
|
10350
10352
|
});
|
|
@@ -10381,11 +10383,10 @@
|
|
|
10381
10383
|
|
|
10382
10384
|
unauthedFunction({
|
|
10383
10385
|
method: 'GET',
|
|
10384
|
-
url: this.
|
|
10386
|
+
url: this.lottieAnimationUrl
|
|
10385
10387
|
}).then(function (res) {
|
|
10386
10388
|
_this3.setState({
|
|
10387
10389
|
lottieConfig: _objectSpread$2(_objectSpread$2({}, _this3.state.lottieConfig), {}, {
|
|
10388
|
-
path: undefined,
|
|
10389
10390
|
animationData: res.data
|
|
10390
10391
|
})
|
|
10391
10392
|
});
|
|
@@ -10461,11 +10462,12 @@
|
|
|
10461
10462
|
if (this.state.submitting) {
|
|
10462
10463
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
10463
10464
|
className: "flex flex-column flex-center"
|
|
10464
|
-
}, /*#__PURE__*/React__default['default'].createElement(
|
|
10465
|
+
}, this.state.lottieConfig.animationData && /*#__PURE__*/React__default['default'].createElement(Lottie__default['default'], {
|
|
10465
10466
|
key: "lottie-layout",
|
|
10466
|
-
height:
|
|
10467
|
-
width:
|
|
10468
|
-
|
|
10467
|
+
height: 260,
|
|
10468
|
+
width: 260,
|
|
10469
|
+
options: this.state.lottieConfig,
|
|
10470
|
+
isClickToPauseDisabled: true
|
|
10469
10471
|
}), /*#__PURE__*/React__default['default'].createElement(Text, {
|
|
10470
10472
|
type: "h3",
|
|
10471
10473
|
className: "marginTop-16"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plusscommunities/pluss-core-web",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.13-beta.0",
|
|
4
4
|
"description": "Core extension package for Pluss Communities platform",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"scripts": {
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
"@rollup/plugin-babel": "^5.3.0",
|
|
24
24
|
"@rollup/plugin-json": "^4.1.0",
|
|
25
25
|
"autoprefixer": "^10.2.6",
|
|
26
|
+
"react-lottie": "^1.2.10",
|
|
26
27
|
"rollup": "^2.50.1",
|
|
27
28
|
"rollup-plugin-local-resolve": "^1.0.7",
|
|
28
29
|
"rollup-plugin-styles": "^3.14.1"
|
|
@@ -41,6 +42,7 @@
|
|
|
41
42
|
"react": "^16.14.0",
|
|
42
43
|
"react-dropzone": "^14.2.3",
|
|
43
44
|
"react-fontawesome": "^1.6.1",
|
|
45
|
+
"react-lottie": "^1.2.10",
|
|
44
46
|
"react-redux": "^7.2.8",
|
|
45
47
|
"react-router-dom": "^4.2.2",
|
|
46
48
|
"react-textarea-autosize": "^7.1.0-1"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { Component } from 'react';
|
|
2
2
|
import { connect } from 'react-redux';
|
|
3
|
-
import
|
|
3
|
+
import Lottie from 'react-lottie';
|
|
4
4
|
import _ from 'lodash';
|
|
5
5
|
import { unauthedFunction } from '../session';
|
|
6
6
|
import { Popup } from './Popup';
|
|
@@ -28,6 +28,9 @@ class MakerPopup extends Component {
|
|
|
28
28
|
{ Key: 'jpg', Title: 'JPEG' },
|
|
29
29
|
];
|
|
30
30
|
|
|
31
|
+
this.lottieAnimationUrl =
|
|
32
|
+
'https://pluss-prd-media.s3-ap-southeast-2.amazonaws.com/assets/lottie-layout.json';
|
|
33
|
+
|
|
31
34
|
this.state = {
|
|
32
35
|
...this.props.initialData,
|
|
33
36
|
logo: null,
|
|
@@ -38,8 +41,8 @@ class MakerPopup extends Component {
|
|
|
38
41
|
selectedSize: 'A4',
|
|
39
42
|
selectedFormat: 'pdf',
|
|
40
43
|
lottieConfig: {
|
|
41
|
-
path: 'https://pluss-prd-media.s3-ap-southeast-2.amazonaws.com/assets/lottie-layout.json',
|
|
42
44
|
loop: true,
|
|
45
|
+
autoplay: true,
|
|
43
46
|
name: 'lottie-layout',
|
|
44
47
|
},
|
|
45
48
|
};
|
|
@@ -66,12 +69,11 @@ class MakerPopup extends Component {
|
|
|
66
69
|
getLottieConfig() {
|
|
67
70
|
unauthedFunction({
|
|
68
71
|
method: 'GET',
|
|
69
|
-
url: this.
|
|
72
|
+
url: this.lottieAnimationUrl,
|
|
70
73
|
}).then((res) => {
|
|
71
74
|
this.setState({
|
|
72
75
|
lottieConfig: {
|
|
73
76
|
...this.state.lottieConfig,
|
|
74
|
-
path: undefined,
|
|
75
77
|
animationData: res.data,
|
|
76
78
|
},
|
|
77
79
|
});
|
|
@@ -227,7 +229,15 @@ class MakerPopup extends Component {
|
|
|
227
229
|
if (this.state.submitting) {
|
|
228
230
|
return (
|
|
229
231
|
<div className="flex flex-column flex-center">
|
|
230
|
-
|
|
232
|
+
{this.state.lottieConfig.animationData && (
|
|
233
|
+
<Lottie
|
|
234
|
+
key="lottie-layout"
|
|
235
|
+
height={260}
|
|
236
|
+
width={260}
|
|
237
|
+
options={this.state.lottieConfig}
|
|
238
|
+
isClickToPauseDisabled
|
|
239
|
+
/>
|
|
240
|
+
)}
|
|
231
241
|
<Text type="h3" className="marginTop-16">
|
|
232
242
|
Generating
|
|
233
243
|
</Text>
|