@fireproof/use-fireproof 0.0.0-smoke-b310d20f-1765361723
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/LICENSE.md +201 -0
- package/README.md +269 -0
- package/iframe-strategy.d.ts +15 -0
- package/iframe-strategy.js +82 -0
- package/iframe-strategy.js.map +1 -0
- package/index.d.ts +14 -0
- package/index.js +46 -0
- package/index.js.map +1 -0
- package/package.json +49 -0
- package/react/img-file.d.ts +302 -0
- package/react/img-file.js +133 -0
- package/react/img-file.js.map +1 -0
- package/react/index.d.ts +4 -0
- package/react/index.js +5 -0
- package/react/index.js.map +1 -0
- package/react/types.d.ts +90 -0
- package/react/types.js +2 -0
- package/react/types.js.map +1 -0
- package/react/use-all-docs.d.ts +3 -0
- package/react/use-all-docs.js +35 -0
- package/react/use-all-docs.js.map +1 -0
- package/react/use-attach.d.ts +11 -0
- package/react/use-attach.js +181 -0
- package/react/use-attach.js.map +1 -0
- package/react/use-changes.d.ts +3 -0
- package/react/use-changes.js +30 -0
- package/react/use-changes.js.map +1 -0
- package/react/use-document.d.ts +3 -0
- package/react/use-document.js +136 -0
- package/react/use-document.js.map +1 -0
- package/react/use-fireproof.d.ts +5 -0
- package/react/use-fireproof.js +20 -0
- package/react/use-fireproof.js.map +1 -0
- package/react/use-live-query.d.ts +3 -0
- package/react/use-live-query.js +34 -0
- package/react/use-live-query.js.map +1 -0
- package/redirect-strategy.d.ts +25 -0
- package/redirect-strategy.js +177 -0
- package/redirect-strategy.js.map +1 -0
- package/tsconfig.json +18 -0
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
import { BuildURI, Lazy } from "@adviser/cement";
|
|
2
|
+
import { decodeJwt } from "jose";
|
|
3
|
+
import DOMPurify from "dompurify";
|
|
4
|
+
import { Api } from "@fireproof/core-protocols-dashboard";
|
|
5
|
+
import { WebCtx } from "./react/use-attach.js";
|
|
6
|
+
import { hashObjectSync } from "@fireproof/core-runtime";
|
|
7
|
+
function defaultOverlayHtml(redirectLink) {
|
|
8
|
+
return `
|
|
9
|
+
<div class="fpOverlayContent">
|
|
10
|
+
<div class="fpCloseButton">×</div>
|
|
11
|
+
Fireproof Dashboard
|
|
12
|
+
Sign in to Fireproof Dashboard
|
|
13
|
+
<a href="${redirectLink}" target="_blank">Redirect to Fireproof</a>
|
|
14
|
+
</div>
|
|
15
|
+
`;
|
|
16
|
+
}
|
|
17
|
+
const defaultOverlayCss = `
|
|
18
|
+
.fpContainer {
|
|
19
|
+
position: relative; /* Needed for absolute positioning of the overlay */
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.fpOverlay {
|
|
23
|
+
display: none; /* Initially hidden */
|
|
24
|
+
position: fixed; /* Covers the whole viewport */
|
|
25
|
+
top: 0;
|
|
26
|
+
left: 0;
|
|
27
|
+
width: 100%;
|
|
28
|
+
height: 100%;
|
|
29
|
+
background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
|
|
30
|
+
z-index: 1; /* Ensure it's on top of other content */
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.fpOverlayContent {
|
|
34
|
+
position: absolute;
|
|
35
|
+
// width: calc(100vw - 50px);
|
|
36
|
+
// height: calc(100vh - 50px);
|
|
37
|
+
top: 50%;
|
|
38
|
+
left: 50%;
|
|
39
|
+
transform: translate(-50%, -50%); /* Center the content */
|
|
40
|
+
// transform: translate(0%, 0%); /* Center the content */
|
|
41
|
+
background-color: white;
|
|
42
|
+
color: black;
|
|
43
|
+
// margin: 10px;
|
|
44
|
+
padding: 20px;
|
|
45
|
+
border-radius: 5px;
|
|
46
|
+
box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.fpCloseButton {
|
|
50
|
+
position: absolute;
|
|
51
|
+
top: 10px;
|
|
52
|
+
right: 15px;
|
|
53
|
+
font-size: 20px;
|
|
54
|
+
cursor: pointer;
|
|
55
|
+
}
|
|
56
|
+
`;
|
|
57
|
+
export class RedirectStrategy {
|
|
58
|
+
resultId;
|
|
59
|
+
overlayNode;
|
|
60
|
+
waitState = "stopped";
|
|
61
|
+
overlayCss;
|
|
62
|
+
overlayHtml;
|
|
63
|
+
constructor(opts = {}) {
|
|
64
|
+
this.overlayCss = opts.overlayCss ?? defaultOverlayCss;
|
|
65
|
+
this.overlayHtml = opts.overlayHtml ?? defaultOverlayHtml;
|
|
66
|
+
}
|
|
67
|
+
hash = Lazy(() => hashObjectSync({
|
|
68
|
+
overlayCss: this.overlayCss,
|
|
69
|
+
overlayHtml: this.overlayHtml("X").toString(),
|
|
70
|
+
}));
|
|
71
|
+
open(sthis, logger, deviceId, opts) {
|
|
72
|
+
const redirectCtx = opts.context.get(WebCtx);
|
|
73
|
+
logger.Debug().Url(redirectCtx.dashboardURI).Msg("open redirect");
|
|
74
|
+
this.resultId = sthis.nextId().str;
|
|
75
|
+
const url = BuildURI.from(redirectCtx.dashboardURI)
|
|
76
|
+
.setParam("back_url", window.location.href)
|
|
77
|
+
.setParam("result_id", this.resultId)
|
|
78
|
+
.setParam("local_ledger_name", deviceId);
|
|
79
|
+
if (opts.ledger) {
|
|
80
|
+
url.setParam("ledger", opts.ledger);
|
|
81
|
+
}
|
|
82
|
+
if (opts.tenant) {
|
|
83
|
+
url.setParam("tenant", opts.tenant);
|
|
84
|
+
}
|
|
85
|
+
let overlayNode = document.body.querySelector("#fpOverlay");
|
|
86
|
+
if (!overlayNode) {
|
|
87
|
+
const styleNode = document.createElement("style");
|
|
88
|
+
styleNode.innerHTML = DOMPurify.sanitize(this.overlayCss);
|
|
89
|
+
document.head.appendChild(styleNode);
|
|
90
|
+
overlayNode = document.createElement("div");
|
|
91
|
+
overlayNode.id = "fpOverlay";
|
|
92
|
+
overlayNode.className = "fpOverlay";
|
|
93
|
+
overlayNode.innerHTML = DOMPurify.sanitize(this.overlayHtml(url.toString()));
|
|
94
|
+
document.body.appendChild(overlayNode);
|
|
95
|
+
overlayNode.querySelector(".fpCloseButton")?.addEventListener("click", () => {
|
|
96
|
+
if (overlayNode) {
|
|
97
|
+
if (overlayNode.style.display === "block") {
|
|
98
|
+
overlayNode.style.display = "none";
|
|
99
|
+
this.stop();
|
|
100
|
+
}
|
|
101
|
+
else {
|
|
102
|
+
overlayNode.style.display = "block";
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
overlayNode.style.display = "block";
|
|
108
|
+
this.overlayNode = overlayNode;
|
|
109
|
+
const width = 800;
|
|
110
|
+
const height = 600;
|
|
111
|
+
const parentScreenX = window.screenX || window.screenLeft;
|
|
112
|
+
const parentScreenY = window.screenY || window.screenTop;
|
|
113
|
+
const parentOuterWidth = window.outerWidth;
|
|
114
|
+
const parentOuterHeight = window.outerHeight;
|
|
115
|
+
const left = parentScreenX + parentOuterWidth / 2 - width / 2;
|
|
116
|
+
const top = parentScreenY + parentOuterHeight / 2 - height / 2;
|
|
117
|
+
window.open(url.asURL(), "Fireproof Login", `left=${left},top=${top},width=${width},height=${height},scrollbars=yes,resizable=yes,popup=yes`);
|
|
118
|
+
}
|
|
119
|
+
currentToken;
|
|
120
|
+
waiting;
|
|
121
|
+
stop() {
|
|
122
|
+
if (this.waiting) {
|
|
123
|
+
clearTimeout(this.waiting);
|
|
124
|
+
this.waiting = undefined;
|
|
125
|
+
}
|
|
126
|
+
this.waitState = "stopped";
|
|
127
|
+
}
|
|
128
|
+
async tryToken(sthis, logger, opts) {
|
|
129
|
+
if (!this.currentToken) {
|
|
130
|
+
const webCtx = opts.context.get(WebCtx);
|
|
131
|
+
this.currentToken = await webCtx.token();
|
|
132
|
+
// console.log("RedirectStrategy tryToken - ctx", this.currentToken);
|
|
133
|
+
}
|
|
134
|
+
return this.currentToken;
|
|
135
|
+
}
|
|
136
|
+
async getTokenAndClaimsByResultId(logger, dashApi, resultId, opts, resolve, attempts = 0) {
|
|
137
|
+
if (!resultId) {
|
|
138
|
+
return logger.Error().Msg("No resultId");
|
|
139
|
+
}
|
|
140
|
+
if (this.waitState !== "started") {
|
|
141
|
+
return;
|
|
142
|
+
}
|
|
143
|
+
if (attempts * opts.intervalSec > opts.tokenWaitTimeSec) {
|
|
144
|
+
logger.Error().Uint64("attempts", attempts).Msg("Token polling timed out");
|
|
145
|
+
this.stop();
|
|
146
|
+
return;
|
|
147
|
+
}
|
|
148
|
+
const rWaitForToken = await dashApi.waitForToken({ resultId }, logger);
|
|
149
|
+
if (rWaitForToken.isErr()) {
|
|
150
|
+
return logger.Error().Err(rWaitForToken).Msg("Error fetching token").ResultError();
|
|
151
|
+
}
|
|
152
|
+
const waitedTokenByResultId = rWaitForToken.unwrap();
|
|
153
|
+
if (waitedTokenByResultId.status === "found" && waitedTokenByResultId.token) {
|
|
154
|
+
const token = waitedTokenByResultId.token;
|
|
155
|
+
const claims = decodeJwt(token);
|
|
156
|
+
this.overlayNode?.style.setProperty("display", "none");
|
|
157
|
+
resolve({ token, claims });
|
|
158
|
+
return;
|
|
159
|
+
}
|
|
160
|
+
this.waiting = setTimeout(() => this.getTokenAndClaimsByResultId(logger, dashApi, resultId, opts, resolve), opts.intervalSec);
|
|
161
|
+
}
|
|
162
|
+
async waitForToken(sthis, logger, deviceId, opts) {
|
|
163
|
+
if (!this.resultId) {
|
|
164
|
+
throw new Error("waitForToken not working on redirect strategy");
|
|
165
|
+
}
|
|
166
|
+
const webCtx = opts.context.get(WebCtx);
|
|
167
|
+
const dashApi = new Api(webCtx.tokenApiURI);
|
|
168
|
+
this.waitState = "started";
|
|
169
|
+
return new Promise((resolve) => {
|
|
170
|
+
this.getTokenAndClaimsByResultId(logger, dashApi, this.resultId, opts, (tokenAndClaims) => {
|
|
171
|
+
this.currentToken = tokenAndClaims;
|
|
172
|
+
resolve(tokenAndClaims);
|
|
173
|
+
});
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
//# sourceMappingURL=redirect-strategy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":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AC;QAC5C,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,OAAO,IAAI,OAAO,CAA6B,CAAC,OAAO,EAAE,EAAE,CAAC;YAC1D,IAAI,CAAC,2BAA2B,CAAC,MAAM,EAAE,OAAO,EAAE,IAAI,CAAC,QAAQ,EAAE,IAAI,EAAE,CAAC,cAAc,EAAE,EAAE,CAAC;gBACzF,IAAI,CAAC,YAAY,GAAG,cAAc,CAAC;gBACnC,OAAO,CAAC,cAAc,CAAC,CAAC;YAAA,CACzB,CAAC,CAAC;QAAA,CACJ,CAAC,CAAC;IAAA,CACJ;CACF"}
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": [
|
|
3
|
+
"/Users/menabe/Software/fproof/fireproof-gdrive/tsconfig.dist.json"
|
|
4
|
+
],
|
|
5
|
+
"compilerOptions": {
|
|
6
|
+
"outDir": "../npm/",
|
|
7
|
+
"noEmit": false
|
|
8
|
+
},
|
|
9
|
+
"include": [
|
|
10
|
+
"**/*"
|
|
11
|
+
],
|
|
12
|
+
"exclude": [
|
|
13
|
+
"node_modules",
|
|
14
|
+
"dist",
|
|
15
|
+
".git",
|
|
16
|
+
".vscode"
|
|
17
|
+
]
|
|
18
|
+
}
|