onairos 0.0.5 → 0.0.7
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/README.md +9 -8
- package/dist/onairos.js +12 -7
- package/package.json +2 -2
- package/src/onairos.jsx +5 -5
package/README.md
CHANGED
|
@@ -195,22 +195,23 @@ function App() {
|
|
|
195
195
|
|
|
196
196
|
}}
|
|
197
197
|
|
|
198
|
-
const sendData = {
|
|
199
|
-
|
|
200
|
-
|
|
198
|
+
const sendData = {
|
|
199
|
+
Small: {
|
|
200
|
+
type:"Personality",
|
|
201
201
|
descriptions:"Insight into your Interests",
|
|
202
202
|
reward:"10% Discount"
|
|
203
203
|
},
|
|
204
|
-
|
|
205
|
-
|
|
204
|
+
Medium:{
|
|
205
|
+
type:"Personality",
|
|
206
206
|
descriptions:"Insight into your Interests",
|
|
207
207
|
reward:"2 USDC"
|
|
208
208
|
},
|
|
209
|
-
|
|
210
|
-
|
|
209
|
+
Large:{
|
|
210
|
+
type:"Personality",
|
|
211
211
|
descriptions:"Insight into your Interests",
|
|
212
212
|
reward:"2 USDC"
|
|
213
|
-
}
|
|
213
|
+
}
|
|
214
|
+
}
|
|
214
215
|
};
|
|
215
216
|
useEffect(() => {
|
|
216
217
|
window.addEventListener('message', UseAPIURL);
|
package/dist/onairos.js
CHANGED
|
@@ -9,9 +9,11 @@ var _OnairosBlack = _interopRequireDefault(require("./OnairosBlack.png"));
|
|
|
9
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
10
|
function Onairos(_ref) {
|
|
11
11
|
let {
|
|
12
|
-
|
|
12
|
+
requestData,
|
|
13
13
|
onairosID,
|
|
14
|
-
access_token
|
|
14
|
+
access_token,
|
|
15
|
+
proofMode = false,
|
|
16
|
+
webpageName
|
|
15
17
|
} = _ref;
|
|
16
18
|
const OnairosAnime = async () => {
|
|
17
19
|
try {
|
|
@@ -29,21 +31,24 @@ function Onairos(_ref) {
|
|
|
29
31
|
window.postMessage({
|
|
30
32
|
source: 'webpage',
|
|
31
33
|
type: 'GET_API_URL',
|
|
32
|
-
|
|
34
|
+
webpageName: webpageName,
|
|
33
35
|
onairosID: onairosID,
|
|
34
36
|
access_token: access_token,
|
|
35
37
|
account: "ConnectedAccountRef.current",
|
|
36
38
|
//No Longer needed, REMOVE
|
|
37
|
-
requestData:
|
|
39
|
+
requestData: requestData,
|
|
40
|
+
proofMode: proofMode
|
|
38
41
|
});
|
|
39
42
|
};
|
|
40
43
|
return /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("button", {
|
|
41
|
-
className: "OnairosConnect flex flex-col items-center justify-center text-white font-bold py-2 px-4 rounded cursor-pointer",
|
|
44
|
+
className: "OnairosConnect w-20 h-20 flex flex-col items-center justify-center text-white font-bold py-2 px-4 rounded cursor-pointer",
|
|
42
45
|
onClick: OnairosAnime
|
|
43
46
|
}, /*#__PURE__*/_react.default.createElement("img", {
|
|
44
47
|
src: _OnairosBlack.default,
|
|
45
48
|
alt: "Onairos Logo",
|
|
46
|
-
className: "w-
|
|
47
|
-
}), /*#__PURE__*/_react.default.createElement("span",
|
|
49
|
+
className: "w-16 h-16 object-contain mb-2"
|
|
50
|
+
}), " ", /*#__PURE__*/_react.default.createElement("span", {
|
|
51
|
+
className: "whitespace-nowrap"
|
|
52
|
+
}, "Connect to Onairos"), " "));
|
|
48
53
|
}
|
|
49
54
|
var _default = exports.default = Onairos;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "onairos",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"@testing-library/jest-dom": "^5.17.0",
|
|
6
6
|
"@testing-library/react": "^13.4.0",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"bugs": {
|
|
60
60
|
"url": "https://github.com/zd819/OnairosNPM/issues"
|
|
61
61
|
},
|
|
62
|
-
"homepage": "https://
|
|
62
|
+
"homepage": "https://onairos.uk"
|
|
63
63
|
}
|
package/src/onairos.jsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import onairosLogo from "./OnairosBlack.png";
|
|
3
3
|
|
|
4
|
-
function Onairos( {requestData, onairosID,
|
|
4
|
+
function Onairos( {requestData, onairosID, proofMode=false,webpageName}) {
|
|
5
5
|
const OnairosAnime = async () => {
|
|
6
6
|
try {
|
|
7
7
|
console.log("Clicked Onairos Connect")
|
|
@@ -21,7 +21,7 @@ function Onairos( {requestData, onairosID, access_token, proofMode=false,webpage
|
|
|
21
21
|
type: 'GET_API_URL',
|
|
22
22
|
webpageName: webpageName,
|
|
23
23
|
onairosID:onairosID,
|
|
24
|
-
access_token:access_token,
|
|
24
|
+
access_token:"access_token",
|
|
25
25
|
account:"ConnectedAccountRef.current", //No Longer needed, REMOVE
|
|
26
26
|
requestData: requestData,
|
|
27
27
|
proofMode:proofMode
|
|
@@ -31,11 +31,11 @@ function Onairos( {requestData, onairosID, access_token, proofMode=false,webpage
|
|
|
31
31
|
return (
|
|
32
32
|
<div>
|
|
33
33
|
<button
|
|
34
|
-
className="OnairosConnect flex flex-col items-center justify-center text-white font-bold py-2 px-4 rounded cursor-pointer"
|
|
34
|
+
className="OnairosConnect w-20 h-20 flex flex-col items-center justify-center text-white font-bold py-2 px-4 rounded cursor-pointer"
|
|
35
35
|
onClick={OnairosAnime}
|
|
36
36
|
>
|
|
37
|
-
<img src={onairosLogo} alt="Onairos Logo" className="w-
|
|
38
|
-
<span>Connect to Onairos</span>
|
|
37
|
+
<img src={onairosLogo} alt="Onairos Logo" className="w-16 h-16 object-contain mb-2" /> {/* Adjust size as needed */}
|
|
38
|
+
<span className="whitespace-nowrap">Connect to Onairos</span> {/* Prevent text from wrapping */}
|
|
39
39
|
</button>
|
|
40
40
|
</div>
|
|
41
41
|
);
|