@multiplatform.one/gpg 9.17.0 → 10.0.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/cjs/GpgButton.cjs +27 -41
- package/dist/cjs/GpgButton.native.cjs +56 -0
- package/dist/cjs/GpgButton.native.js +32 -52
- package/dist/cjs/GpgButton.native.js.map +1 -1
- package/dist/cjs/GpgContext.cjs +19 -21
- package/dist/cjs/GpgContext.native.cjs +36 -0
- package/dist/cjs/GpgContext.native.js +20 -21
- package/dist/cjs/GpgContext.native.js.map +1 -1
- package/dist/cjs/GpgIcon.cjs +40 -44
- package/dist/cjs/GpgIcon.native.cjs +62 -0
- package/dist/cjs/GpgIcon.native.js +44 -52
- package/dist/cjs/GpgIcon.native.js.map +1 -1
- package/dist/cjs/GpgProvider.cjs +88 -104
- package/dist/cjs/GpgProvider.native.cjs +120 -0
- package/dist/cjs/GpgProvider.native.js +96 -111
- package/dist/cjs/GpgProvider.native.js.map +1 -1
- package/dist/cjs/SignInWithGpg.cjs +108 -112
- package/dist/cjs/SignInWithGpg.native.cjs +140 -0
- package/dist/cjs/SignInWithGpg.native.js +115 -132
- package/dist/cjs/SignInWithGpg.native.js.map +1 -1
- package/dist/cjs/index.cjs +32 -39
- package/dist/cjs/index.native.cjs +55 -0
- package/dist/cjs/index.native.js +32 -38
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/cjs/screens.cjs +39 -52
- package/dist/cjs/screens.native.cjs +78 -0
- package/dist/cjs/screens.native.js +49 -61
- package/dist/cjs/screens.native.js.map +1 -1
- package/dist/cjs/signature.cjs +92 -90
- package/dist/cjs/signature.native.cjs +125 -0
- package/dist/cjs/signature.native.js +100 -97
- package/dist/cjs/signature.native.js.map +1 -1
- package/dist/cjs/signer.cjs +86 -92
- package/dist/cjs/signer.native.cjs +141 -0
- package/dist/cjs/signer.native.js +112 -119
- package/dist/cjs/signer.native.js.map +1 -1
- package/dist/cjs/useGpg.cjs +46 -57
- package/dist/cjs/useGpg.native.cjs +65 -0
- package/dist/cjs/useGpg.native.js +50 -60
- package/dist/cjs/useGpg.native.js.map +1 -1
- package/dist/esm/GpgButton.mjs +14 -24
- package/dist/esm/GpgButton.mjs.map +1 -1
- package/dist/esm/GpgButton.native.js +18 -30
- package/dist/esm/GpgButton.native.js.map +1 -1
- package/dist/esm/GpgContext.mjs +6 -4
- package/dist/esm/GpgContext.mjs.map +1 -1
- package/dist/esm/GpgContext.native.js +7 -5
- package/dist/esm/GpgContext.native.js.map +1 -1
- package/dist/esm/GpgIcon.mjs +28 -26
- package/dist/esm/GpgIcon.mjs.map +1 -1
- package/dist/esm/GpgIcon.native.js +31 -29
- package/dist/esm/GpgIcon.native.js.map +1 -1
- package/dist/esm/GpgProvider.mjs +76 -88
- package/dist/esm/GpgProvider.mjs.map +1 -1
- package/dist/esm/GpgProvider.native.js +85 -97
- package/dist/esm/GpgProvider.native.js.map +1 -1
- package/dist/esm/SignInWithGpg.mjs +97 -95
- package/dist/esm/SignInWithGpg.mjs.map +1 -1
- package/dist/esm/SignInWithGpg.native.js +102 -109
- package/dist/esm/SignInWithGpg.native.js.map +1 -1
- package/dist/esm/index.mjs +7 -7
- package/dist/esm/index.native.js +7 -7
- package/dist/esm/screens.mjs +23 -27
- package/dist/esm/screens.mjs.map +1 -1
- package/dist/esm/screens.native.js +34 -39
- package/dist/esm/screens.native.js.map +1 -1
- package/dist/esm/signature.mjs +80 -72
- package/dist/esm/signature.mjs.map +1 -1
- package/dist/esm/signature.native.js +88 -80
- package/dist/esm/signature.native.js.map +1 -1
- package/dist/esm/signer.mjs +69 -72
- package/dist/esm/signer.mjs.map +1 -1
- package/dist/esm/signer.native.js +95 -100
- package/dist/esm/signer.native.js.map +1 -1
- package/dist/esm/useGpg.mjs +34 -39
- package/dist/esm/useGpg.mjs.map +1 -1
- package/dist/esm/useGpg.native.js +38 -43
- package/dist/esm/useGpg.native.js.map +1 -1
- package/package.json +6 -6
- package/types/GpgProvider.d.ts +1 -1
- package/types/GpgProvider.d.ts.map +1 -1
- package/dist/esm/index.mjs.map +0 -1
- package/dist/esm/index.native.js.map +0 -1
package/dist/cjs/useGpg.cjs
CHANGED
|
@@ -3,68 +3,57 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
3
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
5
|
var __export = (target, all) => {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
for (var name in all) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: true
|
|
9
|
+
});
|
|
10
10
|
};
|
|
11
11
|
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
14
|
+
get: () => from[key],
|
|
15
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
19
|
};
|
|
20
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
-
value: true
|
|
22
|
-
}), mod);
|
|
20
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
23
21
|
var useGpg_exports = {};
|
|
24
|
-
__export(useGpg_exports, {
|
|
25
|
-
useGpg: () => useGpg
|
|
26
|
-
});
|
|
22
|
+
__export(useGpg_exports, { useGpg: () => useGpg });
|
|
27
23
|
module.exports = __toCommonJS(useGpg_exports);
|
|
28
24
|
var import_react = require("react");
|
|
29
25
|
var import_GpgContext = require("./GpgContext.cjs");
|
|
30
26
|
const useGpg = () => {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
isSuccess,
|
|
65
|
-
isError,
|
|
66
|
-
isReady,
|
|
67
|
-
signIn,
|
|
68
|
-
reset: () => resetStatus()
|
|
69
|
-
};
|
|
70
|
-
};
|
|
27
|
+
const gpg = (0, import_react.useContext)(import_GpgContext.GpgContext);
|
|
28
|
+
if (!gpg) {
|
|
29
|
+
return {
|
|
30
|
+
message: null,
|
|
31
|
+
command: null,
|
|
32
|
+
status: import_GpgContext.GpgStatusState.ERROR,
|
|
33
|
+
error: new Error("useGpg hook must be inside a GpgProvider."),
|
|
34
|
+
isLoading: false,
|
|
35
|
+
isSuccess: false,
|
|
36
|
+
isError: true,
|
|
37
|
+
isReady: false,
|
|
38
|
+
signIn: () => Promise.reject(),
|
|
39
|
+
reset: () => {}
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
const { nonce, message, command, status, signIn, resetStatus } = gpg;
|
|
43
|
+
const isLoading = status === import_GpgContext.GpgStatusState.LOADING || nonce.isLoading;
|
|
44
|
+
const isSuccess = status === import_GpgContext.GpgStatusState.SUCCESS;
|
|
45
|
+
const isError = status === import_GpgContext.GpgStatusState.ERROR;
|
|
46
|
+
const isReady = !!message && !isLoading;
|
|
47
|
+
return {
|
|
48
|
+
message,
|
|
49
|
+
command,
|
|
50
|
+
status,
|
|
51
|
+
error: nonce.error,
|
|
52
|
+
isLoading,
|
|
53
|
+
isSuccess,
|
|
54
|
+
isError,
|
|
55
|
+
isReady,
|
|
56
|
+
signIn,
|
|
57
|
+
reset: () => resetStatus()
|
|
58
|
+
};
|
|
59
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: true
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
16
|
+
get: () => from[key],
|
|
17
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
22
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
23
|
+
var useGpg_exports = {};
|
|
24
|
+
__export(useGpg_exports, { useGpg: () => useGpg });
|
|
25
|
+
module.exports = __toCommonJS(useGpg_exports);
|
|
26
|
+
var import_react = require("react");
|
|
27
|
+
var import_GpgContext = require("./GpgContext.native.js");
|
|
28
|
+
var useGpg = function useGpg2() {
|
|
29
|
+
var gpg = (0, import_react.useContext)(import_GpgContext.GpgContext);
|
|
30
|
+
if (!gpg) {
|
|
31
|
+
return {
|
|
32
|
+
message: null,
|
|
33
|
+
command: null,
|
|
34
|
+
status: import_GpgContext.GpgStatusState.ERROR,
|
|
35
|
+
error: new Error("useGpg hook must be inside a GpgProvider."),
|
|
36
|
+
isLoading: false,
|
|
37
|
+
isSuccess: false,
|
|
38
|
+
isError: true,
|
|
39
|
+
isReady: false,
|
|
40
|
+
signIn: function signIn2() {
|
|
41
|
+
return Promise.reject();
|
|
42
|
+
},
|
|
43
|
+
reset: function reset() {}
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
var { nonce, message, command, status, signIn, resetStatus } = gpg;
|
|
47
|
+
var isLoading = status === import_GpgContext.GpgStatusState.LOADING || nonce.isLoading;
|
|
48
|
+
var isSuccess = status === import_GpgContext.GpgStatusState.SUCCESS;
|
|
49
|
+
var isError = status === import_GpgContext.GpgStatusState.ERROR;
|
|
50
|
+
var isReady = !!message && !isLoading;
|
|
51
|
+
return {
|
|
52
|
+
message,
|
|
53
|
+
command,
|
|
54
|
+
status,
|
|
55
|
+
error: nonce.error,
|
|
56
|
+
isLoading,
|
|
57
|
+
isSuccess,
|
|
58
|
+
isError,
|
|
59
|
+
isReady,
|
|
60
|
+
signIn,
|
|
61
|
+
reset: function reset() {
|
|
62
|
+
return resetStatus();
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
};
|
|
@@ -5,73 +5,63 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
7
|
var __export = (target, all) => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: true
|
|
11
|
+
});
|
|
12
12
|
};
|
|
13
13
|
var __copyProps = (to, from, except, desc) => {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
16
|
+
get: () => from[key],
|
|
17
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
21
|
};
|
|
22
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
23
|
-
value: true
|
|
24
|
-
}), mod);
|
|
22
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
25
23
|
var useGpg_exports = {};
|
|
26
|
-
__export(useGpg_exports, {
|
|
27
|
-
useGpg: () => useGpg
|
|
28
|
-
});
|
|
24
|
+
__export(useGpg_exports, { useGpg: () => useGpg });
|
|
29
25
|
module.exports = __toCommonJS(useGpg_exports);
|
|
30
26
|
var import_react = require("react");
|
|
31
27
|
var import_GpgContext = require("./GpgContext.native.js");
|
|
32
28
|
var useGpg = function useGpg2() {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
isError,
|
|
70
|
-
isReady,
|
|
71
|
-
signIn,
|
|
72
|
-
reset: function reset() {
|
|
73
|
-
return resetStatus();
|
|
74
|
-
}
|
|
75
|
-
};
|
|
29
|
+
var gpg = (0, import_react.useContext)(import_GpgContext.GpgContext);
|
|
30
|
+
if (!gpg) {
|
|
31
|
+
return {
|
|
32
|
+
message: null,
|
|
33
|
+
command: null,
|
|
34
|
+
status: import_GpgContext.GpgStatusState.ERROR,
|
|
35
|
+
error: new Error("useGpg hook must be inside a GpgProvider."),
|
|
36
|
+
isLoading: false,
|
|
37
|
+
isSuccess: false,
|
|
38
|
+
isError: true,
|
|
39
|
+
isReady: false,
|
|
40
|
+
signIn: function signIn2() {
|
|
41
|
+
return Promise.reject();
|
|
42
|
+
},
|
|
43
|
+
reset: function reset() {}
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
var { nonce, message, command, status, signIn, resetStatus } = gpg;
|
|
47
|
+
var isLoading = status === import_GpgContext.GpgStatusState.LOADING || nonce.isLoading;
|
|
48
|
+
var isSuccess = status === import_GpgContext.GpgStatusState.SUCCESS;
|
|
49
|
+
var isError = status === import_GpgContext.GpgStatusState.ERROR;
|
|
50
|
+
var isReady = !!message && !isLoading;
|
|
51
|
+
return {
|
|
52
|
+
message,
|
|
53
|
+
command,
|
|
54
|
+
status,
|
|
55
|
+
error: nonce.error,
|
|
56
|
+
isLoading,
|
|
57
|
+
isSuccess,
|
|
58
|
+
isError,
|
|
59
|
+
isReady,
|
|
60
|
+
signIn,
|
|
61
|
+
reset: function reset() {
|
|
62
|
+
return resetStatus();
|
|
63
|
+
}
|
|
64
|
+
};
|
|
76
65
|
};
|
|
66
|
+
|
|
77
67
|
//# sourceMappingURL=useGpg.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"useGpg.native.js","names":[],"sources":["cjs/useGpg.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar useGpg_exports = {};\n__export(useGpg_exports, {\n useGpg: () => useGpg\n});\nmodule.exports = __toCommonJS(useGpg_exports);\nvar import_react = require(\"react\");\nvar import_GpgContext = require(\"./GpgContext\");\nvar useGpg = function useGpg2() {\n var gpg = (0, import_react.useContext)(import_GpgContext.GpgContext);\n if (!gpg) {\n return {\n message: null,\n command: null,\n status: import_GpgContext.GpgStatusState.ERROR,\n error: new Error(\"useGpg hook must be inside a GpgProvider.\"),\n isLoading: false,\n isSuccess: false,\n isError: true,\n isReady: false,\n signIn: function signIn2() {\n return Promise.reject();\n },\n reset: function reset() {\n }\n };\n }\n var { nonce, message, command, status, signIn, resetStatus } = gpg;\n var isLoading = status === import_GpgContext.GpgStatusState.LOADING || nonce.isLoading;\n var isSuccess = status === import_GpgContext.GpgStatusState.SUCCESS;\n var isError = status === import_GpgContext.GpgStatusState.ERROR;\n var isReady = !!message && !isLoading;\n return {\n message,\n command,\n status,\n error: nonce.error,\n isLoading,\n isSuccess,\n isError,\n isReady,\n signIn,\n reset: function reset() {\n return resetStatus();\n }\n };\n};\n//# sourceMappingURL=useGpg.js.map\n"],"mappings":";;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,iBAAiB,CAAC;AACtB,SAAS,gBAAgB,EACvB,cAAc,OAChB,CAAC;AACD,OAAO,UAAU,aAAa,cAAc;AAC5C,IAAI,eAAe,QAAQ,OAAO;AAClC,IAAI,oBAAoB,QAAQ,wBAAc;AAC9C,IAAI,SAAS,SAAS,UAAU;CAC9B,IAAI,OAAO,GAAG,aAAa,WAAU,CAAE,kBAAkB,UAAU;CACnE,IAAI,CAAC,KAAK;EACR,OAAO;GACL,SAAS;GACT,SAAS;GACT,QAAQ,kBAAkB,eAAe;GACzC,OAAO,IAAI,MAAM,2CAA2C;GAC5D,WAAW;GACX,WAAW;GACX,SAAS;GACT,SAAS;GACT,QAAQ,SAAS,UAAU;IACzB,OAAO,QAAQ,OAAO;GACxB;GACA,OAAO,SAAS,QAAQ,CACxB;EACF;CACF;CACA,IAAI,EAAE,OAAO,SAAS,SAAS,QAAQ,QAAQ,gBAAgB;CAC/D,IAAI,YAAY,WAAW,kBAAkB,eAAe,WAAW,MAAM;CAC7E,IAAI,YAAY,WAAW,kBAAkB,eAAe;CAC5D,IAAI,UAAU,WAAW,kBAAkB,eAAe;CAC1D,IAAI,UAAU,CAAC,CAAC,WAAW,CAAC;CAC5B,OAAO;EACL;EACA;EACA;EACA,OAAO,MAAM;EACb;EACA;EACA;EACA;EACA;EACA,OAAO,SAAS,QAAQ;GACtB,OAAO,YAAY;EACrB;CACF;AACF"}
|
package/dist/esm/GpgButton.mjs
CHANGED
|
@@ -1,30 +1,20 @@
|
|
|
1
1
|
import { Button, ResetContainer, useModal } from "@multiplatform.one/connectkit";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
e?.preventDefault?.();
|
|
16
|
-
openScreen("signInWithGpg");
|
|
17
|
-
},
|
|
18
|
-
children: children ?? "Sign in with GPG"
|
|
19
|
-
}, "button");
|
|
3
|
+
|
|
4
|
+
const GPGButton = ({ children }) => {
|
|
5
|
+
const { openScreen } = useModal();
|
|
6
|
+
return /* @__PURE__ */ jsx(Button, {
|
|
7
|
+
style: { margin: 0 },
|
|
8
|
+
arrow: true,
|
|
9
|
+
onClick: (e) => {
|
|
10
|
+
e?.preventDefault?.();
|
|
11
|
+
openScreen("signInWithGpg");
|
|
12
|
+
},
|
|
13
|
+
children: children ?? "Sign in with GPG"
|
|
14
|
+
}, "button");
|
|
20
15
|
};
|
|
21
|
-
const GPGButtonComponent = ({
|
|
22
|
-
...props
|
|
23
|
-
}) => /* @__PURE__ */jsx(ResetContainer, {
|
|
24
|
-
children: /* @__PURE__ */jsx(GPGButton, {
|
|
25
|
-
...props
|
|
26
|
-
})
|
|
27
|
-
});
|
|
16
|
+
const GPGButtonComponent = ({ ...props }) => /* @__PURE__ */ jsx(ResetContainer, { children: /* @__PURE__ */ jsx(GPGButton, { ...props }) });
|
|
28
17
|
var GpgButton_default = GPGButtonComponent;
|
|
18
|
+
|
|
29
19
|
export { GPGButton, GpgButton_default as default };
|
|
30
20
|
//# sourceMappingURL=GpgButton.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"GpgButton.js","names":[],"sources":["esm/GpgButton.js"],"sourcesContent":["import { Button, ResetContainer, useModal } from \"@multiplatform.one/connectkit\";\nimport { jsx } from \"react/jsx-runtime\";\nconst GPGButton = ({ children }) => {\n const { openScreen } = useModal();\n return /* @__PURE__ */ jsx(\n Button,\n {\n style: { margin: 0 },\n arrow: true,\n onClick: (e) => {\n e?.preventDefault?.();\n openScreen(\"signInWithGpg\");\n },\n children: children ?? \"Sign in with GPG\"\n },\n \"button\"\n );\n};\nconst GPGButtonComponent = ({ ...props }) => /* @__PURE__ */ jsx(ResetContainer, { children: /* @__PURE__ */ jsx(GPGButton, { ...props }) });\nvar GpgButton_default = GPGButtonComponent;\nexport {\n GPGButton,\n GpgButton_default as default\n};\n//# sourceMappingURL=GpgButton.js.map\n"],"mappings":";;;;AAEA,MAAM,aAAa,EAAE,eAAe;CAClC,MAAM,EAAE,eAAe,SAAS;CAChC,OAAuB,oBACrB,QACA;EACE,OAAO,EAAE,QAAQ,EAAE;EACnB,OAAO;EACP,UAAU,MAAM;GACd,GAAG,iBAAiB;GACpB,WAAW,eAAe;EAC5B;EACA,UAAU,YAAY;CACxB,GACA,QACF;AACF;AACA,MAAM,sBAAsB,EAAE,GAAG,YAA4B,oBAAI,gBAAgB,EAAE,UAA0B,oBAAI,WAAW,EAAE,GAAG,MAAM,CAAC,EAAE,CAAC;AAC3I,IAAI,oBAAoB"}
|
|
@@ -1,38 +1,26 @@
|
|
|
1
|
-
import { jsx
|
|
2
|
-
import
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
3
|
import { Button, ResetContainer, useModal } from "@multiplatform.one/connectkit";
|
|
4
|
+
|
|
4
5
|
var GPGButton = function GPGButton2(param) {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
// login form) — the underlying styled button can render as type=submit.
|
|
18
|
-
onClick: function onClick(e) {
|
|
19
|
-
var _e_preventDefault;
|
|
20
|
-
e === null || e === void 0 ? void 0 : (_e_preventDefault = e.preventDefault) === null || _e_preventDefault === void 0 ? void 0 : _e_preventDefault.call(e);
|
|
21
|
-
openScreen("signInWithGpg");
|
|
22
|
-
},
|
|
23
|
-
children: children !== null && children !== void 0 ? children : "Sign in with GPG"
|
|
24
|
-
}, "button");
|
|
6
|
+
var { children } = param;
|
|
7
|
+
var { openScreen } = useModal();
|
|
8
|
+
return /* @__PURE__ */ jsx(Button, {
|
|
9
|
+
style: { margin: 0 },
|
|
10
|
+
arrow: true,
|
|
11
|
+
onClick: function onClick(e) {
|
|
12
|
+
var _e_preventDefault;
|
|
13
|
+
e === null || e === void 0 ? void 0 : (_e_preventDefault = e.preventDefault) === null || _e_preventDefault === void 0 ? void 0 : _e_preventDefault.call(e);
|
|
14
|
+
openScreen("signInWithGpg");
|
|
15
|
+
},
|
|
16
|
+
children: children !== null && children !== void 0 ? children : "Sign in with GPG"
|
|
17
|
+
}, "button");
|
|
25
18
|
};
|
|
26
19
|
var GPGButtonComponent = function GPGButtonComponent2(param) {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
} = param;
|
|
30
|
-
return /* @__PURE__ */_jsx(ResetContainer, {
|
|
31
|
-
children: /* @__PURE__ */_jsx(GPGButton, {
|
|
32
|
-
...props
|
|
33
|
-
})
|
|
34
|
-
});
|
|
20
|
+
var { ...props } = param;
|
|
21
|
+
return /* @__PURE__ */ jsx(ResetContainer, { children: /* @__PURE__ */ jsx(GPGButton, { ...props }) });
|
|
35
22
|
};
|
|
36
23
|
var GpgButton_default = GPGButtonComponent;
|
|
24
|
+
|
|
37
25
|
export { GPGButton, GpgButton_default as default };
|
|
38
26
|
//# sourceMappingURL=GpgButton.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"file":"GpgButton.native.js","names":[],"sources":["esm/GpgButton.native.js"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\nimport React from \"react\";\nimport { Button, ResetContainer, useModal } from \"@multiplatform.one/connectkit\";\nvar GPGButton = function GPGButton2(param) {\n var { children } = param;\n var { openScreen } = useModal();\n return /* @__PURE__ */ _jsx(Button, {\n style: {\n margin: 0\n },\n arrow: true,\n // preventDefault so we never submit a surrounding host <form> (e.g. keycloak's\n // login form) — the underlying styled button can render as type=submit.\n onClick: function onClick(e) {\n var _e_preventDefault;\n e === null || e === void 0 ? void 0 : (_e_preventDefault = e.preventDefault) === null || _e_preventDefault === void 0 ? void 0 : _e_preventDefault.call(e);\n openScreen(\"signInWithGpg\");\n },\n children: children !== null && children !== void 0 ? children : \"Sign in with GPG\"\n }, \"button\");\n};\nvar GPGButtonComponent = function GPGButtonComponent2(param) {\n var { ...props } = param;\n return /* @__PURE__ */ _jsx(ResetContainer, {\n children: /* @__PURE__ */ _jsx(GPGButton, {\n ...props\n })\n });\n};\nvar GpgButton_default = GPGButtonComponent;\nexport {\n GPGButton,\n GpgButton_default as default\n};\n//# sourceMappingURL=GpgButton.js.map\n"],"mappings":";;;;;AAGA,IAAI,YAAY,SAAS,WAAW,OAAO;CACzC,IAAI,EAAE,aAAa;CACnB,IAAI,EAAE,eAAe,SAAS;CAC9B,OAAuB,oBAAK,QAAQ;EAClC,OAAO,EACL,QAAQ,EACV;EACA,OAAO;EAGP,SAAS,SAAS,QAAQ,GAAG;GAC3B,IAAI;GACJ,MAAM,QAAQ,MAAM,KAAK,IAAI,KAAK,KAAK,oBAAoB,EAAE,oBAAoB,QAAQ,sBAAsB,KAAK,IAAI,KAAK,IAAI,kBAAkB,KAAK,CAAC;GACzJ,WAAW,eAAe;EAC5B;EACA,UAAU,aAAa,QAAQ,aAAa,KAAK,IAAI,WAAW;CAClE,GAAG,QAAQ;AACb;AACA,IAAI,qBAAqB,SAAS,oBAAoB,OAAO;CAC3D,IAAI,EAAE,GAAG,UAAU;CACnB,OAAuB,oBAAK,gBAAgB,EAC1C,UAA0B,oBAAK,WAAW,EACxC,GAAG,MACL,CAAC,EACH,CAAC;AACH;AACA,IAAI,oBAAoB"}
|
package/dist/esm/GpgContext.mjs
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { createContext } from "react";
|
|
2
|
+
|
|
2
3
|
const GpgStatusState = {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
READY: "ready",
|
|
5
|
+
LOADING: "loading",
|
|
6
|
+
SUCCESS: "success",
|
|
7
|
+
ERROR: "error"
|
|
7
8
|
};
|
|
8
9
|
const GpgContext = createContext(null);
|
|
10
|
+
|
|
9
11
|
export { GpgContext, GpgStatusState };
|
|
10
12
|
//# sourceMappingURL=GpgContext.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"GpgContext.js","names":[],"sources":["esm/GpgContext.js"],"sourcesContent":["import { createContext } from \"react\";\nconst GpgStatusState = {\n READY: \"ready\",\n LOADING: \"loading\",\n SUCCESS: \"success\",\n ERROR: \"error\"\n};\nconst GpgContext = createContext(null);\nexport {\n GpgContext,\n GpgStatusState\n};\n//# sourceMappingURL=GpgContext.js.map\n"],"mappings":";;;AACA,MAAM,iBAAiB;CACrB,OAAO;CACP,SAAS;CACT,SAAS;CACT,OAAO;AACT;AACA,MAAM,aAAa,cAAc,IAAI"}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { createContext } from "react";
|
|
2
|
+
|
|
2
3
|
var GpgStatusState = {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
READY: "ready",
|
|
5
|
+
LOADING: "loading",
|
|
6
|
+
SUCCESS: "success",
|
|
7
|
+
ERROR: "error"
|
|
7
8
|
};
|
|
8
|
-
var GpgContext = /* @__PURE__ */createContext(null);
|
|
9
|
+
var GpgContext = /* @__PURE__ */ createContext(null);
|
|
10
|
+
|
|
9
11
|
export { GpgContext, GpgStatusState };
|
|
10
12
|
//# sourceMappingURL=GpgContext.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"GpgContext.native.js","names":[],"sources":["esm/GpgContext.native.js"],"sourcesContent":["import { createContext } from \"react\";\nvar GpgStatusState = {\n READY: \"ready\",\n LOADING: \"loading\",\n SUCCESS: \"success\",\n ERROR: \"error\"\n};\nvar GpgContext = /* @__PURE__ */ createContext(null);\nexport {\n GpgContext,\n GpgStatusState\n};\n//# sourceMappingURL=GpgContext.js.map\n"],"mappings":";;;AACA,IAAI,iBAAiB;CACnB,OAAO;CACP,SAAS;CACT,SAAS;CACT,OAAO;AACT;AACA,IAAI,aAA6B,8BAAc,IAAI"}
|
package/dist/esm/GpgIcon.mjs
CHANGED
|
@@ -1,30 +1,32 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
2
|
+
|
|
3
|
+
const GpgIcon = () => /* @__PURE__ */ jsxs("svg", {
|
|
4
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
5
|
+
width: "100%",
|
|
6
|
+
height: "100%",
|
|
7
|
+
viewBox: "0 0 32 32",
|
|
8
|
+
"aria-hidden": "true",
|
|
9
|
+
children: [/* @__PURE__ */ jsx("rect", {
|
|
10
|
+
width: "32",
|
|
11
|
+
height: "32",
|
|
12
|
+
fill: "#0093DD"
|
|
13
|
+
}), /* @__PURE__ */ jsxs("g", {
|
|
14
|
+
fill: "none",
|
|
15
|
+
stroke: "#FFFFFF",
|
|
16
|
+
strokeWidth: "2.2",
|
|
17
|
+
strokeLinecap: "round",
|
|
18
|
+
strokeLinejoin: "round",
|
|
19
|
+
children: [
|
|
20
|
+
/* @__PURE__ */ jsx("circle", {
|
|
21
|
+
cx: "11.5",
|
|
22
|
+
cy: "19.5",
|
|
23
|
+
r: "4.5"
|
|
24
|
+
}),
|
|
25
|
+
/* @__PURE__ */ jsx("path", { d: "m14.7 16.3 9.3-9.3" }),
|
|
26
|
+
/* @__PURE__ */ jsx("path", { d: "m20 11 3 3 2.5-2.5-3-3" })
|
|
27
|
+
]
|
|
28
|
+
})]
|
|
28
29
|
});
|
|
30
|
+
|
|
29
31
|
export { GpgIcon };
|
|
30
32
|
//# sourceMappingURL=GpgIcon.mjs.map
|
package/dist/esm/GpgIcon.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"file":"GpgIcon.js","names":[],"sources":["esm/GpgIcon.js"],"sourcesContent":["import { jsx, jsxs } from \"react/jsx-runtime\";\nconst GpgIcon = () => /* @__PURE__ */ jsxs(\n \"svg\",\n {\n xmlns: \"http://www.w3.org/2000/svg\",\n width: \"100%\",\n height: \"100%\",\n viewBox: \"0 0 32 32\",\n \"aria-hidden\": \"true\",\n children: [\n /* @__PURE__ */ jsx(\"rect\", { width: \"32\", height: \"32\", fill: \"#0093DD\" }),\n /* @__PURE__ */ jsxs(\"g\", { fill: \"none\", stroke: \"#FFFFFF\", strokeWidth: \"2.2\", strokeLinecap: \"round\", strokeLinejoin: \"round\", children: [\n /* @__PURE__ */ jsx(\"circle\", { cx: \"11.5\", cy: \"19.5\", r: \"4.5\" }),\n /* @__PURE__ */ jsx(\"path\", { d: \"m14.7 16.3 9.3-9.3\" }),\n /* @__PURE__ */ jsx(\"path\", { d: \"m20 11 3 3 2.5-2.5-3-3\" })\n ] })\n ]\n }\n);\nexport {\n GpgIcon\n};\n//# sourceMappingURL=GpgIcon.js.map\n"],"mappings":";;;AACA,MAAM,gBAAgC,qBACpC,OACA;CACE,OAAO;CACP,OAAO;CACP,QAAQ;CACR,SAAS;CACT,eAAe;CACf,UAAU,CACQ,oBAAI,QAAQ;EAAE,OAAO;EAAM,QAAQ;EAAM,MAAM;CAAU,CAAC,GAC1D,qBAAK,KAAK;EAAE,MAAM;EAAQ,QAAQ;EAAW,aAAa;EAAO,eAAe;EAAS,gBAAgB;EAAS,UAAU;GAC1H,oBAAI,UAAU;IAAE,IAAI;IAAQ,IAAI;IAAQ,GAAG;GAAM,CAAC;GAClD,oBAAI,QAAQ,EAAE,GAAG,qBAAqB,CAAC;GACvC,oBAAI,QAAQ,EAAE,GAAG,yBAAyB,CAAC;EAC7D;CAAE,CAAC,CACL;AACF,CACF"}
|