@kanorio/elements 0.0.0-stage → 1.1.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/LICENSE +21 -0
- package/README.md +57 -2
- package/dist/MediaPlayer-7IBSXL7Q.js +2 -0
- package/dist/MediaPlayer-HTXF4T2V.js +2 -0
- package/dist/PDFViewerFull-FBLYNUDX.js +3 -0
- package/dist/PDFViewerFull-KMUVT2BL.js +13 -0
- package/dist/altcha-J22D7W3J.js +4 -0
- package/dist/altcha-NPBMCOEY.js +4 -0
- package/dist/ar-3VA7IUCO.js +2 -0
- package/dist/ar-AUQCHHZG.js +2 -0
- package/dist/ar-DCOOI5KT.js +2 -0
- package/dist/ar-HRZRFWUW.js +2 -0
- package/dist/bg-3IK4HFKG.js +2 -0
- package/dist/bg-IRGRVWOG.js +2 -0
- package/dist/bg-QWC2KG3G.js +2 -0
- package/dist/bg-TNDZDXHZ.js +2 -0
- package/dist/bn-BHRS66N3.js +2 -0
- package/dist/bn-DM5WNGJ5.js +2 -0
- package/dist/bn-L44L7SBD.js +2 -0
- package/dist/bn-RR3LC6EH.js +2 -0
- package/dist/chunk-2UVUNYL6.js +2 -0
- package/dist/chunk-37VDVTUT.js +2 -0
- package/dist/chunk-3OGF7I4H.js +2 -0
- package/dist/chunk-3ZTUZPSD.js +2 -0
- package/dist/chunk-5AWUTOK7.js +2 -0
- package/dist/chunk-5U2SZE3H.js +2 -0
- package/dist/chunk-6LGTFWQS.js +15 -0
- package/dist/chunk-A77JMBLF.js +2 -0
- package/dist/chunk-BZJ5YCGP.js +2 -0
- package/dist/chunk-CDG7S4P5.js +2 -0
- package/dist/chunk-CP347QFQ.js +2 -0
- package/dist/chunk-DTDUK36B.js +8 -0
- package/dist/chunk-DXTWCLOM.js +4 -0
- package/dist/chunk-EY4JAVE3.js +2 -0
- package/dist/chunk-F5NEDREL.js +2 -0
- package/dist/chunk-HBNSRIEP.js +2 -0
- package/dist/chunk-JZXJO62T.js +15 -0
- package/dist/chunk-LLHBSWTL.js +2 -0
- package/dist/chunk-M5GS2ENM.js +2 -0
- package/dist/chunk-MG2FK3GU.js +5 -0
- package/dist/chunk-N7SSXSF5.js +2 -0
- package/dist/chunk-NOCGHD2O.js +2 -0
- package/dist/chunk-S4ZA2INU.js +415 -0
- package/dist/chunk-TLBIYET7.js +404 -0
- package/dist/chunk-TLRFFLH4.js +94 -0
- package/dist/chunk-U3U5KVR6.js +2 -0
- package/dist/chunk-UBMXRFSK.js +4 -0
- package/dist/chunk-V4OWPVBD.js +2 -0
- package/dist/chunk-ZDU7A7WZ.js +2 -0
- package/dist/chunk-ZSRHO7CJ.js +2 -0
- package/dist/cs-3IX2ZQKJ.js +2 -0
- package/dist/cs-MFQPSNCV.js +2 -0
- package/dist/cs-NZW6FBFY.js +2 -0
- package/dist/cs-OMRFBZVP.js +2 -0
- package/dist/da-7SYMTSVT.js +2 -0
- package/dist/da-AFMLFM32.js +2 -0
- package/dist/da-MEA64IPM.js +2 -0
- package/dist/da-PZ32KKTE.js +2 -0
- package/dist/de-5JPEK4HF.js +2 -0
- package/dist/de-7GBTXFMH.js +2 -0
- package/dist/de-E4Z2FEBZ.js +2 -0
- package/dist/de-MVL4XGYR.js +2 -0
- package/dist/deliverables-FBCRGMTB.js +93 -0
- package/dist/deliverables-FMKPDHJH.js +92 -0
- package/dist/el-BCFO2NS3.js +2 -0
- package/dist/el-G2AWU43W.js +2 -0
- package/dist/el-O7W5IGS6.js +2 -0
- package/dist/el-SMBF7FG4.js +2 -0
- package/dist/elements.css +2 -0
- package/dist/en-AIAENVLI.js +2 -0
- package/dist/en-AU-LB5UVGIW.js +2 -0
- package/dist/en-AU-Q2O2HPJ2.js +2 -0
- package/dist/en-CA-AZDOY7PW.js +2 -0
- package/dist/en-CA-PVKXM3WS.js +2 -0
- package/dist/en-CMYO4GCN.js +2 -0
- package/dist/en-GB-2N4WB6SL.js +2 -0
- package/dist/en-GB-Y5QRPC7S.js +2 -0
- package/dist/en-LHV2B2XG.js +2 -0
- package/dist/en-SAXQF5YW.js +2 -0
- package/dist/en-US-74L4OI3J.js +2 -0
- package/dist/en-US-EKS52JBW.js +2 -0
- package/dist/errors-OILTIMI5.js +2 -0
- package/dist/errors-S4JOS2FB.js +2 -0
- package/dist/es-419-CN2GZEOV.js +2 -0
- package/dist/es-419-KBS42HIO.js +2 -0
- package/dist/es-419-Q5IH6W5F.js +2 -0
- package/dist/es-419-VSZWGONE.js +2 -0
- package/dist/es-ES-7L55KPLO.js +2 -0
- package/dist/es-ES-ETSYFLPQ.js +2 -0
- package/dist/es-es-GNKRK4H2.js +2 -0
- package/dist/es-es-ZHEJP4O2.js +2 -0
- package/dist/fa-FBR4MORA.js +2 -0
- package/dist/fa-OYP2Q5EV.js +2 -0
- package/dist/fa-QWGXRQ4X.js +2 -0
- package/dist/fa-WRJCKGS3.js +2 -0
- package/dist/fi-44ST6B6Q.js +2 -0
- package/dist/fi-BATN376F.js +2 -0
- package/dist/fi-J6NJBPNK.js +2 -0
- package/dist/fi-PSUMYQZD.js +2 -0
- package/dist/fr-CA-KXRNFZBP.js +2 -0
- package/dist/fr-CA-PWWAPLBH.js +2 -0
- package/dist/fr-FR-FMLQPLOD.js +2 -0
- package/dist/fr-FR-MQAFE7IX.js +2 -0
- package/dist/fr-ca-2B3TKJL6.js +2 -0
- package/dist/fr-ca-A4GWIOE7.js +2 -0
- package/dist/fr-fr-FEUFFV6I.js +2 -0
- package/dist/fr-fr-TONIMGOJ.js +2 -0
- package/dist/gu-BREQK3GJ.js +2 -0
- package/dist/gu-RNCZTEOA.js +2 -0
- package/dist/he-4AQSZCU4.js +2 -0
- package/dist/he-GNC45OCB.js +2 -0
- package/dist/he-RZE7SAH3.js +2 -0
- package/dist/he-VXZCGAHY.js +2 -0
- package/dist/hi-DKG5TPYX.js +2 -0
- package/dist/hi-F7Y62LAZ.js +2 -0
- package/dist/hi-G5IRZBZ5.js +2 -0
- package/dist/hi-LFKLYYDS.js +2 -0
- package/dist/hls-7WKCHYU6.js +45 -0
- package/dist/hls-KJIMXAWZ.js +30 -0
- package/dist/hu-3Y5YEIFL.js +2 -0
- package/dist/hu-BPCAJCJ3.js +2 -0
- package/dist/hu-L6W5O2G5.js +2 -0
- package/dist/hu-YRQRLSFJ.js +2 -0
- package/dist/id-64FYGYA6.js +2 -0
- package/dist/id-7DWHYYFC.js +2 -0
- package/dist/id-DCV57AQB.js +2 -0
- package/dist/id-E4ZYT3YK.js +2 -0
- package/dist/index.d.ts +3045 -0
- package/dist/index.js +2 -0
- package/dist/it-7RASZ4SK.js +2 -0
- package/dist/it-BGPYU5QL.js +2 -0
- package/dist/it-JICU5WVL.js +2 -0
- package/dist/it-YD6A6Q35.js +2 -0
- package/dist/ja-4V7QJLTM.js +2 -0
- package/dist/ja-52MBIM3T.js +2 -0
- package/dist/ja-EGKR5NHK.js +2 -0
- package/dist/ja-MA2A5SFZ.js +2 -0
- package/dist/kanorio-elements.js +98 -0
- package/dist/km-HPCMYWAG.js +2 -0
- package/dist/km-PHVYTPLT.js +2 -0
- package/dist/kn-5DYCOYAN.js +2 -0
- package/dist/kn-QAWBGLHG.js +2 -0
- package/dist/ko-55JV4VQK.js +2 -0
- package/dist/ko-7QD664NG.js +2 -0
- package/dist/ko-FZIJZG6K.js +2 -0
- package/dist/ko-G4I5K2UY.js +2 -0
- package/dist/lo-JNUKFIQV.js +2 -0
- package/dist/lo-YRHYLRZC.js +2 -0
- package/dist/ml-3LXSDTNF.js +2 -0
- package/dist/ml-QO64O4H6.js +2 -0
- package/dist/mr-5WLN37JQ.js +2 -0
- package/dist/mr-HGKBSCPM.js +2 -0
- package/dist/mr-PLM72664.js +2 -0
- package/dist/mr-Q2RUE6T6.js +2 -0
- package/dist/ms-N544Y63H.js +2 -0
- package/dist/ms-PIAATVMD.js +2 -0
- package/dist/my-3J665CWK.js +2 -0
- package/dist/my-6IKSM3XW.js +2 -0
- package/dist/nb-345ACUTX.js +2 -0
- package/dist/nb-F33WYJ6T.js +2 -0
- package/dist/nb-VXSPTUAK.js +2 -0
- package/dist/nb-ZOWEL6VQ.js +2 -0
- package/dist/ne-AAIECB2W.js +2 -0
- package/dist/ne-ASFNHMO3.js +2 -0
- package/dist/nl-4KAIKVKC.js +2 -0
- package/dist/nl-BE-SHZLAL5T.js +2 -0
- package/dist/nl-BE-WK4C6XRZ.js +2 -0
- package/dist/nl-NL-2YLHGJZL.js +2 -0
- package/dist/nl-NL-PHRY43UB.js +2 -0
- package/dist/nl-VXJ7CRDZ.js +2 -0
- package/dist/nn-I5A2LCBH.js +2 -0
- package/dist/nn-S3SNETRB.js +2 -0
- package/dist/pa-P2GAYL5A.js +2 -0
- package/dist/pa-VX5TUNDP.js +2 -0
- package/dist/pl-4Y4BWTLT.js +2 -0
- package/dist/pl-BRJ5H72A.js +2 -0
- package/dist/pl-OV5IAHMC.js +2 -0
- package/dist/pl-SGPLZAER.js +2 -0
- package/dist/prod-3BEPDL7S.js +2 -0
- package/dist/prod-4MTOPW55.js +2 -0
- package/dist/pt-BR-CW3MRSRP.js +2 -0
- package/dist/pt-BR-WKEKB5CG.js +2 -0
- package/dist/pt-PT-AJZQS2C6.js +2 -0
- package/dist/pt-PT-ZTPCI2K6.js +2 -0
- package/dist/pt-br-EXNYC3L5.js +2 -0
- package/dist/pt-br-IOF65TN2.js +2 -0
- package/dist/pt-pt-7BYW57KC.js +2 -0
- package/dist/pt-pt-DGEIQHKN.js +2 -0
- package/dist/ro-ANISGUFX.js +2 -0
- package/dist/ro-GDWJ3F3A.js +2 -0
- package/dist/ro-HRV64STT.js +2 -0
- package/dist/ro-SLAZ33BA.js +2 -0
- package/dist/ru-2GEOOKZX.js +2 -0
- package/dist/ru-7U566HR4.js +2 -0
- package/dist/ru-EJILX4Y7.js +2 -0
- package/dist/ru-PKSZKOLH.js +2 -0
- package/dist/si-5F7RWQIE.js +2 -0
- package/dist/si-5VUM5FGR.js +2 -0
- package/dist/srt-parser-7ZH4HLCL.js +3 -0
- package/dist/srt-parser-YWFHXAO4.js +2 -0
- package/dist/ssa-parser-2BHZLTC3.js +5 -0
- package/dist/ssa-parser-R6G7ZJLU.js +2 -0
- package/dist/sv-GFAENRIP.js +2 -0
- package/dist/sv-HZVCM7LG.js +2 -0
- package/dist/sv-UJ5LCXFA.js +2 -0
- package/dist/sv-UOGO55PW.js +2 -0
- package/dist/sw-5XU65KFC.js +2 -0
- package/dist/sw-EVYAYVM2.js +2 -0
- package/dist/sw-HPTUVWO6.js +2 -0
- package/dist/sw-KVAYRFED.js +2 -0
- package/dist/ta-L62HPFNH.js +2 -0
- package/dist/ta-MNWTH3F5.js +2 -0
- package/dist/ta-R73RBA23.js +2 -0
- package/dist/ta-TOIAFCN5.js +2 -0
- package/dist/te-5SBVH4OF.js +2 -0
- package/dist/te-GVW56XDM.js +2 -0
- package/dist/te-PWIXXRJP.js +2 -0
- package/dist/te-WKXYDHSM.js +2 -0
- package/dist/th-2GWK7DBB.js +2 -0
- package/dist/th-3VH5JHWP.js +2 -0
- package/dist/th-F7RKJACJ.js +2 -0
- package/dist/th-G6SY3D2Q.js +2 -0
- package/dist/tl-OCD2O6J3.js +2 -0
- package/dist/tl-PZNXANIM.js +2 -0
- package/dist/tr-2BDM6H5Q.js +2 -0
- package/dist/tr-RJO57G2Z.js +2 -0
- package/dist/tr-TCPMEXLQ.js +2 -0
- package/dist/tr-VFMHVRQX.js +2 -0
- package/dist/uk-6S7TMK7C.js +2 -0
- package/dist/uk-JZQ5M5JE.js +2 -0
- package/dist/uk-OQRACKKD.js +2 -0
- package/dist/uk-PGHXMWJR.js +2 -0
- package/dist/ur-4CR64XUI.js +2 -0
- package/dist/ur-CV7QI6IC.js +2 -0
- package/dist/ur-J5HV4NTW.js +2 -0
- package/dist/ur-PJPC3XAH.js +2 -0
- package/dist/vi-MQSOSIUY.js +2 -0
- package/dist/vi-THIT43PD.js +2 -0
- package/dist/vi-U7OT2LM7.js +2 -0
- package/dist/vi-XMAGDR5G.js +2 -0
- package/dist/vidstack-B9fTkxQO-EQ52NVZW.js +2 -0
- package/dist/vidstack-B9fTkxQO-GEVQP7HO.js +2 -0
- package/dist/vidstack-BmcqUMKx-JZPVW77Y.js +2 -0
- package/dist/vidstack-BmcqUMKx-XYI2YLUH.js +2 -0
- package/dist/vidstack-C0fPJIzs-MDJPXUYY.js +2 -0
- package/dist/vidstack-C0fPJIzs-S4BCJHHV.js +2 -0
- package/dist/vidstack-CHcsWfRV-UMLDE4ND.js +2 -0
- package/dist/vidstack-CHcsWfRV-VTC6J2M3.js +2 -0
- package/dist/vidstack-CvezEmSQ-GSHFFL5T.js +2 -0
- package/dist/vidstack-CvezEmSQ-X4CSXZAN.js +2 -0
- package/dist/vidstack-D2vrrUMs-LK4VWKXR.js +2 -0
- package/dist/vidstack-D2vrrUMs-MZTRJLT6.js +2 -0
- package/dist/vidstack-Di0HObvT-G6SYBHQL.js +2 -0
- package/dist/vidstack-Di0HObvT-P5UCUZVE.js +2 -0
- package/dist/vidstack-DiaLSJYx-4FNR72DU.js +2 -0
- package/dist/vidstack-DiaLSJYx-SXHLLWKT.js +2 -0
- package/dist/vidstack-Dy74GavT-BN73KZQD.js +2 -0
- package/dist/vidstack-Dy74GavT-R7RVPT3S.js +2 -0
- package/dist/vidstack-GkTzay8D-IY3RQGM5.js +2 -0
- package/dist/vidstack-GkTzay8D-PBE5ZIYA.js +2 -0
- package/dist/web-components.d.ts +12 -0
- package/dist/web-components.js +2 -0
- package/dist/worker.js +1 -0
- package/dist/zh-CN-CCYHPSVA.js +2 -0
- package/dist/zh-CN-RNW2BEY7.js +2 -0
- package/dist/zh-HK-HE2T63O2.js +2 -0
- package/dist/zh-HK-RKREDSAO.js +2 -0
- package/dist/zh-Hant-GBQLGJDF.js +2 -0
- package/dist/zh-Hant-T6KHSA5B.js +2 -0
- package/dist/zh-cn-NBHEPFJJ.js +2 -0
- package/dist/zh-cn-XPV5D6U6.js +2 -0
- package/dist/zh-tw-EGRDKAEG.js +2 -0
- package/dist/zh-tw-HNBFCMMO.js +2 -0
- package/package.json +83 -3
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,3045 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as react from 'react';
|
|
3
|
+
import { ReactNode, ComponentProps } from 'react';
|
|
4
|
+
import { CustomerContentClientLike, DeliveryPaths } from '@kanorio/sdk';
|
|
5
|
+
import { z } from 'zod';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Response shapes of the Customer API (`{site}/api/v1/customer/*`; a public contract).
|
|
9
|
+
* Kanorio's server produces these objects; Elements, the hosted customer account and the SDK share the types. Fields are only added and meanings never change.
|
|
10
|
+
*/
|
|
11
|
+
/** `prerequisite`: blocked by sequential completion or by a gate unit; `access.lockedByUnitId` is the unit blocking it */
|
|
12
|
+
type UnitAccessReason = "entitlement" | "preview" | "none" | "not_released" | "expired" | "hidden" | "prerequisite";
|
|
13
|
+
type UnitProgressStatus = "not_started" | "in-progress" | "completed";
|
|
14
|
+
/** A quiz unit's summary for the learner (the questions are in `body`, a `PublicQuizBody`, which never contains correct answers) */
|
|
15
|
+
interface CustomerQuizSummary {
|
|
16
|
+
/** `graded`: passing completes the unit; `practice`: submitting completes it, with no pass mark and unlimited attempts. Absent on older servers (treated as graded) */
|
|
17
|
+
mode?: "graded" | "practice";
|
|
18
|
+
passingPercent: number;
|
|
19
|
+
/** Attempts allowed (including extra ones granted by the owner); null means unlimited */
|
|
20
|
+
maxAttempts: number | null;
|
|
21
|
+
attemptsUsed: number;
|
|
22
|
+
bestScore: number | null;
|
|
23
|
+
/** Graded: has passed at least once; practice: has submitted at least once */
|
|
24
|
+
passed: boolean;
|
|
25
|
+
canRetry: boolean;
|
|
26
|
+
}
|
|
27
|
+
/** A deliverable's cover image (an image on this site; null when there is none or it was moved to the trash) */
|
|
28
|
+
interface DeliverableCover {
|
|
29
|
+
url: string;
|
|
30
|
+
width: number | null;
|
|
31
|
+
height: number | null;
|
|
32
|
+
/** The image's default alt text */
|
|
33
|
+
alt: string | null;
|
|
34
|
+
/** Low-quality placeholder data URL (16px WebP) */
|
|
35
|
+
placeholder: string | null;
|
|
36
|
+
}
|
|
37
|
+
/** A unit's attachment (handout, template, exercise file): file name and size only; get the download URL with `openUnit(unitId, "download", { attachmentId })` */
|
|
38
|
+
interface UnitAttachmentView {
|
|
39
|
+
/** The attachment's file id, passed as `attachmentId` to `openUnit` */
|
|
40
|
+
id: string;
|
|
41
|
+
fileName: string;
|
|
42
|
+
mimeType: string | null;
|
|
43
|
+
/** Bytes; null when unknown */
|
|
44
|
+
bytes: number | null;
|
|
45
|
+
}
|
|
46
|
+
interface CustomerUnitView {
|
|
47
|
+
id: string;
|
|
48
|
+
parentId: string | null;
|
|
49
|
+
order: number;
|
|
50
|
+
kind: string;
|
|
51
|
+
title: string | null;
|
|
52
|
+
description: string | null;
|
|
53
|
+
isPreview: boolean;
|
|
54
|
+
allowDownload: boolean;
|
|
55
|
+
/** Counts toward completion (false means optional: not part of the completion ratio, not blocked by sequence and does not block others); absent on older servers */
|
|
56
|
+
countsTowardCompletion?: boolean;
|
|
57
|
+
/** Gate: what follows cannot be viewed until this is completed; absent on older servers */
|
|
58
|
+
isPrerequisite?: boolean;
|
|
59
|
+
hasFile: boolean;
|
|
60
|
+
/** Attachments (in the owner's order); an empty array without access. Absent on older servers */
|
|
61
|
+
attachments?: UnitAttachmentView[];
|
|
62
|
+
embed: {
|
|
63
|
+
provider: string;
|
|
64
|
+
id: string;
|
|
65
|
+
} | null;
|
|
66
|
+
/** `{ markdown }` for a text unit; `PublicQuizBody` (without correct answers) for a quiz unit; null when locked */
|
|
67
|
+
body: unknown;
|
|
68
|
+
/** Quiz units only; null while the questions are not ready. Absent on older servers */
|
|
69
|
+
quiz?: CustomerQuizSummary | null;
|
|
70
|
+
duration: number | null;
|
|
71
|
+
pageCount: number | null;
|
|
72
|
+
mimeType: string | null;
|
|
73
|
+
/** `lockedByUnitId`: the unit blocking it when reason is `prerequisite`; absent on older servers */
|
|
74
|
+
access: {
|
|
75
|
+
granted: boolean;
|
|
76
|
+
reason: UnitAccessReason;
|
|
77
|
+
availableAt: string | null;
|
|
78
|
+
lockedByUnitId?: string | null;
|
|
79
|
+
};
|
|
80
|
+
progress: UnitProgressStatus;
|
|
81
|
+
/** The furthest second watched (only moves forward; used for progress) */
|
|
82
|
+
positionSeconds: number;
|
|
83
|
+
/** Where playback last stopped (seconds; resume from here); absent on older servers */
|
|
84
|
+
lastPosition?: number;
|
|
85
|
+
/** Share watched, 0 to 100 (union of segments divided by duration); null without a duration or before any watching; absent on older servers */
|
|
86
|
+
coveredPercent?: number | null;
|
|
87
|
+
}
|
|
88
|
+
/** Author or instructor (a site-wide list, the same one as post authors); `avatar` is a URL ready to display */
|
|
89
|
+
interface DeliverableAuthorView {
|
|
90
|
+
id: string;
|
|
91
|
+
name: string;
|
|
92
|
+
/** Title (for example "Senior chef") */
|
|
93
|
+
title: string | null;
|
|
94
|
+
avatar: string | null;
|
|
95
|
+
bio: string | null;
|
|
96
|
+
url: string | null;
|
|
97
|
+
}
|
|
98
|
+
interface CustomerDeliverableTree {
|
|
99
|
+
id: string;
|
|
100
|
+
title: string;
|
|
101
|
+
description: string | null;
|
|
102
|
+
structure: "COURSE" | "DOWNLOAD";
|
|
103
|
+
coverAssetId: string | null;
|
|
104
|
+
cover: DeliverableCover | null;
|
|
105
|
+
/** In the owner's order; absent on older servers */
|
|
106
|
+
authors?: DeliverableAuthorView[];
|
|
107
|
+
settings: {
|
|
108
|
+
completionRule: {
|
|
109
|
+
type: "all_units";
|
|
110
|
+
} | {
|
|
111
|
+
type: "percent";
|
|
112
|
+
percent: number;
|
|
113
|
+
} | {
|
|
114
|
+
type: "quiz_passed";
|
|
115
|
+
unitId: string;
|
|
116
|
+
};
|
|
117
|
+
certificate: {
|
|
118
|
+
enabled: boolean;
|
|
119
|
+
title: string | null;
|
|
120
|
+
signatureName: string | null;
|
|
121
|
+
signatureTitle?: string | null;
|
|
122
|
+
signatureAssetId?: string | null;
|
|
123
|
+
showLogo?: boolean;
|
|
124
|
+
note?: string | null;
|
|
125
|
+
/** Both fields are absent on older servers */
|
|
126
|
+
backgroundAssetId?: string | null;
|
|
127
|
+
backgroundOverlay?: boolean;
|
|
128
|
+
};
|
|
129
|
+
comments: {
|
|
130
|
+
enabled: boolean;
|
|
131
|
+
threaded: boolean;
|
|
132
|
+
requireReview: boolean;
|
|
133
|
+
reactions: boolean;
|
|
134
|
+
};
|
|
135
|
+
requireSequential: boolean;
|
|
136
|
+
/** Share of an audio or video unit that counts as complete (50 to 100, default 90); absent on older servers */
|
|
137
|
+
mediaCompletionPercent?: number;
|
|
138
|
+
};
|
|
139
|
+
units: CustomerUnitView[];
|
|
140
|
+
progress: {
|
|
141
|
+
percent: number;
|
|
142
|
+
completed: boolean;
|
|
143
|
+
completedAt?: string | null;
|
|
144
|
+
} | null;
|
|
145
|
+
/** Completion certificate: `enabled` exists only when the course offers one; after completion `serial` and `issuedAt` are set, and `getCertificate` returns the download URL. Absent on older servers */
|
|
146
|
+
certificate?: {
|
|
147
|
+
enabled: boolean;
|
|
148
|
+
serial: string | null;
|
|
149
|
+
issuedAt: string | null;
|
|
150
|
+
} | null;
|
|
151
|
+
}
|
|
152
|
+
/** The public outline from the Delivery API (anonymous; no private URLs and no body): used by the curriculum section on product pages and by `/api/v1/products` */
|
|
153
|
+
interface PublicDeliverableOutline {
|
|
154
|
+
id: string;
|
|
155
|
+
title: string;
|
|
156
|
+
description: string | null;
|
|
157
|
+
structure: "COURSE" | "DOWNLOAD";
|
|
158
|
+
coverAssetId: string | null;
|
|
159
|
+
cover: DeliverableCover | null;
|
|
160
|
+
/** Authors or instructors, in the owner's order; absent on older servers */
|
|
161
|
+
authors?: DeliverableAuthorView[];
|
|
162
|
+
unitCount: number;
|
|
163
|
+
/** Total unit duration (seconds; audio and video with a duration only); null without durations */
|
|
164
|
+
totalDurationSeconds: number | null;
|
|
165
|
+
units: Array<{
|
|
166
|
+
id: string;
|
|
167
|
+
parentId: string | null;
|
|
168
|
+
order: number;
|
|
169
|
+
kind: string;
|
|
170
|
+
title: string | null;
|
|
171
|
+
description: string | null;
|
|
172
|
+
isPreview: boolean;
|
|
173
|
+
/** Counts toward completion (false means optional); absent on older servers */
|
|
174
|
+
countsTowardCompletion?: boolean;
|
|
175
|
+
/** Scheduled release (ISO 8601); a preview unit cannot be played before then, and the outline should show the release time instead of a preview button */
|
|
176
|
+
releaseAt: string | null;
|
|
177
|
+
duration: number | null;
|
|
178
|
+
pageCount: number | null;
|
|
179
|
+
}>;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
/** Maximum column options: 1 to 5 columns (no auto; each section's UI may lower the limit) */
|
|
183
|
+
type MaxColumnsValue = 1 | 2 | 3 | 4 | 5 | 6;
|
|
184
|
+
/** Maximum columns per device (phone / tablet / desktop) */
|
|
185
|
+
type MaxColumnsConfig = {
|
|
186
|
+
mobile?: MaxColumnsValue;
|
|
187
|
+
tablet?: MaxColumnsValue;
|
|
188
|
+
desktop?: MaxColumnsValue;
|
|
189
|
+
};
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* The single source of truth for the online form schema.
|
|
193
|
+
*
|
|
194
|
+
* - `formFieldSchema` and `formSettingsSchema`: the form definition the owner sets up in the dashboard
|
|
195
|
+
* - Validation and normalization of visitor answers live in `validateFormAnswers` (`forms-answers.ts`); the server's submit endpoint and the public form widget share the same rules
|
|
196
|
+
*
|
|
197
|
+
* Pure functions with no DOM or database dependency, importable by the editor, hosted sites and the server.
|
|
198
|
+
* See Kanorio's forms documentation.
|
|
199
|
+
*/
|
|
200
|
+
|
|
201
|
+
declare const formFieldSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
202
|
+
type: z.ZodLiteral<"short_text">;
|
|
203
|
+
minLength: z.ZodOptional<z.ZodNumber>;
|
|
204
|
+
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
205
|
+
pattern: z.ZodOptional<z.ZodString>;
|
|
206
|
+
patternMessage: z.ZodOptional<z.ZodString>;
|
|
207
|
+
id: z.ZodString;
|
|
208
|
+
label: z.ZodString;
|
|
209
|
+
description: z.ZodOptional<z.ZodString>;
|
|
210
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
211
|
+
contactMapping: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"name">, z.ZodLiteral<"email">, z.ZodLiteral<"phone">, z.ZodString]>>;
|
|
212
|
+
visibleWhen: z.ZodOptional<z.ZodObject<{
|
|
213
|
+
match: z.ZodDefault<z.ZodEnum<{
|
|
214
|
+
all: "all";
|
|
215
|
+
any: "any";
|
|
216
|
+
}>>;
|
|
217
|
+
conditions: z.ZodArray<z.ZodObject<{
|
|
218
|
+
kind: z.ZodDefault<z.ZodEnum<{
|
|
219
|
+
field: "field";
|
|
220
|
+
hidden: "hidden";
|
|
221
|
+
}>>;
|
|
222
|
+
ref: z.ZodString;
|
|
223
|
+
op: z.ZodEnum<{
|
|
224
|
+
includes: "includes";
|
|
225
|
+
answered: "answered";
|
|
226
|
+
not_answered: "not_answered";
|
|
227
|
+
not_includes: "not_includes";
|
|
228
|
+
equals: "equals";
|
|
229
|
+
not_equals: "not_equals";
|
|
230
|
+
contains: "contains";
|
|
231
|
+
gt: "gt";
|
|
232
|
+
gte: "gte";
|
|
233
|
+
lt: "lt";
|
|
234
|
+
lte: "lte";
|
|
235
|
+
}>;
|
|
236
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
237
|
+
}, z.core.$strip>>;
|
|
238
|
+
}, z.core.$strip>>;
|
|
239
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
240
|
+
type: z.ZodLiteral<"long_text">;
|
|
241
|
+
minLength: z.ZodOptional<z.ZodNumber>;
|
|
242
|
+
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
243
|
+
id: z.ZodString;
|
|
244
|
+
label: z.ZodString;
|
|
245
|
+
description: z.ZodOptional<z.ZodString>;
|
|
246
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
247
|
+
contactMapping: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"name">, z.ZodLiteral<"email">, z.ZodLiteral<"phone">, z.ZodString]>>;
|
|
248
|
+
visibleWhen: z.ZodOptional<z.ZodObject<{
|
|
249
|
+
match: z.ZodDefault<z.ZodEnum<{
|
|
250
|
+
all: "all";
|
|
251
|
+
any: "any";
|
|
252
|
+
}>>;
|
|
253
|
+
conditions: z.ZodArray<z.ZodObject<{
|
|
254
|
+
kind: z.ZodDefault<z.ZodEnum<{
|
|
255
|
+
field: "field";
|
|
256
|
+
hidden: "hidden";
|
|
257
|
+
}>>;
|
|
258
|
+
ref: z.ZodString;
|
|
259
|
+
op: z.ZodEnum<{
|
|
260
|
+
includes: "includes";
|
|
261
|
+
answered: "answered";
|
|
262
|
+
not_answered: "not_answered";
|
|
263
|
+
not_includes: "not_includes";
|
|
264
|
+
equals: "equals";
|
|
265
|
+
not_equals: "not_equals";
|
|
266
|
+
contains: "contains";
|
|
267
|
+
gt: "gt";
|
|
268
|
+
gte: "gte";
|
|
269
|
+
lt: "lt";
|
|
270
|
+
lte: "lte";
|
|
271
|
+
}>;
|
|
272
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
273
|
+
}, z.core.$strip>>;
|
|
274
|
+
}, z.core.$strip>>;
|
|
275
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
276
|
+
type: z.ZodLiteral<"email">;
|
|
277
|
+
required: z.ZodPipe<z.ZodDefault<z.ZodBoolean>, z.ZodTransform<boolean, boolean>>;
|
|
278
|
+
contactMapping: z.ZodDefault<z.ZodLiteral<"email">>;
|
|
279
|
+
id: z.ZodString;
|
|
280
|
+
label: z.ZodString;
|
|
281
|
+
description: z.ZodOptional<z.ZodString>;
|
|
282
|
+
visibleWhen: z.ZodOptional<z.ZodObject<{
|
|
283
|
+
match: z.ZodDefault<z.ZodEnum<{
|
|
284
|
+
all: "all";
|
|
285
|
+
any: "any";
|
|
286
|
+
}>>;
|
|
287
|
+
conditions: z.ZodArray<z.ZodObject<{
|
|
288
|
+
kind: z.ZodDefault<z.ZodEnum<{
|
|
289
|
+
field: "field";
|
|
290
|
+
hidden: "hidden";
|
|
291
|
+
}>>;
|
|
292
|
+
ref: z.ZodString;
|
|
293
|
+
op: z.ZodEnum<{
|
|
294
|
+
includes: "includes";
|
|
295
|
+
answered: "answered";
|
|
296
|
+
not_answered: "not_answered";
|
|
297
|
+
not_includes: "not_includes";
|
|
298
|
+
equals: "equals";
|
|
299
|
+
not_equals: "not_equals";
|
|
300
|
+
contains: "contains";
|
|
301
|
+
gt: "gt";
|
|
302
|
+
gte: "gte";
|
|
303
|
+
lt: "lt";
|
|
304
|
+
lte: "lte";
|
|
305
|
+
}>;
|
|
306
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
307
|
+
}, z.core.$strip>>;
|
|
308
|
+
}, z.core.$strip>>;
|
|
309
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
310
|
+
type: z.ZodLiteral<"phone">;
|
|
311
|
+
contactMapping: z.ZodDefault<z.ZodLiteral<"phone">>;
|
|
312
|
+
defaultCountry: z.ZodOptional<z.ZodString>;
|
|
313
|
+
id: z.ZodString;
|
|
314
|
+
label: z.ZodString;
|
|
315
|
+
description: z.ZodOptional<z.ZodString>;
|
|
316
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
317
|
+
visibleWhen: z.ZodOptional<z.ZodObject<{
|
|
318
|
+
match: z.ZodDefault<z.ZodEnum<{
|
|
319
|
+
all: "all";
|
|
320
|
+
any: "any";
|
|
321
|
+
}>>;
|
|
322
|
+
conditions: z.ZodArray<z.ZodObject<{
|
|
323
|
+
kind: z.ZodDefault<z.ZodEnum<{
|
|
324
|
+
field: "field";
|
|
325
|
+
hidden: "hidden";
|
|
326
|
+
}>>;
|
|
327
|
+
ref: z.ZodString;
|
|
328
|
+
op: z.ZodEnum<{
|
|
329
|
+
includes: "includes";
|
|
330
|
+
answered: "answered";
|
|
331
|
+
not_answered: "not_answered";
|
|
332
|
+
not_includes: "not_includes";
|
|
333
|
+
equals: "equals";
|
|
334
|
+
not_equals: "not_equals";
|
|
335
|
+
contains: "contains";
|
|
336
|
+
gt: "gt";
|
|
337
|
+
gte: "gte";
|
|
338
|
+
lt: "lt";
|
|
339
|
+
lte: "lte";
|
|
340
|
+
}>;
|
|
341
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
342
|
+
}, z.core.$strip>>;
|
|
343
|
+
}, z.core.$strip>>;
|
|
344
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
345
|
+
type: z.ZodLiteral<"choice">;
|
|
346
|
+
options: z.ZodArray<z.ZodObject<{
|
|
347
|
+
id: z.ZodString;
|
|
348
|
+
label: z.ZodString;
|
|
349
|
+
}, z.core.$strip>>;
|
|
350
|
+
allowMultiple: z.ZodDefault<z.ZodBoolean>;
|
|
351
|
+
allowOther: z.ZodDefault<z.ZodBoolean>;
|
|
352
|
+
display: z.ZodDefault<z.ZodEnum<{
|
|
353
|
+
list: "list";
|
|
354
|
+
dropdown: "dropdown";
|
|
355
|
+
}>>;
|
|
356
|
+
minSelections: z.ZodOptional<z.ZodNumber>;
|
|
357
|
+
maxSelections: z.ZodOptional<z.ZodNumber>;
|
|
358
|
+
id: z.ZodString;
|
|
359
|
+
label: z.ZodString;
|
|
360
|
+
description: z.ZodOptional<z.ZodString>;
|
|
361
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
362
|
+
contactMapping: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"name">, z.ZodLiteral<"email">, z.ZodLiteral<"phone">, z.ZodString]>>;
|
|
363
|
+
visibleWhen: z.ZodOptional<z.ZodObject<{
|
|
364
|
+
match: z.ZodDefault<z.ZodEnum<{
|
|
365
|
+
all: "all";
|
|
366
|
+
any: "any";
|
|
367
|
+
}>>;
|
|
368
|
+
conditions: z.ZodArray<z.ZodObject<{
|
|
369
|
+
kind: z.ZodDefault<z.ZodEnum<{
|
|
370
|
+
field: "field";
|
|
371
|
+
hidden: "hidden";
|
|
372
|
+
}>>;
|
|
373
|
+
ref: z.ZodString;
|
|
374
|
+
op: z.ZodEnum<{
|
|
375
|
+
includes: "includes";
|
|
376
|
+
answered: "answered";
|
|
377
|
+
not_answered: "not_answered";
|
|
378
|
+
not_includes: "not_includes";
|
|
379
|
+
equals: "equals";
|
|
380
|
+
not_equals: "not_equals";
|
|
381
|
+
contains: "contains";
|
|
382
|
+
gt: "gt";
|
|
383
|
+
gte: "gte";
|
|
384
|
+
lt: "lt";
|
|
385
|
+
lte: "lte";
|
|
386
|
+
}>;
|
|
387
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
388
|
+
}, z.core.$strip>>;
|
|
389
|
+
}, z.core.$strip>>;
|
|
390
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
391
|
+
type: z.ZodLiteral<"date">;
|
|
392
|
+
range: z.ZodOptional<z.ZodObject<{
|
|
393
|
+
min: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
394
|
+
type: z.ZodLiteral<"today">;
|
|
395
|
+
offsetDays: z.ZodDefault<z.ZodNumber>;
|
|
396
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
397
|
+
type: z.ZodLiteral<"date">;
|
|
398
|
+
value: z.ZodString;
|
|
399
|
+
}, z.core.$strip>], "type">>;
|
|
400
|
+
max: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
401
|
+
type: z.ZodLiteral<"today">;
|
|
402
|
+
offsetDays: z.ZodDefault<z.ZodNumber>;
|
|
403
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
404
|
+
type: z.ZodLiteral<"date">;
|
|
405
|
+
value: z.ZodString;
|
|
406
|
+
}, z.core.$strip>], "type">>;
|
|
407
|
+
}, z.core.$strip>>;
|
|
408
|
+
id: z.ZodString;
|
|
409
|
+
label: z.ZodString;
|
|
410
|
+
description: z.ZodOptional<z.ZodString>;
|
|
411
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
412
|
+
contactMapping: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"name">, z.ZodLiteral<"email">, z.ZodLiteral<"phone">, z.ZodString]>>;
|
|
413
|
+
visibleWhen: z.ZodOptional<z.ZodObject<{
|
|
414
|
+
match: z.ZodDefault<z.ZodEnum<{
|
|
415
|
+
all: "all";
|
|
416
|
+
any: "any";
|
|
417
|
+
}>>;
|
|
418
|
+
conditions: z.ZodArray<z.ZodObject<{
|
|
419
|
+
kind: z.ZodDefault<z.ZodEnum<{
|
|
420
|
+
field: "field";
|
|
421
|
+
hidden: "hidden";
|
|
422
|
+
}>>;
|
|
423
|
+
ref: z.ZodString;
|
|
424
|
+
op: z.ZodEnum<{
|
|
425
|
+
includes: "includes";
|
|
426
|
+
answered: "answered";
|
|
427
|
+
not_answered: "not_answered";
|
|
428
|
+
not_includes: "not_includes";
|
|
429
|
+
equals: "equals";
|
|
430
|
+
not_equals: "not_equals";
|
|
431
|
+
contains: "contains";
|
|
432
|
+
gt: "gt";
|
|
433
|
+
gte: "gte";
|
|
434
|
+
lt: "lt";
|
|
435
|
+
lte: "lte";
|
|
436
|
+
}>;
|
|
437
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
438
|
+
}, z.core.$strip>>;
|
|
439
|
+
}, z.core.$strip>>;
|
|
440
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
441
|
+
type: z.ZodLiteral<"time">;
|
|
442
|
+
id: z.ZodString;
|
|
443
|
+
label: z.ZodString;
|
|
444
|
+
description: z.ZodOptional<z.ZodString>;
|
|
445
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
446
|
+
contactMapping: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"name">, z.ZodLiteral<"email">, z.ZodLiteral<"phone">, z.ZodString]>>;
|
|
447
|
+
visibleWhen: z.ZodOptional<z.ZodObject<{
|
|
448
|
+
match: z.ZodDefault<z.ZodEnum<{
|
|
449
|
+
all: "all";
|
|
450
|
+
any: "any";
|
|
451
|
+
}>>;
|
|
452
|
+
conditions: z.ZodArray<z.ZodObject<{
|
|
453
|
+
kind: z.ZodDefault<z.ZodEnum<{
|
|
454
|
+
field: "field";
|
|
455
|
+
hidden: "hidden";
|
|
456
|
+
}>>;
|
|
457
|
+
ref: z.ZodString;
|
|
458
|
+
op: z.ZodEnum<{
|
|
459
|
+
includes: "includes";
|
|
460
|
+
answered: "answered";
|
|
461
|
+
not_answered: "not_answered";
|
|
462
|
+
not_includes: "not_includes";
|
|
463
|
+
equals: "equals";
|
|
464
|
+
not_equals: "not_equals";
|
|
465
|
+
contains: "contains";
|
|
466
|
+
gt: "gt";
|
|
467
|
+
gte: "gte";
|
|
468
|
+
lt: "lt";
|
|
469
|
+
lte: "lte";
|
|
470
|
+
}>;
|
|
471
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
472
|
+
}, z.core.$strip>>;
|
|
473
|
+
}, z.core.$strip>>;
|
|
474
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
475
|
+
type: z.ZodLiteral<"file">;
|
|
476
|
+
maxFiles: z.ZodDefault<z.ZodNumber>;
|
|
477
|
+
accept: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
478
|
+
id: z.ZodString;
|
|
479
|
+
label: z.ZodString;
|
|
480
|
+
description: z.ZodOptional<z.ZodString>;
|
|
481
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
482
|
+
contactMapping: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"name">, z.ZodLiteral<"email">, z.ZodLiteral<"phone">, z.ZodString]>>;
|
|
483
|
+
visibleWhen: z.ZodOptional<z.ZodObject<{
|
|
484
|
+
match: z.ZodDefault<z.ZodEnum<{
|
|
485
|
+
all: "all";
|
|
486
|
+
any: "any";
|
|
487
|
+
}>>;
|
|
488
|
+
conditions: z.ZodArray<z.ZodObject<{
|
|
489
|
+
kind: z.ZodDefault<z.ZodEnum<{
|
|
490
|
+
field: "field";
|
|
491
|
+
hidden: "hidden";
|
|
492
|
+
}>>;
|
|
493
|
+
ref: z.ZodString;
|
|
494
|
+
op: z.ZodEnum<{
|
|
495
|
+
includes: "includes";
|
|
496
|
+
answered: "answered";
|
|
497
|
+
not_answered: "not_answered";
|
|
498
|
+
not_includes: "not_includes";
|
|
499
|
+
equals: "equals";
|
|
500
|
+
not_equals: "not_equals";
|
|
501
|
+
contains: "contains";
|
|
502
|
+
gt: "gt";
|
|
503
|
+
gte: "gte";
|
|
504
|
+
lt: "lt";
|
|
505
|
+
lte: "lte";
|
|
506
|
+
}>;
|
|
507
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
508
|
+
}, z.core.$strip>>;
|
|
509
|
+
}, z.core.$strip>>;
|
|
510
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
511
|
+
type: z.ZodLiteral<"rating">;
|
|
512
|
+
max: z.ZodDefault<z.ZodNumber>;
|
|
513
|
+
icon: z.ZodDefault<z.ZodEnum<{
|
|
514
|
+
heart: "heart";
|
|
515
|
+
star: "star";
|
|
516
|
+
thumb: "thumb";
|
|
517
|
+
}>>;
|
|
518
|
+
id: z.ZodString;
|
|
519
|
+
label: z.ZodString;
|
|
520
|
+
description: z.ZodOptional<z.ZodString>;
|
|
521
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
522
|
+
contactMapping: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"name">, z.ZodLiteral<"email">, z.ZodLiteral<"phone">, z.ZodString]>>;
|
|
523
|
+
visibleWhen: z.ZodOptional<z.ZodObject<{
|
|
524
|
+
match: z.ZodDefault<z.ZodEnum<{
|
|
525
|
+
all: "all";
|
|
526
|
+
any: "any";
|
|
527
|
+
}>>;
|
|
528
|
+
conditions: z.ZodArray<z.ZodObject<{
|
|
529
|
+
kind: z.ZodDefault<z.ZodEnum<{
|
|
530
|
+
field: "field";
|
|
531
|
+
hidden: "hidden";
|
|
532
|
+
}>>;
|
|
533
|
+
ref: z.ZodString;
|
|
534
|
+
op: z.ZodEnum<{
|
|
535
|
+
includes: "includes";
|
|
536
|
+
answered: "answered";
|
|
537
|
+
not_answered: "not_answered";
|
|
538
|
+
not_includes: "not_includes";
|
|
539
|
+
equals: "equals";
|
|
540
|
+
not_equals: "not_equals";
|
|
541
|
+
contains: "contains";
|
|
542
|
+
gt: "gt";
|
|
543
|
+
gte: "gte";
|
|
544
|
+
lt: "lt";
|
|
545
|
+
lte: "lte";
|
|
546
|
+
}>;
|
|
547
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
548
|
+
}, z.core.$strip>>;
|
|
549
|
+
}, z.core.$strip>>;
|
|
550
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
551
|
+
type: z.ZodLiteral<"number">;
|
|
552
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
553
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
554
|
+
integer: z.ZodDefault<z.ZodBoolean>;
|
|
555
|
+
id: z.ZodString;
|
|
556
|
+
label: z.ZodString;
|
|
557
|
+
description: z.ZodOptional<z.ZodString>;
|
|
558
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
559
|
+
contactMapping: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"name">, z.ZodLiteral<"email">, z.ZodLiteral<"phone">, z.ZodString]>>;
|
|
560
|
+
visibleWhen: z.ZodOptional<z.ZodObject<{
|
|
561
|
+
match: z.ZodDefault<z.ZodEnum<{
|
|
562
|
+
all: "all";
|
|
563
|
+
any: "any";
|
|
564
|
+
}>>;
|
|
565
|
+
conditions: z.ZodArray<z.ZodObject<{
|
|
566
|
+
kind: z.ZodDefault<z.ZodEnum<{
|
|
567
|
+
field: "field";
|
|
568
|
+
hidden: "hidden";
|
|
569
|
+
}>>;
|
|
570
|
+
ref: z.ZodString;
|
|
571
|
+
op: z.ZodEnum<{
|
|
572
|
+
includes: "includes";
|
|
573
|
+
answered: "answered";
|
|
574
|
+
not_answered: "not_answered";
|
|
575
|
+
not_includes: "not_includes";
|
|
576
|
+
equals: "equals";
|
|
577
|
+
not_equals: "not_equals";
|
|
578
|
+
contains: "contains";
|
|
579
|
+
gt: "gt";
|
|
580
|
+
gte: "gte";
|
|
581
|
+
lt: "lt";
|
|
582
|
+
lte: "lte";
|
|
583
|
+
}>;
|
|
584
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
585
|
+
}, z.core.$strip>>;
|
|
586
|
+
}, z.core.$strip>>;
|
|
587
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
588
|
+
type: z.ZodLiteral<"url">;
|
|
589
|
+
id: z.ZodString;
|
|
590
|
+
label: z.ZodString;
|
|
591
|
+
description: z.ZodOptional<z.ZodString>;
|
|
592
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
593
|
+
contactMapping: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"name">, z.ZodLiteral<"email">, z.ZodLiteral<"phone">, z.ZodString]>>;
|
|
594
|
+
visibleWhen: z.ZodOptional<z.ZodObject<{
|
|
595
|
+
match: z.ZodDefault<z.ZodEnum<{
|
|
596
|
+
all: "all";
|
|
597
|
+
any: "any";
|
|
598
|
+
}>>;
|
|
599
|
+
conditions: z.ZodArray<z.ZodObject<{
|
|
600
|
+
kind: z.ZodDefault<z.ZodEnum<{
|
|
601
|
+
field: "field";
|
|
602
|
+
hidden: "hidden";
|
|
603
|
+
}>>;
|
|
604
|
+
ref: z.ZodString;
|
|
605
|
+
op: z.ZodEnum<{
|
|
606
|
+
includes: "includes";
|
|
607
|
+
answered: "answered";
|
|
608
|
+
not_answered: "not_answered";
|
|
609
|
+
not_includes: "not_includes";
|
|
610
|
+
equals: "equals";
|
|
611
|
+
not_equals: "not_equals";
|
|
612
|
+
contains: "contains";
|
|
613
|
+
gt: "gt";
|
|
614
|
+
gte: "gte";
|
|
615
|
+
lt: "lt";
|
|
616
|
+
lte: "lte";
|
|
617
|
+
}>;
|
|
618
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
619
|
+
}, z.core.$strip>>;
|
|
620
|
+
}, z.core.$strip>>;
|
|
621
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
622
|
+
type: z.ZodLiteral<"address">;
|
|
623
|
+
defaultCountry: z.ZodOptional<z.ZodString>;
|
|
624
|
+
countries: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
625
|
+
askRecipientName: z.ZodDefault<z.ZodBoolean>;
|
|
626
|
+
contactMapping: z.ZodOptional<z.ZodLiteral<"address">>;
|
|
627
|
+
id: z.ZodString;
|
|
628
|
+
label: z.ZodString;
|
|
629
|
+
description: z.ZodOptional<z.ZodString>;
|
|
630
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
631
|
+
visibleWhen: z.ZodOptional<z.ZodObject<{
|
|
632
|
+
match: z.ZodDefault<z.ZodEnum<{
|
|
633
|
+
all: "all";
|
|
634
|
+
any: "any";
|
|
635
|
+
}>>;
|
|
636
|
+
conditions: z.ZodArray<z.ZodObject<{
|
|
637
|
+
kind: z.ZodDefault<z.ZodEnum<{
|
|
638
|
+
field: "field";
|
|
639
|
+
hidden: "hidden";
|
|
640
|
+
}>>;
|
|
641
|
+
ref: z.ZodString;
|
|
642
|
+
op: z.ZodEnum<{
|
|
643
|
+
includes: "includes";
|
|
644
|
+
answered: "answered";
|
|
645
|
+
not_answered: "not_answered";
|
|
646
|
+
not_includes: "not_includes";
|
|
647
|
+
equals: "equals";
|
|
648
|
+
not_equals: "not_equals";
|
|
649
|
+
contains: "contains";
|
|
650
|
+
gt: "gt";
|
|
651
|
+
gte: "gte";
|
|
652
|
+
lt: "lt";
|
|
653
|
+
lte: "lte";
|
|
654
|
+
}>;
|
|
655
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
656
|
+
}, z.core.$strip>>;
|
|
657
|
+
}, z.core.$strip>>;
|
|
658
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
659
|
+
type: z.ZodLiteral<"tax_id">;
|
|
660
|
+
defaultCountry: z.ZodOptional<z.ZodString>;
|
|
661
|
+
countries: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
662
|
+
companyNameFieldId: z.ZodOptional<z.ZodString>;
|
|
663
|
+
contactMapping: z.ZodOptional<z.ZodLiteral<"tax_identity">>;
|
|
664
|
+
id: z.ZodString;
|
|
665
|
+
label: z.ZodString;
|
|
666
|
+
description: z.ZodOptional<z.ZodString>;
|
|
667
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
668
|
+
visibleWhen: z.ZodOptional<z.ZodObject<{
|
|
669
|
+
match: z.ZodDefault<z.ZodEnum<{
|
|
670
|
+
all: "all";
|
|
671
|
+
any: "any";
|
|
672
|
+
}>>;
|
|
673
|
+
conditions: z.ZodArray<z.ZodObject<{
|
|
674
|
+
kind: z.ZodDefault<z.ZodEnum<{
|
|
675
|
+
field: "field";
|
|
676
|
+
hidden: "hidden";
|
|
677
|
+
}>>;
|
|
678
|
+
ref: z.ZodString;
|
|
679
|
+
op: z.ZodEnum<{
|
|
680
|
+
includes: "includes";
|
|
681
|
+
answered: "answered";
|
|
682
|
+
not_answered: "not_answered";
|
|
683
|
+
not_includes: "not_includes";
|
|
684
|
+
equals: "equals";
|
|
685
|
+
not_equals: "not_equals";
|
|
686
|
+
contains: "contains";
|
|
687
|
+
gt: "gt";
|
|
688
|
+
gte: "gte";
|
|
689
|
+
lt: "lt";
|
|
690
|
+
lte: "lte";
|
|
691
|
+
}>;
|
|
692
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
693
|
+
}, z.core.$strip>>;
|
|
694
|
+
}, z.core.$strip>>;
|
|
695
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
696
|
+
id: z.ZodString;
|
|
697
|
+
type: z.ZodLiteral<"statement">;
|
|
698
|
+
label: z.ZodString;
|
|
699
|
+
description: z.ZodOptional<z.ZodString>;
|
|
700
|
+
required: z.ZodPipe<z.ZodDefault<z.ZodBoolean>, z.ZodTransform<boolean, boolean>>;
|
|
701
|
+
contactMapping: z.ZodOptional<z.ZodUndefined>;
|
|
702
|
+
visibleWhen: z.ZodOptional<z.ZodObject<{
|
|
703
|
+
match: z.ZodDefault<z.ZodEnum<{
|
|
704
|
+
all: "all";
|
|
705
|
+
any: "any";
|
|
706
|
+
}>>;
|
|
707
|
+
conditions: z.ZodArray<z.ZodObject<{
|
|
708
|
+
kind: z.ZodDefault<z.ZodEnum<{
|
|
709
|
+
field: "field";
|
|
710
|
+
hidden: "hidden";
|
|
711
|
+
}>>;
|
|
712
|
+
ref: z.ZodString;
|
|
713
|
+
op: z.ZodEnum<{
|
|
714
|
+
includes: "includes";
|
|
715
|
+
answered: "answered";
|
|
716
|
+
not_answered: "not_answered";
|
|
717
|
+
not_includes: "not_includes";
|
|
718
|
+
equals: "equals";
|
|
719
|
+
not_equals: "not_equals";
|
|
720
|
+
contains: "contains";
|
|
721
|
+
gt: "gt";
|
|
722
|
+
gte: "gte";
|
|
723
|
+
lt: "lt";
|
|
724
|
+
lte: "lte";
|
|
725
|
+
}>;
|
|
726
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
727
|
+
}, z.core.$strip>>;
|
|
728
|
+
}, z.core.$strip>>;
|
|
729
|
+
}, z.core.$strip>], "type">;
|
|
730
|
+
type FormField = z.infer<typeof formFieldSchema>;
|
|
731
|
+
declare const formSettingsObjectSchema: z.ZodObject<{
|
|
732
|
+
submitLabel: z.ZodOptional<z.ZodString>;
|
|
733
|
+
successMessage: z.ZodOptional<z.ZodString>;
|
|
734
|
+
redirectUrl: z.ZodOptional<z.ZodString>;
|
|
735
|
+
marketingConsent: z.ZodDefault<z.ZodEnum<{
|
|
736
|
+
off: "off";
|
|
737
|
+
checkbox: "checkbox";
|
|
738
|
+
submit: "submit";
|
|
739
|
+
}>>;
|
|
740
|
+
consentText: z.ZodOptional<z.ZodObject<{
|
|
741
|
+
checkbox: z.ZodOptional<z.ZodString>;
|
|
742
|
+
submit: z.ZodOptional<z.ZodString>;
|
|
743
|
+
}, z.core.$strip>>;
|
|
744
|
+
limitOnePerContact: z.ZodDefault<z.ZodBoolean>;
|
|
745
|
+
openAt: z.ZodOptional<z.ZodCustomStringFormat<"datetime">>;
|
|
746
|
+
closeAt: z.ZodOptional<z.ZodCustomStringFormat<"datetime">>;
|
|
747
|
+
maxSubmissions: z.ZodOptional<z.ZodNumber>;
|
|
748
|
+
replyKind: z.ZodDefault<z.ZodEnum<{
|
|
749
|
+
inquiry: "inquiry";
|
|
750
|
+
booking: "booking";
|
|
751
|
+
event: "event";
|
|
752
|
+
application: "application";
|
|
753
|
+
signup: "signup";
|
|
754
|
+
feedback: "feedback";
|
|
755
|
+
general: "general";
|
|
756
|
+
}>>;
|
|
757
|
+
hiddenFields: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
758
|
+
id: z.ZodString;
|
|
759
|
+
label: z.ZodOptional<z.ZodString>;
|
|
760
|
+
}, z.core.$strip>>>;
|
|
761
|
+
}, z.core.$strip>;
|
|
762
|
+
type FormSettings = z.infer<typeof formSettingsObjectSchema>;
|
|
763
|
+
declare const FORM_STATUSES: readonly ["DRAFT", "ACTIVE", "ARCHIVED"];
|
|
764
|
+
type FormStatusKey = (typeof FORM_STATUSES)[number];
|
|
765
|
+
/** The form definition for rendering on public sites (without the owner's internal fields) */
|
|
766
|
+
interface PublicFormDefinition {
|
|
767
|
+
id: string;
|
|
768
|
+
name: string;
|
|
769
|
+
description: string | null;
|
|
770
|
+
status: FormStatusKey;
|
|
771
|
+
fields: FormField[];
|
|
772
|
+
settings: FormSettings;
|
|
773
|
+
/** Number of non-spam submissions; used for the response limit (sent even when maxSubmissions is not set) */
|
|
774
|
+
submissionCount: number;
|
|
775
|
+
/** Identifier of the consent text of the current mode (the front end reports it back unchanged on submit and the server compares); null when off */
|
|
776
|
+
consentTextId: string | null;
|
|
777
|
+
/**
|
|
778
|
+
* The URL to go to after a successful submit; null or absent when not set. The front end uses this field and does not read `settings.redirectUrl`:
|
|
779
|
+
* on hosted sites the locale prefix of multilingual pages is added for it.
|
|
780
|
+
*/
|
|
781
|
+
redirectUrl?: string | null;
|
|
782
|
+
/** The site's default phone country (ISO 3166-1 alpha-2, from business location then site language); when a phone question has no default country code, the front end's initial code and the server's parsing both use it */
|
|
783
|
+
defaultPhoneCountry?: string | null;
|
|
784
|
+
/** The site's time zone (IANA); "from today" ranges of date questions are based on it, so the front end and the server compute the same day */
|
|
785
|
+
timezone?: string | null;
|
|
786
|
+
/** @deprecated Older public sites read this field; same value as defaultPhoneCountry, removed once all public sites are updated */
|
|
787
|
+
businessCountry: string | null;
|
|
788
|
+
}
|
|
789
|
+
|
|
790
|
+
/**
|
|
791
|
+
* Building section props (data logic only)
|
|
792
|
+
*
|
|
793
|
+
* Imports no React component; shared by the worker, the editor and the renderer.
|
|
794
|
+
* The component mapping is in sections.ts.
|
|
795
|
+
*/
|
|
796
|
+
|
|
797
|
+
/** Interface text of the form section (injected by the host on public sites and in the editor) */
|
|
798
|
+
interface FormSectionLabels {
|
|
799
|
+
submit?: string;
|
|
800
|
+
submitting?: string;
|
|
801
|
+
success?: string;
|
|
802
|
+
error?: string;
|
|
803
|
+
required?: string;
|
|
804
|
+
invalidEmail?: string;
|
|
805
|
+
invalidPhone?: string;
|
|
806
|
+
invalidDate?: string;
|
|
807
|
+
invalidTime?: string;
|
|
808
|
+
tooLong?: string;
|
|
809
|
+
/** "Other" is checked but left empty */
|
|
810
|
+
otherRequired?: string;
|
|
811
|
+
/** Submit-level errors (answers are kept and can be resent): one response per person, paused intake (daily cap), rate limit, expired bot protection */
|
|
812
|
+
duplicate?: string;
|
|
813
|
+
temporarilyUnavailable?: string;
|
|
814
|
+
rateLimited?: string;
|
|
815
|
+
verificationExpired?: string;
|
|
816
|
+
/** The server attached an error to a question this screen does not have: the visitor has an old version of the form open and should reload */
|
|
817
|
+
outdated?: string;
|
|
818
|
+
/** The whole response exceeds the submission size limit (nothing was stored) */
|
|
819
|
+
tooLarge?: string;
|
|
820
|
+
/** Submitted successfully and about to go to the URL the owner set */
|
|
821
|
+
redirecting?: string;
|
|
822
|
+
/** Generic error for a question: the server returned an error code this version of the front end does not know */
|
|
823
|
+
invalid?: string;
|
|
824
|
+
/** Text shorter than the minimum length; contains `{min}` */
|
|
825
|
+
tooShort?: string;
|
|
826
|
+
invalidNumber?: string;
|
|
827
|
+
/** The question accepts whole numbers only */
|
|
828
|
+
notInteger?: string;
|
|
829
|
+
/** Number range: lower bound only (`{min}`), upper bound only (`{max}`), or both */
|
|
830
|
+
numberMin?: string;
|
|
831
|
+
numberMax?: string;
|
|
832
|
+
numberRange?: string;
|
|
833
|
+
invalidUrl?: string;
|
|
834
|
+
/** Date range: `{min}` and `{max}` are dates formatted for the visitor's locale */
|
|
835
|
+
dateMin?: string;
|
|
836
|
+
dateMax?: string;
|
|
837
|
+
dateRange?: string;
|
|
838
|
+
/** Number of selections: `{min}` and `{max}` are option counts */
|
|
839
|
+
tooFewOptions?: string;
|
|
840
|
+
tooManyOptions?: string;
|
|
841
|
+
/** Text shown in a dropdown before anything is chosen */
|
|
842
|
+
selectPlaceholder?: string;
|
|
843
|
+
/** Address question: a field the country requires is missing, or the postal code format is wrong */
|
|
844
|
+
invalidAddress?: string;
|
|
845
|
+
/** Tax ID question: wrong format or check digit */
|
|
846
|
+
invalidTaxId?: string;
|
|
847
|
+
/** Tax ID question: looking up the registry */
|
|
848
|
+
taxIdChecking?: string;
|
|
849
|
+
/** Tax ID question: the registered name, contains `{name}` */
|
|
850
|
+
taxIdRegisteredName?: string;
|
|
851
|
+
/** Tax ID question: the registry shows the business as closed or dissolved */
|
|
852
|
+
taxIdInactive?: string;
|
|
853
|
+
/** Tax ID question: the data source, contains `{provider}` */
|
|
854
|
+
taxIdSource?: string;
|
|
855
|
+
invalidPostalCode?: string;
|
|
856
|
+
/** Names of the address question's fields; region, city and postal code use the key for that country's naming */
|
|
857
|
+
addressCountry?: string;
|
|
858
|
+
addressRecipient?: string;
|
|
859
|
+
addressLine1?: string;
|
|
860
|
+
addressLine2?: string;
|
|
861
|
+
addressPostal_postal?: string;
|
|
862
|
+
addressPostal_zip?: string;
|
|
863
|
+
addressPostal_pin?: string;
|
|
864
|
+
addressPostal_eircode?: string;
|
|
865
|
+
addressLocality_city?: string;
|
|
866
|
+
addressLocality_district?: string;
|
|
867
|
+
addressLocality_post_town?: string;
|
|
868
|
+
addressLocality_suburb?: string;
|
|
869
|
+
addressRegion_area?: string;
|
|
870
|
+
addressRegion_county?: string;
|
|
871
|
+
addressRegion_department?: string;
|
|
872
|
+
addressRegion_district?: string;
|
|
873
|
+
addressRegion_do_si?: string;
|
|
874
|
+
addressRegion_emirate?: string;
|
|
875
|
+
addressRegion_island?: string;
|
|
876
|
+
addressRegion_oblast?: string;
|
|
877
|
+
addressRegion_parish?: string;
|
|
878
|
+
addressRegion_prefecture?: string;
|
|
879
|
+
addressRegion_province?: string;
|
|
880
|
+
addressRegion_state?: string;
|
|
881
|
+
/** The platform's default text for the marketing consent checkbox (contains {siteName}); the owner can customize it in the form settings */
|
|
882
|
+
marketingOptIn?: string;
|
|
883
|
+
/** The platform's default notice for subscribing on submit (contains {siteName} and {button}); the owner can customize it in the form settings */
|
|
884
|
+
subscribeOnSubmit?: string;
|
|
885
|
+
otherOption?: string;
|
|
886
|
+
otherPlaceholder?: string;
|
|
887
|
+
closed?: string;
|
|
888
|
+
notOpenYet?: string;
|
|
889
|
+
full?: string;
|
|
890
|
+
/** File question type */
|
|
891
|
+
fileChoose?: string;
|
|
892
|
+
/** May contain the `{max}` (file count) and `{size}` (per-file limit) placeholders */
|
|
893
|
+
fileLimitHint?: string;
|
|
894
|
+
fileWaiting?: string;
|
|
895
|
+
fileUploading?: string;
|
|
896
|
+
fileUploadFailed?: string;
|
|
897
|
+
fileTooLarge?: string;
|
|
898
|
+
fileTypeNotAllowed?: string;
|
|
899
|
+
/** Quota full or service unavailable: the question is skipped and the form can still be submitted */
|
|
900
|
+
fileUnavailable?: string;
|
|
901
|
+
fileRemove?: string;
|
|
902
|
+
/** Editor only */
|
|
903
|
+
noFormSelected?: string;
|
|
904
|
+
formNotFound?: string;
|
|
905
|
+
previewNotice?: string;
|
|
906
|
+
}
|
|
907
|
+
|
|
908
|
+
type VisitorMessages = {
|
|
909
|
+
globalError: {
|
|
910
|
+
title: string;
|
|
911
|
+
description: string;
|
|
912
|
+
retry: string;
|
|
913
|
+
};
|
|
914
|
+
errors: {
|
|
915
|
+
siteNotFound: string;
|
|
916
|
+
siteConfigError: string;
|
|
917
|
+
pageNotFound: string;
|
|
918
|
+
defaultSiteTitle: string;
|
|
919
|
+
free404Hint: string;
|
|
920
|
+
free404Title: string;
|
|
921
|
+
free404Subtitle: string;
|
|
922
|
+
free404Cta: string;
|
|
923
|
+
free404Feature1: string;
|
|
924
|
+
free404Feature2: string;
|
|
925
|
+
free404Feature3: string;
|
|
926
|
+
free404Feature4: string;
|
|
927
|
+
pro404Title: string;
|
|
928
|
+
pro404Subtitle: string;
|
|
929
|
+
pro404BackHome: string;
|
|
930
|
+
};
|
|
931
|
+
comingSoon: {
|
|
932
|
+
metadataTitle: string;
|
|
933
|
+
metadataDescription: string;
|
|
934
|
+
freeHint: string;
|
|
935
|
+
proTitle: string;
|
|
936
|
+
proSubtitle: string;
|
|
937
|
+
};
|
|
938
|
+
checkout: {
|
|
939
|
+
cancelAndBack: string;
|
|
940
|
+
loadFailedTitle: string;
|
|
941
|
+
loadFailedDescription: string;
|
|
942
|
+
retry: string;
|
|
943
|
+
paymentUnavailableTitle: string;
|
|
944
|
+
paymentUnavailableSellerNotReady: string;
|
|
945
|
+
paymentUnavailableProviderError: string;
|
|
946
|
+
paymentUnavailableUnsupportedCurrency: string;
|
|
947
|
+
deliveryUnavailableTitle: string;
|
|
948
|
+
deliveryUnavailableDescription: string;
|
|
949
|
+
errors: {
|
|
950
|
+
purchase_limit_reached: string;
|
|
951
|
+
purchase_limit_reached_fallback: string;
|
|
952
|
+
total_sales_limit_reached: string;
|
|
953
|
+
quantity_exceeds_remaining: string;
|
|
954
|
+
quantity_exceeds_remaining_fallback: string;
|
|
955
|
+
quantity_exceeds_per_order_limit: string;
|
|
956
|
+
quantity_exceeds_per_order_limit_fallback: string;
|
|
957
|
+
amount_below_minimum: string;
|
|
958
|
+
amount_below_minimum_fallback: string;
|
|
959
|
+
amount_exceeds_maximum: string;
|
|
960
|
+
amount_exceeds_maximum_fallback: string;
|
|
961
|
+
invalid_currency: string;
|
|
962
|
+
provider_unsupported_currency: string;
|
|
963
|
+
product_archived: string;
|
|
964
|
+
store_paused: string;
|
|
965
|
+
tier_not_published: string;
|
|
966
|
+
no_pricing_tier: string;
|
|
967
|
+
payment_request_failed: string;
|
|
968
|
+
network_error: string;
|
|
969
|
+
default: string;
|
|
970
|
+
};
|
|
971
|
+
summaryTitle: string;
|
|
972
|
+
quantity: string;
|
|
973
|
+
total: string;
|
|
974
|
+
payNow: string;
|
|
975
|
+
confirmFree: string;
|
|
976
|
+
securePayByProvider: string;
|
|
977
|
+
securePayDetail: string;
|
|
978
|
+
legalConsent: string;
|
|
979
|
+
legalTermsLabel: string;
|
|
980
|
+
legalPrivacyLabel: string;
|
|
981
|
+
invalidCheckout: string;
|
|
982
|
+
backToStore: string;
|
|
983
|
+
paymentFailed: string;
|
|
984
|
+
shippingFeeChanged: string;
|
|
985
|
+
processing: string;
|
|
986
|
+
unitPrice: string;
|
|
987
|
+
subtotal: string;
|
|
988
|
+
editCart: string;
|
|
989
|
+
itemCount: string;
|
|
990
|
+
discount: string;
|
|
991
|
+
haveDiscountCode: string;
|
|
992
|
+
discountCodePlaceholder: string;
|
|
993
|
+
discountCode: string;
|
|
994
|
+
applyDiscount: string;
|
|
995
|
+
invalidDiscountCode: string;
|
|
996
|
+
customerInfo: string;
|
|
997
|
+
nameLabel: string;
|
|
998
|
+
namePlaceholder: string;
|
|
999
|
+
phoneLabel: string;
|
|
1000
|
+
optional: string;
|
|
1001
|
+
phonePlaceholder: string;
|
|
1002
|
+
noteLabel: string;
|
|
1003
|
+
notePlaceholder: string;
|
|
1004
|
+
paymentMethod: string;
|
|
1005
|
+
providerNames: {
|
|
1006
|
+
PAYUNI: string;
|
|
1007
|
+
SHOPLINE_PAY: string;
|
|
1008
|
+
};
|
|
1009
|
+
aggregatorOption: string;
|
|
1010
|
+
providedBy: string;
|
|
1011
|
+
methods: {
|
|
1012
|
+
card: string;
|
|
1013
|
+
apple_pay: string;
|
|
1014
|
+
google_pay: string;
|
|
1015
|
+
atm: string;
|
|
1016
|
+
cvs: string;
|
|
1017
|
+
line_pay: string;
|
|
1018
|
+
jko_pay: string;
|
|
1019
|
+
bnpl: string;
|
|
1020
|
+
};
|
|
1021
|
+
methodHints: {
|
|
1022
|
+
apple_pay: string;
|
|
1023
|
+
google_pay: string;
|
|
1024
|
+
atm: string;
|
|
1025
|
+
cvs: string;
|
|
1026
|
+
line_pay: string;
|
|
1027
|
+
jko_pay: string;
|
|
1028
|
+
bnpl: string;
|
|
1029
|
+
};
|
|
1030
|
+
redirectNotice: string;
|
|
1031
|
+
cardNumber: string;
|
|
1032
|
+
cardExpiry: string;
|
|
1033
|
+
cardCvc: string;
|
|
1034
|
+
cardDetails: string;
|
|
1035
|
+
installmentLabel: string;
|
|
1036
|
+
installmentOnce: string;
|
|
1037
|
+
installmentUnit: string;
|
|
1038
|
+
contactSeller: string;
|
|
1039
|
+
phoneInvalid: string;
|
|
1040
|
+
phoneRequired: string;
|
|
1041
|
+
emailLabel: string;
|
|
1042
|
+
guestDoneTitle: string;
|
|
1043
|
+
guestDoneMessage: string;
|
|
1044
|
+
emailInvalid: string;
|
|
1045
|
+
emailPrivacyHint: string;
|
|
1046
|
+
acceptsMarketingLabel: string;
|
|
1047
|
+
deliveryTitle: string;
|
|
1048
|
+
shippingFee: string;
|
|
1049
|
+
freeShipping: string;
|
|
1050
|
+
shipmentsCount: string;
|
|
1051
|
+
shipmentLabel: string;
|
|
1052
|
+
shipmentBoxCount: string;
|
|
1053
|
+
splitByPackage: string;
|
|
1054
|
+
combineShipping: string;
|
|
1055
|
+
splitRequired: string;
|
|
1056
|
+
invoice: {
|
|
1057
|
+
sectionTitle: string;
|
|
1058
|
+
personal: string;
|
|
1059
|
+
company: string;
|
|
1060
|
+
donation: string;
|
|
1061
|
+
personalShort: string;
|
|
1062
|
+
companyShort: string;
|
|
1063
|
+
donationShort: string;
|
|
1064
|
+
mobileBarcode: string;
|
|
1065
|
+
citizenCert: string;
|
|
1066
|
+
mobileBarcodeShort: string;
|
|
1067
|
+
citizenCertShort: string;
|
|
1068
|
+
memberCarrier: string;
|
|
1069
|
+
taxIdLabel: string;
|
|
1070
|
+
companyNameLabel: string;
|
|
1071
|
+
companyAddressLabel: string;
|
|
1072
|
+
donationCodeLabel: string;
|
|
1073
|
+
donationCodeHint: string;
|
|
1074
|
+
mobileBarcodeHint: string;
|
|
1075
|
+
citizenCertHint: string;
|
|
1076
|
+
invalidMobileBarcode: string;
|
|
1077
|
+
invalidCitizenCert: string;
|
|
1078
|
+
invalidTaxId: string;
|
|
1079
|
+
invalidDonationCode: string;
|
|
1080
|
+
invalidCompanyName: string;
|
|
1081
|
+
invalidCompanyAddress: string;
|
|
1082
|
+
taxIdRequired: string;
|
|
1083
|
+
companyNameRequired: string;
|
|
1084
|
+
companyAddressRequired: string;
|
|
1085
|
+
donationCodeRequired: string;
|
|
1086
|
+
defaultHint: string;
|
|
1087
|
+
expandCarrier: string;
|
|
1088
|
+
donationTag919: string;
|
|
1089
|
+
donationTag7585: string;
|
|
1090
|
+
donationTag25885: string;
|
|
1091
|
+
registrySource: string;
|
|
1092
|
+
registryInactive: string;
|
|
1093
|
+
};
|
|
1094
|
+
deliveryMethod: string;
|
|
1095
|
+
recipientSameAsCustomer: string;
|
|
1096
|
+
recipientName: string;
|
|
1097
|
+
recipientNamePlaceholder: string;
|
|
1098
|
+
recipientPhone: string;
|
|
1099
|
+
recipientPhonePlaceholder: string;
|
|
1100
|
+
shippingAddress: string;
|
|
1101
|
+
postalCode: string;
|
|
1102
|
+
region: string;
|
|
1103
|
+
locality: string;
|
|
1104
|
+
addressLine1: string;
|
|
1105
|
+
addressLine2: string;
|
|
1106
|
+
cvsStore: string;
|
|
1107
|
+
selectCvsStore: string;
|
|
1108
|
+
methodHomeDelivery: string;
|
|
1109
|
+
methodCvsPickup: string;
|
|
1110
|
+
methodSelfPickup: string;
|
|
1111
|
+
errRecipientName: string;
|
|
1112
|
+
errRecipientPhone: string;
|
|
1113
|
+
errRecipientPhoneInvalid: string;
|
|
1114
|
+
errRecipientNameInvalid: string;
|
|
1115
|
+
errDeliveryMethod: string;
|
|
1116
|
+
errAddress: string;
|
|
1117
|
+
errCvsStore: string;
|
|
1118
|
+
openingCvsStore: string;
|
|
1119
|
+
errCvsStoreTemperature: string;
|
|
1120
|
+
errCvsStoreNotSupported: string;
|
|
1121
|
+
errCvsStoreUnavailable: string;
|
|
1122
|
+
errCvsStoreReselect: string;
|
|
1123
|
+
errAddressStreetUnknown: string;
|
|
1124
|
+
errAddressDistrictMismatch: string;
|
|
1125
|
+
errAddressMissingNumber: string;
|
|
1126
|
+
processingTitle: string;
|
|
1127
|
+
processingHint: string;
|
|
1128
|
+
paymentResultCancelled: string;
|
|
1129
|
+
paymentResultFailed: string;
|
|
1130
|
+
purchaseLimitTitle: string;
|
|
1131
|
+
purchaseLimitDescription: string;
|
|
1132
|
+
purchaseLimitRemaining: string;
|
|
1133
|
+
viewPurchasesLogin: string;
|
|
1134
|
+
storeSelectedAtPayment: string;
|
|
1135
|
+
summaryWithMore: string;
|
|
1136
|
+
cvsCallback: {
|
|
1137
|
+
doneTitle: string;
|
|
1138
|
+
doneNoOpener: string;
|
|
1139
|
+
chainMismatch: string;
|
|
1140
|
+
verifyFailed: string;
|
|
1141
|
+
};
|
|
1142
|
+
};
|
|
1143
|
+
orderStatus: {
|
|
1144
|
+
paidTitle: string;
|
|
1145
|
+
paidSubtitle: string;
|
|
1146
|
+
paidTitleWithNumber: string;
|
|
1147
|
+
confirmationSentTo: string;
|
|
1148
|
+
awaitingTitle: string;
|
|
1149
|
+
awaitingSubtitle: string;
|
|
1150
|
+
awaitingDue: string;
|
|
1151
|
+
awaitingAfterPaid: string;
|
|
1152
|
+
processingTitle: string;
|
|
1153
|
+
processingSubtitle: string;
|
|
1154
|
+
processingTimeoutTitle: string;
|
|
1155
|
+
processingTimeoutSubtitle: string;
|
|
1156
|
+
failedTitle: string;
|
|
1157
|
+
failedSubtitle: string;
|
|
1158
|
+
expiredTitle: string;
|
|
1159
|
+
expiredSubtitle: string;
|
|
1160
|
+
retryCheckout: string;
|
|
1161
|
+
continueShopping: string;
|
|
1162
|
+
thirdPartyInstructionsNotice: string;
|
|
1163
|
+
thirdPartyPaidNotice: string;
|
|
1164
|
+
savePageHint: string;
|
|
1165
|
+
copyLink: string;
|
|
1166
|
+
linkCopied: string;
|
|
1167
|
+
linkValidUntil: string;
|
|
1168
|
+
instructions: {
|
|
1169
|
+
title: string;
|
|
1170
|
+
bankCode: string;
|
|
1171
|
+
account: string;
|
|
1172
|
+
amount: string;
|
|
1173
|
+
amountExact: string;
|
|
1174
|
+
paymentCode: string;
|
|
1175
|
+
channel: string;
|
|
1176
|
+
dueAt: string;
|
|
1177
|
+
copy: string;
|
|
1178
|
+
copied: string;
|
|
1179
|
+
copyAll: string;
|
|
1180
|
+
atmHint: string;
|
|
1181
|
+
cvsHint: string;
|
|
1182
|
+
genericHint: string;
|
|
1183
|
+
channels: {
|
|
1184
|
+
SEVEN: string;
|
|
1185
|
+
FAMILY: string;
|
|
1186
|
+
HILIFE: string;
|
|
1187
|
+
OK: string;
|
|
1188
|
+
};
|
|
1189
|
+
};
|
|
1190
|
+
digital: {
|
|
1191
|
+
title: string;
|
|
1192
|
+
description: string;
|
|
1193
|
+
cta: string;
|
|
1194
|
+
awaiting: string;
|
|
1195
|
+
};
|
|
1196
|
+
delivery: {
|
|
1197
|
+
title: string;
|
|
1198
|
+
method: string;
|
|
1199
|
+
recipient: string;
|
|
1200
|
+
address: string;
|
|
1201
|
+
pickupCvs: string;
|
|
1202
|
+
pickupLocker: string;
|
|
1203
|
+
pickupStore: string;
|
|
1204
|
+
pickupGeneric: string;
|
|
1205
|
+
pendingShipment: string;
|
|
1206
|
+
trackingNo: string;
|
|
1207
|
+
track: string;
|
|
1208
|
+
pickupDeadlineLabel: string;
|
|
1209
|
+
etaLabel: string;
|
|
1210
|
+
shipmentStatus: string;
|
|
1211
|
+
status: {
|
|
1212
|
+
PENDING: string;
|
|
1213
|
+
BOOKED: string;
|
|
1214
|
+
LABEL_CREATED: string;
|
|
1215
|
+
IN_TRANSIT: string;
|
|
1216
|
+
AT_STORE: string;
|
|
1217
|
+
DELIVERED: string;
|
|
1218
|
+
RETURNED: string;
|
|
1219
|
+
CANCELED: string;
|
|
1220
|
+
ASSIGNING_COURIER: string;
|
|
1221
|
+
COURIER_ACCEPTED: string;
|
|
1222
|
+
COURIER_PICKING_UP: string;
|
|
1223
|
+
COURIER_PICKED_UP: string;
|
|
1224
|
+
EXCEPTION: string;
|
|
1225
|
+
ACTION_REQUIRED: string;
|
|
1226
|
+
};
|
|
1227
|
+
};
|
|
1228
|
+
summary: {
|
|
1229
|
+
title: string;
|
|
1230
|
+
quantity: string;
|
|
1231
|
+
subtotal: string;
|
|
1232
|
+
discount: string;
|
|
1233
|
+
shipping: string;
|
|
1234
|
+
free: string;
|
|
1235
|
+
total: string;
|
|
1236
|
+
paymentMethod: string;
|
|
1237
|
+
placedAt: string;
|
|
1238
|
+
refunded: string;
|
|
1239
|
+
refundedQuantity: string;
|
|
1240
|
+
accessRevoked: string;
|
|
1241
|
+
};
|
|
1242
|
+
customer: {
|
|
1243
|
+
title: string;
|
|
1244
|
+
email: string;
|
|
1245
|
+
name: string;
|
|
1246
|
+
};
|
|
1247
|
+
invoice: {
|
|
1248
|
+
title: string;
|
|
1249
|
+
pending: string;
|
|
1250
|
+
failed: string;
|
|
1251
|
+
number: string;
|
|
1252
|
+
secondaryCode: string;
|
|
1253
|
+
issuedAt: string;
|
|
1254
|
+
verify: string;
|
|
1255
|
+
type: string;
|
|
1256
|
+
typePersonal: string;
|
|
1257
|
+
typeCompany: string;
|
|
1258
|
+
typeDonation: string;
|
|
1259
|
+
carrier: string;
|
|
1260
|
+
carrierMobile: string;
|
|
1261
|
+
carrierCitizen: string;
|
|
1262
|
+
carrierMember: string;
|
|
1263
|
+
carrierPrint: string;
|
|
1264
|
+
taxId: string;
|
|
1265
|
+
buyerName: string;
|
|
1266
|
+
donationCode: string;
|
|
1267
|
+
registrationNumber: string;
|
|
1268
|
+
businessNumber: string;
|
|
1269
|
+
};
|
|
1270
|
+
help: {
|
|
1271
|
+
description: string;
|
|
1272
|
+
};
|
|
1273
|
+
methodTypes: {
|
|
1274
|
+
card: string;
|
|
1275
|
+
apple_pay: string;
|
|
1276
|
+
google_pay: string;
|
|
1277
|
+
samsung_pay: string;
|
|
1278
|
+
atm: string;
|
|
1279
|
+
cvs: string;
|
|
1280
|
+
line_pay: string;
|
|
1281
|
+
jko_pay: string;
|
|
1282
|
+
bnpl: string;
|
|
1283
|
+
cod: string;
|
|
1284
|
+
icash_pay: string;
|
|
1285
|
+
aftee: string;
|
|
1286
|
+
bank_account: string;
|
|
1287
|
+
free: string;
|
|
1288
|
+
unknown: string;
|
|
1289
|
+
};
|
|
1290
|
+
redactedTitle: string;
|
|
1291
|
+
redactedDescription: string;
|
|
1292
|
+
signInToView: string;
|
|
1293
|
+
orderTitle: string;
|
|
1294
|
+
orderTitleNoNumber: string;
|
|
1295
|
+
refunds: {
|
|
1296
|
+
title: string;
|
|
1297
|
+
shippingIncluded: string;
|
|
1298
|
+
reasons: {
|
|
1299
|
+
DUPLICATE: string;
|
|
1300
|
+
REQUESTED_BY_CUSTOMER: string;
|
|
1301
|
+
FRAUDULENT: string;
|
|
1302
|
+
OTHER: string;
|
|
1303
|
+
};
|
|
1304
|
+
};
|
|
1305
|
+
};
|
|
1306
|
+
common: {
|
|
1307
|
+
language: string;
|
|
1308
|
+
languageTaiwan: string;
|
|
1309
|
+
languageHongKong: string;
|
|
1310
|
+
previous: string;
|
|
1311
|
+
next: string;
|
|
1312
|
+
};
|
|
1313
|
+
cookieConsent: {
|
|
1314
|
+
title: string;
|
|
1315
|
+
description: string;
|
|
1316
|
+
learnMore: string;
|
|
1317
|
+
acceptNecessary: string;
|
|
1318
|
+
acceptAll: string;
|
|
1319
|
+
close: string;
|
|
1320
|
+
settings: string;
|
|
1321
|
+
};
|
|
1322
|
+
login: {
|
|
1323
|
+
title: string;
|
|
1324
|
+
subtitle: string;
|
|
1325
|
+
verifying: string;
|
|
1326
|
+
verificationFailed: string;
|
|
1327
|
+
signInWithGoogle: string;
|
|
1328
|
+
signingIn: string;
|
|
1329
|
+
footer: string;
|
|
1330
|
+
};
|
|
1331
|
+
blog: {
|
|
1332
|
+
title: string;
|
|
1333
|
+
home: string;
|
|
1334
|
+
allPosts: string;
|
|
1335
|
+
readingTimeSuffix: string;
|
|
1336
|
+
minutesShort: string;
|
|
1337
|
+
categoryPrefix: string;
|
|
1338
|
+
tagPrefix: string;
|
|
1339
|
+
authorPrefix: string;
|
|
1340
|
+
noPosts: string;
|
|
1341
|
+
backToBlog: string;
|
|
1342
|
+
relatedCategory: string;
|
|
1343
|
+
postsCount: string;
|
|
1344
|
+
share: string;
|
|
1345
|
+
shareOn: string;
|
|
1346
|
+
copyLink: string;
|
|
1347
|
+
linkCopied: string;
|
|
1348
|
+
shareEmail: string;
|
|
1349
|
+
tableOfContents: string;
|
|
1350
|
+
gatedTitle: string;
|
|
1351
|
+
gatedDescription: string;
|
|
1352
|
+
gatedSignIn: string;
|
|
1353
|
+
};
|
|
1354
|
+
shop: {
|
|
1355
|
+
title: string;
|
|
1356
|
+
empty: string;
|
|
1357
|
+
priceFrom: string;
|
|
1358
|
+
free: string;
|
|
1359
|
+
viewProduct: string;
|
|
1360
|
+
pageIndicator: string;
|
|
1361
|
+
productUnpublishedNotice: string;
|
|
1362
|
+
};
|
|
1363
|
+
delivery: {
|
|
1364
|
+
name: {
|
|
1365
|
+
selfPickup: string;
|
|
1366
|
+
digitalDelivery: string;
|
|
1367
|
+
cvsFallback: string;
|
|
1368
|
+
homeFallback: string;
|
|
1369
|
+
onDemandFallback: string;
|
|
1370
|
+
meetup: string;
|
|
1371
|
+
localPickup: string;
|
|
1372
|
+
};
|
|
1373
|
+
carrier: {
|
|
1374
|
+
unimart: string;
|
|
1375
|
+
fami: string;
|
|
1376
|
+
hilife: string;
|
|
1377
|
+
okmart: string;
|
|
1378
|
+
tcat: string;
|
|
1379
|
+
ecan: string;
|
|
1380
|
+
post: string;
|
|
1381
|
+
uber: string;
|
|
1382
|
+
lalamove: string;
|
|
1383
|
+
pandago: string;
|
|
1384
|
+
};
|
|
1385
|
+
};
|
|
1386
|
+
form: {
|
|
1387
|
+
submit: string;
|
|
1388
|
+
submitting: string;
|
|
1389
|
+
success: string;
|
|
1390
|
+
redirecting: string;
|
|
1391
|
+
error: string;
|
|
1392
|
+
required: string;
|
|
1393
|
+
invalidEmail: string;
|
|
1394
|
+
invalidPhone: string;
|
|
1395
|
+
invalidDate: string;
|
|
1396
|
+
invalidTime: string;
|
|
1397
|
+
tooLong: string;
|
|
1398
|
+
otherRequired: string;
|
|
1399
|
+
duplicate: string;
|
|
1400
|
+
temporarilyUnavailable: string;
|
|
1401
|
+
rateLimited: string;
|
|
1402
|
+
verificationExpired: string;
|
|
1403
|
+
outdated: string;
|
|
1404
|
+
tooLarge: string;
|
|
1405
|
+
invalid: string;
|
|
1406
|
+
tooShort: string;
|
|
1407
|
+
invalidNumber: string;
|
|
1408
|
+
notInteger: string;
|
|
1409
|
+
numberMin: string;
|
|
1410
|
+
numberMax: string;
|
|
1411
|
+
numberRange: string;
|
|
1412
|
+
invalidUrl: string;
|
|
1413
|
+
dateMin: string;
|
|
1414
|
+
dateMax: string;
|
|
1415
|
+
dateRange: string;
|
|
1416
|
+
tooFewOptions: string;
|
|
1417
|
+
tooManyOptions: string;
|
|
1418
|
+
selectPlaceholder: string;
|
|
1419
|
+
invalidAddress: string;
|
|
1420
|
+
invalidPostalCode: string;
|
|
1421
|
+
addressCountry: string;
|
|
1422
|
+
addressRecipient: string;
|
|
1423
|
+
addressLine1: string;
|
|
1424
|
+
addressLine2: string;
|
|
1425
|
+
addressPostal_postal: string;
|
|
1426
|
+
addressPostal_zip: string;
|
|
1427
|
+
addressPostal_pin: string;
|
|
1428
|
+
addressPostal_eircode: string;
|
|
1429
|
+
addressLocality_city: string;
|
|
1430
|
+
addressLocality_district: string;
|
|
1431
|
+
addressLocality_post_town: string;
|
|
1432
|
+
addressLocality_suburb: string;
|
|
1433
|
+
addressRegion_area: string;
|
|
1434
|
+
addressRegion_county: string;
|
|
1435
|
+
addressRegion_department: string;
|
|
1436
|
+
addressRegion_district: string;
|
|
1437
|
+
addressRegion_do_si: string;
|
|
1438
|
+
addressRegion_emirate: string;
|
|
1439
|
+
addressRegion_island: string;
|
|
1440
|
+
addressRegion_oblast: string;
|
|
1441
|
+
addressRegion_parish: string;
|
|
1442
|
+
addressRegion_prefecture: string;
|
|
1443
|
+
addressRegion_province: string;
|
|
1444
|
+
addressRegion_state: string;
|
|
1445
|
+
otherOption: string;
|
|
1446
|
+
otherPlaceholder: string;
|
|
1447
|
+
closed: string;
|
|
1448
|
+
fileChoose: string;
|
|
1449
|
+
fileLimitHint: string;
|
|
1450
|
+
fileWaiting: string;
|
|
1451
|
+
fileUploading: string;
|
|
1452
|
+
fileUploadFailed: string;
|
|
1453
|
+
fileTooLarge: string;
|
|
1454
|
+
fileTypeNotAllowed: string;
|
|
1455
|
+
fileUnavailable: string;
|
|
1456
|
+
fileRemove: string;
|
|
1457
|
+
marketingOptIn: string;
|
|
1458
|
+
subscribeOnSubmit: string;
|
|
1459
|
+
notOpenYet: string;
|
|
1460
|
+
full: string;
|
|
1461
|
+
invalidTaxId: string;
|
|
1462
|
+
taxIdChecking: string;
|
|
1463
|
+
taxIdRegisteredName: string;
|
|
1464
|
+
taxIdInactive: string;
|
|
1465
|
+
taxIdSource: string;
|
|
1466
|
+
};
|
|
1467
|
+
ui: {
|
|
1468
|
+
navItems: string;
|
|
1469
|
+
contactUs: string;
|
|
1470
|
+
backToTop: string;
|
|
1471
|
+
backToHome: string;
|
|
1472
|
+
footerNavAriaLabel: string;
|
|
1473
|
+
navMenu: string;
|
|
1474
|
+
openMenu: string;
|
|
1475
|
+
closeMenu: string;
|
|
1476
|
+
close: string;
|
|
1477
|
+
decreaseQuantity: string;
|
|
1478
|
+
increaseQuantity: string;
|
|
1479
|
+
buyNow: string;
|
|
1480
|
+
selectOption: string;
|
|
1481
|
+
variantUnavailable: string;
|
|
1482
|
+
soldOut: string;
|
|
1483
|
+
addToCart: string;
|
|
1484
|
+
addedToCart: string;
|
|
1485
|
+
cart: string;
|
|
1486
|
+
cartEmpty: string;
|
|
1487
|
+
cartCheckout: string;
|
|
1488
|
+
cartSubtotal: string;
|
|
1489
|
+
cartTotal: string;
|
|
1490
|
+
cartDiscount: string;
|
|
1491
|
+
cartEstimatedShipping: string;
|
|
1492
|
+
cartRemove: string;
|
|
1493
|
+
cartContinueShopping: string;
|
|
1494
|
+
cartItemUnavailable: string;
|
|
1495
|
+
cartNoCommonDelivery: string;
|
|
1496
|
+
cartStorePaused: string;
|
|
1497
|
+
cartComingSoon: string;
|
|
1498
|
+
cartLoadFailed: string;
|
|
1499
|
+
viewCart: string;
|
|
1500
|
+
cartPurchaseLimit: string;
|
|
1501
|
+
cartShippingAtCheckout: string;
|
|
1502
|
+
cartFreeShipping: string;
|
|
1503
|
+
cartFreeShippingRemaining: string;
|
|
1504
|
+
cartFreeShippingReached: string;
|
|
1505
|
+
cartSecureCheckout: string;
|
|
1506
|
+
cartStartShopping: string;
|
|
1507
|
+
cartEstimatedTotal: string;
|
|
1508
|
+
checkoutArchived: string;
|
|
1509
|
+
checkoutStorePaused: string;
|
|
1510
|
+
checkoutComingSoon: string;
|
|
1511
|
+
quickBuyPreviewHint: string;
|
|
1512
|
+
getFree: string;
|
|
1513
|
+
customAmount: string;
|
|
1514
|
+
planFallbackName: string;
|
|
1515
|
+
noPlansAvailable: string;
|
|
1516
|
+
quantity: string;
|
|
1517
|
+
selectPlan: string;
|
|
1518
|
+
choosePlan: string;
|
|
1519
|
+
minutesRead: string;
|
|
1520
|
+
published: string;
|
|
1521
|
+
noArticles: string;
|
|
1522
|
+
draftArticleNotice: string;
|
|
1523
|
+
autoDisplayPublishedArticles: string;
|
|
1524
|
+
tableOfContents: string;
|
|
1525
|
+
previous: string;
|
|
1526
|
+
next: string;
|
|
1527
|
+
clickToRead: string;
|
|
1528
|
+
pdfPages: string;
|
|
1529
|
+
download: string;
|
|
1530
|
+
monday: string;
|
|
1531
|
+
tuesday: string;
|
|
1532
|
+
wednesday: string;
|
|
1533
|
+
thursday: string;
|
|
1534
|
+
friday: string;
|
|
1535
|
+
saturday: string;
|
|
1536
|
+
sunday: string;
|
|
1537
|
+
closed: string;
|
|
1538
|
+
sold: string;
|
|
1539
|
+
reviews: string;
|
|
1540
|
+
reviewDialogTitle: string;
|
|
1541
|
+
reviewDialogHistoricalNote: string;
|
|
1542
|
+
reviewDialogLoadMore: string;
|
|
1543
|
+
reviewVerifiedPurchase: string;
|
|
1544
|
+
reviewStoreReply: string;
|
|
1545
|
+
showMore: string;
|
|
1546
|
+
showLess: string;
|
|
1547
|
+
skipToContent: string;
|
|
1548
|
+
mainNavigation: string;
|
|
1549
|
+
mobileNavigation: string;
|
|
1550
|
+
moreNav: string;
|
|
1551
|
+
followUs: string;
|
|
1552
|
+
socialProfileLink: string;
|
|
1553
|
+
carouselProgress: string;
|
|
1554
|
+
slideImage: string;
|
|
1555
|
+
slideCard: string;
|
|
1556
|
+
goToItem: string;
|
|
1557
|
+
enlargeImage: string;
|
|
1558
|
+
imageShareTitle: string;
|
|
1559
|
+
imageShareText: string;
|
|
1560
|
+
resetZoom: string;
|
|
1561
|
+
zoomIn: string;
|
|
1562
|
+
zoomOut: string;
|
|
1563
|
+
downloadImage: string;
|
|
1564
|
+
share: string;
|
|
1565
|
+
loading: string;
|
|
1566
|
+
retry: string;
|
|
1567
|
+
untitledFile: string;
|
|
1568
|
+
pdfViewer: string;
|
|
1569
|
+
pdfLoadFailed: string;
|
|
1570
|
+
pdfJumpToPage: string;
|
|
1571
|
+
pdfEnterPage: string;
|
|
1572
|
+
pdfPageStatus: string;
|
|
1573
|
+
pdfThumbnails: string;
|
|
1574
|
+
pdfGoToPage: string;
|
|
1575
|
+
playerPlay: string;
|
|
1576
|
+
playerPause: string;
|
|
1577
|
+
playerReplay: string;
|
|
1578
|
+
playerMute: string;
|
|
1579
|
+
playerUnmute: string;
|
|
1580
|
+
playerVolume: string;
|
|
1581
|
+
playerSeekBackward: string;
|
|
1582
|
+
playerSeekForward: string;
|
|
1583
|
+
playerSpeed: string;
|
|
1584
|
+
playerSpeedNormal: string;
|
|
1585
|
+
playerPip: string;
|
|
1586
|
+
playerAirPlay: string;
|
|
1587
|
+
playerCast: string;
|
|
1588
|
+
playerFullscreen: string;
|
|
1589
|
+
playerExitFullscreen: string;
|
|
1590
|
+
playerPipActive: string;
|
|
1591
|
+
playerPipReturn: string;
|
|
1592
|
+
playerSettings: string;
|
|
1593
|
+
playerQuality: string;
|
|
1594
|
+
playerQualityAuto: string;
|
|
1595
|
+
playerQualityProcessing: string;
|
|
1596
|
+
playerBuffering: string;
|
|
1597
|
+
playerCaptions: string;
|
|
1598
|
+
playerCaptionsOff: string;
|
|
1599
|
+
playerCaptionsAuto: string;
|
|
1600
|
+
playerCaptionsTranslated: string;
|
|
1601
|
+
countdown: string;
|
|
1602
|
+
countdownDays: string;
|
|
1603
|
+
countdownHours: string;
|
|
1604
|
+
countdownMinutes: string;
|
|
1605
|
+
countdownSeconds: string;
|
|
1606
|
+
countdownRemaining: string;
|
|
1607
|
+
countdownEnded: string;
|
|
1608
|
+
countdownEndsAt: string;
|
|
1609
|
+
openInGoogleMaps: string;
|
|
1610
|
+
address: string;
|
|
1611
|
+
phone: string;
|
|
1612
|
+
copyAddress: string;
|
|
1613
|
+
openingHours: string;
|
|
1614
|
+
showAllHours: string;
|
|
1615
|
+
hideAllHours: string;
|
|
1616
|
+
todayTag: string;
|
|
1617
|
+
freeShippingThreshold: string;
|
|
1618
|
+
ordersOver: string;
|
|
1619
|
+
belowThresholdFee: string;
|
|
1620
|
+
selectDistanceTier: string;
|
|
1621
|
+
invalidAmount: string;
|
|
1622
|
+
minimumAmount: string;
|
|
1623
|
+
announcement: string;
|
|
1624
|
+
closeAnnouncement: string;
|
|
1625
|
+
botProtection: string;
|
|
1626
|
+
botProtectionLoading: string;
|
|
1627
|
+
playFacebookVideo: string;
|
|
1628
|
+
playYouTubeVideo: string;
|
|
1629
|
+
embedUnavailable: string;
|
|
1630
|
+
embedViewOn: string;
|
|
1631
|
+
embedLoadFailed: string;
|
|
1632
|
+
pinterestLoadFailed: string;
|
|
1633
|
+
youtubeVideo: string;
|
|
1634
|
+
tiktokVideo: string;
|
|
1635
|
+
behanceProject: string;
|
|
1636
|
+
facebookPost: string;
|
|
1637
|
+
instagramPost: string;
|
|
1638
|
+
threadsPost: string;
|
|
1639
|
+
googleForm: string;
|
|
1640
|
+
surveyCakeForm: string;
|
|
1641
|
+
applePodcastEpisode: string;
|
|
1642
|
+
kanorioBannerTagline: string;
|
|
1643
|
+
kanorioBannerCta: string;
|
|
1644
|
+
kanorioBannerTaglineExpanded: string;
|
|
1645
|
+
kanorioBannerCtaExpanded: string;
|
|
1646
|
+
brandLogoAlt: string;
|
|
1647
|
+
openLink: string;
|
|
1648
|
+
opensInNewWindow: string;
|
|
1649
|
+
productImage: string;
|
|
1650
|
+
phonePlaceholder: string;
|
|
1651
|
+
selectCountry: string;
|
|
1652
|
+
countrySearch: string;
|
|
1653
|
+
countryNoMatch: string;
|
|
1654
|
+
countryGroupCommon: string;
|
|
1655
|
+
countryGroupAll: string;
|
|
1656
|
+
businessHoursNotSet: string;
|
|
1657
|
+
businessClosed: string;
|
|
1658
|
+
businessClosedOpensAt: string;
|
|
1659
|
+
businessTomorrow: string;
|
|
1660
|
+
businessToday: string;
|
|
1661
|
+
businessClosingSoon: string;
|
|
1662
|
+
businessOpenUntil: string;
|
|
1663
|
+
signIn: string;
|
|
1664
|
+
myAccount: string;
|
|
1665
|
+
language: string;
|
|
1666
|
+
selectLanguage: string;
|
|
1667
|
+
breadcrumbExpand: string;
|
|
1668
|
+
};
|
|
1669
|
+
productInfo: {
|
|
1670
|
+
payment: string;
|
|
1671
|
+
delivery: string;
|
|
1672
|
+
leadTime: string;
|
|
1673
|
+
invoice: string;
|
|
1674
|
+
invoiceAutoIssue: string;
|
|
1675
|
+
returns: string;
|
|
1676
|
+
returnPolicyLink: string;
|
|
1677
|
+
instantAccess: string;
|
|
1678
|
+
purchaseNotes: string;
|
|
1679
|
+
freeShipping: string;
|
|
1680
|
+
freeShippingOver: string;
|
|
1681
|
+
transitDays: string;
|
|
1682
|
+
};
|
|
1683
|
+
promotion: {
|
|
1684
|
+
badgePercentage: string;
|
|
1685
|
+
badgeFixedAmount: string;
|
|
1686
|
+
badgeOverridePrice: string;
|
|
1687
|
+
badgeFlashSale: string;
|
|
1688
|
+
badgeTimeLimited: string;
|
|
1689
|
+
badgeFirstPurchase: string;
|
|
1690
|
+
badgeReturning: string;
|
|
1691
|
+
badgeQuantity: string;
|
|
1692
|
+
badgeSpendThreshold: string;
|
|
1693
|
+
taglinePercentageOff: string;
|
|
1694
|
+
taglineFixedOff: string;
|
|
1695
|
+
taglineOverridePrice: string;
|
|
1696
|
+
taglineFirstPurchase: string;
|
|
1697
|
+
taglineReturning: string;
|
|
1698
|
+
taglineQuantityMin: string;
|
|
1699
|
+
taglineSpendMin: string;
|
|
1700
|
+
taglineWithCondition: string;
|
|
1701
|
+
taglineEndsSoon: string;
|
|
1702
|
+
taglineLimited: string;
|
|
1703
|
+
};
|
|
1704
|
+
search: {
|
|
1705
|
+
button: string;
|
|
1706
|
+
dialogTitle: string;
|
|
1707
|
+
placeholder: string;
|
|
1708
|
+
keyboardHint: string;
|
|
1709
|
+
soldOut: string;
|
|
1710
|
+
tooShort: string;
|
|
1711
|
+
resultCount: string;
|
|
1712
|
+
noResults: string;
|
|
1713
|
+
noResultsHint: string;
|
|
1714
|
+
browseBlog: string;
|
|
1715
|
+
browseShop: string;
|
|
1716
|
+
viewAll: string;
|
|
1717
|
+
loading: string;
|
|
1718
|
+
error: string;
|
|
1719
|
+
retry: string;
|
|
1720
|
+
recent: string;
|
|
1721
|
+
clearRecent: string;
|
|
1722
|
+
previewNotice: string;
|
|
1723
|
+
pageTitle: string;
|
|
1724
|
+
resultsFor: string;
|
|
1725
|
+
submit: string;
|
|
1726
|
+
};
|
|
1727
|
+
account: {
|
|
1728
|
+
title: string;
|
|
1729
|
+
signInTitle: string;
|
|
1730
|
+
signInSubtitle: string;
|
|
1731
|
+
signInSubtitleChoose: string;
|
|
1732
|
+
emailCodeHint: string;
|
|
1733
|
+
continueWithEmail: string;
|
|
1734
|
+
orContinueWith: string;
|
|
1735
|
+
continueWithPasskey: string;
|
|
1736
|
+
continueWithGoogle: string;
|
|
1737
|
+
continueWithProvider: string;
|
|
1738
|
+
lastUsed: string;
|
|
1739
|
+
codeStepTitle: string;
|
|
1740
|
+
codeSentHint: string;
|
|
1741
|
+
codeLabel: string;
|
|
1742
|
+
verifyAndSignIn: string;
|
|
1743
|
+
verifying: string;
|
|
1744
|
+
sendingCode: string;
|
|
1745
|
+
resendCode: string;
|
|
1746
|
+
resendIn: string;
|
|
1747
|
+
useAnotherEmail: string;
|
|
1748
|
+
signedInContinue: string;
|
|
1749
|
+
sessionChecking: string;
|
|
1750
|
+
signOut: string;
|
|
1751
|
+
passkeyOfferTitle: string;
|
|
1752
|
+
passkeyOfferBody: string;
|
|
1753
|
+
passkeyOfferCreate: string;
|
|
1754
|
+
passkeyOfferSkip: string;
|
|
1755
|
+
inAppBrowserTitle: string;
|
|
1756
|
+
inAppBrowserBody: string;
|
|
1757
|
+
inAppBrowserCopyLink: string;
|
|
1758
|
+
inAppBrowserCopied: string;
|
|
1759
|
+
inAppBrowserUseEmail: string;
|
|
1760
|
+
errorSignupDisabled: string;
|
|
1761
|
+
errorSendFailed: string;
|
|
1762
|
+
errorMethodDisabled: string;
|
|
1763
|
+
errorEmailNotVerified: string;
|
|
1764
|
+
errorNoEmail: string;
|
|
1765
|
+
errorProviderFailed: string;
|
|
1766
|
+
errorPasskeyUnsupported: string;
|
|
1767
|
+
errorPasskeyFailed: string;
|
|
1768
|
+
errorPasskeyAlreadyRegistered: string;
|
|
1769
|
+
errorServiceUnavailable: string;
|
|
1770
|
+
errorEmailSignInPaused: string;
|
|
1771
|
+
emailLabel: string;
|
|
1772
|
+
emailPlaceholder: string;
|
|
1773
|
+
nav: {
|
|
1774
|
+
orders: string;
|
|
1775
|
+
content: string;
|
|
1776
|
+
account: string;
|
|
1777
|
+
};
|
|
1778
|
+
shell: {
|
|
1779
|
+
backToSite: string;
|
|
1780
|
+
menu: string;
|
|
1781
|
+
signedInAs: string;
|
|
1782
|
+
providedBy: string;
|
|
1783
|
+
};
|
|
1784
|
+
ordersEmptyTitle: string;
|
|
1785
|
+
ordersEmptyDescription: string;
|
|
1786
|
+
orderNumber: string;
|
|
1787
|
+
orderStatusLabel: string;
|
|
1788
|
+
orderStatusPaid: string;
|
|
1789
|
+
orderStatusPartiallyRefunded: string;
|
|
1790
|
+
orderStatusRefunded: string;
|
|
1791
|
+
orderStatusDisputed: string;
|
|
1792
|
+
orderStatusReversed: string;
|
|
1793
|
+
orderStatusUnpaid: string;
|
|
1794
|
+
orderStatusCancelled: string;
|
|
1795
|
+
orderViewDetail: string;
|
|
1796
|
+
orderBackToList: string;
|
|
1797
|
+
orderPlacedAt: string;
|
|
1798
|
+
orderDownloadReceipt: string;
|
|
1799
|
+
contentEmptyTitle: string;
|
|
1800
|
+
contentEmptyDescription: string;
|
|
1801
|
+
contentExpiredBadge: string;
|
|
1802
|
+
contentExpiresOn: string;
|
|
1803
|
+
contentAvailableFrom: string;
|
|
1804
|
+
contentOpen: string;
|
|
1805
|
+
contentDownload: string;
|
|
1806
|
+
contentUnitsCount: string;
|
|
1807
|
+
contentProgress: string;
|
|
1808
|
+
contentWatchedMinutes: string;
|
|
1809
|
+
contentWatchedHours: string;
|
|
1810
|
+
contentLastWatched: string;
|
|
1811
|
+
contentCompleted: string;
|
|
1812
|
+
contentMarkComplete: string;
|
|
1813
|
+
contentOptional: string;
|
|
1814
|
+
contentQuizSubmit: string;
|
|
1815
|
+
contentQuizScore: string;
|
|
1816
|
+
contentQuizPassed: string;
|
|
1817
|
+
contentQuizFailed: string;
|
|
1818
|
+
contentQuizAttemptsLeft: string;
|
|
1819
|
+
contentQuizNoAttempts: string;
|
|
1820
|
+
contentQuizRetry: string;
|
|
1821
|
+
contentQuizPassingScore: string;
|
|
1822
|
+
contentQuizNotReady: string;
|
|
1823
|
+
contentQuizSelectAll: string;
|
|
1824
|
+
contentQuizCorrectCount: string;
|
|
1825
|
+
contentQuizPracticeHint: string;
|
|
1826
|
+
contentQuizPracticeAgain: string;
|
|
1827
|
+
contentQuizAcceptedAnswers: string;
|
|
1828
|
+
contentQuizTextPlaceholder: string;
|
|
1829
|
+
contentQuizNumericPlaceholder: string;
|
|
1830
|
+
contentQuizCorrectMark: string;
|
|
1831
|
+
contentQuizWrongMark: string;
|
|
1832
|
+
contentCertificateDownload: string;
|
|
1833
|
+
contentAutoplayNext: string;
|
|
1834
|
+
contentCompleteAndContinue: string;
|
|
1835
|
+
contentCompleteToContinue: string;
|
|
1836
|
+
contentOutline: string;
|
|
1837
|
+
contentShowOutline: string;
|
|
1838
|
+
contentHideOutline: string;
|
|
1839
|
+
contentCloseOutline: string;
|
|
1840
|
+
contentSettings: string;
|
|
1841
|
+
contentMinutes: string;
|
|
1842
|
+
contentPages: string;
|
|
1843
|
+
contentUnitEmpty: string;
|
|
1844
|
+
contentRetry: string;
|
|
1845
|
+
contentLastViewed: string;
|
|
1846
|
+
contentCourseCompletedTitle: string;
|
|
1847
|
+
contentCourseCompletedOn: string;
|
|
1848
|
+
contentKeepBrowsing: string;
|
|
1849
|
+
contentAttachments: string;
|
|
1850
|
+
contentDownloadFile: string;
|
|
1851
|
+
contentTranscript: string;
|
|
1852
|
+
contentTranscriptShow: string;
|
|
1853
|
+
contentTranscriptHide: string;
|
|
1854
|
+
contentTranscriptSearch: string;
|
|
1855
|
+
contentTranscriptMatches: string;
|
|
1856
|
+
contentTranscriptNoResults: string;
|
|
1857
|
+
contentTranscriptDownload: string;
|
|
1858
|
+
contentTranscriptLanguage: string;
|
|
1859
|
+
contentTranscriptFollow: string;
|
|
1860
|
+
contentTranscriptAutoGenerated: string;
|
|
1861
|
+
contentTranscriptAutoTranslated: string;
|
|
1862
|
+
contentContinueWith: string;
|
|
1863
|
+
contentStartCourse: string;
|
|
1864
|
+
contentOpenFiles: string;
|
|
1865
|
+
contentCompletedOn: string;
|
|
1866
|
+
certificateTitle: string;
|
|
1867
|
+
certificateAwardedTo: string;
|
|
1868
|
+
certificateCompleted: string;
|
|
1869
|
+
certificateIssuedOn: string;
|
|
1870
|
+
certificateSerial: string;
|
|
1871
|
+
certificateSampleName: string;
|
|
1872
|
+
certificatePreviewWatermark: string;
|
|
1873
|
+
certificateLinkExpiredTitle: string;
|
|
1874
|
+
certificateLinkExpiredBody: string;
|
|
1875
|
+
certificateLinkInvalidTitle: string;
|
|
1876
|
+
certificateLinkInvalidBody: string;
|
|
1877
|
+
certificateLinkBusyTitle: string;
|
|
1878
|
+
certificateLinkBusyBody: string;
|
|
1879
|
+
contentContinue: string;
|
|
1880
|
+
contentStart: string;
|
|
1881
|
+
contentLocked: string;
|
|
1882
|
+
contentPreviewBadge: string;
|
|
1883
|
+
contentUnlocksAt: string;
|
|
1884
|
+
contentLockedBy: string;
|
|
1885
|
+
contentBackToList: string;
|
|
1886
|
+
contentNextUnit: string;
|
|
1887
|
+
contentPreviousUnit: string;
|
|
1888
|
+
contentLoadError: string;
|
|
1889
|
+
contentNoUnits: string;
|
|
1890
|
+
profileNameLabel: string;
|
|
1891
|
+
profileNamePlaceholder: string;
|
|
1892
|
+
profileEmailLabel: string;
|
|
1893
|
+
profileInvoiceTitle: string;
|
|
1894
|
+
profileInvoiceKindLabel: string;
|
|
1895
|
+
profileInvoicePersonal: string;
|
|
1896
|
+
profileInvoiceMobile: string;
|
|
1897
|
+
profileInvoiceCitizen: string;
|
|
1898
|
+
profileInvoiceDonate: string;
|
|
1899
|
+
profileInvoiceCompany: string;
|
|
1900
|
+
profileMobileBarcodePlaceholder: string;
|
|
1901
|
+
profileCitizenCertPlaceholder: string;
|
|
1902
|
+
profileDonateCodePlaceholder: string;
|
|
1903
|
+
profileCompanyTaxIdLabel: string;
|
|
1904
|
+
profileCompanyTaxIdPlaceholder: string;
|
|
1905
|
+
profileCompanyTitleLabel: string;
|
|
1906
|
+
profileCompanyTitlePlaceholder: string;
|
|
1907
|
+
profileSave: string;
|
|
1908
|
+
profileSaving: string;
|
|
1909
|
+
profileSaved: string;
|
|
1910
|
+
devicesDescription: string;
|
|
1911
|
+
deviceCurrent: string;
|
|
1912
|
+
deviceUnknown: string;
|
|
1913
|
+
deviceLastActive: string;
|
|
1914
|
+
deviceSignOut: string;
|
|
1915
|
+
deviceSignOutOthers: string;
|
|
1916
|
+
errorInvalidEmail: string;
|
|
1917
|
+
errorInvalidCode: string;
|
|
1918
|
+
errorCodeExpired: string;
|
|
1919
|
+
errorTooManyAttempts: string;
|
|
1920
|
+
errorAccountBlocked: string;
|
|
1921
|
+
errorRateLimited: string;
|
|
1922
|
+
errorBotProtection: string;
|
|
1923
|
+
errorGeneric: string;
|
|
1924
|
+
taxIdentityPending: string;
|
|
1925
|
+
taxIdentityVerified: string;
|
|
1926
|
+
taxIdentityNotFound: string;
|
|
1927
|
+
taxIdentityUnavailable: string;
|
|
1928
|
+
settings: {
|
|
1929
|
+
intro: string;
|
|
1930
|
+
common: {
|
|
1931
|
+
save: string;
|
|
1932
|
+
saving: string;
|
|
1933
|
+
saved: string;
|
|
1934
|
+
cancel: string;
|
|
1935
|
+
close: string;
|
|
1936
|
+
remove: string;
|
|
1937
|
+
edit: string;
|
|
1938
|
+
add: string;
|
|
1939
|
+
confirm: string;
|
|
1940
|
+
optional: string;
|
|
1941
|
+
};
|
|
1942
|
+
profile: {
|
|
1943
|
+
title: string;
|
|
1944
|
+
description: string;
|
|
1945
|
+
nameLabel: string;
|
|
1946
|
+
namePlaceholder: string;
|
|
1947
|
+
};
|
|
1948
|
+
email: {
|
|
1949
|
+
title: string;
|
|
1950
|
+
description: string;
|
|
1951
|
+
currentLabel: string;
|
|
1952
|
+
changeAction: string;
|
|
1953
|
+
newLabel: string;
|
|
1954
|
+
sendCode: string;
|
|
1955
|
+
codeSentTo: string;
|
|
1956
|
+
codeLabel: string;
|
|
1957
|
+
confirmAction: string;
|
|
1958
|
+
resend: string;
|
|
1959
|
+
changed: string;
|
|
1960
|
+
errorInUse: string;
|
|
1961
|
+
errorSame: string;
|
|
1962
|
+
errorInvalid: string;
|
|
1963
|
+
errorInvalidCode: string;
|
|
1964
|
+
errorCodeExpired: string;
|
|
1965
|
+
errorTooManyAttempts: string;
|
|
1966
|
+
};
|
|
1967
|
+
addresses: {
|
|
1968
|
+
title: string;
|
|
1969
|
+
description: string;
|
|
1970
|
+
empty: string;
|
|
1971
|
+
add: string;
|
|
1972
|
+
dialogAddTitle: string;
|
|
1973
|
+
dialogEditTitle: string;
|
|
1974
|
+
kindLabel: string;
|
|
1975
|
+
kindShipping: string;
|
|
1976
|
+
kindBilling: string;
|
|
1977
|
+
phoneLabel: string;
|
|
1978
|
+
setDefault: string;
|
|
1979
|
+
defaultBadge: string;
|
|
1980
|
+
saveAction: string;
|
|
1981
|
+
confirmRemoveTitle: string;
|
|
1982
|
+
confirmRemoveBody: string;
|
|
1983
|
+
errorInvalid: string;
|
|
1984
|
+
errorPhone: string;
|
|
1985
|
+
errorRequired: string;
|
|
1986
|
+
errorPostalCode: string;
|
|
1987
|
+
errorLimit: string;
|
|
1988
|
+
};
|
|
1989
|
+
taxIds: {
|
|
1990
|
+
title: string;
|
|
1991
|
+
description: string;
|
|
1992
|
+
empty: string;
|
|
1993
|
+
add: string;
|
|
1994
|
+
dialogAddTitle: string;
|
|
1995
|
+
dialogEditTitle: string;
|
|
1996
|
+
countryLabel: string;
|
|
1997
|
+
typeLabel: string;
|
|
1998
|
+
valueLabel: string;
|
|
1999
|
+
nameLabel: string;
|
|
2000
|
+
addressLabel: string;
|
|
2001
|
+
saveAction: string;
|
|
2002
|
+
confirmRemoveTitle: string;
|
|
2003
|
+
confirmRemoveBody: string;
|
|
2004
|
+
errorInvalid: string;
|
|
2005
|
+
errorUnsupported: string;
|
|
2006
|
+
statusVerified: string;
|
|
2007
|
+
statusPending: string;
|
|
2008
|
+
statusNotFound: string;
|
|
2009
|
+
statusUnavailable: string;
|
|
2010
|
+
statusValidFormat: string;
|
|
2011
|
+
statusInvalidFormat: string;
|
|
2012
|
+
type_tw_vat: string;
|
|
2013
|
+
type_hk_br: string;
|
|
2014
|
+
type_jp_trn: string;
|
|
2015
|
+
type_kr_brn: string;
|
|
2016
|
+
type_eu_vat: string;
|
|
2017
|
+
type_sg_uen: string;
|
|
2018
|
+
type_my_itn: string;
|
|
2019
|
+
type_my_sst: string;
|
|
2020
|
+
};
|
|
2021
|
+
invoice: {
|
|
2022
|
+
companyUsesTaxId: string;
|
|
2023
|
+
companyNeedsTaxId: string;
|
|
2024
|
+
};
|
|
2025
|
+
marketing: {
|
|
2026
|
+
title: string;
|
|
2027
|
+
description: string;
|
|
2028
|
+
empty: string;
|
|
2029
|
+
channel_EMAIL: string;
|
|
2030
|
+
channel_SMS: string;
|
|
2031
|
+
channel_LINE: string;
|
|
2032
|
+
channel_WHATSAPP: string;
|
|
2033
|
+
subscribed: string;
|
|
2034
|
+
notSubscribed: string;
|
|
2035
|
+
pendingConfirmation: string;
|
|
2036
|
+
locked: string;
|
|
2037
|
+
};
|
|
2038
|
+
loginMethods: {
|
|
2039
|
+
title: string;
|
|
2040
|
+
description: string;
|
|
2041
|
+
emailCode: string;
|
|
2042
|
+
emailCodeHint: string;
|
|
2043
|
+
passkeysTitle: string;
|
|
2044
|
+
noPasskeys: string;
|
|
2045
|
+
addPasskey: string;
|
|
2046
|
+
passkeyAdded: string;
|
|
2047
|
+
passkeyCreated: string;
|
|
2048
|
+
passkeyLastUsed: string;
|
|
2049
|
+
passkeyNeverUsed: string;
|
|
2050
|
+
passkeyStale: string;
|
|
2051
|
+
passkeyUnsupported: string;
|
|
2052
|
+
passkeyFailed: string;
|
|
2053
|
+
confirmRemoveTitle: string;
|
|
2054
|
+
confirmRemoveBody: string;
|
|
2055
|
+
};
|
|
2056
|
+
devices: {
|
|
2057
|
+
title: string;
|
|
2058
|
+
};
|
|
2059
|
+
data: {
|
|
2060
|
+
title: string;
|
|
2061
|
+
description: string;
|
|
2062
|
+
download: string;
|
|
2063
|
+
downloadHint: string;
|
|
2064
|
+
deleteTitle: string;
|
|
2065
|
+
deleteBody: string;
|
|
2066
|
+
deleteAction: string;
|
|
2067
|
+
deleteConfirmTitle: string;
|
|
2068
|
+
deleteConfirmBody: string;
|
|
2069
|
+
deleteConfirmAction: string;
|
|
2070
|
+
pendingTitle: string;
|
|
2071
|
+
pendingBody: string;
|
|
2072
|
+
cancelDeletion: string;
|
|
2073
|
+
canceled: string;
|
|
2074
|
+
};
|
|
2075
|
+
};
|
|
2076
|
+
oauth2: {
|
|
2077
|
+
returnHint: string;
|
|
2078
|
+
errorTitle: string;
|
|
2079
|
+
errorRedirect: string;
|
|
2080
|
+
errorRequest: string;
|
|
2081
|
+
errorBlocked: string;
|
|
2082
|
+
};
|
|
2083
|
+
};
|
|
2084
|
+
unsubscribe: {
|
|
2085
|
+
confirmTitle: string;
|
|
2086
|
+
confirmHeading: string;
|
|
2087
|
+
confirmBody: string;
|
|
2088
|
+
confirmButton: string;
|
|
2089
|
+
doneTitle: string;
|
|
2090
|
+
doneHeading: string;
|
|
2091
|
+
doneBody: string;
|
|
2092
|
+
resubscribeButton: string;
|
|
2093
|
+
resubscribedTitle: string;
|
|
2094
|
+
resubscribedHeading: string;
|
|
2095
|
+
resubscribedBody: string;
|
|
2096
|
+
};
|
|
2097
|
+
};
|
|
2098
|
+
|
|
2099
|
+
type KanorioTheme = "dark" | "light" | "auto";
|
|
2100
|
+
/** The `GET /site` response (site id, brand, media protection, list page states) */
|
|
2101
|
+
type KanorioSiteMeta = DeliveryPaths["/site"]["get"]["responses"][200]["content"]["application/json"];
|
|
2102
|
+
type KanorioSiteBrand = KanorioSiteMeta["brand"];
|
|
2103
|
+
interface KanorioConfig {
|
|
2104
|
+
/** For example `https://demo.kanorio.com`; defaults to the current URL's origin (when Elements and the site share a domain) */
|
|
2105
|
+
siteUrl?: string;
|
|
2106
|
+
/** Customer Bearer; read from `localStorage["kanorio.customer.token"]` when omitted (written by `<kanorio-login>`) */
|
|
2107
|
+
token?: string | null;
|
|
2108
|
+
/** Text locale; read from `<html lang>` when omitted, then en */
|
|
2109
|
+
locale?: string;
|
|
2110
|
+
theme?: KanorioTheme;
|
|
2111
|
+
timeZone?: string | null;
|
|
2112
|
+
/** Applies the site brand (brand color, corner radius, font) to the element automatically; with `false` only the host page's CSS variables are used */
|
|
2113
|
+
brand?: boolean;
|
|
2114
|
+
}
|
|
2115
|
+
interface KanorioContextValue {
|
|
2116
|
+
siteUrl: string;
|
|
2117
|
+
token: string | null;
|
|
2118
|
+
setToken: (token: string | null) => void;
|
|
2119
|
+
/**
|
|
2120
|
+
* The locale the element is drawn in: the one asked for (`locale`, `<html lang>`, en) once its text has loaded. While the text of
|
|
2121
|
+
* another locale loads, or when it cannot be loaded, the element stays in the locale it shows: text, brand font and requests alike.
|
|
2122
|
+
*/
|
|
2123
|
+
locale: string;
|
|
2124
|
+
theme: KanorioTheme;
|
|
2125
|
+
timeZone: string | null;
|
|
2126
|
+
/** The visitor text of `locale`; null until the element's first text has loaded */
|
|
2127
|
+
messages: VisitorMessages | null;
|
|
2128
|
+
/** The text of the locale asked for could not be loaded: an element without text cannot draw, one with text keeps it */
|
|
2129
|
+
messagesError: boolean;
|
|
2130
|
+
client: CustomerContentClientLike;
|
|
2131
|
+
/**
|
|
2132
|
+
* The brand the element's root carries (`data-kanorio-brand`): the site and font locale, once the site is read and while the brand is
|
|
2133
|
+
* applied; null otherwise. Roots and popups without it take no brand from Kanorio, only the host page's own variables.
|
|
2134
|
+
*/
|
|
2135
|
+
brandScope: string | null;
|
|
2136
|
+
/**
|
|
2137
|
+
* Site meta (`GET /site`, not read with `brand: false` unless the element needs it itself); null while loading or on failure, and
|
|
2138
|
+
* `siteError` is true on failure. After `clearSiteMetaCache()` an element keeps the site it shows until the new one has arrived, also
|
|
2139
|
+
* when that read fails (`site` and `siteError` are then both set)
|
|
2140
|
+
*/
|
|
2141
|
+
site: KanorioSiteMeta | null;
|
|
2142
|
+
siteError: boolean;
|
|
2143
|
+
}
|
|
2144
|
+
declare const TOKEN_CHANGE_EVENT = "kanorio:token-change";
|
|
2145
|
+
/** Loads the visitor-facing text of a locale, once for the page (the elements showing that locale use it); rejects when it cannot be loaded */
|
|
2146
|
+
declare function loadElementsMessages(locale: string): Promise<VisitorMessages>;
|
|
2147
|
+
/** Site meta; null on failure, asked for again by the next element that mounts */
|
|
2148
|
+
declare function loadSiteMeta(siteUrl: string): Promise<KanorioSiteMeta | null>;
|
|
2149
|
+
/**
|
|
2150
|
+
* Drops the site meta read so far (for example after the brand was changed): `loadSiteMeta()` and every element mounted afterwards
|
|
2151
|
+
* read it again and wait for the answer. An element already showing a site reads it again too and keeps the one it shows until the
|
|
2152
|
+
* new one arrives, so a form on screen is not unmounted.
|
|
2153
|
+
*/
|
|
2154
|
+
declare function clearSiteMetaCache(): void;
|
|
2155
|
+
/**
|
|
2156
|
+
* The site meta for an element. With `enabled` false no request is made and nothing is subscribed to (for example `brand: false` when
|
|
2157
|
+
* the component itself needs no site meta). After `clearSiteMetaCache()` the element keeps the site it shows until the new one has
|
|
2158
|
+
* arrived, and when that read fails (`error`): going back to its loading state would unmount a form with what the visitor typed.
|
|
2159
|
+
*/
|
|
2160
|
+
declare function useSiteMeta(siteUrl: string, enabled?: boolean): {
|
|
2161
|
+
site: KanorioSiteMeta | null;
|
|
2162
|
+
error: boolean;
|
|
2163
|
+
};
|
|
2164
|
+
/**
|
|
2165
|
+
* Brand to CSS, for a host that injects the brand itself (with `brand={false}`): rules for every root, popup and Kanorio part on the
|
|
2166
|
+
* page. Color values, radius sizes and font families are computed by the Delivery API; this only lays them out
|
|
2167
|
+
*/
|
|
2168
|
+
declare function brandCss(brand: KanorioSiteBrand, locale: string): string;
|
|
2169
|
+
/**
|
|
2170
|
+
* Context only: renders no element of its own (like Stripe's `<Elements>`). Its settings reach the elements inside it, and each of
|
|
2171
|
+
* them renders its own themed root. A wrapper element here would sit around the host page's content as well and give it the text
|
|
2172
|
+
* colour, font, dark colours and resets of the elements, and its theme would make every element inside it dark.
|
|
2173
|
+
*/
|
|
2174
|
+
declare function KanorioProvider({ children, siteUrl, token, locale, theme, timeZone, brand }: KanorioConfig & {
|
|
2175
|
+
children: ReactNode;
|
|
2176
|
+
}): react_jsx_runtime.JSX.Element;
|
|
2177
|
+
/** The context of an element: the settings of the surrounding provider, with the element's own on top */
|
|
2178
|
+
declare function useKanorio(overrides?: KanorioConfig): KanorioContextValue;
|
|
2179
|
+
|
|
2180
|
+
/**
|
|
2181
|
+
* Playback events (for watch history): `seeked` carries the destination, `ratechange` the playback rate and `quality` the video height;
|
|
2182
|
+
* `started` is the first time playback actually begins (for time to first frame), and `waiting` and `playing` pair up to measure stalls. Times are always media seconds.
|
|
2183
|
+
*/
|
|
2184
|
+
type MediaPlaybackEvent = {
|
|
2185
|
+
type: "play" | "pause" | "ended" | "waiting" | "playing" | "started";
|
|
2186
|
+
time: number;
|
|
2187
|
+
} | {
|
|
2188
|
+
type: "seeked";
|
|
2189
|
+
time: number;
|
|
2190
|
+
} | {
|
|
2191
|
+
type: "ratechange";
|
|
2192
|
+
time: number;
|
|
2193
|
+
rate: number;
|
|
2194
|
+
} | {
|
|
2195
|
+
type: "quality";
|
|
2196
|
+
time: number;
|
|
2197
|
+
height: number | null;
|
|
2198
|
+
};
|
|
2199
|
+
/** Caption track: VTT URL, BCP 47 locale, source (AI transcription, upload, automatic translation) and whether it was edited; hidden by default until the viewer turns captions on */
|
|
2200
|
+
interface CaptionTrack {
|
|
2201
|
+
locale: string;
|
|
2202
|
+
url: string;
|
|
2203
|
+
source: "ai" | "upload" | "translation";
|
|
2204
|
+
edited: boolean;
|
|
2205
|
+
}
|
|
2206
|
+
/** Where the player frame's corner radius comes from (see `radius`) */
|
|
2207
|
+
type MediaPlayerRadius = "site" | "app-inner";
|
|
2208
|
+
interface MediaPlayerProps {
|
|
2209
|
+
src: string;
|
|
2210
|
+
mimeType: string;
|
|
2211
|
+
captions?: CaptionTrack[];
|
|
2212
|
+
captionLocale?: string | null;
|
|
2213
|
+
onCaptionChange?: (locale: string | null) => void;
|
|
2214
|
+
/** The video's HLS master manifest, the VTT of seek-bar thumbnails, and whether renditions are still processing (meaningful for video only) */
|
|
2215
|
+
hlsSrc?: string;
|
|
2216
|
+
thumbnails?: string;
|
|
2217
|
+
streamingPartial?: boolean;
|
|
2218
|
+
title?: string;
|
|
2219
|
+
/** File name and size shown when a format without a previewer (Office, EPUB, ZIP) renders as a download card */
|
|
2220
|
+
fileName?: string;
|
|
2221
|
+
fileSize?: number;
|
|
2222
|
+
/** File card layout: tile for multi-column grids, matching video and PDF cards; row for a single column or inside an article */
|
|
2223
|
+
fileCardVariant?: "row" | "tile";
|
|
2224
|
+
thumbnailUrl?: string;
|
|
2225
|
+
/** Cover alt text; players fall back to the title when it is empty */
|
|
2226
|
+
thumbnailAlt?: string;
|
|
2227
|
+
pageCount?: number;
|
|
2228
|
+
autoPlay?: boolean;
|
|
2229
|
+
loop?: boolean;
|
|
2230
|
+
muted?: boolean;
|
|
2231
|
+
/** Key for remembering playback position and volume (the asset id) */
|
|
2232
|
+
storageKey?: string;
|
|
2233
|
+
/** The second to start playing from (resume across devices; server progress wins over the local record) */
|
|
2234
|
+
startTime?: number;
|
|
2235
|
+
/** External seek (clicking a line in the transcript panel): it seeks again only when `nonce` differs */
|
|
2236
|
+
seekTo?: {
|
|
2237
|
+
time: number;
|
|
2238
|
+
nonce: number;
|
|
2239
|
+
} | null;
|
|
2240
|
+
/** Chapters VTT URL (the `chapters` entry of `renditions[]`) */
|
|
2241
|
+
chapters?: string;
|
|
2242
|
+
onTimeUpdate?: (currentTime: number, duration: number) => void;
|
|
2243
|
+
onComplete?: () => void;
|
|
2244
|
+
onPlaybackEvent?: (event: MediaPlaybackEvent) => void;
|
|
2245
|
+
allowDownload?: boolean;
|
|
2246
|
+
downloadUrl?: string;
|
|
2247
|
+
/**
|
|
2248
|
+
* Frame corner radius: `site` (default) follows the site's corner radius setting (`--site-radius-media`: 8px square, 24px standard, 48px rounded);
|
|
2249
|
+
* `app-inner` is for players embedded in Kanorio's own dashboard (8px). The dashboard has no site radius, so without it the standard 24px would apply.
|
|
2250
|
+
*/
|
|
2251
|
+
radius?: MediaPlayerRadius;
|
|
2252
|
+
className?: string;
|
|
2253
|
+
}
|
|
2254
|
+
|
|
2255
|
+
interface KanorioMediaProps extends MediaPlayerProps, Pick<KanorioConfig, "locale" | "theme" | "siteUrl" | "brand"> {
|
|
2256
|
+
}
|
|
2257
|
+
declare function KanorioMedia({ locale, theme, siteUrl, brand, ...props }: KanorioMediaProps): react_jsx_runtime.JSX.Element;
|
|
2258
|
+
|
|
2259
|
+
interface ImageLightboxHandle {
|
|
2260
|
+
openLightbox: (index: number) => void;
|
|
2261
|
+
}
|
|
2262
|
+
|
|
2263
|
+
/**
|
|
2264
|
+
* A site's media protection settings: effective immediately, without a full-site publish.
|
|
2265
|
+
* Defaults apply when the value or a field is missing; audio, video and files in media sections follow their own "allow download" setting and are not affected by `allowDownload`.
|
|
2266
|
+
*/
|
|
2267
|
+
interface MediaProtection {
|
|
2268
|
+
/** Visitor downloads from the image lightbox and article PDFs */
|
|
2269
|
+
allowDownload: boolean;
|
|
2270
|
+
/** Images visitors download keep the copyright fields (location, camera and author are always removed); displayed images are not affected */
|
|
2271
|
+
keepCopyright: boolean;
|
|
2272
|
+
/** Images disable right-click, dragging and the long-press menu, and the lightbox hides download and share */
|
|
2273
|
+
deterrence: boolean;
|
|
2274
|
+
/** Watermark (available on every plan; whole-image watermarked versions are made in advance) */
|
|
2275
|
+
watermark: MediaWatermark;
|
|
2276
|
+
}
|
|
2277
|
+
declare const WATERMARK_POSITIONS: readonly ["top-left", "top", "top-right", "left", "center", "right", "bottom-left", "bottom", "bottom-right"];
|
|
2278
|
+
type WatermarkPosition = (typeof WATERMARK_POSITIONS)[number];
|
|
2279
|
+
declare const WATERMARK_SOURCES: readonly ["logo", "text", "image"];
|
|
2280
|
+
type WatermarkSource = (typeof WATERMARK_SOURCES)[number];
|
|
2281
|
+
/** The part the owner can change; `overlay` and `version` are produced by the server on save */
|
|
2282
|
+
interface MediaWatermarkSettings {
|
|
2283
|
+
enabled: boolean;
|
|
2284
|
+
/** Artwork: the brand logo, text, or an uploaded image (`image`, whose value is an `asset:` reference or the URL of an image on this site) */
|
|
2285
|
+
source: WatermarkSource;
|
|
2286
|
+
text: string;
|
|
2287
|
+
image: string | null;
|
|
2288
|
+
/** `single`: placed in one cell of a 3x3 grid; `tile`: tiled across the whole image (hardest to crop out) */
|
|
2289
|
+
layout: "single" | "tile";
|
|
2290
|
+
position: WatermarkPosition;
|
|
2291
|
+
size: number;
|
|
2292
|
+
opacity: number;
|
|
2293
|
+
/** Which images get it; logos, site icons, header and footer, share images and post covers never do and are not options */
|
|
2294
|
+
apply: WatermarkApply;
|
|
2295
|
+
}
|
|
2296
|
+
/**
|
|
2297
|
+
* Chosen per category: the version visitors download follows the displayed image (watermarked if that one is), with no separate option.
|
|
2298
|
+
* Product images are off by default: Google Merchant Center does not accept watermarked product images, and structured data and share images always use the original.
|
|
2299
|
+
*/
|
|
2300
|
+
interface WatermarkApply {
|
|
2301
|
+
/** Photos in page sections */
|
|
2302
|
+
pages: boolean;
|
|
2303
|
+
/** Images in blog post content */
|
|
2304
|
+
articles: boolean;
|
|
2305
|
+
/** Product images in product sections and on product pages */
|
|
2306
|
+
products: boolean;
|
|
2307
|
+
}
|
|
2308
|
+
interface WatermarkOverlay {
|
|
2309
|
+
url: string;
|
|
2310
|
+
width: number;
|
|
2311
|
+
height: number;
|
|
2312
|
+
/** Hash of the inputs that produced this overlay (artwork source, text, image, layout, brand logo); a different hash means it must be produced again */
|
|
2313
|
+
key: string;
|
|
2314
|
+
}
|
|
2315
|
+
interface MediaWatermark extends MediaWatermarkSettings {
|
|
2316
|
+
/**
|
|
2317
|
+
* The PNG laid over images (a Cloudflare Images derivative, not counted toward quota): SVG logos and text are converted to PNG first,
|
|
2318
|
+
* and spacing is already included when tiling. Watermarked versions are made by compositing this image.
|
|
2319
|
+
*/
|
|
2320
|
+
overlay: WatermarkOverlay | null;
|
|
2321
|
+
/** Settings version: changes whenever the overlay or how it is applied changes, and watermarked versions are made per version */
|
|
2322
|
+
version: string | null;
|
|
2323
|
+
/**
|
|
2324
|
+
* When the watermark was last turned on (ISO). While a watermarked version is not ready, images that existed before this show the original (they were already public),
|
|
2325
|
+
* and images uploaded or replaced afterwards show only a placeholder; an original without a watermark is never served.
|
|
2326
|
+
*/
|
|
2327
|
+
activatedAt: string | null;
|
|
2328
|
+
/** When the watermark was last turned off (ISO); watermarked versions are removed after 30 days off, and turning it back on before then reuses them */
|
|
2329
|
+
deactivatedAt: string | null;
|
|
2330
|
+
/** Times a full-site redo was triggered in the last 24 hours (an ISO array; at most 3 per 24 hours) */
|
|
2331
|
+
regenHistory?: string[];
|
|
2332
|
+
/** When the limit of 3 full-site redos per 24 hours is exceeded, the time the new style is scheduled to start applying (ISO) */
|
|
2333
|
+
scheduledAt?: string | null;
|
|
2334
|
+
}
|
|
2335
|
+
|
|
2336
|
+
interface KanorioLightboxProps extends Pick<KanorioConfig, "locale" | "theme" | "siteUrl" | "brand"> {
|
|
2337
|
+
images: string[];
|
|
2338
|
+
alts?: Array<string | undefined>;
|
|
2339
|
+
filenames?: Array<string | undefined>;
|
|
2340
|
+
/** Lightbox protection (allow downloads, discourage right-click and so on); omit to read the site's protection settings; null means the default (downloads allowed) */
|
|
2341
|
+
protection?: Partial<MediaProtection> | null;
|
|
2342
|
+
/** Site id; only with it does the platform's image download endpoint apply (watermarked version, capture details removed). Taken from the site when omitted and no protection is passed */
|
|
2343
|
+
websiteId?: string | null;
|
|
2344
|
+
/** Platform API URL (the image download endpoint is on the app host, not the site); defaults to `https://app.kanorio.com` (the apex answers 308 for `/api/*`, so it cannot be the default) */
|
|
2345
|
+
apiBase?: string;
|
|
2346
|
+
/** Your own trigger; calls back with `open(index)` */
|
|
2347
|
+
renderTrigger?: (open: (index: number) => void) => ReactNode;
|
|
2348
|
+
/** Columns of the built-in thumbnail grid (3 by default) */
|
|
2349
|
+
columns?: number;
|
|
2350
|
+
className?: string;
|
|
2351
|
+
}
|
|
2352
|
+
declare const KanorioLightbox: react.ForwardRefExoticComponent<KanorioLightboxProps & react.RefAttributes<ImageLightboxHandle>>;
|
|
2353
|
+
|
|
2354
|
+
interface DeliverablePlayerLabels {
|
|
2355
|
+
locked: string;
|
|
2356
|
+
/** Blocked by sequential completion: {title} is the unit to complete first */
|
|
2357
|
+
lockedBy: string;
|
|
2358
|
+
preview: string;
|
|
2359
|
+
unlocksAt: string;
|
|
2360
|
+
open: string;
|
|
2361
|
+
download: string;
|
|
2362
|
+
completed: string;
|
|
2363
|
+
/** Completion button for units that are not audio or video */
|
|
2364
|
+
markComplete: string;
|
|
2365
|
+
/** Units that do not count toward completion (optional) */
|
|
2366
|
+
optional: string;
|
|
2367
|
+
continueLearning: string;
|
|
2368
|
+
start: string;
|
|
2369
|
+
nextUnit: string;
|
|
2370
|
+
previousUnit: string;
|
|
2371
|
+
progress: string;
|
|
2372
|
+
unitsCount: string;
|
|
2373
|
+
loadError: string;
|
|
2374
|
+
noUnits: string;
|
|
2375
|
+
/** Quiz */
|
|
2376
|
+
quizSubmit: string;
|
|
2377
|
+
quizScore: string;
|
|
2378
|
+
quizPassed: string;
|
|
2379
|
+
quizFailed: string;
|
|
2380
|
+
quizAttemptsLeft: string;
|
|
2381
|
+
quizNoAttempts: string;
|
|
2382
|
+
quizRetry: string;
|
|
2383
|
+
quizPassingScore: string;
|
|
2384
|
+
quizNotReady: string;
|
|
2385
|
+
quizSelectAll: string;
|
|
2386
|
+
quizCorrectCount: string;
|
|
2387
|
+
quizPracticeHint: string;
|
|
2388
|
+
quizPracticeAgain: string;
|
|
2389
|
+
quizAcceptedAnswers: string;
|
|
2390
|
+
quizTextPlaceholder: string;
|
|
2391
|
+
quizNumericPlaceholder: string;
|
|
2392
|
+
quizCorrectMark: string;
|
|
2393
|
+
quizWrongMark: string;
|
|
2394
|
+
/** Completion certificate download */
|
|
2395
|
+
certificateDownload: string;
|
|
2396
|
+
/** Autoplay the next unit when audio or video ends (the learner's own preference) */
|
|
2397
|
+
autoplayNext: string;
|
|
2398
|
+
/** Primary button: mark complete and go to the next unit (units that are not audio or video) */
|
|
2399
|
+
completeAndContinue: string;
|
|
2400
|
+
/** Note next to the button when the next unit is still locked (sequential completion) */
|
|
2401
|
+
completeToContinue: string;
|
|
2402
|
+
outline: string;
|
|
2403
|
+
showOutline: string;
|
|
2404
|
+
hideOutline: string;
|
|
2405
|
+
closeOutline: string;
|
|
2406
|
+
/** Settings above the outline (autoplay) */
|
|
2407
|
+
settings: string;
|
|
2408
|
+
minutes: string;
|
|
2409
|
+
pages: string;
|
|
2410
|
+
/** The unit has neither a file nor text */
|
|
2411
|
+
unitEmpty: string;
|
|
2412
|
+
retry: string;
|
|
2413
|
+
/** Marks, in the outline, the unit the learner left off at */
|
|
2414
|
+
lastViewed: string;
|
|
2415
|
+
courseCompletedTitle: string;
|
|
2416
|
+
courseCompletedOn: string;
|
|
2417
|
+
keepBrowsing: string;
|
|
2418
|
+
/** Heading of the unit's attachments */
|
|
2419
|
+
attachments: string;
|
|
2420
|
+
/** Accessible name of an attachment's download button */
|
|
2421
|
+
downloadFile: string;
|
|
2422
|
+
transcript: string;
|
|
2423
|
+
transcriptShow: string;
|
|
2424
|
+
transcriptHide: string;
|
|
2425
|
+
transcriptSearch: string;
|
|
2426
|
+
transcriptMatches: string;
|
|
2427
|
+
transcriptNoResults: string;
|
|
2428
|
+
transcriptDownload: string;
|
|
2429
|
+
transcriptLanguage: string;
|
|
2430
|
+
transcriptFollow: string;
|
|
2431
|
+
transcriptAutoGenerated: string;
|
|
2432
|
+
transcriptAutoTranslated: string;
|
|
2433
|
+
}
|
|
2434
|
+
|
|
2435
|
+
interface KanorioUnitProps extends KanorioConfig {
|
|
2436
|
+
/** Deliverable id (from the Customer API's `GET /deliverables` or the Management API's `deliverables.list`) */
|
|
2437
|
+
deliverable: string;
|
|
2438
|
+
/** Initial unit id; resumes where the customer left off when omitted */
|
|
2439
|
+
unit?: string | null;
|
|
2440
|
+
/** Called when the unit changes (to sync the URL, for example) */
|
|
2441
|
+
onUnitChange?: (unitId: string) => void;
|
|
2442
|
+
/** Called after progress is reported (including when the deliverable was just completed) */
|
|
2443
|
+
/** Progress event: `coveredPercent` is the share of this audio or video unit that was watched (0 to 100); null for other units or without a duration */
|
|
2444
|
+
onProgress?: (event: {
|
|
2445
|
+
unitId: string;
|
|
2446
|
+
percent: number;
|
|
2447
|
+
completed: boolean;
|
|
2448
|
+
deliverableJustCompleted: boolean;
|
|
2449
|
+
coveredPercent: number | null;
|
|
2450
|
+
}) => void;
|
|
2451
|
+
/** Shown when signed out (for example `<KanorioLogin>`); a default notice when omitted */
|
|
2452
|
+
renderUnauthenticated?: () => React.ReactNode;
|
|
2453
|
+
/**
|
|
2454
|
+
* For hosted sites: a tree already fetched on the server and their own content client (BFF cookie), so the Customer API is not called.
|
|
2455
|
+
* Both must be given to take effect; omit on headless sites, where the Bearer fetches them.
|
|
2456
|
+
*/
|
|
2457
|
+
tree?: CustomerDeliverableTree | null;
|
|
2458
|
+
client?: CustomerContentClientLike | null;
|
|
2459
|
+
className?: string;
|
|
2460
|
+
}
|
|
2461
|
+
/** The player's labels: the same mapping hosted sites use */
|
|
2462
|
+
declare function playerLabelsFrom(messages: VisitorMessages): DeliverablePlayerLabels;
|
|
2463
|
+
declare function KanorioUnit({ deliverable, unit, onUnitChange, onProgress, renderUnauthenticated, tree: givenTree, client: givenClient, className, ...config }: KanorioUnitProps): react_jsx_runtime.JSX.Element;
|
|
2464
|
+
|
|
2465
|
+
interface KanorioCurriculumProps extends KanorioConfig {
|
|
2466
|
+
/** Product slug (the URL segment of the product page) */
|
|
2467
|
+
product: string;
|
|
2468
|
+
/** Shows only one deliverable (for a bundle); all of them when omitted */
|
|
2469
|
+
deliverable?: string;
|
|
2470
|
+
/** An outline you already have (fetched from the Delivery API during SSR, for example), which skips the fetch */
|
|
2471
|
+
outline?: PublicDeliverableOutline[];
|
|
2472
|
+
/** Everything expanded by default; false expands only the first chapter */
|
|
2473
|
+
expandAll?: boolean;
|
|
2474
|
+
className?: string;
|
|
2475
|
+
}
|
|
2476
|
+
declare function KanorioCurriculum({ product, deliverable, outline: given, expandAll, className, ...config }: KanorioCurriculumProps): react_jsx_runtime.JSX.Element;
|
|
2477
|
+
|
|
2478
|
+
/**
|
|
2479
|
+
* Of the shared settings (`KanorioConfig`, also read from the surrounding provider) the list uses `siteUrl` and `timeZone` (the date
|
|
2480
|
+
* of each review). `locale`, `theme`, `brand` and `token` have no effect: the list is plain markup with your own text.
|
|
2481
|
+
*/
|
|
2482
|
+
interface KanorioReviewsProps extends KanorioConfig {
|
|
2483
|
+
/** `product:<id>` */
|
|
2484
|
+
target: string;
|
|
2485
|
+
/** Reviews per page; 20 by default */
|
|
2486
|
+
pageSize?: number;
|
|
2487
|
+
/** Text of the "load more" button; no pagination when omitted */
|
|
2488
|
+
loadMoreLabel?: string;
|
|
2489
|
+
/** Text of the "verified purchase" badge; not shown when omitted */
|
|
2490
|
+
verifiedLabel?: string;
|
|
2491
|
+
/** Heading of the merchant's reply; replies are not shown when omitted */
|
|
2492
|
+
replyLabel?: string;
|
|
2493
|
+
className?: string;
|
|
2494
|
+
}
|
|
2495
|
+
/**
|
|
2496
|
+
* List of approved reviews. It only fetches the data and renders minimal structure; styling is left to the host page: every element
|
|
2497
|
+
* has `data-kanorio-*` attributes to select on, and there are no Kanorio classes, theme or brand (the same with or without a provider).
|
|
2498
|
+
*/
|
|
2499
|
+
declare function KanorioReviews({ target, pageSize, loadMoreLabel, verifiedLabel, replyLabel, className, siteUrl: siteUrlProp, timeZone: timeZoneProp }: KanorioReviewsProps): react_jsx_runtime.JSX.Element | null;
|
|
2500
|
+
/** Of the shared settings (`KanorioConfig`) the summary uses `siteUrl` only: it is plain markup with your own text */
|
|
2501
|
+
interface KanorioRatingProps extends KanorioConfig {
|
|
2502
|
+
/** `product:<id>` */
|
|
2503
|
+
target: string;
|
|
2504
|
+
/** Text template for the count, with `{count}` replaced; only the number is shown when omitted */
|
|
2505
|
+
countLabel?: string;
|
|
2506
|
+
className?: string;
|
|
2507
|
+
}
|
|
2508
|
+
/**
|
|
2509
|
+
* Star rating summary. Reads the Delivery API's `/api/v1/reviews/summary` and renders nothing when the owner hides it (turned off or below the threshold).
|
|
2510
|
+
* Plain markup with `data-kanorio-*` attributes for the host page's stylesheet, like `KanorioReviews`.
|
|
2511
|
+
*/
|
|
2512
|
+
declare function KanorioRating({ target, countLabel, className, siteUrl: siteUrlProp }: KanorioRatingProps): react_jsx_runtime.JSX.Element | null;
|
|
2513
|
+
|
|
2514
|
+
/**
|
|
2515
|
+
* The registry of customer account sections.
|
|
2516
|
+
*
|
|
2517
|
+
* 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,
|
|
2518
|
+
* 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
|
|
2519
|
+
* and returned to the front end with the session.
|
|
2520
|
+
*
|
|
2521
|
+
* Navigation, the landing page after sign-in, the Customer API's resource grouping and the developer documentation all derive from this;
|
|
2522
|
+
* a contract test guarantees that every API resource open to customers belongs to a section or is listed in `CUSTOMER_PORTAL_API_EXEMPT_PREFIXES`.
|
|
2523
|
+
* Compare Shopify's customer account full-page extensions and account menu, and Wix apps adding pages to one members area.
|
|
2524
|
+
*/
|
|
2525
|
+
type CustomerPortalSectionId = "orders" | "content" | "account";
|
|
2526
|
+
/** A section's state, worked out on the server and returned to the front end with the session */
|
|
2527
|
+
interface CustomerPortalSectionState {
|
|
2528
|
+
id: CustomerPortalSectionId;
|
|
2529
|
+
/** Whether this site shows this section to this person */
|
|
2530
|
+
visible: boolean;
|
|
2531
|
+
/** Whether this person has data in this section (orders, deliverables, ...); the shell uses it for empty states and landing hints */
|
|
2532
|
+
hasData: boolean;
|
|
2533
|
+
}
|
|
2534
|
+
|
|
2535
|
+
/**
|
|
2536
|
+
* The interface between the customer sign-in panel and the server.
|
|
2537
|
+
*
|
|
2538
|
+
* The same panel is used on hosted sites and in Elements: hosted sites go through a same-origin BFF (cookie session),
|
|
2539
|
+
* Elements through the Customer API (Bearer); the panel only knows this interface, not which one is underneath.
|
|
2540
|
+
* Results are always `{ ok, ... }`, with the same error codes as the server's account routes (the same table as in the developer documentation).
|
|
2541
|
+
*/
|
|
2542
|
+
|
|
2543
|
+
interface CustomerAuthFailure {
|
|
2544
|
+
ok: false;
|
|
2545
|
+
code: string;
|
|
2546
|
+
retryAfter?: number;
|
|
2547
|
+
}
|
|
2548
|
+
type CustomerAuthResult<T extends object = Record<never, never>> = ({
|
|
2549
|
+
ok: true;
|
|
2550
|
+
} & T) | CustomerAuthFailure;
|
|
2551
|
+
/** The session obtained after verification (on hosted sites the BFF sets a cookie and `sessionToken` never reaches the browser; Elements gets a Bearer) */
|
|
2552
|
+
interface CustomerSessionGrant {
|
|
2553
|
+
sessionToken?: string;
|
|
2554
|
+
expiresAt?: string;
|
|
2555
|
+
contactId?: string;
|
|
2556
|
+
returnTo?: string | null;
|
|
2557
|
+
}
|
|
2558
|
+
interface CustomerAuthSessionUser {
|
|
2559
|
+
id: string;
|
|
2560
|
+
email: string | null;
|
|
2561
|
+
name: string | null;
|
|
2562
|
+
}
|
|
2563
|
+
/** A subset of `GET /account/session`: the person, sections and landing page the panel needs to draw the signed-in menu */
|
|
2564
|
+
interface CustomerAuthSessionOverview {
|
|
2565
|
+
contact: CustomerAuthSessionUser;
|
|
2566
|
+
sections: CustomerPortalSectionState[];
|
|
2567
|
+
landing: string;
|
|
2568
|
+
}
|
|
2569
|
+
interface CustomerAuthTransport {
|
|
2570
|
+
/** ALTCHA challenge endpoint (same origin, or the site URL) */
|
|
2571
|
+
altchaChallengeUrl: string;
|
|
2572
|
+
/** Server-signed challenge endpoint (for variant=standard; sign-in always uses full, but the hook needs a value) */
|
|
2573
|
+
challengeUrl: string;
|
|
2574
|
+
requestChallenge(input: {
|
|
2575
|
+
email: string;
|
|
2576
|
+
locale?: string;
|
|
2577
|
+
returnTo?: string;
|
|
2578
|
+
protection: Record<string, unknown>;
|
|
2579
|
+
}): Promise<CustomerAuthResult>;
|
|
2580
|
+
verifyCode(input: {
|
|
2581
|
+
email: string;
|
|
2582
|
+
code: string;
|
|
2583
|
+
}): Promise<CustomerAuthResult<CustomerSessionGrant>>;
|
|
2584
|
+
/** The ticket carried back by the one-time link in an email (`link`) or a social sign-in callback (`handoff`) */
|
|
2585
|
+
verifyToken(input: {
|
|
2586
|
+
method: "link" | "handoff";
|
|
2587
|
+
token: string;
|
|
2588
|
+
}): Promise<CustomerAuthResult<CustomerSessionGrant>>;
|
|
2589
|
+
startOauth(input: {
|
|
2590
|
+
method: string;
|
|
2591
|
+
returnTo?: string;
|
|
2592
|
+
locale?: string;
|
|
2593
|
+
}): Promise<CustomerAuthResult<{
|
|
2594
|
+
url: string;
|
|
2595
|
+
}>>;
|
|
2596
|
+
passkeyLoginOptions(): Promise<CustomerAuthResult<{
|
|
2597
|
+
options: unknown;
|
|
2598
|
+
challengeId: string;
|
|
2599
|
+
}>>;
|
|
2600
|
+
passkeyLoginVerify(input: {
|
|
2601
|
+
challengeId: string;
|
|
2602
|
+
response: unknown;
|
|
2603
|
+
returnTo?: string;
|
|
2604
|
+
locale?: string;
|
|
2605
|
+
}): Promise<CustomerAuthResult<CustomerSessionGrant>>;
|
|
2606
|
+
listPasskeys(): Promise<CustomerAuthResult<{
|
|
2607
|
+
passkeys: {
|
|
2608
|
+
id: string;
|
|
2609
|
+
}[];
|
|
2610
|
+
}>>;
|
|
2611
|
+
passkeyRegisterOptions(): Promise<CustomerAuthResult<{
|
|
2612
|
+
options: unknown;
|
|
2613
|
+
}>>;
|
|
2614
|
+
passkeyRegister(input: {
|
|
2615
|
+
response: unknown;
|
|
2616
|
+
name?: string;
|
|
2617
|
+
}): Promise<CustomerAuthResult<{
|
|
2618
|
+
passkey: {
|
|
2619
|
+
id: string;
|
|
2620
|
+
name: string;
|
|
2621
|
+
};
|
|
2622
|
+
}>>;
|
|
2623
|
+
/**
|
|
2624
|
+
* The signed-in person, or null when signed out. May reject when the session could not be checked (offline, a server error): the
|
|
2625
|
+
* provider then keeps what it knew instead of showing the person as signed out
|
|
2626
|
+
*/
|
|
2627
|
+
session(): Promise<CustomerAuthSessionOverview | null>;
|
|
2628
|
+
signOut(): Promise<void>;
|
|
2629
|
+
}
|
|
2630
|
+
|
|
2631
|
+
interface KanorioAccountProps extends KanorioConfig {
|
|
2632
|
+
/** Shop name shown in the title; defaults to the brand name in site settings */
|
|
2633
|
+
siteName?: string;
|
|
2634
|
+
/**
|
|
2635
|
+
* `direct` (default): the panel signs in on the spot, calling the Customer API.
|
|
2636
|
+
* `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`.
|
|
2637
|
+
*/
|
|
2638
|
+
mode?: "direct" | "redirect";
|
|
2639
|
+
/** Where `redirect` mode returns to (https, with its origin in the site's allowed origins); defaults to the current page */
|
|
2640
|
+
redirectUri?: string;
|
|
2641
|
+
/**
|
|
2642
|
+
* In-site path that sign-in email links and social sign-in callbacks return to (must start with `/`). Defaults to the current page:
|
|
2643
|
+
* a self-hosted front end has no `/account/login`, so links must return to the page holding this component to finish signing in.
|
|
2644
|
+
*/
|
|
2645
|
+
returnTo?: string;
|
|
2646
|
+
/** Called on success (the window event `kanorio:login` is dispatched too) */
|
|
2647
|
+
onLogin?: (session: {
|
|
2648
|
+
token: string;
|
|
2649
|
+
contactId: string;
|
|
2650
|
+
expiresAt: string;
|
|
2651
|
+
}) => void;
|
|
2652
|
+
/** Called after sign-out (the window event `kanorio:logout` is dispatched too) */
|
|
2653
|
+
onLogout?: () => void;
|
|
2654
|
+
/** Replaces the default customer account menu when signed in */
|
|
2655
|
+
renderSignedIn?: (signOut: () => void) => ReactNode;
|
|
2656
|
+
className?: string;
|
|
2657
|
+
}
|
|
2658
|
+
declare const LOGIN_EVENT = "kanorio:login";
|
|
2659
|
+
declare const LOGOUT_EVENT = "kanorio:logout";
|
|
2660
|
+
type BearerTransportParams = {
|
|
2661
|
+
siteUrl: string;
|
|
2662
|
+
token: () => string | null;
|
|
2663
|
+
onToken: (token: string | null) => void;
|
|
2664
|
+
};
|
|
2665
|
+
/**
|
|
2666
|
+
* 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.
|
|
2667
|
+
* `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.
|
|
2668
|
+
* `session()` resolves with null when the session cannot be read, for any reason.
|
|
2669
|
+
*/
|
|
2670
|
+
declare function createBearerCustomerAuthTransport(params: BearerTransportParams): CustomerAuthTransport;
|
|
2671
|
+
declare function KanorioAccount({ siteName, mode, redirectUri, returnTo, onLogin, onLogout, renderSignedIn, className, ...config }: KanorioAccountProps): react_jsx_runtime.JSX.Element;
|
|
2672
|
+
|
|
2673
|
+
type KanorioLoginProps = KanorioAccountProps;
|
|
2674
|
+
|
|
2675
|
+
/** @deprecated Use `customerAuthErrorMessage` */
|
|
2676
|
+
declare function mapLoginErrorCode(code: string | undefined, messages: VisitorMessages["account"]): string;
|
|
2677
|
+
declare function KanorioLogin(props: KanorioLoginProps): react_jsx_runtime.JSX.Element;
|
|
2678
|
+
|
|
2679
|
+
/**
|
|
2680
|
+
* Bot protection type definitions
|
|
2681
|
+
*/
|
|
2682
|
+
/**
|
|
2683
|
+
* Bot protection data (sent from the front end to the back end)
|
|
2684
|
+
*/
|
|
2685
|
+
interface BotProtectionData {
|
|
2686
|
+
/** Honeypot field value (should be empty) */
|
|
2687
|
+
_hp: string;
|
|
2688
|
+
/** Extra honeypot _wp (should be empty) */
|
|
2689
|
+
_wp?: string;
|
|
2690
|
+
/** Extra honeypot _co (should be empty) */
|
|
2691
|
+
_co?: string;
|
|
2692
|
+
/** Timestamp of when the form loaded (milliseconds) */
|
|
2693
|
+
_ts: number;
|
|
2694
|
+
/** JavaScript challenge token or server-signed token */
|
|
2695
|
+
_tk: string;
|
|
2696
|
+
/** What the token is bound to (such as the formId) */
|
|
2697
|
+
_ctx?: string;
|
|
2698
|
+
/** The token from the widget when the owner uses a third-party provider (Turnstile, reCAPTCHA, hCaptcha) */
|
|
2699
|
+
captchaToken?: string;
|
|
2700
|
+
}
|
|
2701
|
+
/**
|
|
2702
|
+
* Form protection strength
|
|
2703
|
+
*/
|
|
2704
|
+
type FormProtectionVariant = "standard" | "full";
|
|
2705
|
+
/**
|
|
2706
|
+
* Return value of the useBotProtection hook
|
|
2707
|
+
*/
|
|
2708
|
+
interface UseBotProtectionReturn {
|
|
2709
|
+
/** Gets the protection data (for submitting the form) */
|
|
2710
|
+
getProtectionData: () => BotProtectionData;
|
|
2711
|
+
/** Whether protection is ready */
|
|
2712
|
+
isReady: boolean;
|
|
2713
|
+
/** Submitting is allowed only after the interaction delay following the first focus */
|
|
2714
|
+
isSubmittable: boolean;
|
|
2715
|
+
/** Registers a focus event (call it from a form field's onFocus) */
|
|
2716
|
+
registerFocus: () => void;
|
|
2717
|
+
/** Registers the ALTCHA payload (called by the widget when variant=full) */
|
|
2718
|
+
registerAltchaPayload?: (payload: string) => void;
|
|
2719
|
+
/** Resets the protection state (for filling the form in again) */
|
|
2720
|
+
reset: () => void;
|
|
2721
|
+
}
|
|
2722
|
+
|
|
2723
|
+
/**
|
|
2724
|
+
* The registry of bot-protection entry points.
|
|
2725
|
+
*
|
|
2726
|
+
* 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;
|
|
2727
|
+
* a new entry point (comments, reviews, ...) is one more entry here, not a list hard-coded elsewhere. Plain data, safe for client bundles.
|
|
2728
|
+
*/
|
|
2729
|
+
|
|
2730
|
+
declare const PROTECTION_ENTRIES: readonly [{
|
|
2731
|
+
readonly id: "forms";
|
|
2732
|
+
readonly builtinVariant: "full";
|
|
2733
|
+
readonly providerSelectable: true;
|
|
2734
|
+
}, {
|
|
2735
|
+
readonly id: "customer_login";
|
|
2736
|
+
readonly builtinVariant: "full";
|
|
2737
|
+
readonly providerSelectable: true;
|
|
2738
|
+
}, {
|
|
2739
|
+
readonly id: "checkout_draft";
|
|
2740
|
+
readonly builtinVariant: "standard";
|
|
2741
|
+
readonly providerSelectable: false;
|
|
2742
|
+
}];
|
|
2743
|
+
/** Entry points where the owner can switch to a third-party provider */
|
|
2744
|
+
type SelectableProtectionEntryId = Extract<(typeof PROTECTION_ENTRIES)[number], {
|
|
2745
|
+
providerSelectable: true;
|
|
2746
|
+
}>["id"];
|
|
2747
|
+
|
|
2748
|
+
/**
|
|
2749
|
+
* The settings shape of bot-protection providers.
|
|
2750
|
+
*
|
|
2751
|
+
* - The site stores this (public keys only); secret keys are kept in the site's secret store, one per entry point.
|
|
2752
|
+
* - One provider per site; each entry point can override the widget's public key (Turnstile, hCaptcha) or the reCAPTCHA v3 score threshold.
|
|
2753
|
+
* - Reads and writes both go through `parseBotProtectionSettings`: a missing value, bad data, or a third party chosen without a public key all fall back to the built-in provider (a site is never left unprotected).
|
|
2754
|
+
* Plain data and zod, safe for client bundles.
|
|
2755
|
+
*/
|
|
2756
|
+
|
|
2757
|
+
/** The registered providers; the order is the order on the settings page */
|
|
2758
|
+
declare const BOT_PROTECTION_PROVIDERS: readonly ["kanorio", "turnstile", "recaptcha", "hcaptcha"];
|
|
2759
|
+
type BotProtectionProvider = (typeof BOT_PROTECTION_PROVIDERS)[number];
|
|
2760
|
+
type ThirdPartyBotProtectionProvider = Exclude<BotProtectionProvider, "kanorio">;
|
|
2761
|
+
declare const RECAPTCHA_VERSIONS: readonly ["v2", "v3"];
|
|
2762
|
+
type RecaptchaVersion = (typeof RECAPTCHA_VERSIONS)[number];
|
|
2763
|
+
/** The public settings the front end needs to draw a widget: only entry points whose provider can be changed, and only public keys */
|
|
2764
|
+
interface PublicBotProtectionConfig {
|
|
2765
|
+
provider: BotProtectionProvider;
|
|
2766
|
+
recaptchaVersion: RecaptchaVersion | null;
|
|
2767
|
+
entries: Partial<Record<SelectableProtectionEntryId, {
|
|
2768
|
+
siteKey: string;
|
|
2769
|
+
action: string;
|
|
2770
|
+
}>>;
|
|
2771
|
+
}
|
|
2772
|
+
|
|
2773
|
+
/**
|
|
2774
|
+
* The ALTCHA widget's `statechange` event to what should happen to the local token.
|
|
2775
|
+
*
|
|
2776
|
+
* A pure function, extracted so it can be tested without a DOM: once the widget leaves verified (expired, unverified, verifying, error),
|
|
2777
|
+
* 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.
|
|
2778
|
+
*/
|
|
2779
|
+
type AltchaWidgetState = "unverified" | "verifying" | "verified" | "expired" | "error" | "code";
|
|
2780
|
+
|
|
2781
|
+
interface AltchaWidgetProps {
|
|
2782
|
+
challengeUrl: string;
|
|
2783
|
+
onVerified?: (payload: string) => void;
|
|
2784
|
+
/** Called when the widget leaves the verified state (expired and solving again, an error, a reset); the caller should discard the payload it holds */
|
|
2785
|
+
onInvalidated?: () => void;
|
|
2786
|
+
/** Expiry on the widget side in milliseconds; slightly shorter than the server's challenge lifetime by default */
|
|
2787
|
+
expireMs?: number;
|
|
2788
|
+
/** Site locale; mapped to altcha's built-in translations, falling back to English */
|
|
2789
|
+
locale?: string | null;
|
|
2790
|
+
className?: string;
|
|
2791
|
+
/**
|
|
2792
|
+
* Invisible mode: solves the proof of work in the background as soon as it mounts (`auto="onload"`) and draws no checkbox;
|
|
2793
|
+
* when it cannot solve (`error`), the caller sets `revealed` to true to fall back to a visible checkbox the visitor can retry by hand.
|
|
2794
|
+
* To solve again after a single-use payload is spent, change `generation`; the widget remounts and solves again.
|
|
2795
|
+
*/
|
|
2796
|
+
invisible?: boolean;
|
|
2797
|
+
/** Still shown in invisible mode (the visible fallback); ignored otherwise */
|
|
2798
|
+
revealed?: boolean;
|
|
2799
|
+
generation?: number;
|
|
2800
|
+
/** Reported on every statechange (the caller decides from it whether to fall back to visible) */
|
|
2801
|
+
onStateChange?: (state: AltchaWidgetState) => void;
|
|
2802
|
+
/** The box's two accessible names; read from the site labels (`SiteLabelsProvider`) when omitted */
|
|
2803
|
+
labels?: AltchaWidgetLabels;
|
|
2804
|
+
}
|
|
2805
|
+
/** The accessible names of the box and of the placeholder shown while the widget loads (`ui.botProtection*` of the visitor text) */
|
|
2806
|
+
interface AltchaWidgetLabels {
|
|
2807
|
+
botProtection: string;
|
|
2808
|
+
botProtectionLoading: string;
|
|
2809
|
+
}
|
|
2810
|
+
|
|
2811
|
+
interface UseBotProtectionOptions {
|
|
2812
|
+
/** Protection strength of the built-in provider: standard = server-signed token, full = ALTCHA proof of work */
|
|
2813
|
+
variant?: "standard" | "full";
|
|
2814
|
+
/** Custom challenge URL (default /api/form-protection/challenge) */
|
|
2815
|
+
challengeUrl?: string;
|
|
2816
|
+
/** ALTCHA challenge URL (used when variant=full, default /api/form-protection/altcha) */
|
|
2817
|
+
altchaChallengeUrl?: string;
|
|
2818
|
+
/** What the token is bound to (such as the formId) */
|
|
2819
|
+
context?: string;
|
|
2820
|
+
/**
|
|
2821
|
+
* Entry point: only entry points whose provider can be changed switch to a third party according to the site settings.
|
|
2822
|
+
* Omit to always use the built-in provider (entry points fixed to it, such as checkout drafts).
|
|
2823
|
+
*/
|
|
2824
|
+
entry?: SelectableProtectionEntryId;
|
|
2825
|
+
/** The site's public settings; read from BotProtectionConfigProvider when omitted, and built-in when there is no provider */
|
|
2826
|
+
config?: PublicBotProtectionConfig | null;
|
|
2827
|
+
/**
|
|
2828
|
+
* 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
|
|
2829
|
+
* (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.
|
|
2830
|
+
*/
|
|
2831
|
+
needsUploadToken?: boolean;
|
|
2832
|
+
}
|
|
2833
|
+
interface BotProtectionFieldBindings {
|
|
2834
|
+
variant: "standard" | "full";
|
|
2835
|
+
context: string;
|
|
2836
|
+
altchaChallengeUrl: string;
|
|
2837
|
+
onAltchaVerified?: (payload: string) => void;
|
|
2838
|
+
onAltchaInvalidated?: () => void;
|
|
2839
|
+
onHoneypotChange: (value: string) => void;
|
|
2840
|
+
onHoneypotWpChange: (value: string) => void;
|
|
2841
|
+
onHoneypotCoChange: (value: string) => void;
|
|
2842
|
+
}
|
|
2843
|
+
/** Parameters the third-party widget needs; null for the built-in provider */
|
|
2844
|
+
interface ThirdPartyCaptchaBinding {
|
|
2845
|
+
provider: ThirdPartyBotProtectionProvider;
|
|
2846
|
+
siteKey: string;
|
|
2847
|
+
action: string;
|
|
2848
|
+
cData: string | null;
|
|
2849
|
+
recaptchaVersion: RecaptchaVersion | null;
|
|
2850
|
+
generation: number;
|
|
2851
|
+
onVerified: (token: string) => void;
|
|
2852
|
+
onInvalidated: () => void;
|
|
2853
|
+
registerExecutor: (executor: (() => Promise<string | null>) | null) => void;
|
|
2854
|
+
}
|
|
2855
|
+
/** Passed to `<BotProtectionChallenge>`: draws ALTCHA for the built-in provider, or that provider's widget for a third party */
|
|
2856
|
+
interface BotProtectionChallengeBindings {
|
|
2857
|
+
provider: BotProtectionProvider;
|
|
2858
|
+
fieldProps: BotProtectionFieldBindings;
|
|
2859
|
+
captcha: ThirdPartyCaptchaBinding | null;
|
|
2860
|
+
}
|
|
2861
|
+
|
|
2862
|
+
/**
|
|
2863
|
+
* BotProtectionFields Props
|
|
2864
|
+
*/
|
|
2865
|
+
interface BotProtectionFieldsProps {
|
|
2866
|
+
/** Renders the ALTCHA widget when variant=full */
|
|
2867
|
+
variant?: FormProtectionVariant;
|
|
2868
|
+
/** ALTCHA challenge URL (used when variant=full) */
|
|
2869
|
+
altchaChallengeUrl?: string;
|
|
2870
|
+
/** 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 */
|
|
2871
|
+
context?: string;
|
|
2872
|
+
/** Called when ALTCHA verification completes */
|
|
2873
|
+
onAltchaVerified?: (payload: string) => void;
|
|
2874
|
+
/** Called when ALTCHA leaves the verified state (expired and solving again, or an error); the hook clears the token and disables submit accordingly */
|
|
2875
|
+
onAltchaInvalidated?: () => void;
|
|
2876
|
+
/**
|
|
2877
|
+
* Called when a honeypot field's value changes
|
|
2878
|
+
* For use together with the useBotProtection hook
|
|
2879
|
+
*/
|
|
2880
|
+
onHoneypotChange?: (value: string) => void;
|
|
2881
|
+
onHoneypotWpChange?: (value: string) => void;
|
|
2882
|
+
onHoneypotCoChange?: (value: string) => void;
|
|
2883
|
+
/**
|
|
2884
|
+
* Locale of the ALTCHA widget's text. When omitted, `KanorioBotProtection` and `KanorioBotProtectionAltcha` use the `locale` of the
|
|
2885
|
+
* surrounding `KanorioProvider`, then `<html lang>`, then English
|
|
2886
|
+
*/
|
|
2887
|
+
locale?: string | null;
|
|
2888
|
+
/**
|
|
2889
|
+
* Whether the ALTCHA widget is rendered here (true by default).
|
|
2890
|
+
* When a form wants the widget before the submit button instead of at the first question, set false and mount `<BotProtectionAltcha>` separately.
|
|
2891
|
+
*/
|
|
2892
|
+
renderAltcha?: boolean;
|
|
2893
|
+
}
|
|
2894
|
+
type BotProtectionAltchaProps = Pick<BotProtectionFieldsProps, "variant" | "altchaChallengeUrl" | "context" | "onAltchaVerified" | "onAltchaInvalidated" | "locale"> & Pick<AltchaWidgetProps, "invisible" | "revealed" | "generation" | "onStateChange" | "labels"> & {
|
|
2895
|
+
className?: string;
|
|
2896
|
+
};
|
|
2897
|
+
/**
|
|
2898
|
+
* Only the ALTCHA widget half: rendered when variant=full.
|
|
2899
|
+
* Lets a form place bot protection before the submit button (instead of above the questions); the honeypots are still handled by `<BotProtectionFields renderAltcha={false}>`.
|
|
2900
|
+
*/
|
|
2901
|
+
declare function BotProtectionAltcha({ variant, altchaChallengeUrl, context, onAltchaVerified, onAltchaInvalidated, locale, className, invisible, revealed, generation, onStateChange, labels, }: BotProtectionAltchaProps): react_jsx_runtime.JSX.Element | null;
|
|
2902
|
+
/**
|
|
2903
|
+
* Bot protection hidden fields component
|
|
2904
|
+
*
|
|
2905
|
+
* Renders several honeypot fields that are visually hidden but visible to bots.
|
|
2906
|
+
* Field names and labels are meaningless strings (see constants.ts), so browsers do not autofill them.
|
|
2907
|
+
*
|
|
2908
|
+
* @example
|
|
2909
|
+
* ```tsx
|
|
2910
|
+
* <form>
|
|
2911
|
+
* <BotProtectionFields context={formId} onHoneypotChange={setHoneypotValue} ... />
|
|
2912
|
+
* <input name="email" ... />
|
|
2913
|
+
* <button type="submit">Submit</button>
|
|
2914
|
+
* </form>
|
|
2915
|
+
* ```
|
|
2916
|
+
*/
|
|
2917
|
+
declare function BotProtectionFields({ variant, altchaChallengeUrl, context, onAltchaVerified, onAltchaInvalidated, onHoneypotChange, onHoneypotWpChange, onHoneypotCoChange, locale, renderAltcha, }: BotProtectionFieldsProps): react_jsx_runtime.JSX.Element;
|
|
2918
|
+
|
|
2919
|
+
declare const FORM_SUBMIT_EVENT = "kanorio:form-submit";
|
|
2920
|
+
interface KanorioFormProps extends KanorioConfig {
|
|
2921
|
+
/** Form id (c...) */
|
|
2922
|
+
formId: string;
|
|
2923
|
+
/** Optional: a public form definition fetched ahead during SSR, which skips the first client-side GET */
|
|
2924
|
+
definition?: PublicFormDefinition | null;
|
|
2925
|
+
/** Questions per row (1 to 3); one column by default */
|
|
2926
|
+
maxColumns?: MaxColumnsConfig;
|
|
2927
|
+
/** The site's display name (interpolated as `{siteName}` in the marketing consent statement) */
|
|
2928
|
+
siteName?: string;
|
|
2929
|
+
/** Overrides for interface text */
|
|
2930
|
+
labels?: FormSectionLabels;
|
|
2931
|
+
/** Called after a successful submit (the DOM event `kanorio:form-submit` is dispatched too); carries `redirectUrl` when the form redirects after submit */
|
|
2932
|
+
onSuccess?: (detail: {
|
|
2933
|
+
formId: string;
|
|
2934
|
+
redirectUrl?: string;
|
|
2935
|
+
}) => void;
|
|
2936
|
+
/**
|
|
2937
|
+
* Whether the component navigates when the form has a URL to go to after submit; true by default. In-site paths (`/thank-you`) are resolved against your site.
|
|
2938
|
+
* Pass false to navigate with your own router, and take the URL from `redirectUrl` in `onSuccess`.
|
|
2939
|
+
*/
|
|
2940
|
+
followRedirect?: boolean;
|
|
2941
|
+
/**
|
|
2942
|
+
* Hidden field values: keys are the hidden field ids set for the form in the dashboard (for example `{ campaign: "spring", ref: userId }`).
|
|
2943
|
+
* Without them the component reads same-named parameters from the current URL; when both exist, these win.
|
|
2944
|
+
*/
|
|
2945
|
+
hiddenValues?: Record<string, string>;
|
|
2946
|
+
className?: string;
|
|
2947
|
+
}
|
|
2948
|
+
interface UseKanorioBotProtectionOptions extends Omit<UseBotProtectionOptions, "challengeUrl" | "altchaChallengeUrl"> {
|
|
2949
|
+
/** Kanorio system or service URL (read from `<KanorioProvider>` when omitted) */
|
|
2950
|
+
siteUrl?: string;
|
|
2951
|
+
}
|
|
2952
|
+
/**
|
|
2953
|
+
* Public bot-protection hook: points the challenge and ALTCHA endpoints at the site's `{siteUrl}/api/form-protection/*`.
|
|
2954
|
+
*/
|
|
2955
|
+
declare function useKanorioBotProtection(options?: UseKanorioBotProtectionOptions): UseBotProtectionReturn & {
|
|
2956
|
+
fieldProps: BotProtectionFieldBindings;
|
|
2957
|
+
challengeProps: BotProtectionChallengeBindings;
|
|
2958
|
+
provider: BotProtectionProvider;
|
|
2959
|
+
prepare: () => Promise<void>;
|
|
2960
|
+
renewCaptcha: () => void;
|
|
2961
|
+
getUploadProtectionData: () => BotProtectionData;
|
|
2962
|
+
isUploadReady: boolean;
|
|
2963
|
+
_setHoneypotValue: (value: string) => void;
|
|
2964
|
+
_setHoneypotWpValue: (value: string) => void;
|
|
2965
|
+
_setHoneypotCoValue: (value: string) => void;
|
|
2966
|
+
};
|
|
2967
|
+
type BotProtectionThemeProps = {
|
|
2968
|
+
/**
|
|
2969
|
+
* The colour scheme of the ALTCHA box: `light`, `dark` or `auto`. Defaults to `light` or `dark` set on the surrounding
|
|
2970
|
+
* `KanorioProvider`; otherwise the box keeps its light defaults (it sits in your form, whose colours it cannot know). Pass `auto` when
|
|
2971
|
+
* your form follows the visitor's system.
|
|
2972
|
+
*/
|
|
2973
|
+
theme?: KanorioTheme;
|
|
2974
|
+
};
|
|
2975
|
+
/**
|
|
2976
|
+
* Bot protection for a form you build yourself: the honeypot fields and, with `variant="full"`, the ALTCHA box. Spread the `fieldProps`
|
|
2977
|
+
* of `useKanorioBotProtection` onto it and send `getProtectionData()` with your submission. Place it inside your `<form>`; it adds no
|
|
2978
|
+
* wrapper element, and everything renders at once (on the server too). The box takes the site brand of the surrounding
|
|
2979
|
+
* `KanorioProvider`, and the `theme` given to it or `light` / `dark` set on the provider.
|
|
2980
|
+
*
|
|
2981
|
+
* `isSubmittable` turns true two seconds after the visitor first focuses the form (`registerFocus`) and, with `variant="full"`, once
|
|
2982
|
+
* the ALTCHA box has verified.
|
|
2983
|
+
*
|
|
2984
|
+
* @example
|
|
2985
|
+
* ```tsx
|
|
2986
|
+
* const protection = useKanorioBotProtection({ context: formId });
|
|
2987
|
+
* <form onFocus={protection.registerFocus} onSubmit={...}>
|
|
2988
|
+
* <KanorioBotProtection {...protection.fieldProps} />
|
|
2989
|
+
* {yourFields}
|
|
2990
|
+
* <button type="submit" disabled={!protection.isSubmittable}>Send</button>
|
|
2991
|
+
* </form>
|
|
2992
|
+
* ```
|
|
2993
|
+
*/
|
|
2994
|
+
declare function KanorioBotProtection({ theme, ...props }: ComponentProps<typeof BotProtectionFields> & BotProtectionThemeProps): react_jsx_runtime.JSX.Element;
|
|
2995
|
+
/**
|
|
2996
|
+
* The ALTCHA box alone, for a form that places it apart from the honeypots (for example just before the submit button; render
|
|
2997
|
+
* `KanorioBotProtection` with `renderAltcha={false}` for the honeypots). Same theme, brand and label rules as `KanorioBotProtection`.
|
|
2998
|
+
*/
|
|
2999
|
+
declare function KanorioBotProtectionAltcha({ theme, ...props }: Omit<ComponentProps<typeof BotProtectionAltcha>, "labels"> & BotProtectionThemeProps): react_jsx_runtime.JSX.Element;
|
|
3000
|
+
declare function KanorioForm({ formId, definition: initialDefinition, maxColumns, siteName, labels, onSuccess, followRedirect, hiddenValues, className, ...config }: KanorioFormProps): react_jsx_runtime.JSX.Element;
|
|
3001
|
+
|
|
3002
|
+
interface KanorioAnalyticsProps {
|
|
3003
|
+
/** Site URL (optional inside a `<KanorioProvider>`) */
|
|
3004
|
+
siteUrl?: string;
|
|
3005
|
+
/**
|
|
3006
|
+
* Overrides the current path (defaults to `window.location.pathname`).
|
|
3007
|
+
* The component already hooks `history.pushState`, `replaceState` and `popstate`, so client navigation in the Next.js App Router, Astro View Transitions
|
|
3008
|
+
* and the like is reported without it; if your framework does not use the History API, pass the router's pathname.
|
|
3009
|
+
*/
|
|
3010
|
+
path?: string;
|
|
3011
|
+
/** Overrides the current page title (defaults to `document.title` after the path changes) */
|
|
3012
|
+
title?: string;
|
|
3013
|
+
/** Overrides the referrer (defaults to an off-site `document.referrer`, sent only on the entry page) */
|
|
3014
|
+
referrer?: string;
|
|
3015
|
+
/**
|
|
3016
|
+
* Path prefixes not to report (for example `["/admin", "/myinfo"]`; the Web Component takes a comma-separated string, `exclude="/admin,/myinfo"`).
|
|
3017
|
+
* 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`.
|
|
3018
|
+
*/
|
|
3019
|
+
exclude?: readonly string[] | string;
|
|
3020
|
+
}
|
|
3021
|
+
/**
|
|
3022
|
+
* Reports one anonymous pageview to `POST {site}/api/v1/analytics/pageview`.
|
|
3023
|
+
*
|
|
3024
|
+
* - Prefers `navigator.sendBeacon` (it is sent even on unload and does not block navigation); falls back to `fetch(keepalive)` where unsupported
|
|
3025
|
+
* - The body is always `text/plain` (a simple request): no CORS preflight across domains; the server parses it as JSON
|
|
3026
|
+
* - An external domain must be in the site's `allowedOrigins` (Settings > Developer), or the browser blocks the response
|
|
3027
|
+
* - `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
|
|
3028
|
+
*/
|
|
3029
|
+
declare function reportKanorioPageview(params: {
|
|
3030
|
+
siteUrl: string;
|
|
3031
|
+
path: string;
|
|
3032
|
+
title?: string;
|
|
3033
|
+
referrer?: string;
|
|
3034
|
+
entry?: boolean;
|
|
3035
|
+
utm?: Record<string, string>;
|
|
3036
|
+
fetch?: typeof globalThis.fetch;
|
|
3037
|
+
}): Promise<boolean>;
|
|
3038
|
+
/**
|
|
3039
|
+
* `<KanorioAnalytics />` (and the `<kanorio-analytics>` Web Component):
|
|
3040
|
+
* 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),
|
|
3041
|
+
* so the dashboard's analytics and the external front-end check (`kanorio doctor`) keep tracking traffic and sources.
|
|
3042
|
+
*/
|
|
3043
|
+
declare function KanorioAnalytics({ siteUrl: propSiteUrl, path, title, referrer, exclude }: KanorioAnalyticsProps): null;
|
|
3044
|
+
|
|
3045
|
+
export { type CustomerDeliverableTree, type CustomerUnitView, FORM_SUBMIT_EVENT, type ImageLightboxHandle, KanorioAccount, type KanorioAccountProps, KanorioAnalytics, type KanorioAnalyticsProps, KanorioBotProtection, KanorioBotProtectionAltcha, type KanorioConfig, type KanorioContextValue, KanorioCurriculum, type KanorioCurriculumProps, KanorioForm, type KanorioFormProps, KanorioLightbox, type KanorioLightboxProps, KanorioLogin, type KanorioLoginProps, KanorioMedia, type KanorioMediaProps, KanorioProvider, KanorioRating, type KanorioRatingProps, KanorioReviews, type KanorioReviewsProps, type KanorioSiteBrand, type KanorioSiteMeta, type KanorioTheme, KanorioUnit, type KanorioUnitProps, LOGIN_EVENT, LOGOUT_EVENT, type PublicDeliverableOutline, TOKEN_CHANGE_EVENT, type UseKanorioBotProtectionOptions, brandCss, clearSiteMetaCache, createBearerCustomerAuthTransport, loadElementsMessages, loadSiteMeta, mapLoginErrorCode, playerLabelsFrom, reportKanorioPageview, useKanorio, useKanorioBotProtection, useSiteMeta };
|