@plusscommunities/pluss-core-web 1.6.11-beta.0 → 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 +7708 -5219
- package/dist/index.esm.js +7605 -5127
- package/dist/index.umd.js +7695 -5216
- package/package.json +3 -1
- package/src/components/MakerPopup.js +15 -5
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>
|