@multiplatform.one/gpg 7.16.0 → 7.18.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/GpgIcon.cjs +55 -0
- package/dist/cjs/GpgIcon.native.js +72 -0
- package/dist/cjs/GpgIcon.native.js.map +1 -0
- package/dist/cjs/screens.cjs +9 -2
- package/dist/cjs/screens.native.js +15 -2
- package/dist/cjs/screens.native.js.map +1 -1
- package/dist/esm/GpgIcon.mjs +30 -0
- package/dist/esm/GpgIcon.mjs.map +1 -0
- package/dist/esm/GpgIcon.native.js +33 -0
- package/dist/esm/GpgIcon.native.js.map +1 -0
- package/dist/esm/screens.mjs +9 -2
- package/dist/esm/screens.mjs.map +1 -1
- package/dist/esm/screens.native.js +15 -2
- package/dist/esm/screens.native.js.map +1 -1
- package/package.json +3 -3
- package/src/GpgIcon.tsx +20 -0
- package/src/screens.tsx +11 -1
- package/types/GpgIcon.d.ts +3 -0
- package/types/GpgIcon.d.ts.map +1 -0
- package/types/screens.d.ts.map +1 -1
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: true
|
|
9
|
+
});
|
|
10
|
+
};
|
|
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;
|
|
19
|
+
};
|
|
20
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
+
value: true
|
|
22
|
+
}), mod);
|
|
23
|
+
var GpgIcon_exports = {};
|
|
24
|
+
__export(GpgIcon_exports, {
|
|
25
|
+
GpgIcon: () => GpgIcon
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(GpgIcon_exports);
|
|
28
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
29
|
+
const GpgIcon = () => /* @__PURE__ */(0, import_jsx_runtime.jsxs)("svg", {
|
|
30
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
31
|
+
width: "100%",
|
|
32
|
+
height: "100%",
|
|
33
|
+
viewBox: "0 0 32 32",
|
|
34
|
+
"aria-hidden": "true",
|
|
35
|
+
children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)("rect", {
|
|
36
|
+
width: "32",
|
|
37
|
+
height: "32",
|
|
38
|
+
fill: "#0093DD"
|
|
39
|
+
}), /* @__PURE__ */(0, import_jsx_runtime.jsxs)("g", {
|
|
40
|
+
fill: "none",
|
|
41
|
+
stroke: "#FFFFFF",
|
|
42
|
+
strokeWidth: "2.2",
|
|
43
|
+
strokeLinecap: "round",
|
|
44
|
+
strokeLinejoin: "round",
|
|
45
|
+
children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)("circle", {
|
|
46
|
+
cx: "11.5",
|
|
47
|
+
cy: "19.5",
|
|
48
|
+
r: "4.5"
|
|
49
|
+
}), /* @__PURE__ */(0, import_jsx_runtime.jsx)("path", {
|
|
50
|
+
d: "m14.7 16.3 9.3-9.3"
|
|
51
|
+
}), /* @__PURE__ */(0, import_jsx_runtime.jsx)("path", {
|
|
52
|
+
d: "m20 11 3 3 2.5-2.5-3-3"
|
|
53
|
+
})]
|
|
54
|
+
})]
|
|
55
|
+
});
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var __create = Object.create;
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __export = (target, all) => {
|
|
10
|
+
for (var name in all) __defProp(target, name, {
|
|
11
|
+
get: all[name],
|
|
12
|
+
enumerable: true
|
|
13
|
+
});
|
|
14
|
+
};
|
|
15
|
+
var __copyProps = (to, from, except, desc) => {
|
|
16
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
17
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
18
|
+
get: () => from[key],
|
|
19
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
return to;
|
|
23
|
+
};
|
|
24
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
25
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
26
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
27
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
28
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
29
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
30
|
+
value: mod,
|
|
31
|
+
enumerable: true
|
|
32
|
+
}) : target, mod));
|
|
33
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
34
|
+
value: true
|
|
35
|
+
}), mod);
|
|
36
|
+
var GpgIcon_exports = {};
|
|
37
|
+
__export(GpgIcon_exports, {
|
|
38
|
+
GpgIcon: () => GpgIcon
|
|
39
|
+
});
|
|
40
|
+
module.exports = __toCommonJS(GpgIcon_exports);
|
|
41
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
42
|
+
var import_react = __toESM(require("react"));
|
|
43
|
+
var GpgIcon = function GpgIcon2() {
|
|
44
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsxs)("svg", {
|
|
45
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
46
|
+
width: "100%",
|
|
47
|
+
height: "100%",
|
|
48
|
+
viewBox: "0 0 32 32",
|
|
49
|
+
"aria-hidden": "true",
|
|
50
|
+
children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)("rect", {
|
|
51
|
+
width: "32",
|
|
52
|
+
height: "32",
|
|
53
|
+
fill: "#0093DD"
|
|
54
|
+
}), /* @__PURE__ */(0, import_jsx_runtime.jsxs)("g", {
|
|
55
|
+
fill: "none",
|
|
56
|
+
stroke: "#FFFFFF",
|
|
57
|
+
strokeWidth: "2.2",
|
|
58
|
+
strokeLinecap: "round",
|
|
59
|
+
strokeLinejoin: "round",
|
|
60
|
+
children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)("circle", {
|
|
61
|
+
cx: "11.5",
|
|
62
|
+
cy: "19.5",
|
|
63
|
+
r: "4.5"
|
|
64
|
+
}), /* @__PURE__ */(0, import_jsx_runtime.jsx)("path", {
|
|
65
|
+
d: "m14.7 16.3 9.3-9.3"
|
|
66
|
+
}), /* @__PURE__ */(0, import_jsx_runtime.jsx)("path", {
|
|
67
|
+
d: "m20 11 3 3 2.5-2.5-3-3"
|
|
68
|
+
})]
|
|
69
|
+
})]
|
|
70
|
+
});
|
|
71
|
+
};
|
|
72
|
+
//# sourceMappingURL=GpgIcon.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["__create","Object","create","__defProp","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__getProtoOf","getPrototypeOf","__hasOwnProp","prototype","hasOwnProperty","__export","target","all","name","get","enumerable","__copyProps","to","from","except","desc","key","call","__toESM","mod","isNodeMode","__esModule","value","__toCommonJS","GpgIcon_exports","GpgIcon","module","exports","import_jsx_runtime","require","import_react","GpgIcon2","jsxs","xmlns","width","height","viewBox","children","jsx","fill","stroke","strokeWidth","strokeLinecap","strokeLinejoin","cx","cy","r","d"],"sources":["GpgIcon.native.js"],"sourcesContent":["\"use strict\";\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\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 __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar GpgIcon_exports = {};\n__export(GpgIcon_exports, {\n GpgIcon: () => GpgIcon\n});\nmodule.exports = __toCommonJS(GpgIcon_exports);\nvar import_jsx_runtime = require(\"react/jsx-runtime\");\nvar import_react = __toESM(require(\"react\"));\nvar GpgIcon = function GpgIcon2() {\n return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(\"svg\", {\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__ */ (0, import_jsx_runtime.jsx)(\"rect\", {\n width: \"32\",\n height: \"32\",\n fill: \"#0093DD\"\n }),\n /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(\"g\", {\n fill: \"none\",\n stroke: \"#FFFFFF\",\n strokeWidth: \"2.2\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\",\n children: [\n /* @__PURE__ */ (0, import_jsx_runtime.jsx)(\"circle\", {\n cx: \"11.5\",\n cy: \"19.5\",\n r: \"4.5\"\n }),\n /* @__PURE__ */ (0, import_jsx_runtime.jsx)(\"path\", {\n d: \"m14.7 16.3 9.3-9.3\"\n }),\n /* @__PURE__ */ (0, import_jsx_runtime.jsx)(\"path\", {\n d: \"m20 11 3 3 2.5-2.5-3-3\"\n })\n ]\n })\n ]\n });\n};\n//# sourceMappingURL=GpgIcon.js.map\n"],"mappings":"AAAA,YAAY;;AACZ,IAAIA,QAAQ,GAAGC,MAAM,CAACC,MAAM;AAC5B,IAAIC,SAAS,GAAGF,MAAM,CAACG,cAAc;AACrC,IAAIC,gBAAgB,GAAGJ,MAAM,CAACK,wBAAwB;AACtD,IAAIC,iBAAiB,GAAGN,MAAM,CAACO,mBAAmB;AAClD,IAAIC,YAAY,GAAGR,MAAM,CAACS,cAAc;AACxC,IAAIC,YAAY,GAAGV,MAAM,CAACW,SAAS,CAACC,cAAc;AAClD,IAAIC,QAAQ,GAAGA,CAACC,MAAM,EAAEC,GAAG,KAAK;EAC9B,KAAK,IAAIC,IAAI,IAAID,GAAG,EAClBb,SAAS,CAACY,MAAM,EAAEE,IAAI,EAAE;IAAEC,GAAG,EAAEF,GAAG,CAACC,IAAI,CAAC;IAAEE,UAAU,EAAE;EAAK,CAAC,CAAC;AACjE,CAAC;AACD,IAAIC,WAAW,GAAGA,CAACC,EAAE,EAAEC,IAAI,EAAEC,MAAM,EAAEC,IAAI,KAAK;EAC5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screens.cjs
CHANGED
|
@@ -42,14 +42,21 @@ var import_connectkit = require("@multiplatform.one/connectkit");
|
|
|
42
42
|
var import_react = require("react");
|
|
43
43
|
var import_SignInWithGpg = __toESM(require("./SignInWithGpg.cjs"));
|
|
44
44
|
var import_GpgContext = require("./GpgContext.cjs");
|
|
45
|
+
var import_GpgIcon = require("./GpgIcon.cjs");
|
|
45
46
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
46
47
|
const gpgScreen = {
|
|
47
48
|
id: import_connectkit.routes.SIGNINWITHGPG,
|
|
48
49
|
component: import_SignInWithGpg.default,
|
|
49
50
|
heading: "Sign in with GPG",
|
|
50
51
|
availableWhen: () => true,
|
|
51
|
-
showBack: false,
|
|
52
|
-
|
|
52
|
+
showBack: state => state.connected === false,
|
|
53
|
+
onBack: api => api.setRoute(import_connectkit.routes.CONNECTORS),
|
|
54
|
+
showInfo: false,
|
|
55
|
+
listEntry: {
|
|
56
|
+
name: "GPG",
|
|
57
|
+
icon: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_GpgIcon.GpgIcon, {}),
|
|
58
|
+
visibleWhen: state => !!state.signInWithGpg
|
|
59
|
+
}
|
|
53
60
|
};
|
|
54
61
|
const GpgScreenRegistrar = () => {
|
|
55
62
|
(0, import_connectkit.useRegisterScreens)([gpgScreen]);
|
|
@@ -46,6 +46,7 @@ var import_connectkit = require("@multiplatform.one/connectkit");
|
|
|
46
46
|
var import_react2 = require("react");
|
|
47
47
|
var import_SignInWithGpg = __toESM(require("./SignInWithGpg.native.js"));
|
|
48
48
|
var import_GpgContext = require("./GpgContext.native.js");
|
|
49
|
+
var import_GpgIcon = require("./GpgIcon.native.js");
|
|
49
50
|
var gpgScreen = {
|
|
50
51
|
id: import_connectkit.routes.SIGNINWITHGPG,
|
|
51
52
|
component: import_SignInWithGpg.default,
|
|
@@ -53,8 +54,20 @@ var gpgScreen = {
|
|
|
53
54
|
availableWhen: function availableWhen() {
|
|
54
55
|
return true;
|
|
55
56
|
},
|
|
56
|
-
showBack:
|
|
57
|
-
|
|
57
|
+
showBack: function showBack(state) {
|
|
58
|
+
return state.connected === false;
|
|
59
|
+
},
|
|
60
|
+
onBack: function onBack(api) {
|
|
61
|
+
return api.setRoute(import_connectkit.routes.CONNECTORS);
|
|
62
|
+
},
|
|
63
|
+
showInfo: false,
|
|
64
|
+
listEntry: {
|
|
65
|
+
name: "GPG",
|
|
66
|
+
icon: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_GpgIcon.GpgIcon, {}),
|
|
67
|
+
visibleWhen: function visibleWhen(state) {
|
|
68
|
+
return !!state.signInWithGpg;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
58
71
|
};
|
|
59
72
|
var GpgScreenRegistrar = function GpgScreenRegistrar2() {
|
|
60
73
|
(0, import_connectkit.useRegisterScreens)([gpgScreen]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["__create","Object","create","__defProp","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__getProtoOf","getPrototypeOf","__hasOwnProp","prototype","hasOwnProperty","__export","target","all","name","get","enumerable","__copyProps","to","from","except","desc","key","call","__toESM","mod","isNodeMode","__esModule","value","__toCommonJS","screens_exports","GpgBridge","GpgScreenRegistrar","gpgScreen","module","exports","import_jsx_runtime","require","import_react","import_connectkit","import_react2","import_SignInWithGpg","import_GpgContext","id","routes","SIGNINWITHGPG","component","default","heading","availableWhen","showBack","showInfo","GpgScreenRegistrar2","useRegisterScreens","GpgBridge2","param","children","_ref","_useReactContext","
|
|
1
|
+
{"version":3,"names":["__create","Object","create","__defProp","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__getProtoOf","getPrototypeOf","__hasOwnProp","prototype","hasOwnProperty","__export","target","all","name","get","enumerable","__copyProps","to","from","except","desc","key","call","__toESM","mod","isNodeMode","__esModule","value","__toCommonJS","screens_exports","GpgBridge","GpgScreenRegistrar","gpgScreen","module","exports","import_jsx_runtime","require","import_react","import_connectkit","import_react2","import_SignInWithGpg","import_GpgContext","import_GpgIcon","id","routes","SIGNINWITHGPG","component","default","heading","availableWhen","showBack","state","connected","onBack","api","setRoute","CONNECTORS","showInfo","listEntry","icon","jsx","GpgIcon","visibleWhen","signInWithGpg","GpgScreenRegistrar2","useRegisterScreens","GpgBridge2","param","children","_ref","_useReactContext","useContext","GpgContext","enabled","jsxs","Fragment","ModalStateProvider"],"sources":["screens.native.js"],"sourcesContent":["\"use strict\";\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\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 __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar screens_exports = {};\n__export(screens_exports, {\n GpgBridge: () => GpgBridge,\n GpgScreenRegistrar: () => GpgScreenRegistrar,\n gpgScreen: () => gpgScreen\n});\nmodule.exports = __toCommonJS(screens_exports);\nvar import_jsx_runtime = require(\"react/jsx-runtime\");\nvar import_react = __toESM(require(\"react\"));\nvar import_connectkit = require(\"@multiplatform.one/connectkit\");\nvar import_react2 = require(\"react\");\nvar import_SignInWithGpg = __toESM(require(\"./SignInWithGpg\"));\nvar import_GpgContext = require(\"./GpgContext\");\nvar import_GpgIcon = require(\"./GpgIcon\");\nvar gpgScreen = {\n id: import_connectkit.routes.SIGNINWITHGPG,\n component: import_SignInWithGpg.default,\n heading: \"Sign in with GPG\",\n availableWhen: function availableWhen() {\n return true;\n },\n showBack: function showBack(state) {\n return state.connected === false;\n },\n onBack: function onBack(api) {\n return api.setRoute(import_connectkit.routes.CONNECTORS);\n },\n showInfo: false,\n listEntry: {\n name: \"GPG\",\n icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_GpgIcon.GpgIcon, {}),\n visibleWhen: function visibleWhen(state) {\n return !!state.signInWithGpg;\n }\n }\n};\nvar GpgScreenRegistrar = function GpgScreenRegistrar2() {\n (0, import_connectkit.useRegisterScreens)([\n gpgScreen\n ]);\n return null;\n};\nvar GpgBridge = function GpgBridge2(param) {\n var { children } = param;\n var _ref;\n var _useReactContext;\n var signInWithGpg = (_ref = (_useReactContext = (0, import_react2.useContext)(import_GpgContext.GpgContext)) === null || _useReactContext === void 0 ? void 0 : _useReactContext.enabled) !== null && _ref !== void 0 ? _ref : true;\n return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {\n children: [\n /* @__PURE__ */ (0, import_jsx_runtime.jsx)(GpgScreenRegistrar, {}),\n /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_connectkit.ModalStateProvider, {\n value: {\n signInWithGpg\n },\n children\n })\n ]\n });\n};\n//# sourceMappingURL=screens.js.map\n"],"mappings":"AAAA,YAAY;;AACZ,IAAIA,QAAQ,GAAGC,MAAM,CAACC,MAAM;AAC5B,IAAIC,SAAS,GAAGF,MAAM,CAACG,cAAc;AACrC,IAAIC,gBAAgB,GAAGJ,MAAM,CAACK,wBAA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C,QAAQ,EAAE;IAC/EP,QAAQ,EAAE,CACR,eAAgB,CAAC,CAAC,EAAEjC,kBAAkB,CAACyB,GAAG,EAAE7B,kBAAkB,EAAE,CAAC,CAAC,CAAC,EACnE,eAAgB,CAAC,CAAC,EAAEI,kBAAkB,CAACyB,GAAG,EAAEtB,iBAAiB,CAACsC,kBAAkB,EAAE;MAChFjD,KAAK,EAAE;QACLoC;MACF,CAAC;MACDK;IACF,CAAC,CAAC;EAEN,CAAC,CAAC;AACJ,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
})]
|
|
28
|
+
});
|
|
29
|
+
export { GpgIcon };
|
|
30
|
+
//# sourceMappingURL=GpgIcon.mjs.map
|
|
@@ -0,0 +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":[]}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import React from "react";
|
|
3
|
+
var GpgIcon = function GpgIcon2() {
|
|
4
|
+
return /* @__PURE__ */_jsxs("svg", {
|
|
5
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6
|
+
width: "100%",
|
|
7
|
+
height: "100%",
|
|
8
|
+
viewBox: "0 0 32 32",
|
|
9
|
+
"aria-hidden": "true",
|
|
10
|
+
children: [/* @__PURE__ */_jsx("rect", {
|
|
11
|
+
width: "32",
|
|
12
|
+
height: "32",
|
|
13
|
+
fill: "#0093DD"
|
|
14
|
+
}), /* @__PURE__ */_jsxs("g", {
|
|
15
|
+
fill: "none",
|
|
16
|
+
stroke: "#FFFFFF",
|
|
17
|
+
strokeWidth: "2.2",
|
|
18
|
+
strokeLinecap: "round",
|
|
19
|
+
strokeLinejoin: "round",
|
|
20
|
+
children: [/* @__PURE__ */_jsx("circle", {
|
|
21
|
+
cx: "11.5",
|
|
22
|
+
cy: "19.5",
|
|
23
|
+
r: "4.5"
|
|
24
|
+
}), /* @__PURE__ */_jsx("path", {
|
|
25
|
+
d: "m14.7 16.3 9.3-9.3"
|
|
26
|
+
}), /* @__PURE__ */_jsx("path", {
|
|
27
|
+
d: "m20 11 3 3 2.5-2.5-3-3"
|
|
28
|
+
})]
|
|
29
|
+
})]
|
|
30
|
+
});
|
|
31
|
+
};
|
|
32
|
+
export { GpgIcon };
|
|
33
|
+
//# sourceMappingURL=GpgIcon.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["jsx","_jsx","jsxs","_jsxs","React","GpgIcon","GpgIcon2","xmlns","width","height","viewBox","children","fill","stroke","strokeWidth"],"sources":["../../src/GpgIcon.tsx"],"sourcesContent":[null],"mappings":"AAYI,SAAAA,GAAA,IACAC,IAAA,EAAAC,IADA,IAAAC,KAAA;AARG,OAAMC,KAAA,MAAoB,OAC/B;AAAA,IAACC,OAAA,YAAAC,SAAA;EAAA,sBAAAH,KAAA;IACCI,KAAA,EAAM;IACNC,KAAA,EAAM;IACNC,MAAA,EAAO;IACPC,OAAA,EAAQ;IACR,eAAY;IAEZC,QAAA,kBAAAV,IAAC;MACDO,KAAA;MACEC,MAAA;MACAG,IAAA;IAA6B,EAC7B,EAAiC,eACnCT,KAAA;MAAAS,IAAA;MAAAC,MAAA;MACFC,WAAA","ignoreList":[]}
|
package/dist/esm/screens.mjs
CHANGED
|
@@ -2,14 +2,21 @@ import { ModalStateProvider, routes, useRegisterScreens } from "@multiplatform.o
|
|
|
2
2
|
import { useContext as useReactContext } from "react";
|
|
3
3
|
import SignInWithGpg from "./SignInWithGpg.mjs";
|
|
4
4
|
import { GpgContext } from "./GpgContext.mjs";
|
|
5
|
+
import { GpgIcon } from "./GpgIcon.mjs";
|
|
5
6
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
6
7
|
const gpgScreen = {
|
|
7
8
|
id: routes.SIGNINWITHGPG,
|
|
8
9
|
component: SignInWithGpg,
|
|
9
10
|
heading: "Sign in with GPG",
|
|
10
11
|
availableWhen: () => true,
|
|
11
|
-
showBack: false,
|
|
12
|
-
|
|
12
|
+
showBack: state => state.connected === false,
|
|
13
|
+
onBack: api => api.setRoute(routes.CONNECTORS),
|
|
14
|
+
showInfo: false,
|
|
15
|
+
listEntry: {
|
|
16
|
+
name: "GPG",
|
|
17
|
+
icon: /* @__PURE__ */jsx(GpgIcon, {}),
|
|
18
|
+
visibleWhen: state => !!state.signInWithGpg
|
|
19
|
+
}
|
|
13
20
|
};
|
|
14
21
|
const GpgScreenRegistrar = () => {
|
|
15
22
|
useRegisterScreens([gpgScreen]);
|
package/dist/esm/screens.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["ModalStateProvider","routes","useRegisterScreens","useContext","useReactContext","SignInWithGpg","GpgContext","Fragment","jsx","jsxs","gpgScreen","id","SIGNINWITHGPG","component","heading","availableWhen","showBack","showInfo","
|
|
1
|
+
{"version":3,"names":["ModalStateProvider","routes","useRegisterScreens","useContext","useReactContext","SignInWithGpg","GpgContext","GpgIcon","Fragment","jsx","jsxs","gpgScreen","id","SIGNINWITHGPG","component","heading","availableWhen","showBack","state","connected","onBack","api","setRoute","CONNECTORS","showInfo","listEntry","name","icon","visibleWhen","signInWithGpg","GpgScreenRegistrar","GpgBridge","children","enabled","value"],"sources":["../../src/screens.tsx"],"sourcesContent":[null],"mappings":"AACA,SACEA,kBAAA,EACAC,MAAA,EACAC,kBAAA,QAGK;AACP,SAASC,UAAA,IAAcC,eAAA,QAAuB;AAC9C,OAAOC,aAAA,MAAmB;AAC1B,SAASC,UAAA,QAAkB;AAC3B,SAASC,OAAA,QAAe;AAiBd,SA0BNC,QAAA,EA1BMC,GAAA,EA0BNC,IAAA,QA1BM;AAVH,MAAMC,SAAA,GAAuB;EAClCC,EAAA,EAAIX,MAAA,CAAOY,aAAA;EACXC,SAAA,EAAWT,aAAA;EACXU,OAAA,EAAS;EACTC,aAAA,EAAeA,CAAA,KAAM;EACrBC,QAAA,EAAWC,KAAA,IAAUA,KAAA,CAAMC,SAAA,KAAc;EACzCC,MAAA,EAASC,GAAA,IAAQA,GAAA,CAAIC,QAAA,CAASrB,MAAA,CAAOsB,UAAU;EAC/CC,QAAA,EAAU;EACVC,SAAA,EAAW;IACTC,IAAA,EAAM;IACNC,IAAA,EAAM,eAAAlB,GAAA,CAACF,OAAA,IAAQ;IACfqB,WAAA,EAAcV,KAAA,IAAU,CAAC,CAACA,KAAA,CAAMW;EAClC;AACF;AAOO,MAAMC,kBAAA,GAA+BA,CAAA,KAAM;EAChD5B,kBAAA,CAAmB,CAACS,SAAS,CAAC;EAC9B,OAAO;AACT;AAQO,MAAMoB,SAAA,GAA6EA,CAAC;EACzFC;AACF,MAAM;EACJ,MAAMH,aAAA,GAAgBzB,eAAA,CAAgBE,UAAU,GAAG2B,OAAA,IAAW;EAC9D,OACE,eAAAvB,IAAA,CAAAF,QAAA;IACEwB,QAAA,kBAAAvB,GAAA,CAACqB,kBAAA,IAAmB,GACpB,eAAArB,GAAA,CAACT,kBAAA;MAAmBkC,KAAA,EAAO;QAAEL;MAAc;MAAIG;IAAA,CAAS;EAAA,CAC1D;AAEJ","ignoreList":[]}
|
|
@@ -4,6 +4,7 @@ import { ModalStateProvider, routes, useRegisterScreens } from "@multiplatform.o
|
|
|
4
4
|
import { useContext as useReactContext } from "react";
|
|
5
5
|
import SignInWithGpg from "./SignInWithGpg.native.js";
|
|
6
6
|
import { GpgContext } from "./GpgContext.native.js";
|
|
7
|
+
import { GpgIcon } from "./GpgIcon.native.js";
|
|
7
8
|
var gpgScreen = {
|
|
8
9
|
id: routes.SIGNINWITHGPG,
|
|
9
10
|
component: SignInWithGpg,
|
|
@@ -11,8 +12,20 @@ var gpgScreen = {
|
|
|
11
12
|
availableWhen: function availableWhen() {
|
|
12
13
|
return true;
|
|
13
14
|
},
|
|
14
|
-
showBack:
|
|
15
|
-
|
|
15
|
+
showBack: function showBack(state) {
|
|
16
|
+
return state.connected === false;
|
|
17
|
+
},
|
|
18
|
+
onBack: function onBack(api) {
|
|
19
|
+
return api.setRoute(routes.CONNECTORS);
|
|
20
|
+
},
|
|
21
|
+
showInfo: false,
|
|
22
|
+
listEntry: {
|
|
23
|
+
name: "GPG",
|
|
24
|
+
icon: /* @__PURE__ */_jsx(GpgIcon, {}),
|
|
25
|
+
visibleWhen: function visibleWhen(state) {
|
|
26
|
+
return !!state.signInWithGpg;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
16
29
|
};
|
|
17
30
|
var GpgScreenRegistrar = function GpgScreenRegistrar2() {
|
|
18
31
|
useRegisterScreens([gpgScreen]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","React","ModalStateProvider","routes","useRegisterScreens","useContext","useReactContext","SignInWithGpg","GpgContext","gpgScreen","id","SIGNINWITHGPG","component","heading","availableWhen","showBack","
|
|
1
|
+
{"version":3,"names":["jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","React","ModalStateProvider","routes","useRegisterScreens","useContext","useReactContext","SignInWithGpg","GpgContext","GpgIcon","gpgScreen","id","SIGNINWITHGPG","component","heading","availableWhen","showBack","state","connected","onBack","api","setRoute","CONNECTORS","showInfo","listEntry","name","icon","visibleWhen","signInWithGpg","GpgScreenRegistrar","GpgScreenRegistrar2","GpgBridge","GpgBridge2","param","children"],"sources":["../../src/screens.tsx"],"sourcesContent":[null],"mappings":"AACA,SAAAA,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA,EAAAC,QAAA,IAAAC,SAAA;AAAA,OACEC,KAAA;AAAA,SACAC,kBAAA,EAAAC,MAAA,EAAAC,kBAAA;AAAA,SACAC,UAAA,IAAAC,eAAA;AAAA,OAGKC,aAAA;AACP,SAASC,UAAA,QAAc;AACvB,SAAOC,OAAA,6BAAmB;AAC1B,IAAAC,SAAS;EACTC,EAAA,EAAAR,MAAS,CAAAS,aAAe;EAiBdC,SA0BN,EAAAN,aAAA;EApCGO,OAAM,oBAAuB;EAClCC,aAAW,WAAAA,cAAA;IACX,WAAW;EACX;EACAC,QAAA,WAAeA,QAAMA,CAAAC,KAAA;IACrB,OAAAA,KAAW,CAAAC,SAAU,KAAM;EAC3B;EACAC,MAAA,WAAUA,OAAAC,GAAA;IACV,OAAAA,GAAW,CAAAC,QAAA,CAAAlB,MAAA,CAAAmB,UAAA;EAAA;EACHC,QACA;EAASC,SACf;IACFC,IAAA;IACFC,IAAA,iBAAA9B,IAAA,CAAAa,OAAA;IAOOkB,WAAM,WAAAA,WAAqCA,CAAAV,KAAA;MAChD,SAAAA,KAAA,CAAmBW,aAAW;IAC9B;EACF;AAQO;AAAoF,IACzFC,kBAAA,YAAAC,oBAAA;EACF1B,kBAAM,EACJM,SAAM,CACN;EAEI;AAAoB;AACoC,IAAAqB,SAC1D,YAAAC,WAAAC,KAAA;EAEJ;IAAAC;EAAA,IAAAD,KAAA","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@multiplatform.one/gpg",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.18.0",
|
|
4
4
|
"description": "Sign-In With GPG (SIWG) screen + GpgProvider for the connectkit modal — no viem",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"connectkit",
|
|
@@ -55,10 +55,10 @@
|
|
|
55
55
|
"access": "public"
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@multiplatform.one/connectkit": "7.
|
|
58
|
+
"@multiplatform.one/connectkit": "7.18.0"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
|
-
"@multiplatform.one/config": "7.
|
|
61
|
+
"@multiplatform.one/config": "7.18.0",
|
|
62
62
|
"@tamagui/build": "2.7.6",
|
|
63
63
|
"react": "19.2.5",
|
|
64
64
|
"typescript": "~5.9.3"
|
package/src/GpgIcon.tsx
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
|
|
3
|
+
// The GPG row's icon in the wallet list: a key on GnuPG blue, filling the row's
|
|
4
|
+
// icon box like the wallet logos beside it.
|
|
5
|
+
export const GpgIcon: React.FC = () => (
|
|
6
|
+
<svg
|
|
7
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
8
|
+
width="100%"
|
|
9
|
+
height="100%"
|
|
10
|
+
viewBox="0 0 32 32"
|
|
11
|
+
aria-hidden="true"
|
|
12
|
+
>
|
|
13
|
+
<rect width="32" height="32" fill="#0093DD" />
|
|
14
|
+
<g fill="none" stroke="#FFFFFF" strokeWidth="2.2" strokeLinecap="round" strokeLinejoin="round">
|
|
15
|
+
<circle cx="11.5" cy="19.5" r="4.5" />
|
|
16
|
+
<path d="m14.7 16.3 9.3-9.3" />
|
|
17
|
+
<path d="m20 11 3 3 2.5-2.5-3-3" />
|
|
18
|
+
</g>
|
|
19
|
+
</svg>
|
|
20
|
+
);
|
package/src/screens.tsx
CHANGED
|
@@ -9,16 +9,26 @@ import {
|
|
|
9
9
|
import { useContext as useReactContext } from "react";
|
|
10
10
|
import SignInWithGpg from "./SignInWithGpg";
|
|
11
11
|
import { GpgContext } from "./GpgContext";
|
|
12
|
+
import { GpgIcon } from "./GpgIcon";
|
|
12
13
|
|
|
13
14
|
// The GPG screen contributed to connectkit's signer-agnostic modal. GPG has no
|
|
14
15
|
// connect step, so it's available in both connected and disconnected states.
|
|
16
|
+
// With a wallet bridge it is also a row in the wallet list, next to MetaMask and
|
|
17
|
+
// Phantom, and while disconnected its back chevron returns to that list. A
|
|
18
|
+
// gpg-only host has no list (no `connected` in its state), so no back there.
|
|
15
19
|
export const gpgScreen: ScreenDef = {
|
|
16
20
|
id: routes.SIGNINWITHGPG,
|
|
17
21
|
component: SignInWithGpg,
|
|
18
22
|
heading: "Sign in with GPG",
|
|
19
23
|
availableWhen: () => true,
|
|
20
|
-
showBack: false,
|
|
24
|
+
showBack: (state) => state.connected === false,
|
|
25
|
+
onBack: (api) => api.setRoute(routes.CONNECTORS),
|
|
21
26
|
showInfo: false,
|
|
27
|
+
listEntry: {
|
|
28
|
+
name: "GPG",
|
|
29
|
+
icon: <GpgIcon />,
|
|
30
|
+
visibleWhen: (state) => !!state.signInWithGpg,
|
|
31
|
+
},
|
|
22
32
|
};
|
|
23
33
|
|
|
24
34
|
/**
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GpgIcon.d.ts","sourceRoot":"","sources":["../src/GpgIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAe3B,CAAC"}
|
package/types/screens.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"screens.d.ts","sourceRoot":"","sources":["../src/screens.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAIL,KAAK,oBAAoB,EACzB,KAAK,SAAS,EACf,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"screens.d.ts","sourceRoot":"","sources":["../src/screens.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAIL,KAAK,oBAAoB,EACzB,KAAK,SAAS,EACf,MAAM,+BAA+B,CAAC;AAWvC,eAAO,MAAM,SAAS,EAAE,SAavB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAGtC,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,GAAG,oBAAoB,CAUrF,CAAC"}
|