@kanorio/elements 1.1.0 → 1.2.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/README.md +4 -1
- package/dist/AudioPlayer-DKUAB5KE.js +2 -0
- package/dist/AudioPlayer-S7YF7A2E.js +2 -0
- package/dist/CustomerAccountPanel-DJKV7LT4.js +2 -0
- package/dist/CustomerAccountPanel-RWEHWBJY.js +2 -0
- package/dist/FormAddressField-C6VN7J6I.js +2 -0
- package/dist/FormAddressField-QR7ZCH77.js +2 -0
- package/dist/FormChoiceDropdown-SJXD26CC.js +2 -0
- package/dist/FormChoiceDropdown-U3NIOOHG.js +2 -0
- package/dist/FormFileField-LZDCXI2Z.js +2 -0
- package/dist/FormFileField-ONL4Q55V.js +2 -0
- package/dist/FormTaxIdField-K34MDUPW.js +2 -0
- package/dist/FormTaxIdField-XMK5WRQO.js +2 -0
- package/dist/KanorioAccount-EN3TM67X.js +2 -0
- package/dist/KanorioAccount-XGVSGVYN.js +2 -0
- package/dist/KanorioAnalytics-NEKTFQEE.js +2 -0
- package/dist/KanorioAnalytics-UMCUWQM7.js +2 -0
- package/dist/KanorioCurriculum-3QSCOHK7.js +2 -0
- package/dist/KanorioCurriculum-RUIGZ5X7.js +2 -0
- package/dist/KanorioForm-GUA5GEJY.js +2 -0
- package/dist/KanorioForm-KXV7D2TU.js +2 -0
- package/dist/KanorioLightbox-M72HNQQX.js +2 -0
- package/dist/KanorioLightbox-TQ3Q73TD.js +2 -0
- package/dist/KanorioLogin-5XFN3YEE.js +2 -0
- package/dist/KanorioLogin-AJHHVQGV.js +2 -0
- package/dist/KanorioMedia-ADKUDH5C.js +2 -0
- package/dist/KanorioMedia-DLBSXCKA.js +2 -0
- package/dist/KanorioReviews-42FZSXTI.js +2 -0
- package/dist/KanorioReviews-7LD5WKFG.js +2 -0
- package/dist/KanorioUnit-NWBX5DEI.js +2 -0
- package/dist/KanorioUnit-SIM3344J.js +2 -0
- package/dist/MediaPlayer-F43FPK4E.js +2 -0
- package/dist/MediaPlayer-JHFZFOOG.js +2 -0
- package/dist/{PDFViewerFull-KMUVT2BL.js → PDFViewerFull-CB44M7GW.js} +3 -3
- package/dist/{PDFViewerFull-FBLYNUDX.js → PDFViewerFull-INVHZL4V.js} +2 -2
- package/dist/VideoPlayer-FWZF4DQK.js +2 -0
- package/dist/VideoPlayer-LNS7XJ4C.js +2 -0
- package/dist/account.d.ts +165 -0
- package/dist/account.js +2 -0
- package/dist/analytics.d.ts +44 -0
- package/dist/analytics.js +2 -0
- package/dist/bot-protection.d.ts +297 -0
- package/dist/bot-protection.js +2 -0
- package/dist/chunk-2E6RCDAA.js +2 -0
- package/dist/chunk-2FSD3N7F.js +6 -0
- package/dist/chunk-2J5XQK4H.js +2 -0
- package/dist/chunk-2LOQXVFI.js +2 -0
- package/dist/chunk-2ONAW3CA.js +2 -0
- package/dist/chunk-33AQQY6T.js +69 -0
- package/dist/chunk-36YEGBKK.js +2 -0
- package/dist/chunk-4BBERZ6T.js +2 -0
- package/dist/chunk-4BEKWYEW.js +2 -0
- package/dist/chunk-4DPSNQEI.js +2 -0
- package/dist/chunk-4KA3HSRQ.js +2 -0
- package/dist/chunk-4MOCTNN7.js +2 -0
- package/dist/chunk-5AUWUK5R.js +2 -0
- package/dist/chunk-5G3PQI25.js +2 -0
- package/dist/chunk-5HWAL7VK.js +2 -0
- package/dist/chunk-63XJWMJG.js +2 -0
- package/dist/chunk-66XN5RR4.js +2 -0
- package/dist/chunk-6RZBXZFP.js +2 -0
- package/dist/chunk-763LNERD.js +2 -0
- package/dist/chunk-7XWBVRXP.js +15 -0
- package/dist/chunk-A4DPHHAP.js +42 -0
- package/dist/chunk-AF46NLXK.js +2 -0
- package/dist/chunk-AFNEGNVJ.js +2 -0
- package/dist/chunk-AQ6F6MIJ.js +2 -0
- package/dist/chunk-ARU5PTJV.js +2 -0
- package/dist/chunk-B7KLKVIM.js +2 -0
- package/dist/chunk-BGVTMWPN.js +2 -0
- package/dist/chunk-BKNL7ZCI.js +2 -0
- package/dist/chunk-BU7KUHZK.js +8 -0
- package/dist/chunk-C7HUM2EN.js +2 -0
- package/dist/chunk-CU2JJTXI.js +2 -0
- package/dist/{chunk-5U2SZE3H.js → chunk-CUQUEGX2.js} +2 -2
- package/dist/chunk-D7K3YCBR.js +2 -0
- package/dist/chunk-DLJDYXKL.js +2 -0
- package/dist/chunk-DTBRUBPG.js +2 -0
- package/dist/chunk-E77WGXYW.js +2 -0
- package/dist/chunk-EE4S6NRV.js +3 -0
- package/dist/chunk-ET57PWXC.js +2 -0
- package/dist/chunk-EZMTUAQX.js +2 -0
- package/dist/chunk-FFAWYDLJ.js +2 -0
- package/dist/chunk-FQCA2VGY.js +2 -0
- package/dist/chunk-FSY5GB5E.js +3 -0
- package/dist/chunk-G4U6BFZY.js +2 -0
- package/dist/chunk-GJY6AQIS.js +2 -0
- package/dist/chunk-GMW7AUSG.js +2 -0
- package/dist/chunk-GZCED6V3.js +2 -0
- package/dist/chunk-H2XQYT62.js +2 -0
- package/dist/chunk-H7VP4BYY.js +2 -0
- package/dist/chunk-HFYLTH5B.js +2 -0
- package/dist/chunk-IAXVJLJ3.js +2 -0
- package/dist/chunk-IXDKZO42.js +2 -0
- package/dist/chunk-J37D44SX.js +2 -0
- package/dist/chunk-JH5D6YJX.js +2 -0
- package/dist/chunk-JREL5347.js +2 -0
- package/dist/chunk-K2XZKV3Q.js +2 -0
- package/dist/chunk-K4VRRKYJ.js +2 -0
- package/dist/chunk-KBKDMTYF.js +2 -0
- package/dist/chunk-KDNGDR64.js +2 -0
- package/dist/chunk-KNNN5V3T.js +2 -0
- package/dist/chunk-LWKCGUHS.js +2 -0
- package/dist/chunk-LWRWKZBC.js +2 -0
- package/dist/chunk-LXNMHQFN.js +2 -0
- package/dist/chunk-MC63CLSM.js +2 -0
- package/dist/chunk-MIQK3T3Y.js +2 -0
- package/dist/chunk-MQ7PBFUM.js +4 -0
- package/dist/chunk-MWPRTK32.js +2 -0
- package/dist/chunk-MXGMJAWS.js +2 -0
- package/dist/chunk-N4BGAMWD.js +2 -0
- package/dist/chunk-N5PIQM4L.js +3 -0
- package/dist/chunk-NBDRYQZV.js +2 -0
- package/dist/chunk-NGRNPVON.js +2 -0
- package/dist/chunk-NSY72ZYX.js +15 -0
- package/dist/chunk-O2SYHUQF.js +2 -0
- package/dist/chunk-OIKRLEW6.js +2 -0
- package/dist/chunk-OTK4YNSG.js +2 -0
- package/dist/chunk-OU4IOHLN.js +15 -0
- package/dist/chunk-PR2NRUEI.js +2 -0
- package/dist/chunk-QGR3QAQB.js +3 -0
- package/dist/chunk-QOQQCCID.js +2 -0
- package/dist/chunk-RG5JA44V.js +2 -0
- package/dist/chunk-RKEHHJDU.js +2 -0
- package/dist/chunk-S2NFWI7C.js +69 -0
- package/dist/chunk-S7FE2XRA.js +2 -0
- package/dist/chunk-SUXTLVTX.js +2 -0
- package/dist/chunk-SVWEVSYJ.js +2 -0
- package/dist/chunk-TEUQV3AT.js +2 -0
- package/dist/chunk-U7H3W23Q.js +2 -0
- package/dist/chunk-U7KVGD47.js +2 -0
- package/dist/chunk-UIHBR4NU.js +3 -0
- package/dist/chunk-UM74DXPE.js +2 -0
- package/dist/chunk-VKSYPXNL.js +2 -0
- package/dist/chunk-VUTODQFX.js +2 -0
- package/dist/chunk-VYSRVTYI.js +2 -0
- package/dist/chunk-W32ZFOPN.js +2 -0
- package/dist/chunk-W63RJF6Q.js +2 -0
- package/dist/chunk-WM5S3YN5.js +2 -0
- package/dist/chunk-WP7UEAIB.js +2 -0
- package/dist/chunk-WXIUWMFR.js +2 -0
- package/dist/chunk-Z4A5NQWJ.js +2 -0
- package/dist/chunk-Z4OV6QHI.js +2 -0
- package/dist/curriculum.d.ts +20 -0
- package/dist/curriculum.js +2 -0
- package/dist/deliverables-BDS7WMBC.js +99 -0
- package/dist/deliverables-C5RD2ASE.js +131 -0
- package/dist/elements.css +1 -1
- package/dist/events-CJeBru-H.d.ts +11 -0
- package/dist/form.d.ts +775 -0
- package/dist/form.js +2 -0
- package/dist/forms-answers-address-7P6EVFY5.js +2 -0
- package/dist/forms-answers-address-IQV2Y56H.js +2 -0
- package/dist/forms-answers-phone-2VZ46OME.js +2 -0
- package/dist/forms-answers-phone-5PUB5WKD.js +2 -0
- package/dist/forms-answers-tax-id-D4GOUC6N.js +2 -0
- package/dist/forms-answers-tax-id-WJD7K3PG.js +2 -0
- package/dist/index.d.ts +17 -3045
- package/dist/index.js +1 -1
- package/dist/kanorio-elements.js +9 -73
- package/dist/lightbox-DEvsB5dB.d.ts +100 -0
- package/dist/lightbox.d.ts +5 -0
- package/dist/lightbox.js +2 -0
- package/dist/login.d.ts +14 -0
- package/dist/login.js +2 -0
- package/dist/media.d.ts +85 -0
- package/dist/media.js +2 -0
- package/dist/phone-input-Q5AV6KSW.js +2 -0
- package/dist/phone-input-T6QX2TDS.js +2 -0
- package/dist/provider-CMLzyAjJ.d.ts +1277 -0
- package/dist/provider.d.ts +4 -0
- package/dist/provider.js +2 -0
- package/dist/reviews.d.ts +42 -0
- package/dist/reviews.js +2 -0
- package/dist/unit.d.ts +118 -0
- package/dist/unit.js +2 -0
- package/dist/{vidstack-BmcqUMKx-XYI2YLUH.js → vidstack-BmcqUMKx-FXVV4FRB.js} +2 -2
- package/dist/{vidstack-GkTzay8D-PBE5ZIYA.js → vidstack-GkTzay8D-53C3FRCO.js} +2 -2
- package/dist/web-components.d.ts +13 -1
- package/dist/web-components.js +1 -1
- package/dist/wire-ofSodpi1.d.ts +176 -0
- package/package.json +46 -2
- package/dist/MediaPlayer-7IBSXL7Q.js +0 -2
- package/dist/MediaPlayer-HTXF4T2V.js +0 -2
- package/dist/chunk-2UVUNYL6.js +0 -2
- package/dist/chunk-3OGF7I4H.js +0 -2
- package/dist/chunk-5AWUTOK7.js +0 -2
- package/dist/chunk-DTDUK36B.js +0 -8
- package/dist/chunk-JZXJO62T.js +0 -15
- package/dist/chunk-LLHBSWTL.js +0 -2
- package/dist/chunk-NOCGHD2O.js +0 -2
- package/dist/chunk-S4ZA2INU.js +0 -415
- package/dist/chunk-TLBIYET7.js +0 -404
- package/dist/chunk-TLRFFLH4.js +0 -94
- package/dist/chunk-U3U5KVR6.js +0 -2
- package/dist/chunk-UBMXRFSK.js +0 -4
- package/dist/deliverables-FBCRGMTB.js +0 -93
- package/dist/deliverables-FMKPDHJH.js +0 -92
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";import{VideoPlayer,useSeekRequest}from"./chunk-CUQUEGX2.js";import"./chunk-S7FE2XRA.js";import"./chunk-ZDU7A7WZ.js";import"./chunk-F5NEDREL.js";import"./chunk-63XJWMJG.js";import"./chunk-OIKRLEW6.js";import"./chunk-33AQQY6T.js";import"./chunk-VUTODQFX.js";import"./chunk-763LNERD.js";import"./chunk-U7H3W23Q.js";import"./chunk-3ZTUZPSD.js";export{VideoPlayer,useSeekRequest};
|
|
2
|
+
//# sourceMappingURL=VideoPlayer-FWZF4DQK.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";import{p as a,q as b}from"./chunk-MQ7PBFUM.js";import"./chunk-W63RJF6Q.js";import"./chunk-U7KVGD47.js";import"./chunk-6RZBXZFP.js";import"./chunk-ET57PWXC.js";import"./chunk-S2NFWI7C.js";import"./chunk-AFNEGNVJ.js";import"./chunk-OU4IOHLN.js";import"./chunk-NSY72ZYX.js";import"./chunk-DXTWCLOM.js";import"./chunk-V4OWPVBD.js";import"./chunk-6LGTFWQS.js";import"./chunk-CDG7S4P5.js";export{b as VideoPlayer,a as useSeekRequest};
|
|
2
|
+
//# sourceMappingURL=VideoPlayer-LNS7XJ4C.js.map
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import { K as KanorioConfig } from './provider-CMLzyAjJ.js';
|
|
4
|
+
export { L as LOGIN_EVENT, a as LOGOUT_EVENT } from './events-CJeBru-H.js';
|
|
5
|
+
import '@kanorio/sdk';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* The registry of customer account sections.
|
|
9
|
+
*
|
|
10
|
+
* The customer account is a shell and each product area registers its pages: this file holds only the shapes the client also needs (route, order, navigation label key, icon,
|
|
11
|
+
* Customer API resource prefix). Whether a site has a section turned on and whether a person has data in it is worked out on the server
|
|
12
|
+
* and returned to the front end with the session.
|
|
13
|
+
*
|
|
14
|
+
* Navigation, the landing page after sign-in, the Customer API's resource grouping and the developer documentation all derive from this;
|
|
15
|
+
* a contract test guarantees that every API resource open to customers belongs to a section or is listed in `CUSTOMER_PORTAL_API_EXEMPT_PREFIXES`.
|
|
16
|
+
* Compare Shopify's customer account full-page extensions and account menu, and Wix apps adding pages to one members area.
|
|
17
|
+
*/
|
|
18
|
+
type CustomerPortalSectionId = "orders" | "content" | "account";
|
|
19
|
+
/** A section's state, worked out on the server and returned to the front end with the session */
|
|
20
|
+
interface CustomerPortalSectionState {
|
|
21
|
+
id: CustomerPortalSectionId;
|
|
22
|
+
/** Whether this site shows this section to this person */
|
|
23
|
+
visible: boolean;
|
|
24
|
+
/** Whether this person has data in this section (orders, deliverables, ...); the shell uses it for empty states and landing hints */
|
|
25
|
+
hasData: boolean;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* The interface between the customer sign-in panel and the server.
|
|
30
|
+
*
|
|
31
|
+
* The same panel is used on hosted sites and in Elements: hosted sites go through a same-origin BFF (cookie session),
|
|
32
|
+
* Elements through the Customer API (Bearer); the panel only knows this interface, not which one is underneath.
|
|
33
|
+
* Results are always `{ ok, ... }`, with the same error codes as the server's account routes (the same table as in the developer documentation).
|
|
34
|
+
*/
|
|
35
|
+
|
|
36
|
+
interface CustomerAuthFailure {
|
|
37
|
+
ok: false;
|
|
38
|
+
code: string;
|
|
39
|
+
retryAfter?: number;
|
|
40
|
+
}
|
|
41
|
+
type CustomerAuthResult<T extends object = Record<never, never>> = ({
|
|
42
|
+
ok: true;
|
|
43
|
+
} & T) | CustomerAuthFailure;
|
|
44
|
+
/** The session obtained after verification (on hosted sites the BFF sets a cookie and `sessionToken` never reaches the browser; Elements gets a Bearer) */
|
|
45
|
+
interface CustomerSessionGrant {
|
|
46
|
+
sessionToken?: string;
|
|
47
|
+
expiresAt?: string;
|
|
48
|
+
contactId?: string;
|
|
49
|
+
returnTo?: string | null;
|
|
50
|
+
}
|
|
51
|
+
interface CustomerAuthSessionUser {
|
|
52
|
+
id: string;
|
|
53
|
+
email: string | null;
|
|
54
|
+
name: string | null;
|
|
55
|
+
}
|
|
56
|
+
/** A subset of `GET /account/session`: the person, sections and landing page the panel needs to draw the signed-in menu */
|
|
57
|
+
interface CustomerAuthSessionOverview {
|
|
58
|
+
contact: CustomerAuthSessionUser;
|
|
59
|
+
sections: CustomerPortalSectionState[];
|
|
60
|
+
landing: string;
|
|
61
|
+
}
|
|
62
|
+
interface CustomerAuthTransport {
|
|
63
|
+
/** ALTCHA challenge endpoint (same origin, or the site URL) */
|
|
64
|
+
altchaChallengeUrl: string;
|
|
65
|
+
/** Server-signed challenge endpoint (for variant=standard; sign-in always uses full, but the hook needs a value) */
|
|
66
|
+
challengeUrl: string;
|
|
67
|
+
requestChallenge(input: {
|
|
68
|
+
email: string;
|
|
69
|
+
locale?: string;
|
|
70
|
+
returnTo?: string;
|
|
71
|
+
protection: Record<string, unknown>;
|
|
72
|
+
}): Promise<CustomerAuthResult>;
|
|
73
|
+
verifyCode(input: {
|
|
74
|
+
email: string;
|
|
75
|
+
code: string;
|
|
76
|
+
}): Promise<CustomerAuthResult<CustomerSessionGrant>>;
|
|
77
|
+
/** The ticket carried back by the one-time link in an email (`link`) or a social sign-in callback (`handoff`) */
|
|
78
|
+
verifyToken(input: {
|
|
79
|
+
method: "link" | "handoff";
|
|
80
|
+
token: string;
|
|
81
|
+
}): Promise<CustomerAuthResult<CustomerSessionGrant>>;
|
|
82
|
+
startOauth(input: {
|
|
83
|
+
method: string;
|
|
84
|
+
returnTo?: string;
|
|
85
|
+
locale?: string;
|
|
86
|
+
}): Promise<CustomerAuthResult<{
|
|
87
|
+
url: string;
|
|
88
|
+
}>>;
|
|
89
|
+
passkeyLoginOptions(): Promise<CustomerAuthResult<{
|
|
90
|
+
options: unknown;
|
|
91
|
+
challengeId: string;
|
|
92
|
+
}>>;
|
|
93
|
+
passkeyLoginVerify(input: {
|
|
94
|
+
challengeId: string;
|
|
95
|
+
response: unknown;
|
|
96
|
+
returnTo?: string;
|
|
97
|
+
locale?: string;
|
|
98
|
+
}): Promise<CustomerAuthResult<CustomerSessionGrant>>;
|
|
99
|
+
listPasskeys(): Promise<CustomerAuthResult<{
|
|
100
|
+
passkeys: {
|
|
101
|
+
id: string;
|
|
102
|
+
}[];
|
|
103
|
+
}>>;
|
|
104
|
+
passkeyRegisterOptions(): Promise<CustomerAuthResult<{
|
|
105
|
+
options: unknown;
|
|
106
|
+
}>>;
|
|
107
|
+
passkeyRegister(input: {
|
|
108
|
+
response: unknown;
|
|
109
|
+
name?: string;
|
|
110
|
+
}): Promise<CustomerAuthResult<{
|
|
111
|
+
passkey: {
|
|
112
|
+
id: string;
|
|
113
|
+
name: string;
|
|
114
|
+
};
|
|
115
|
+
}>>;
|
|
116
|
+
/**
|
|
117
|
+
* The signed-in person, or null when signed out. May reject when the session could not be checked (offline, a server error): the
|
|
118
|
+
* provider then keeps what it knew instead of showing the person as signed out
|
|
119
|
+
*/
|
|
120
|
+
session(): Promise<CustomerAuthSessionOverview | null>;
|
|
121
|
+
signOut(): Promise<void>;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
interface KanorioAccountProps extends KanorioConfig {
|
|
125
|
+
/** Shop name shown in the title; defaults to the brand name in site settings */
|
|
126
|
+
siteName?: string;
|
|
127
|
+
/**
|
|
128
|
+
* `direct` (default): the panel signs in on the spot, calling the Customer API.
|
|
129
|
+
* `redirect`: a button sends the customer to Kanorio's hosted sign-in page (OAuth 2.1 authorization code + PKCE) and the token is exchanged back on `redirectUri`.
|
|
130
|
+
*/
|
|
131
|
+
mode?: "direct" | "redirect";
|
|
132
|
+
/** Where `redirect` mode returns to (https, with its origin in the site's allowed origins); defaults to the current page */
|
|
133
|
+
redirectUri?: string;
|
|
134
|
+
/**
|
|
135
|
+
* In-site path that sign-in email links and social sign-in callbacks return to (must start with `/`). Defaults to the current page:
|
|
136
|
+
* a self-hosted front end has no `/account/login`, so links must return to the page holding this component to finish signing in.
|
|
137
|
+
*/
|
|
138
|
+
returnTo?: string;
|
|
139
|
+
/** Called on success (the window event `kanorio:login` is dispatched too) */
|
|
140
|
+
onLogin?: (session: {
|
|
141
|
+
token: string;
|
|
142
|
+
contactId: string;
|
|
143
|
+
expiresAt: string;
|
|
144
|
+
}) => void;
|
|
145
|
+
/** Called after sign-out (the window event `kanorio:logout` is dispatched too) */
|
|
146
|
+
onLogout?: () => void;
|
|
147
|
+
/** Replaces the default customer account menu when signed in */
|
|
148
|
+
renderSignedIn?: (signOut: () => void) => ReactNode;
|
|
149
|
+
className?: string;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
type BearerTransportParams = {
|
|
153
|
+
siteUrl: string;
|
|
154
|
+
token: () => string | null;
|
|
155
|
+
onToken: (token: string | null) => void;
|
|
156
|
+
};
|
|
157
|
+
/**
|
|
158
|
+
* Transport for the Customer API: anonymous flows send no token and signed-in flows send the Bearer; `channel: "bearer"` makes the server issue a Bearer session.
|
|
159
|
+
* `token` is read through a getter so the newest value is used: the session must be readable with the new token the moment sign-in succeeds.
|
|
160
|
+
* `session()` resolves with null when the session cannot be read, for any reason.
|
|
161
|
+
*/
|
|
162
|
+
declare function createBearerCustomerAuthTransport(params: BearerTransportParams): CustomerAuthTransport;
|
|
163
|
+
declare function KanorioAccount({ siteName, mode, redirectUri, returnTo, onLogin, onLogout, renderSignedIn, className, ...config }: KanorioAccountProps): react_jsx_runtime.JSX.Element;
|
|
164
|
+
|
|
165
|
+
export { KanorioAccount, type KanorioAccountProps, createBearerCustomerAuthTransport };
|
package/dist/account.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{KanorioAccount,createBearerCustomerAuthTransport}from"./chunk-UIHBR4NU.js";import"./chunk-EE4S6NRV.js";import"./chunk-AQ6F6MIJ.js";import"./chunk-63XJWMJG.js";import"./chunk-E77WGXYW.js";import"./chunk-C7HUM2EN.js";import{LOGIN_EVENT,LOGOUT_EVENT}from"./chunk-LWKCGUHS.js";import"./chunk-TEUQV3AT.js";import"./chunk-IXDKZO42.js";import"./chunk-RKEHHJDU.js";import"./chunk-JH5D6YJX.js";import"./chunk-Z4A5NQWJ.js";import"./chunk-HFYLTH5B.js";import"./chunk-33AQQY6T.js";import"./chunk-VUTODQFX.js";import"./chunk-4MOCTNN7.js";import"./chunk-KNNN5V3T.js";import"./chunk-763LNERD.js";import"./chunk-U7H3W23Q.js";import"./chunk-MIQK3T3Y.js";import"./chunk-CU2JJTXI.js";import"./chunk-3ZTUZPSD.js";export{KanorioAccount,LOGIN_EVENT,LOGOUT_EVENT,createBearerCustomerAuthTransport};
|
|
2
|
+
//# sourceMappingURL=account.js.map
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
interface KanorioAnalyticsProps {
|
|
2
|
+
/** Site URL (optional inside a `<KanorioProvider>`) */
|
|
3
|
+
siteUrl?: string;
|
|
4
|
+
/**
|
|
5
|
+
* Overrides the current path (defaults to `window.location.pathname`).
|
|
6
|
+
* The component already hooks `history.pushState`, `replaceState` and `popstate`, so client navigation in the Next.js App Router, Astro View Transitions
|
|
7
|
+
* and the like is reported without it; if your framework does not use the History API, pass the router's pathname.
|
|
8
|
+
*/
|
|
9
|
+
path?: string;
|
|
10
|
+
/** Overrides the current page title (defaults to `document.title` after the path changes) */
|
|
11
|
+
title?: string;
|
|
12
|
+
/** Overrides the referrer (defaults to an off-site `document.referrer`, sent only on the entry page) */
|
|
13
|
+
referrer?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Path prefixes not to report (for example `["/admin", "/myinfo"]`; the Web Component takes a comma-separated string, `exclude="/admin,/myinfo"`).
|
|
16
|
+
* On a site with only part of its content on Kanorio, URLs of admin pages or pages with personal data should not be sent. Whole path segments are matched: `/admin` covers `/admin` and `/admin/...`, not `/administrator`.
|
|
17
|
+
*/
|
|
18
|
+
exclude?: readonly string[] | string;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Reports one anonymous pageview to `POST {site}/api/v1/analytics/pageview`.
|
|
22
|
+
*
|
|
23
|
+
* - Prefers `navigator.sendBeacon` (it is sent even on unload and does not block navigation); falls back to `fetch(keepalive)` where unsupported
|
|
24
|
+
* - The body is always `text/plain` (a simple request): no CORS preflight across domains; the server parses it as JSON
|
|
25
|
+
* - An external domain must be in the site's `allowedOrigins` (Settings > Developer), or the browser blocks the response
|
|
26
|
+
* - `entry` marks the entry page and `utm` carries the UTM and click identifiers in the URL; the dashboard attributes sources and campaigns to the entry page only
|
|
27
|
+
*/
|
|
28
|
+
declare function reportKanorioPageview(params: {
|
|
29
|
+
siteUrl: string;
|
|
30
|
+
path: string;
|
|
31
|
+
title?: string;
|
|
32
|
+
referrer?: string;
|
|
33
|
+
entry?: boolean;
|
|
34
|
+
utm?: Record<string, string>;
|
|
35
|
+
fetch?: typeof globalThis.fetch;
|
|
36
|
+
}): Promise<boolean>;
|
|
37
|
+
/**
|
|
38
|
+
* `<KanorioAnalytics />` (and the `<kanorio-analytics>` Web Component):
|
|
39
|
+
* reports anonymous pageviews from an external front end to `POST {site}/api/v1/analytics/pageview` (with the entry flag, the off-site referrer and UTM),
|
|
40
|
+
* so the dashboard's analytics and the external front-end check (`kanorio doctor`) keep tracking traffic and sources.
|
|
41
|
+
*/
|
|
42
|
+
declare function KanorioAnalytics({ siteUrl: propSiteUrl, path, title, referrer, exclude }: KanorioAnalyticsProps): null;
|
|
43
|
+
|
|
44
|
+
export { KanorioAnalytics, type KanorioAnalyticsProps, reportKanorioPageview };
|
|
@@ -0,0 +1,297 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { ComponentProps } from 'react';
|
|
3
|
+
import { e as KanorioTheme } from './provider-CMLzyAjJ.js';
|
|
4
|
+
import '@kanorio/sdk';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Bot protection type definitions
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* Bot protection data (sent from the front end to the back end)
|
|
11
|
+
*/
|
|
12
|
+
interface BotProtectionData {
|
|
13
|
+
/** Honeypot field value (should be empty) */
|
|
14
|
+
_hp: string;
|
|
15
|
+
/** Extra honeypot _wp (should be empty) */
|
|
16
|
+
_wp?: string;
|
|
17
|
+
/** Extra honeypot _co (should be empty) */
|
|
18
|
+
_co?: string;
|
|
19
|
+
/** Timestamp of when the form loaded (milliseconds) */
|
|
20
|
+
_ts: number;
|
|
21
|
+
/** JavaScript challenge token or server-signed token */
|
|
22
|
+
_tk: string;
|
|
23
|
+
/** What the token is bound to (such as the formId) */
|
|
24
|
+
_ctx?: string;
|
|
25
|
+
/** The token from the widget when the owner uses a third-party provider (Turnstile, reCAPTCHA, hCaptcha) */
|
|
26
|
+
captchaToken?: string;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Form protection strength
|
|
30
|
+
*/
|
|
31
|
+
type FormProtectionVariant = "standard" | "full";
|
|
32
|
+
/**
|
|
33
|
+
* Return value of the useBotProtection hook
|
|
34
|
+
*/
|
|
35
|
+
interface UseBotProtectionReturn {
|
|
36
|
+
/** Gets the protection data (for submitting the form) */
|
|
37
|
+
getProtectionData: () => BotProtectionData;
|
|
38
|
+
/** Whether protection is ready */
|
|
39
|
+
isReady: boolean;
|
|
40
|
+
/** Submitting is allowed only after the interaction delay following the first focus */
|
|
41
|
+
isSubmittable: boolean;
|
|
42
|
+
/** Registers a focus event (call it from a form field's onFocus) */
|
|
43
|
+
registerFocus: () => void;
|
|
44
|
+
/** Registers the ALTCHA payload (called by the widget when variant=full) */
|
|
45
|
+
registerAltchaPayload?: (payload: string) => void;
|
|
46
|
+
/** Resets the protection state (for filling the form in again) */
|
|
47
|
+
reset: () => void;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* The registry of bot-protection entry points.
|
|
52
|
+
*
|
|
53
|
+
* An entry point is an action that can be written anonymously and must pass bot protection. The settings page, the public settings, request dispatch and the contract tests all derive from this;
|
|
54
|
+
* a new entry point (comments, reviews, ...) is one more entry here, not a list hard-coded elsewhere. Plain data, safe for client bundles.
|
|
55
|
+
*/
|
|
56
|
+
|
|
57
|
+
declare const PROTECTION_ENTRIES: readonly [{
|
|
58
|
+
readonly id: "forms";
|
|
59
|
+
readonly builtinVariant: "full";
|
|
60
|
+
readonly providerSelectable: true;
|
|
61
|
+
}, {
|
|
62
|
+
readonly id: "customer_login";
|
|
63
|
+
readonly builtinVariant: "full";
|
|
64
|
+
readonly providerSelectable: true;
|
|
65
|
+
}, {
|
|
66
|
+
readonly id: "checkout_draft";
|
|
67
|
+
readonly builtinVariant: "standard";
|
|
68
|
+
readonly providerSelectable: false;
|
|
69
|
+
}];
|
|
70
|
+
/** Entry points where the owner can switch to a third-party provider */
|
|
71
|
+
type SelectableProtectionEntryId = Extract<(typeof PROTECTION_ENTRIES)[number], {
|
|
72
|
+
providerSelectable: true;
|
|
73
|
+
}>["id"];
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* The public side of bot protection: providers, the public config a front end needs to draw a widget, and the challenge wire shape.
|
|
77
|
+
*
|
|
78
|
+
* Browser code imports from here, so it does not pull in the zod schema of `settings.ts` (the owner's stored settings),
|
|
79
|
+
* which re-exports everything in this file for server code.
|
|
80
|
+
*/
|
|
81
|
+
|
|
82
|
+
/** The registered providers; the order is the order on the settings page */
|
|
83
|
+
declare const BOT_PROTECTION_PROVIDERS: readonly ["kanorio", "turnstile", "recaptcha", "hcaptcha"];
|
|
84
|
+
type BotProtectionProvider = (typeof BOT_PROTECTION_PROVIDERS)[number];
|
|
85
|
+
type ThirdPartyBotProtectionProvider = Exclude<BotProtectionProvider, "kanorio">;
|
|
86
|
+
declare const RECAPTCHA_VERSIONS: readonly ["v2", "v3"];
|
|
87
|
+
type RecaptchaVersion = (typeof RECAPTCHA_VERSIONS)[number];
|
|
88
|
+
/** The public settings the front end needs to draw a widget: only entry points whose provider can be changed, and only public keys */
|
|
89
|
+
interface PublicBotProtectionConfig {
|
|
90
|
+
provider: BotProtectionProvider;
|
|
91
|
+
recaptchaVersion: RecaptchaVersion | null;
|
|
92
|
+
entries: Partial<Record<SelectableProtectionEntryId, {
|
|
93
|
+
siteKey: string;
|
|
94
|
+
action: string;
|
|
95
|
+
}>>;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* The ALTCHA widget's `statechange` event to what should happen to the local token.
|
|
100
|
+
*
|
|
101
|
+
* A pure function, extracted so it can be tested without a DOM: once the widget leaves verified (expired, unverified, verifying, error),
|
|
102
|
+
* the payload in hand must not be sent any more, otherwise the server answers token_expired and the visitor has to verify again before submitting.
|
|
103
|
+
*/
|
|
104
|
+
type AltchaWidgetState = "unverified" | "verifying" | "verified" | "expired" | "error" | "code";
|
|
105
|
+
|
|
106
|
+
interface AltchaWidgetProps {
|
|
107
|
+
challengeUrl: string;
|
|
108
|
+
onVerified?: (payload: string) => void;
|
|
109
|
+
/** Called when the widget leaves the verified state (expired and solving again, an error, a reset); the caller should discard the payload it holds */
|
|
110
|
+
onInvalidated?: () => void;
|
|
111
|
+
/** Expiry on the widget side in milliseconds; slightly shorter than the server's challenge lifetime by default */
|
|
112
|
+
expireMs?: number;
|
|
113
|
+
/** Site locale; mapped to altcha's built-in translations, falling back to English */
|
|
114
|
+
locale?: string | null;
|
|
115
|
+
className?: string;
|
|
116
|
+
/**
|
|
117
|
+
* Invisible mode: solves the proof of work in the background as soon as it mounts (`auto="onload"`) and draws no checkbox;
|
|
118
|
+
* when it cannot solve (`error`), the caller sets `revealed` to true to fall back to a visible checkbox the visitor can retry by hand.
|
|
119
|
+
* To solve again after a single-use payload is spent, change `generation`; the widget remounts and solves again.
|
|
120
|
+
*/
|
|
121
|
+
invisible?: boolean;
|
|
122
|
+
/** Still shown in invisible mode (the visible fallback); ignored otherwise */
|
|
123
|
+
revealed?: boolean;
|
|
124
|
+
generation?: number;
|
|
125
|
+
/** Reported on every statechange (the caller decides from it whether to fall back to visible) */
|
|
126
|
+
onStateChange?: (state: AltchaWidgetState) => void;
|
|
127
|
+
/** The box's two accessible names; read from the site labels (`SiteLabelsProvider`) when omitted */
|
|
128
|
+
labels?: AltchaWidgetLabels;
|
|
129
|
+
}
|
|
130
|
+
/** The accessible names of the box and of the placeholder shown while the widget loads (`ui.botProtection*` of the visitor text) */
|
|
131
|
+
interface AltchaWidgetLabels {
|
|
132
|
+
botProtection: string;
|
|
133
|
+
botProtectionLoading: string;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
interface UseBotProtectionOptions {
|
|
137
|
+
/** Protection strength of the built-in provider: standard = server-signed token, full = ALTCHA proof of work */
|
|
138
|
+
variant?: "standard" | "full";
|
|
139
|
+
/** Custom challenge URL (default /api/form-protection/challenge) */
|
|
140
|
+
challengeUrl?: string;
|
|
141
|
+
/** ALTCHA challenge URL (used when variant=full, default /api/form-protection/altcha) */
|
|
142
|
+
altchaChallengeUrl?: string;
|
|
143
|
+
/** What the token is bound to (such as the formId) */
|
|
144
|
+
context?: string;
|
|
145
|
+
/**
|
|
146
|
+
* Entry point: only entry points whose provider can be changed switch to a third party according to the site settings.
|
|
147
|
+
* Omit to always use the built-in provider (entry points fixed to it, such as checkout drafts).
|
|
148
|
+
*/
|
|
149
|
+
entry?: SelectableProtectionEntryId;
|
|
150
|
+
/** The site's public settings; read from BotProtectionConfigProvider when omitted, and built-in when there is no provider */
|
|
151
|
+
config?: PublicBotProtectionConfig | null;
|
|
152
|
+
/**
|
|
153
|
+
* Whether this form will request attachment upload tickets: a third-party provider's token is single-use, so upload tickets use a server-issued token instead
|
|
154
|
+
* (as Webflow does: uploads rely on signatures and rate limits, and bot protection happens on submit); it is fetched in the background only when needed.
|
|
155
|
+
*/
|
|
156
|
+
needsUploadToken?: boolean;
|
|
157
|
+
}
|
|
158
|
+
interface BotProtectionFieldBindings {
|
|
159
|
+
variant: "standard" | "full";
|
|
160
|
+
context: string;
|
|
161
|
+
altchaChallengeUrl: string;
|
|
162
|
+
onAltchaVerified?: (payload: string) => void;
|
|
163
|
+
onAltchaInvalidated?: () => void;
|
|
164
|
+
onHoneypotChange: (value: string) => void;
|
|
165
|
+
onHoneypotWpChange: (value: string) => void;
|
|
166
|
+
onHoneypotCoChange: (value: string) => void;
|
|
167
|
+
}
|
|
168
|
+
/** Parameters the third-party widget needs; null for the built-in provider */
|
|
169
|
+
interface ThirdPartyCaptchaBinding {
|
|
170
|
+
provider: ThirdPartyBotProtectionProvider;
|
|
171
|
+
siteKey: string;
|
|
172
|
+
action: string;
|
|
173
|
+
cData: string | null;
|
|
174
|
+
recaptchaVersion: RecaptchaVersion | null;
|
|
175
|
+
generation: number;
|
|
176
|
+
onVerified: (token: string) => void;
|
|
177
|
+
onInvalidated: () => void;
|
|
178
|
+
registerExecutor: (executor: (() => Promise<string | null>) | null) => void;
|
|
179
|
+
}
|
|
180
|
+
/** Passed to `<BotProtectionChallenge>`: draws ALTCHA for the built-in provider, or that provider's widget for a third party */
|
|
181
|
+
interface BotProtectionChallengeBindings {
|
|
182
|
+
provider: BotProtectionProvider;
|
|
183
|
+
fieldProps: BotProtectionFieldBindings;
|
|
184
|
+
captcha: ThirdPartyCaptchaBinding | null;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* BotProtectionFields Props
|
|
189
|
+
*/
|
|
190
|
+
interface BotProtectionFieldsProps {
|
|
191
|
+
/** Renders the ALTCHA widget when variant=full */
|
|
192
|
+
variant?: FormProtectionVariant;
|
|
193
|
+
/** ALTCHA challenge URL (used when variant=full) */
|
|
194
|
+
altchaChallengeUrl?: string;
|
|
195
|
+
/** What the token is bound to (formId and the like); appended to the challenge URL so the proof of work is bound to this form */
|
|
196
|
+
context?: string;
|
|
197
|
+
/** Called when ALTCHA verification completes */
|
|
198
|
+
onAltchaVerified?: (payload: string) => void;
|
|
199
|
+
/** Called when ALTCHA leaves the verified state (expired and solving again, or an error); the hook clears the token and disables submit accordingly */
|
|
200
|
+
onAltchaInvalidated?: () => void;
|
|
201
|
+
/**
|
|
202
|
+
* Called when a honeypot field's value changes
|
|
203
|
+
* For use together with the useBotProtection hook
|
|
204
|
+
*/
|
|
205
|
+
onHoneypotChange?: (value: string) => void;
|
|
206
|
+
onHoneypotWpChange?: (value: string) => void;
|
|
207
|
+
onHoneypotCoChange?: (value: string) => void;
|
|
208
|
+
/**
|
|
209
|
+
* Locale of the ALTCHA widget's text. When omitted, `KanorioBotProtection` and `KanorioBotProtectionAltcha` use the `locale` of the
|
|
210
|
+
* surrounding `KanorioProvider`, then `<html lang>`, then English
|
|
211
|
+
*/
|
|
212
|
+
locale?: string | null;
|
|
213
|
+
/**
|
|
214
|
+
* Whether the ALTCHA widget is rendered here (true by default).
|
|
215
|
+
* When a form wants the widget before the submit button instead of at the first question, set false and mount `<BotProtectionAltcha>` separately.
|
|
216
|
+
*/
|
|
217
|
+
renderAltcha?: boolean;
|
|
218
|
+
}
|
|
219
|
+
type BotProtectionAltchaProps = Pick<BotProtectionFieldsProps, "variant" | "altchaChallengeUrl" | "context" | "onAltchaVerified" | "onAltchaInvalidated" | "locale"> & Pick<AltchaWidgetProps, "invisible" | "revealed" | "generation" | "onStateChange" | "labels"> & {
|
|
220
|
+
className?: string;
|
|
221
|
+
};
|
|
222
|
+
/**
|
|
223
|
+
* Only the ALTCHA widget half: rendered when variant=full.
|
|
224
|
+
* Lets a form place bot protection before the submit button (instead of above the questions); the honeypots are still handled by `<BotProtectionFields renderAltcha={false}>`.
|
|
225
|
+
*/
|
|
226
|
+
declare function BotProtectionAltcha({ variant, altchaChallengeUrl, context, onAltchaVerified, onAltchaInvalidated, locale, className, invisible, revealed, generation, onStateChange, labels, }: BotProtectionAltchaProps): react_jsx_runtime.JSX.Element | null;
|
|
227
|
+
/**
|
|
228
|
+
* Bot protection hidden fields component
|
|
229
|
+
*
|
|
230
|
+
* Renders several honeypot fields that are visually hidden but visible to bots.
|
|
231
|
+
* Field names and labels are meaningless strings (see constants.ts), so browsers do not autofill them.
|
|
232
|
+
*
|
|
233
|
+
* @example
|
|
234
|
+
* ```tsx
|
|
235
|
+
* <form>
|
|
236
|
+
* <BotProtectionFields context={formId} onHoneypotChange={setHoneypotValue} ... />
|
|
237
|
+
* <input name="email" ... />
|
|
238
|
+
* <button type="submit">Submit</button>
|
|
239
|
+
* </form>
|
|
240
|
+
* ```
|
|
241
|
+
*/
|
|
242
|
+
declare function BotProtectionFields({ variant, altchaChallengeUrl, context, onAltchaVerified, onAltchaInvalidated, onHoneypotChange, onHoneypotWpChange, onHoneypotCoChange, locale, renderAltcha, }: BotProtectionFieldsProps): react_jsx_runtime.JSX.Element;
|
|
243
|
+
|
|
244
|
+
interface UseKanorioBotProtectionOptions extends Omit<UseBotProtectionOptions, "challengeUrl" | "altchaChallengeUrl"> {
|
|
245
|
+
/** Kanorio system or service URL (read from `<KanorioProvider>` when omitted) */
|
|
246
|
+
siteUrl?: string;
|
|
247
|
+
}
|
|
248
|
+
/**
|
|
249
|
+
* Public bot-protection hook: points the challenge and ALTCHA endpoints at the site's `{siteUrl}/api/form-protection/*`.
|
|
250
|
+
*/
|
|
251
|
+
declare function useKanorioBotProtection(options?: UseKanorioBotProtectionOptions): UseBotProtectionReturn & {
|
|
252
|
+
fieldProps: BotProtectionFieldBindings;
|
|
253
|
+
challengeProps: BotProtectionChallengeBindings;
|
|
254
|
+
provider: BotProtectionProvider;
|
|
255
|
+
prepare: () => Promise<void>;
|
|
256
|
+
renewCaptcha: () => void;
|
|
257
|
+
getUploadProtectionData: () => BotProtectionData;
|
|
258
|
+
isUploadReady: boolean;
|
|
259
|
+
_setHoneypotValue: (value: string) => void;
|
|
260
|
+
_setHoneypotWpValue: (value: string) => void;
|
|
261
|
+
_setHoneypotCoValue: (value: string) => void;
|
|
262
|
+
};
|
|
263
|
+
type BotProtectionThemeProps = {
|
|
264
|
+
/**
|
|
265
|
+
* The colour scheme of the ALTCHA box: `light`, `dark` or `auto`. Defaults to `light` or `dark` set on the surrounding
|
|
266
|
+
* `KanorioProvider`; otherwise the box keeps its light defaults (it sits in your form, whose colours it cannot know). Pass `auto` when
|
|
267
|
+
* your form follows the visitor's system.
|
|
268
|
+
*/
|
|
269
|
+
theme?: KanorioTheme;
|
|
270
|
+
};
|
|
271
|
+
/**
|
|
272
|
+
* Bot protection for a form you build yourself: the honeypot fields and, with `variant="full"`, the ALTCHA box. Spread the `fieldProps`
|
|
273
|
+
* of `useKanorioBotProtection` onto it and send `getProtectionData()` with your submission. Place it inside your `<form>`; it adds no
|
|
274
|
+
* wrapper element, and everything renders at once (on the server too). The box takes the site brand of the surrounding
|
|
275
|
+
* `KanorioProvider`, and the `theme` given to it or `light` / `dark` set on the provider.
|
|
276
|
+
*
|
|
277
|
+
* `isSubmittable` turns true two seconds after the visitor first focuses the form (`registerFocus`) and, with `variant="full"`, once
|
|
278
|
+
* the ALTCHA box has verified.
|
|
279
|
+
*
|
|
280
|
+
* @example
|
|
281
|
+
* ```tsx
|
|
282
|
+
* const protection = useKanorioBotProtection({ context: formId });
|
|
283
|
+
* <form onFocus={protection.registerFocus} onSubmit={...}>
|
|
284
|
+
* <KanorioBotProtection {...protection.fieldProps} />
|
|
285
|
+
* {yourFields}
|
|
286
|
+
* <button type="submit" disabled={!protection.isSubmittable}>Send</button>
|
|
287
|
+
* </form>
|
|
288
|
+
* ```
|
|
289
|
+
*/
|
|
290
|
+
declare function KanorioBotProtection({ theme, ...props }: ComponentProps<typeof BotProtectionFields> & BotProtectionThemeProps): react_jsx_runtime.JSX.Element;
|
|
291
|
+
/**
|
|
292
|
+
* The ALTCHA box alone, for a form that places it apart from the honeypots (for example just before the submit button; render
|
|
293
|
+
* `KanorioBotProtection` with `renderAltcha={false}` for the honeypots). Same theme, brand and label rules as `KanorioBotProtection`.
|
|
294
|
+
*/
|
|
295
|
+
declare function KanorioBotProtectionAltcha({ theme, ...props }: Omit<ComponentProps<typeof BotProtectionAltcha>, "labels"> & BotProtectionThemeProps): react_jsx_runtime.JSX.Element;
|
|
296
|
+
|
|
297
|
+
export { KanorioBotProtection, KanorioBotProtectionAltcha, type UseKanorioBotProtectionOptions, useKanorioBotProtection };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{KanorioBotProtection,KanorioBotProtectionAltcha,useKanorioBotProtection}from"./chunk-SUXTLVTX.js";import"./chunk-IXDKZO42.js";import"./chunk-RKEHHJDU.js";import"./chunk-JH5D6YJX.js";import"./chunk-VUTODQFX.js";import"./chunk-4MOCTNN7.js";import"./chunk-KNNN5V3T.js";import"./chunk-763LNERD.js";import"./chunk-U7H3W23Q.js";import"./chunk-MIQK3T3Y.js";import"./chunk-CU2JJTXI.js";import"./chunk-3ZTUZPSD.js";export{KanorioBotProtection,KanorioBotProtectionAltcha,useKanorioBotProtection};
|
|
2
|
+
//# sourceMappingURL=bot-protection.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
function i(t,e){return{locale:e,ui:t.ui,search:t.search,shop:t.shop,blog:t.blog,productInfo:t.productInfo,delivery:t.delivery,paymentMethods:t.orderStatus.methodTypes,cookieSettings:t.cookieConsent.settings,curriculum:{contentUnitsCount:t.account.contentUnitsCount,contentPreviewBadge:t.account.contentPreviewBadge,contentLocked:t.account.contentLocked,contentOptional:t.account.contentOptional,contentLoadError:t.account.contentLoadError,contentNoUnits:t.account.contentNoUnits}}}function c(t,e){let n=t;for(let[o,r]of Object.entries(e))n=n.replaceAll(`{${o}}`,r);return n}export{i as a,c as b};
|
|
2
|
+
//# sourceMappingURL=chunk-2E6RCDAA.js.map
|