@pelican-identity/react 2.0.8 → 2.0.10

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.
@@ -1,4 +1,3 @@
1
- import "../pelican.css";
2
1
  import { PelicanWebAuthProps } from "@pelican-identity/auth-core";
3
2
  declare const PelicanAuth: (config: PelicanWebAuthProps) => import("react/jsx-runtime").JSX.Element;
4
3
  export default PelicanAuth;
@@ -1 +1 @@
1
- {"version":3,"file":"PelicanAuth.d.ts","sourceRoot":"","sources":["../../src/components/PelicanAuth.tsx"],"names":[],"mappings":"AAIA,OAAO,gBAAgB,CAAC;AACxB,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAElE,QAAA,MAAM,WAAW,GAAI,QAAQ,mBAAmB,4CA6L/C,CAAC;AAEF,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"PelicanAuth.d.ts","sourceRoot":"","sources":["../../src/components/PelicanAuth.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAElE,QAAA,MAAM,WAAW,GAAI,QAAQ,mBAAmB,4CAkhB/C,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -1,9 +1,8 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  import { useEffect } from "react";
3
3
  import PelicanButton from "./PelicanButton";
4
4
  import { usePelicanAuth } from "../hooks/usePelicanAuth";
5
5
  import StoreIcons from "./StoreIcons";
6
- import "../pelican.css";
7
6
  const PelicanAuth = (config) => {
8
7
  const { start, qr, state, deeplink, isProcessing, stop, error, successMessage, } = usePelicanAuth({
9
8
  projectId: config.projectId,
@@ -24,38 +23,374 @@ const PelicanAuth = (config) => {
24
23
  start();
25
24
  }
26
25
  }, [config.continuousMode]);
27
- return (_jsxs("section", { children: [_jsx("div", { style: {
28
- maxWidth: "275px",
29
- justifyContent: "space-between",
30
- alignItems: "center",
31
- width: "100%",
32
- }, children: !config.continuousMode && (_jsxs("div", { style: {
33
- width: "100%",
34
- display: "flex",
35
- justifyContent: "space-between",
36
- alignItems: "center",
37
- }, children: [_jsx("button", { type: "button", style: {
38
- border: "none",
39
- background: "transparent",
40
- cursor: "pointer",
41
- }, onClick: () => {
42
- start();
43
- }, disabled: config.continuousMode, children: config.buttonComponent ? (config.buttonComponent) : (_jsx(PelicanButton, { authType: config.authType, text: config.buttonText })) }), state !== "idle" && (_jsx("button", { onClick: () => {
44
- stop();
45
- config.onClose?.();
46
- }, className: "close-button", "aria-label": "Close", type: "button", children: _jsx("svg", { className: "close-icon", fill: "#fff", stroke: "#fff", viewBox: "0 0 24 24", role: "img", "aria-label": "close icon", children: _jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 4, d: "M6 18L18 6M6 6l12 12" }) }) }))] })) }), state !== "idle" && (_jsxs("div", { className: "auth-container", children: [successMessage && (_jsxs("div", { className: "success-message", style: { textAlign: "center" }, children: [successMessage, config.continuousMode && (_jsx("p", { style: {
47
- fontSize: "0.8rem",
48
- marginTop: "0.5rem",
49
- color: "#f3f3f3",
50
- textAlign: "center",
51
- }, children: "Preparing next session..." }))] })), error && state === "error" && (_jsx("div", { className: "error-wrapper", children: _jsx("p", { className: "error-message", children: error.message }) })), isProcessing ? (_jsxs("div", { className: "content-wrapper", children: [_jsx("h2", { className: "main-heading", children: "one sec..." }), _jsx("span", { className: "loader", style: { margin: "1rem auto", width: "252px" } })] })) : (_jsx("div", { className: "content-wrapper", children: state === "awaiting-pair" && !successMessage && (_jsxs("div", { className: "unpaired-container", children: [!deeplink && !config.forceQRCode && (_jsx("h2", { className: "main-heading", children: "Open Pelican Vault" })), !config.forceQRCode && deeplink ? (_jsxs("div", { className: "mobile-auth-container", children: [_jsx("div", { className: "logo-container", children: _jsx("img", { src: "https://res.cloudinary.com/de0jr8mcm/image/upload/v1765904735/pelican/pelican_icon_r9ghqw.png ", alt: "Pelican Logo", style: { width: "80px", height: "80px" } }) }), _jsx("a", { href: deeplink, className: "open-app-link", children: "Open Pelican Vault" }), _jsxs("p", { className: "helper-text", children: ["Open the app to", " ", config.authType === "login"
52
- ? "login"
53
- : config.authType === "signup"
54
- ? "signup"
55
- : config.authType === "id-verification"
56
- ? "verify identity"
57
- : "authenticate"] })] })) : (config.forceQRCode && qr && state === "awaiting-pair") ||
58
- (!config.forceQRCode && qr && state === "awaiting-pair") ? (_jsx("div", { className: "qr-container", children: _jsxs("div", { className: "qr-wrapper", children: [qr && (_jsx("img", { src: qr, alt: "QR Code", className: "qr-image" })), !qr && _jsx("span", { className: "loader" })] }) })) : (_jsx("div", { className: "loader-container", children: _jsx("span", { className: "loader" }) }))] })) })), _jsx(StoreIcons, {})] }))] }));
26
+ return (_jsxs(_Fragment, { children: [_jsx("style", { children: `@keyframes fadeUp {
27
+ from {
28
+ opacity: 0;
29
+ transform: translateY(20px);
30
+ }
31
+ to {
32
+ opacity: 1;
33
+ transform: translateY(0);
34
+ }
35
+ }
36
+
37
+ @keyframes spin {
38
+ to {
39
+ transform: rotate(360deg);
40
+ }
41
+ }
42
+
43
+ @keyframes successPulse {
44
+ 0%,
45
+ 100% {
46
+ transform: scale(1);
47
+ opacity: 1;
48
+ }
49
+ 50% {
50
+ transform: scale(1.05);
51
+ opacity: 0.9;
52
+ }
53
+ }
54
+
55
+ .auth-container {
56
+ width: 300px;
57
+ max-width: fit-content;
58
+ padding: 1rem;
59
+ margin-top: 0.3rem;
60
+ position: relative;
61
+ animation: fadeUp 0.5s ease-out;
62
+ background-color: #fcfcfc;
63
+ border-radius: 2.5rem;
64
+ display: flex;
65
+ flex-direction: column;
66
+ justify-content: space-between;
67
+ align-items: center;
68
+ gap: 1rem;
69
+ min-height: 320px;
70
+ }
71
+ .js-auth-container {
72
+ width: 300px;
73
+ max-width: fit-content;
74
+ padding: 1rem;
75
+ margin-top: 0.3rem;
76
+ position: relative;
77
+ background-color: #fcfcfc;
78
+ border-radius: 2.5rem;
79
+ display: flex;
80
+ flex-direction: column;
81
+ justify-content: space-between;
82
+ align-items: center;
83
+ gap: 1rem;
84
+ min-height: 320px;
85
+ }
86
+
87
+ .close-button {
88
+ background-color: #2b2b2bff;
89
+ border: none;
90
+ cursor: pointer;
91
+ transition: opacity 0.2s;
92
+ height: 1.5rem;
93
+ width: 1.5rem;
94
+ display: flex;
95
+ align-items: center;
96
+ justify-content: center;
97
+ border-radius: 50%;
98
+ }
99
+
100
+ .close-button:hover {
101
+ opacity: 0.6;
102
+ }
103
+
104
+ .close-icon {
105
+ width: 1.5rem;
106
+ height: 1.5rem;
107
+ fill: #000000;
108
+ }
109
+
110
+ .retry-container {
111
+ text-align: center;
112
+ padding: 3rem 0;
113
+ }
114
+
115
+ .retry-container > div:first-child {
116
+ margin-bottom: 1rem;
117
+ }
118
+
119
+ .retry-text {
120
+ font-size: 1.125rem;
121
+ font-family: Onest, system-ui, Avenir, Helvetica, Arial, sans-serif;
122
+ }
123
+
124
+ .content-wrapper {
125
+ display: flex;
126
+ flex-direction: column;
127
+ justify-content: center;
128
+ align-items: center;
129
+ gap: 2rem;
130
+ }
131
+
132
+ .unpaired-container {
133
+ text-align: center;
134
+ display: flex;
135
+ flex-direction: column;
136
+ }
137
+
138
+ .main-heading {
139
+ font-size: 0.75rem;
140
+ font-weight: 600;
141
+ color: #585858;
142
+ font-family: Onest, system-ui, Avenir, Helvetica, Arial, sans-serif;
143
+ }
144
+
145
+ @media (min-width: 768px) {
146
+ .main-heading {
147
+ font-size: 1rem;
148
+ font-family: Onest, system-ui, Avenir, Helvetica, Arial, sans-serif;
149
+ }
150
+ }
151
+
152
+ @media (min-width: 1024px) {
153
+ .main-heading {
154
+ font-size: 1rem;
155
+ font-family: Onest, system-ui, Avenir, Helvetica, Arial, sans-serif;
156
+ }
157
+ }
158
+
159
+ .mobile-auth-container {
160
+ display: flex;
161
+ flex-direction: column;
162
+ gap: 0.7rem;
163
+ width: 253px;
164
+ }
165
+
166
+ .logo-container {
167
+ display: flex;
168
+ justify-content: center;
169
+ padding: 2rem 0;
170
+ }
171
+
172
+ .open-app-link {
173
+ display: inline-block;
174
+ padding: 0.75rem 2rem;
175
+ background-color: #2b2b2bff;
176
+ width: fit-content;
177
+ align-self: center;
178
+
179
+ border-radius: 18px;
180
+ color: #fff;
181
+ font-weight: 600;
182
+ font-size: 1rem;
183
+ text-decoration: none;
184
+ transition: background-color 0.2s;
185
+ font-family: Onest, system-ui, Avenir, Helvetica, Arial, sans-serif;
186
+ }
187
+
188
+ .open-app-link:hover {
189
+ background-color: rgba(217, 235, 27, 0.9);
190
+ color: #000;
191
+ }
192
+
193
+ .helper-text {
194
+ font-size: 0.75rem;
195
+ color: #6b7280;
196
+ font-family: Onest, system-ui, Avenir, Helvetica, Arial, sans-serif;
197
+ }
198
+
199
+ .qr-container {
200
+ display: flex;
201
+ justify-content: center;
202
+ }
203
+
204
+ .qr-wrapper {
205
+ display: flex;
206
+ justify-content: center;
207
+ align-items: center;
208
+ overflow: hidden;
209
+ border-radius: 2rem;
210
+ background-color: #fff;
211
+ padding: 0.2rem;
212
+ height: 244px;
213
+ width: 244px;
214
+ }
215
+
216
+ .qr-image {
217
+ height: 90%;
218
+ width: 90%;
219
+ }
220
+
221
+ .loader-container {
222
+ display: flex;
223
+ justify-content: center;
224
+ }
225
+
226
+ .instruction-text {
227
+ font-size: 0.875rem;
228
+ color: #9ca3af;
229
+ font-family: Onest, system-ui, Avenir, Helvetica, Arial, sans-serif;
230
+ }
231
+
232
+ .paired-container {
233
+ text-align: center;
234
+ display: flex;
235
+ flex-direction: column;
236
+ gap: 1rem;
237
+ max-width: 250px;
238
+ }
239
+
240
+ .paired-heading {
241
+ font-size: 1rem;
242
+ font-weight: 800;
243
+ font-family: Onest, system-ui, Avenir, Helvetica, Arial, sans-serif;
244
+ }
245
+
246
+ @media (min-width: 768px) {
247
+ .paired-heading {
248
+ font-size: 1rem;
249
+ font-family: Onest, system-ui, Avenir, Helvetica, Arial, sans-serif;
250
+ }
251
+ }
252
+
253
+ .success-message {
254
+ background-color: #121212;
255
+ color: #d9eb1b;
256
+ padding: 0.5rem 1rem;
257
+ border-radius: 1.3rem;
258
+ font-weight: 700;
259
+ font-size: 1rem;
260
+ animation: successPulse 0.2s ease-in-out;
261
+ margin: 0.5rem 0;
262
+ font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
263
+ width: 300px;
264
+ max-width: fit-content;
265
+ }
266
+
267
+ .auto-renew-badge {
268
+ display: inline-block;
269
+ background-color: rgba(217, 235, 27, 0.2);
270
+ border: 1px solid #d9eb1b;
271
+ color: #d9eb1b;
272
+ padding: 0.25rem 0.75rem;
273
+ border-radius: 9999px;
274
+ font-size: 0.75rem;
275
+ font-weight: 600;
276
+ margin-top: 0.5rem;
277
+ }
278
+
279
+ .error-wrapper {
280
+ display: flex;
281
+ justify-content: center;
282
+ align-items: center;
283
+ text-align: center;
284
+ border-radius: 1.5rem;
285
+ border: 1px solid rgb(255, 236, 236);
286
+ background-color: rgb(255, 255, 255);
287
+ width: 250px;
288
+ height: 80px;
289
+ }
290
+
291
+ .error-message {
292
+ font-size: 0.75rem;
293
+ font-weight: 400;
294
+ color: rgb(255, 139, 139);
295
+ font-family: Onest, system-ui, Avenir, Helvetica, Arial, sans-serif;
296
+ max-width: 70%;
297
+ }
298
+
299
+ .loader {
300
+ width: 48px;
301
+ height: 48px;
302
+ position: relative;
303
+ }
304
+ .loader::before,
305
+ .loader::after {
306
+ content: "";
307
+ position: absolute;
308
+ left: 50%;
309
+ top: 50%;
310
+ transform: translate(-50%, -50%);
311
+ width: 48em;
312
+ height: 48em;
313
+ background-image: radial-gradient(circle 10px, #585858 100%, transparent 0),
314
+ radial-gradient(circle 10px, #585858 100%, transparent 0),
315
+ radial-gradient(circle 10px, #585858 100%, transparent 0),
316
+ radial-gradient(circle 10px, #585858 100%, transparent 0),
317
+ radial-gradient(circle 10px, #585858 100%, transparent 0),
318
+ radial-gradient(circle 10px, #585858 100%, transparent 0),
319
+ radial-gradient(circle 10px, #585858 100%, transparent 0),
320
+ radial-gradient(circle 10px, #585858 100%, transparent 0),
321
+ radial-gradient(circle 10px, #585858 100%, transparent 0);
322
+ background-position: 0em -18em, 0em 18em, 18em 0em, -18em 0em, 13em -13em,
323
+ -13em -13em, 13em 13em, -13em 13em;
324
+ background-repeat: no-repeat;
325
+ font-size: 0.5px;
326
+ border-radius: 50%;
327
+ animation: blast 1s ease-in infinite;
328
+ }
329
+ .loader::after {
330
+ font-size: 1px;
331
+ background: #585858;
332
+ animation: bounce 1s ease-in infinite;
333
+ }
334
+
335
+ @keyframes bounce {
336
+ 0%,
337
+ 100% {
338
+ font-size: 0.75px;
339
+ }
340
+ 50% {
341
+ font-size: 1.5px;
342
+ }
343
+ }
344
+ @keyframes blast {
345
+ 0%,
346
+ 40% {
347
+ font-size: 0.5px;
348
+ }
349
+ 70% {
350
+ opacity: 1;
351
+ font-size: 4px;
352
+ }
353
+ 100% {
354
+ font-size: 6px;
355
+ opacity: 0;
356
+ }
357
+ }
358
+ ` }), _jsxs("section", { children: [_jsx("div", { style: {
359
+ maxWidth: "275px",
360
+ justifyContent: "space-between",
361
+ alignItems: "center",
362
+ width: "100%",
363
+ }, children: !config.continuousMode && (_jsxs("div", { style: {
364
+ width: "100%",
365
+ display: "flex",
366
+ justifyContent: "space-between",
367
+ alignItems: "center",
368
+ }, children: [_jsx("button", { type: "button", style: {
369
+ border: "none",
370
+ background: "transparent",
371
+ cursor: "pointer",
372
+ }, onClick: () => {
373
+ start();
374
+ }, disabled: config.continuousMode, children: config.buttonComponent ? (config.buttonComponent) : (_jsx(PelicanButton, { authType: config.authType, text: config.buttonText })) }), state !== "idle" && (_jsx("button", { onClick: () => {
375
+ stop();
376
+ config.onClose?.();
377
+ }, className: "close-button", "aria-label": "Close", type: "button", children: _jsx("svg", { className: "close-icon", fill: "#fff", stroke: "#fff", viewBox: "0 0 24 24", role: "img", "aria-label": "close icon", children: _jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 4, d: "M6 18L18 6M6 6l12 12" }) }) }))] })) }), state !== "idle" && (_jsxs("div", { className: "auth-container", children: [successMessage && (_jsxs("div", { className: "success-message", style: { textAlign: "center" }, children: [successMessage, config.continuousMode && (_jsx("p", { style: {
378
+ fontSize: "0.8rem",
379
+ marginTop: "0.5rem",
380
+ color: "#f3f3f3",
381
+ textAlign: "center",
382
+ }, children: "Preparing next session..." }))] })), error && state === "error" && (_jsx("div", { className: "error-wrapper", children: _jsx("p", { className: "error-message", children: error.message }) })), isProcessing ? (_jsxs("div", { className: "content-wrapper", children: [_jsx("h2", { className: "main-heading", children: "one sec..." }), _jsx("span", { className: "loader", style: { margin: "1rem auto", width: "252px" } })] })) : (_jsx("div", { className: "content-wrapper", children: state === "awaiting-pair" && !successMessage && (_jsxs("div", { className: "unpaired-container", children: [!deeplink && !config.forceQRCode && (_jsx("h2", { className: "main-heading", children: "Open Pelican Vault" })), !config.forceQRCode && deeplink ? (_jsxs("div", { className: "mobile-auth-container", children: [_jsx("div", { className: "logo-container", children: _jsx("img", { src: "https://res.cloudinary.com/de0jr8mcm/image/upload/v1765904735/pelican/pelican_icon_r9ghqw.png ", alt: "Pelican Logo", style: { width: "80px", height: "80px" } }) }), _jsx("a", { href: deeplink, className: "open-app-link", children: "Open Pelican Vault" }), _jsxs("p", { className: "helper-text", children: ["Open the app to", " ", config.authType === "login"
383
+ ? "login"
384
+ : config.authType === "signup"
385
+ ? "signup"
386
+ : config.authType === "id-verification"
387
+ ? "verify identity"
388
+ : "authenticate"] })] })) : (config.forceQRCode &&
389
+ qr &&
390
+ state === "awaiting-pair") ||
391
+ (!config.forceQRCode &&
392
+ qr &&
393
+ state === "awaiting-pair") ? (_jsx("div", { className: "qr-container", children: _jsxs("div", { className: "qr-wrapper", children: [qr && (_jsx("img", { src: qr, alt: "QR Code", className: "qr-image" })), !qr && _jsx("span", { className: "loader" })] }) })) : (_jsx("div", { className: "loader-container", children: _jsx("span", { className: "loader" }) }))] })) })), _jsx(StoreIcons, {})] }))] })] }));
59
394
  };
60
395
  export default PelicanAuth;
61
396
  //# sourceMappingURL=PelicanAuth.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PelicanAuth.js","sourceRoot":"","sources":["../../src/components/PelicanAuth.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,UAAU,MAAM,cAAc,CAAC;AACtC,OAAO,gBAAgB,CAAC;AAGxB,MAAM,WAAW,GAAG,CAAC,MAA2B,EAAE,EAAE;IAClD,MAAM,EACJ,KAAK,EACL,EAAE,EACF,KAAK,EACL,QAAQ,EACR,YAAY,EACZ,IAAI,EACJ,KAAK,EACL,cAAc,GACf,GAAG,cAAc,CAAC;QACjB,SAAS,EAAE,MAAM,CAAC,SAAS;QAC3B,SAAS,EAAE,MAAM,CAAC,SAAS;QAC3B,QAAQ,EAAE,MAAM,CAAC,QAAQ;QACzB,OAAO,EAAE,MAAM,CAAC,OAAO;QACvB,cAAc,EAAE,MAAM,CAAC,cAAc;QACrC,WAAW,EAAE,MAAM,CAAC,WAAW;QAC/B,SAAS,EAAE,CAAC,QAAQ,EAAE,EAAE;YACtB,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;QAC7B,CAAC;QACD,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE;YACjB,MAAM,CAAC,OAAO,EAAE,CAAC,KAAK,CAAC,CAAC;QAC1B,CAAC;KACF,CAAC,CAAC;IACH,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,MAAM,CAAC,cAAc,EAAE,CAAC;YAC1B,KAAK,EAAE,CAAC;QACV,CAAC;IACH,CAAC,EAAE,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,CAAC;IAC5B,OAAO,CACL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AE,SAAS,EAAC,eAAe,mCAExC,EACJ,aAAG,SAAS,EAAC,aAAa,gCACR,GAAG,EAClB,MAAM,CAAC,QAAQ,KAAK,OAAO;4DAC1B,CAAC,CAAC,OAAO;4DACT,CAAC,CAAC,MAAM,CAAC,QAAQ,KAAK,QAAQ;gEAC9B,CAAC,CAAC,QAAQ;gEACV,CAAC,CAAC,MAAM,CAAC,QAAQ,KAAK,iBAAiB;oEACvC,CAAC,CAAC,iBAAiB;oEACnB,CAAC,CAAC,cAAc,IAChB,IACA,CACP,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,WAAW;4CACnB,EAAE;4CACF,KAAK,KAAK,eAAe,CAAC;4CAC5B,CAAC,CAAC,MAAM,CAAC,WAAW;gDAClB,EAAE;gDACF,KAAK,KAAK,eAAe,CAAC,CAAC,CAAC,CAAC,CAC/B,cAAK,SAAS,EAAC,cAAc,YAC3B,eAAK,SAAS,EAAC,YAAY,aACxB,EAAE,IAAI,CACL,cAAK,GAAG,EAAE,EAAE,EAAE,GAAG,EAAC,SAAS,EAAC,SAAS,EAAC,UAAU,GAAG,CACpD,EACA,CAAC,EAAE,IAAI,eAAM,SAAS,EAAC,QAAQ,GAAQ,IACpC,GACF,CACP,CAAC,CAAC,CAAC,CACF,cAAK,SAAS,EAAC,kBAAkB,YAC/B,eAAM,SAAS,EAAC,QAAQ,GAAQ,GAC5B,CACP,IACG,CACP,GACG,CACP,EACD,KAAC,UAAU,KAAG,IACV,CACP,IACO,IACT,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,WAAW,CAAC"}
package/dist/index.d.ts CHANGED
@@ -1,3 +1,7 @@
1
- export { default as PelicanAuth } from "./components/PelicanAuth";
2
- export type * from "@pelican-identity/auth-core";
3
- //# sourceMappingURL=index.d.ts.map
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { PelicanWebAuthProps } from '@pelican-identity/auth-core';
3
+ export * from '@pelican-identity/auth-core';
4
+
5
+ declare const PelicanAuth: (config: PelicanWebAuthProps) => react_jsx_runtime.JSX.Element;
6
+
7
+ export { PelicanAuth };