@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/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Kanorio, Inc.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,58 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @kanorio/elements
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Kanorio's protected media players, PDF viewer, image lightbox, course curriculum and customer login — as Web Components (one `<script type="module">`) and React components — for sites you build outside Kanorio.
|
|
4
|
+
|
|
5
|
+
```html
|
|
6
|
+
<link rel="stylesheet" href="https://js.kanorio.com/elements/v1/elements.css">
|
|
7
|
+
<script type="module" src="https://js.kanorio.com/elements/v1/kanorio-elements.js"></script>
|
|
8
|
+
|
|
9
|
+
<kanorio-account site-url="https://demo.kanorio.com" site-name="Demo"></kanorio-account>
|
|
10
|
+
<kanorio-form site-url="https://demo.kanorio.com" form-id="cform123"></kanorio-form>
|
|
11
|
+
<kanorio-curriculum site-url="https://demo.kanorio.com" product="react-course"></kanorio-curriculum>
|
|
12
|
+
<kanorio-unit site-url="https://demo.kanorio.com" deliverable="react-course"></kanorio-unit>
|
|
13
|
+
<kanorio-analytics site-url="https://demo.kanorio.com"></kanorio-analytics>
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
npm install @kanorio/elements # pulls in @kanorio/sdk and zod; React 19 is a peer dependency
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
```tsx
|
|
21
|
+
import { KanorioProvider, KanorioAccount, KanorioUnit } from "@kanorio/elements";
|
|
22
|
+
import "@kanorio/elements/elements.css";
|
|
23
|
+
|
|
24
|
+
<KanorioProvider siteUrl="https://demo.kanorio.com" theme="auto">
|
|
25
|
+
<KanorioAccount siteName="Demo" />
|
|
26
|
+
<KanorioUnit deliverable="react-course" onProgress={console.log} />
|
|
27
|
+
</KanorioProvider>
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
| Element | React | Purpose |
|
|
31
|
+
|---|---|---|
|
|
32
|
+
| `<kanorio-account>` | `KanorioAccount` | Customer sign-in panel (passkey, Google, 6-digit email code, in the order the site enables them) and account menu; stores the customer token in `localStorage` (in memory for the page where storage is blocked) and the signed-in customer's id, email and name in `sessionStorage`; fires `kanorio:login`, `kanorio:logout`. `<kanorio-login>` / `KanorioLogin` is a deprecated alias |
|
|
33
|
+
| `<kanorio-form form-id>` | `KanorioForm` | Form with client validation, built-in bot protection, private file uploads and consent; fires `kanorio:form-submit` |
|
|
34
|
+
| `<kanorio-unit deliverable>` | `KanorioUnit` | Protected player with an outline, captions and transcript, locked and not-yet-released states, and progress reporting; fires `kanorio:unit-change`, `kanorio:progress` |
|
|
35
|
+
| `<kanorio-curriculum product>` | `KanorioCurriculum` | Public outline of a product with playable free previews |
|
|
36
|
+
| `<kanorio-media src mime-type>` | `KanorioMedia` | Public media player for a URL (video, audio, PDF, image, file) |
|
|
37
|
+
| `<kanorio-lightbox images>` | `KanorioLightbox` | Image lightbox (zoom, keyboard, download and share per the site's media protection) |
|
|
38
|
+
| `<kanorio-reviews target>` | `KanorioReviews` | Published reviews with the rating summary, replies and load more |
|
|
39
|
+
| `<kanorio-rating target>` | `KanorioRating` | Compact star rating and review count |
|
|
40
|
+
| `<kanorio-analytics>` | `KanorioAnalytics` | Anonymous first-party pageview reporter |
|
|
41
|
+
|
|
42
|
+
Common attributes: `site-url` (your Kanorio site; defaults to the current origin, so set it when the page is on your own domain), `locale` (defaults to `<html lang>`, 58 locales built in), `theme` (`dark` / `light` / `auto`), `token`.
|
|
43
|
+
|
|
44
|
+
Styling: the site's brand (`GET /site` `brand`: colors, corner radius, font) is applied automatically to each element's root (`.kanorio-elements[data-kanorio-brand]`) as `--brand-color`, `--brand-foreground`, `--site-radius-*` and `--site-font-family`; pass `brand={false}` to skip. `--media-*` and `--site-*` keep their defaults under `.kanorio-elements`. Popups (select menus, pickers, the mobile sheet, the lightbox and viewers, the player menus) are added to `<body>` with the class `kanorio-popup` and the same theme and brand; to restyle them and the bot-protection box, write your variable overrides for `.kanorio-elements, .kanorio-popup, .kanorio-part`. In a dark element the dark theme's own values of the colours it sets (`--site-fg`, `--site-fg-muted`, `--site-surface`, `--site-surface-muted`, `--site-border`, `--site-field-*`, `--site-danger-text`) win over a rule written for the classes alone. To change them there, add the theme attribute to the selector, in a stylesheet loaded after `elements.css`: `:is(.kanorio-elements, .kanorio-popup, .kanorio-part)[data-kanorio-theme="dark"]`, and for `theme="auto"` the same with `[data-kanorio-theme="auto"]` inside `@media (prefers-color-scheme: dark)`. `KanorioProvider` renders no element: it passes `theme` and the other settings to the elements inside it, and a `theme` set on an element takes precedence over the provider's (an element placed inside another element is dark when either is). `KanorioReviews` and `KanorioRating` render unstyled markup with `data-kanorio-*` attributes for your own stylesheet. `KanorioBotProtection` adds no element to your form; its ALTCHA box (class `kanorio-part`) takes the brand of the surrounding provider, and the `theme` you give it or `light` / `dark` set on the provider (not the provider's `auto`: pass `theme="auto"` to the box when your form follows the visitor's system); it keeps its light defaults otherwise. Vidstack, pdf.js and the deliverable player load on demand.
|
|
45
|
+
|
|
46
|
+
## Compatibility
|
|
47
|
+
|
|
48
|
+
- **Styles are one file.** Link or import `elements.css` once; the JavaScript entries do not import CSS. The styles are scoped to `.kanorio-elements` (the elements), `.kanorio-popup` (what they add to `<body>`) and `.kanorio-part` (the bot-protection box in your own form) and do not reset the host page.
|
|
49
|
+
- **Server-side rendering.** The package can be imported on the server (Node.js 20 or later), so it works with frameworks that render on the server first. The components themselves run in the browser: in React Server Component frameworks, use them from a client component.
|
|
50
|
+
- **ESM only.** React 19 is a peer dependency of the npm package; the CDN bundle includes it.
|
|
51
|
+
- **Content Security Policy**: allow `https://js.kanorio.com` in `script-src`, `style-src` and `connect-src`, your site's URL in `connect-src`, and `worker-src blob:`. The PDF viewer loads its worker and fonts from `https://js.kanorio.com/pdfjs/` (also when you install from npm), and the built-in bot protection solves in a `blob:` worker.
|
|
52
|
+
- **Versions.** `https://js.kanorio.com/elements/v1/` follows the latest `1.x`; pin `https://js.kanorio.com/elements/<version>/` to control upgrades yourself. Within `1.x`, elements, attributes, props and events are only added.
|
|
53
|
+
|
|
54
|
+
## Documentation and support
|
|
55
|
+
|
|
56
|
+
- Documentation: <https://kanorio.com/en/developers/elements>
|
|
57
|
+
- Changes: [CHANGELOG.md](./CHANGELOG.md). Released together with `@kanorio/sdk` and `@kanorio/cli` under one version number.
|
|
58
|
+
- Questions and bug reports: <support@kanorio.com>. To report a security issue, write to <security@kanorio.com> instead of opening a public report.
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";import{e as a}from"./chunk-UBMXRFSK.js";import"./chunk-DXTWCLOM.js";import"./chunk-V4OWPVBD.js";import"./chunk-JZXJO62T.js";import"./chunk-S4ZA2INU.js";import"./chunk-6LGTFWQS.js";import"./chunk-CDG7S4P5.js";export{a as MediaPlayer};
|
|
2
|
+
//# sourceMappingURL=MediaPlayer-7IBSXL7Q.js.map
|