@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.
Files changed (83) hide show
  1. package/dist/cjs/GpgButton.cjs +27 -41
  2. package/dist/cjs/GpgButton.native.cjs +56 -0
  3. package/dist/cjs/GpgButton.native.js +32 -52
  4. package/dist/cjs/GpgButton.native.js.map +1 -1
  5. package/dist/cjs/GpgContext.cjs +19 -21
  6. package/dist/cjs/GpgContext.native.cjs +36 -0
  7. package/dist/cjs/GpgContext.native.js +20 -21
  8. package/dist/cjs/GpgContext.native.js.map +1 -1
  9. package/dist/cjs/GpgIcon.cjs +40 -44
  10. package/dist/cjs/GpgIcon.native.cjs +62 -0
  11. package/dist/cjs/GpgIcon.native.js +44 -52
  12. package/dist/cjs/GpgIcon.native.js.map +1 -1
  13. package/dist/cjs/GpgProvider.cjs +88 -104
  14. package/dist/cjs/GpgProvider.native.cjs +120 -0
  15. package/dist/cjs/GpgProvider.native.js +96 -111
  16. package/dist/cjs/GpgProvider.native.js.map +1 -1
  17. package/dist/cjs/SignInWithGpg.cjs +108 -112
  18. package/dist/cjs/SignInWithGpg.native.cjs +140 -0
  19. package/dist/cjs/SignInWithGpg.native.js +115 -132
  20. package/dist/cjs/SignInWithGpg.native.js.map +1 -1
  21. package/dist/cjs/index.cjs +32 -39
  22. package/dist/cjs/index.native.cjs +55 -0
  23. package/dist/cjs/index.native.js +32 -38
  24. package/dist/cjs/index.native.js.map +1 -1
  25. package/dist/cjs/screens.cjs +39 -52
  26. package/dist/cjs/screens.native.cjs +78 -0
  27. package/dist/cjs/screens.native.js +49 -61
  28. package/dist/cjs/screens.native.js.map +1 -1
  29. package/dist/cjs/signature.cjs +92 -90
  30. package/dist/cjs/signature.native.cjs +125 -0
  31. package/dist/cjs/signature.native.js +100 -97
  32. package/dist/cjs/signature.native.js.map +1 -1
  33. package/dist/cjs/signer.cjs +86 -92
  34. package/dist/cjs/signer.native.cjs +141 -0
  35. package/dist/cjs/signer.native.js +112 -119
  36. package/dist/cjs/signer.native.js.map +1 -1
  37. package/dist/cjs/useGpg.cjs +46 -57
  38. package/dist/cjs/useGpg.native.cjs +65 -0
  39. package/dist/cjs/useGpg.native.js +50 -60
  40. package/dist/cjs/useGpg.native.js.map +1 -1
  41. package/dist/esm/GpgButton.mjs +14 -24
  42. package/dist/esm/GpgButton.mjs.map +1 -1
  43. package/dist/esm/GpgButton.native.js +18 -30
  44. package/dist/esm/GpgButton.native.js.map +1 -1
  45. package/dist/esm/GpgContext.mjs +6 -4
  46. package/dist/esm/GpgContext.mjs.map +1 -1
  47. package/dist/esm/GpgContext.native.js +7 -5
  48. package/dist/esm/GpgContext.native.js.map +1 -1
  49. package/dist/esm/GpgIcon.mjs +28 -26
  50. package/dist/esm/GpgIcon.mjs.map +1 -1
  51. package/dist/esm/GpgIcon.native.js +31 -29
  52. package/dist/esm/GpgIcon.native.js.map +1 -1
  53. package/dist/esm/GpgProvider.mjs +76 -88
  54. package/dist/esm/GpgProvider.mjs.map +1 -1
  55. package/dist/esm/GpgProvider.native.js +85 -97
  56. package/dist/esm/GpgProvider.native.js.map +1 -1
  57. package/dist/esm/SignInWithGpg.mjs +97 -95
  58. package/dist/esm/SignInWithGpg.mjs.map +1 -1
  59. package/dist/esm/SignInWithGpg.native.js +102 -109
  60. package/dist/esm/SignInWithGpg.native.js.map +1 -1
  61. package/dist/esm/index.mjs +7 -7
  62. package/dist/esm/index.native.js +7 -7
  63. package/dist/esm/screens.mjs +23 -27
  64. package/dist/esm/screens.mjs.map +1 -1
  65. package/dist/esm/screens.native.js +34 -39
  66. package/dist/esm/screens.native.js.map +1 -1
  67. package/dist/esm/signature.mjs +80 -72
  68. package/dist/esm/signature.mjs.map +1 -1
  69. package/dist/esm/signature.native.js +88 -80
  70. package/dist/esm/signature.native.js.map +1 -1
  71. package/dist/esm/signer.mjs +69 -72
  72. package/dist/esm/signer.mjs.map +1 -1
  73. package/dist/esm/signer.native.js +95 -100
  74. package/dist/esm/signer.native.js.map +1 -1
  75. package/dist/esm/useGpg.mjs +34 -39
  76. package/dist/esm/useGpg.mjs.map +1 -1
  77. package/dist/esm/useGpg.native.js +38 -43
  78. package/dist/esm/useGpg.native.js.map +1 -1
  79. package/package.json +6 -6
  80. package/types/GpgProvider.d.ts +1 -1
  81. package/types/GpgProvider.d.ts.map +1 -1
  82. package/dist/esm/index.mjs.map +0 -1
  83. package/dist/esm/index.native.js.map +0 -1
@@ -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
- for (var name in all) __defProp(target, name, {
7
- get: all[name],
8
- enumerable: true
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
- 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;
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
- const gpg = (0, import_react.useContext)(import_GpgContext.GpgContext);
32
- if (!gpg) {
33
- return {
34
- message: null,
35
- command: null,
36
- status: import_GpgContext.GpgStatusState.ERROR,
37
- error: new Error("useGpg hook must be inside a GpgProvider."),
38
- isLoading: false,
39
- isSuccess: false,
40
- isError: true,
41
- isReady: false,
42
- signIn: () => Promise.reject(),
43
- reset: () => {}
44
- };
45
- }
46
- const {
47
- nonce,
48
- message,
49
- command,
50
- status,
51
- signIn,
52
- resetStatus
53
- } = gpg;
54
- const isLoading = status === import_GpgContext.GpgStatusState.LOADING || nonce.isLoading;
55
- const isSuccess = status === import_GpgContext.GpgStatusState.SUCCESS;
56
- const isError = status === import_GpgContext.GpgStatusState.ERROR;
57
- const isReady = !!message && !isLoading;
58
- return {
59
- message,
60
- command,
61
- status,
62
- error: nonce.error,
63
- isLoading,
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
- for (var name in all) __defProp(target, name, {
9
- get: all[name],
10
- enumerable: true
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
- 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;
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
- var gpg = (0, import_react.useContext)(import_GpgContext.GpgContext);
34
- if (!gpg) {
35
- return {
36
- message: null,
37
- command: null,
38
- status: import_GpgContext.GpgStatusState.ERROR,
39
- error: new Error("useGpg hook must be inside a GpgProvider."),
40
- isLoading: false,
41
- isSuccess: false,
42
- isError: true,
43
- isReady: false,
44
- signIn: function signIn2() {
45
- return Promise.reject();
46
- },
47
- reset: function reset() {}
48
- };
49
- }
50
- var {
51
- nonce,
52
- message,
53
- command,
54
- status,
55
- signIn,
56
- resetStatus
57
- } = gpg;
58
- var isLoading = status === import_GpgContext.GpgStatusState.LOADING || nonce.isLoading;
59
- var isSuccess = status === import_GpgContext.GpgStatusState.SUCCESS;
60
- var isError = status === import_GpgContext.GpgStatusState.ERROR;
61
- var isReady = !!message && !isLoading;
62
- return {
63
- message,
64
- command,
65
- status,
66
- error: nonce.error,
67
- isLoading,
68
- isSuccess,
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,"names":["__toCommonJS","mod","__copyProps","__defProp","value","useGpg_exports","__export","useGpg","module","exports","import_react","require","import_GpgContext","useGpg2","gpg","useContext","GpgContext","message","command","status","GpgStatusState","ERROR","error","Error","isLoading","isSuccess","isError","isReady","signIn","signIn2","Promise","reject","reset","nonce","resetStatus","LOADING","SUCCESS"],"sources":["../../src/useGpg.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,cAAA;AAAAC,QAAA,CAAAD,cAAA;EAAAE,MAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAT,YAA2B,CAAAK,cAAA;AAC3B,IAAAK,YAAA,GAAAC,OAA2C;AAoBpC,IAAAC,iBAAsC,GAAAD,OAAA;AAC3C,IAAAJ,MAAM,YAAMM,QAAA;EACZ,IAAIC,GAAC,GAAK,IAAAJ,YAAA,CAAAK,UAAA,EAAAH,iBAAA,CAAAI,UAAA;EACR,KAAAF,GAAA,EAAO;IAAA,OACL;MACAG,OAAA,EAAS;MACTC,OAAA,EAAQ;MACRC,MAAA,EAAOP,iBAAU,CAAAQ,cAAA,CAAAC,KAAA;MACjBC,KAAA,MAAWC,KAAA;MACXC,SAAA,EAAW;MACXC,SAAS;MACTC,OAAA,EAAS;MACTC,OAAA,EAAQ,KAAM;MACdC,MAAA,EAAO,SAAMC,QAAA;QAAC,OAAAC,OAAA,CAAAC,MAAA;MAChB;MACFC,KAAA,WAAAA,MAAA,GAEA;IACA;EACA;EACA;IAAMC,KAAA;IAAAhB,OAAU;IAAAC,OAAW;IAAAC,MAAA;IAAAS,MAAA;IAAAM;EAAA,CAAe,GAAApB,GAAA;EAC1C,IAAAU,SAAM,GAAUL,MAAE,KAAAP,iBAAY,CAAAQ,cAAA,CAAAe,OAAA,IAAAF,KAAA,CAAAT,SAAA;EAE9B,IAAAC,SAAO,GAAAN,MAAA,KAAAP,iBAAA,CAAAQ,cAAA,CAAAgB,OAAA;EAAA,IACLV,OAAA,GAAAP,MAAA,KAAAP,iBAAA,CAAAQ,cAAA,CAAAC,KAAA;EAAA,IACAM,OAAA,KAAAV,OAAA,KAAAO,SAAA;EAAA,OACA;IACAP,OAAO;IACPC,OAAA;IACAC,MAAA;IACAG,KAAA,EAAAW,KAAA,CAAAX,KAAA;IACAE,SAAA;IACAC,SAAA;IACAC,OAAO;IACTC,OAAA;IACFC,MAAA","ignoreList":[]}
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"}
@@ -1,30 +1,20 @@
1
1
  import { Button, ResetContainer, useModal } from "@multiplatform.one/connectkit";
2
2
  import { jsx } from "react/jsx-runtime";
3
- const GPGButton = ({
4
- children
5
- }) => {
6
- const {
7
- openScreen
8
- } = useModal();
9
- return /* @__PURE__ */jsx(Button, {
10
- style: {
11
- margin: 0
12
- },
13
- arrow: true,
14
- onClick: e => {
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,"names":["Button","ResetContainer","useModal","jsx","GPGButton","children","openScreen","style","margin","arrow","onClick","e","preventDefault","GPGButtonComponent","props","GpgButton_default"],"sources":["../../src/GpgButton.tsx"],"sourcesContent":[null],"mappings":"AACA,SAASA,MAAA,EAAQC,cAAA,EAAgBC,QAAA,QAAgB;AAc7C,SAAAC,GAAA;AALG,MAAMC,SAAA,GAAmCA,CAAC;EAAEC;AAAS,MAAM;EAGhE,MAAM;IAAEC;EAAW,IAAIJ,QAAA,CAAS;EAChC,OACE,eAAAC,GAAA,CAACH,MAAA;IAECO,KAAA,EAAO;MAAEC,MAAA,EAAQ;IAAE;IACnBC,KAAA,EAAK;IAGLC,OAAA,EAAUC,CAAA,IAAwC;MAChDA,CAAA,EAAGC,cAAA,GAAiB;MACpBN,UAAA,CAAW,eAAe;IAC5B;IAECD,QAAA,EAAAA,QAAA,IAAY;EAAA,GAVT,QAWN;AAEJ;AAEA,MAAMQ,kBAAA,GAA4CA,CAAC;EAAE,GAAGC;AAAM,MAC5D,eAAAX,GAAA,CAACF,cAAA;EACCI,QAAA,iBAAAF,GAAA,CAACC,SAAA;IAAW,GAAGU;EAAA,CAAO;AAAA,CACxB;AAEF,IAAOC,iBAAA,GAAQF,kBAAA","ignoreList":[]}
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 as _jsx } from "react/jsx-runtime";
2
- import React from "react";
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
- var {
6
- children
7
- } = param;
8
- var {
9
- openScreen
10
- } = useModal();
11
- return /* @__PURE__ */_jsx(Button, {
12
- style: {
13
- margin: 0
14
- },
15
- arrow: true,
16
- // preventDefault so we never submit a surrounding host <form> (e.g. keycloak's
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
- var {
28
- ...props
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":["jsx","_jsx","React","Button","ResetContainer","useModal","GPGButton","GPGButton2","param","children","openScreen","style","margin","arrow","onClick","e","_e_preventDefault","preventDefault","call"],"sources":["../../src/GpgButton.tsx"],"sourcesContent":[null],"mappings":"AACA,SAASA,GAAA,IAAAC,IAAQ,2BAAgB;AAc7B,OAAAC,KAAA;AALG,SAAMC,MAAA,EAAAC,cAA+C,EAAAC,QAAM;AAGhE,IAAAC,SAAQ,YAAeC,UAASA,CAAAC,KAAA;EAChC;IAAAC;EACE,IAAAD,KAAA;EAAA,IAAC;IAAAE;EAAA,IAAAL,QAAA;EAAA,sBAAAJ,IAAA,CAAAE,MAAA;IAAAQ,KAEC;MACAC,MAAA,EAAK;IAAA;IAIHC,KAAA,EAAG;IACH;IAA0B;IAC5BC,OAEC,WAAAA,OAAYA,CAAAC,CAAA;MAAA,IAAAC,iBAAA;MAVTD,CAAA,aAAAA,CAAA,wBAAAC,iBAAA,GAAAD,CAAA,CAAAE,cAAA,cAAAD,iBAAA,uBAAAA,iBAAA,CAAAE,IAAA,CAAAH,CAAA;MAWNL,UAAA;IAEJ;IAEAD,QAAM,EAAAA,QAAA,KAA4C,IAAG,IAAGA,QAAM,KAC5D,SAAAA,QAAC;EAIH,GAAO","ignoreList":[]}
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"}
@@ -1,10 +1,12 @@
1
1
  import { createContext } from "react";
2
+
2
3
  const GpgStatusState = {
3
- READY: "ready",
4
- LOADING: "loading",
5
- SUCCESS: "success",
6
- ERROR: "error"
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,"names":["createContext","GpgStatusState","READY","LOADING","SUCCESS","ERROR","GpgContext"],"sources":["../../src/GpgContext.tsx"],"sourcesContent":[null],"mappings":"AAAA,SAASA,aAAA,QAAqB;AAQvB,MAAMC,cAAA,GAAiB;EAC5BC,KAAA,EAAO;EACPC,OAAA,EAAS;EACTC,OAAA,EAAS;EACTC,KAAA,EAAO;AACT;AA2CO,MAAMC,UAAA,GAAaN,aAAA,CAAsC,IAAI","ignoreList":[]}
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
- READY: "ready",
4
- LOADING: "loading",
5
- SUCCESS: "success",
6
- ERROR: "error"
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,"names":["createContext","GpgStatusState","READY","LOADING","SUCCESS","ERROR","GpgContext"],"sources":["../../src/GpgContext.tsx"],"sourcesContent":[null],"mappings":"AAAA,SAASA,aAAA,QAAqB;AAQvB,IAAAC,cAAM;EACXC,KAAA,EAAO;EACPC,OAAA,EAAS;EACTC,OAAA,EAAS;EACTC,KAAA,EAAO;AACT;AA2CO,IAAAC,UAAM,kBAAmDN,aAAI","ignoreList":[]}
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"}
@@ -1,30 +1,32 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
- const GpgIcon = () => /* @__PURE__ */jsxs("svg", {
3
- xmlns: "http://www.w3.org/2000/svg",
4
- width: "100%",
5
- height: "100%",
6
- viewBox: "0 0 32 32",
7
- "aria-hidden": "true",
8
- children: [/* @__PURE__ */jsx("rect", {
9
- width: "32",
10
- height: "32",
11
- fill: "#0093DD"
12
- }), /* @__PURE__ */jsxs("g", {
13
- fill: "none",
14
- stroke: "#FFFFFF",
15
- strokeWidth: "2.2",
16
- strokeLinecap: "round",
17
- strokeLinejoin: "round",
18
- children: [/* @__PURE__ */jsx("circle", {
19
- cx: "11.5",
20
- cy: "19.5",
21
- r: "4.5"
22
- }), /* @__PURE__ */jsx("path", {
23
- d: "m14.7 16.3 9.3-9.3"
24
- }), /* @__PURE__ */jsx("path", {
25
- d: "m20 11 3 3 2.5-2.5-3-3"
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
@@ -1 +1 @@
1
- {"version":3,"names":["jsx","jsxs","GpgIcon","xmlns","width","height","viewBox","children","fill","stroke","strokeWidth","strokeLinecap","strokeLinejoin","cx","cy","r","d"],"sources":["../../src/GpgIcon.tsx"],"sourcesContent":[null],"mappings":"AAYI,SAAAA,GAAA,EACAC,IAAA,QADA;AARG,MAAMC,OAAA,GAAoBA,CAAA,KAC/B,eAAAD,IAAA,CAAC;EACCE,KAAA,EAAM;EACNC,KAAA,EAAM;EACNC,MAAA,EAAO;EACPC,OAAA,EAAQ;EACR,eAAY;EAEZC,QAAA,kBAAAP,GAAA,CAAC;IAAKI,KAAA,EAAM;IAAKC,MAAA,EAAO;IAAKG,IAAA,EAAK;EAAA,CAAU,GAC5C,eAAAP,IAAA,CAAC;IAAEO,IAAA,EAAK;IAAOC,MAAA,EAAO;IAAUC,WAAA,EAAY;IAAMC,aAAA,EAAc;IAAQC,cAAA,EAAe;IACrFL,QAAA,kBAAAP,GAAA,CAAC;MAAOa,EAAA,EAAG;MAAOC,EAAA,EAAG;MAAOC,CAAA,EAAE;IAAA,CAAM,GACpC,eAAAf,GAAA,CAAC;MAAKgB,CAAA,EAAE;IAAA,CAAqB,GAC7B,eAAAhB,GAAA,CAAC;MAAKgB,CAAA,EAAE;IAAA,CAAyB;EAAA,CACnC;AAAA,CACF","ignoreList":[]}
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"}