@sb1/ffe-feedback-react 4.0.22 → 4.1.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/es/Feedback.js +2 -2
- package/es/HighFive.js +58 -0
- package/es/tsconfig.esm.tsbuildinfo +1 -1
- package/lib/Feedback.js +2 -2
- package/lib/HighFive.js +65 -0
- package/lib/tsconfig.cjs.tsbuildinfo +1 -1
- package/package.json +5 -6
- package/types/HighFive.d.ts +2 -0
- package/types/tsconfig.types.tsbuildinfo +1 -1
- package/es/Animation.js +0 -17
- package/es/highFiveAnimation.js +0 -24158
- package/lib/Animation.js +0 -47
- package/lib/highFiveAnimation.js +0 -24160
- package/types/Animation.d.ts +0 -2
- package/types/highFiveAnimation.d.ts +0 -4085
package/lib/Animation.js
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.Animation = void 0;
|
|
30
|
-
var lottie_web_1 = __importDefault(require("lottie-web"));
|
|
31
|
-
var react_1 = __importStar(require("react"));
|
|
32
|
-
var highFiveAnimation_1 = __importDefault(require("./highFiveAnimation"));
|
|
33
|
-
var Animation = function () {
|
|
34
|
-
var containerRef = (0, react_1.useRef)(null);
|
|
35
|
-
(0, react_1.useEffect)(function () {
|
|
36
|
-
var instance = lottie_web_1.default.loadAnimation({
|
|
37
|
-
container: containerRef.current,
|
|
38
|
-
renderer: 'svg',
|
|
39
|
-
loop: false,
|
|
40
|
-
autoplay: true,
|
|
41
|
-
animationData: highFiveAnimation_1.default,
|
|
42
|
-
});
|
|
43
|
-
return function () { return instance.destroy(); };
|
|
44
|
-
}, []);
|
|
45
|
-
return (react_1.default.createElement("div", { ref: containerRef, style: { width: '180px', height: '180px' } }));
|
|
46
|
-
};
|
|
47
|
-
exports.Animation = Animation;
|