@sekyro/elements 0.0.0-stage → 0.1.0-rc.1
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/CHANGELOG.md +14 -0
- package/LICENSE +29 -0
- package/README.md +247 -2
- package/custom-elements.json +355 -0
- package/dist/cdn/chunks/background-monitor-GCMNCJMG-UXYQ5GX7.js +1 -0
- package/dist/cdn/chunks/camera-trait-HVV5ZEDI-JB4HN6S3.js +1 -0
- package/dist/cdn/chunks/capture-session-doc-ELX6VK6Z-SDM3ILRA.js +1 -0
- package/dist/cdn/chunks/chunk-36WGD7QV.js +14 -0
- package/dist/cdn/chunks/chunk-4FHWXBOB.js +1 -0
- package/dist/cdn/chunks/chunk-5FLR7RPJ.js +1 -0
- package/dist/cdn/chunks/chunk-6H22RNSK.js +1 -0
- package/dist/cdn/chunks/chunk-7HJH5Q4M.js +1 -0
- package/dist/cdn/chunks/chunk-7Y73DZJB.js +1 -0
- package/dist/cdn/chunks/chunk-BF6SE2AC.js +1 -0
- package/dist/cdn/chunks/chunk-BZ37D4FR.js +1 -0
- package/dist/cdn/chunks/chunk-CFJJD6T2.js +1 -0
- package/dist/cdn/chunks/chunk-CMDITVXF.js +1 -0
- package/dist/cdn/chunks/chunk-CMS5FVGM.js +1 -0
- package/dist/cdn/chunks/chunk-CYGAKCKG.js +1 -0
- package/dist/cdn/chunks/chunk-D334IAZJ.js +1 -0
- package/dist/cdn/chunks/chunk-ET7NCKUV.js +1 -0
- package/dist/cdn/chunks/chunk-FAIDO3QL.js +1 -0
- package/dist/cdn/chunks/chunk-FCTRNWRU.js +1 -0
- package/dist/cdn/chunks/chunk-FDWO4KXK.js +1 -0
- package/dist/cdn/chunks/chunk-FEWP7HBJ.js +1 -0
- package/dist/cdn/chunks/chunk-HDJ6JFXX.js +1 -0
- package/dist/cdn/chunks/chunk-HQF66Y6S.js +1 -0
- package/dist/cdn/chunks/chunk-IBOJTLL7.js +1 -0
- package/dist/cdn/chunks/chunk-JM3CYFFZ.js +1 -0
- package/dist/cdn/chunks/chunk-JOZCJGRV.js +1 -0
- package/dist/cdn/chunks/chunk-KLE75SX4.js +1 -0
- package/dist/cdn/chunks/chunk-LYYAVERP.js +1 -0
- package/dist/cdn/chunks/chunk-PUO2VWDE.js +33 -0
- package/dist/cdn/chunks/chunk-RK4HVNRS.js +1 -0
- package/dist/cdn/chunks/chunk-RRLXNT33.js +1 -0
- package/dist/cdn/chunks/chunk-SK6UAYX2.js +1 -0
- package/dist/cdn/chunks/chunk-T4M2J44L.js +1 -0
- package/dist/cdn/chunks/chunk-U3UDWPBG.js +1 -0
- package/dist/cdn/chunks/chunk-UZWMCNZI.js +1 -0
- package/dist/cdn/chunks/chunk-X3BGM3B2.js +1 -0
- package/dist/cdn/chunks/chunk-X767DBO7.js +1 -0
- package/dist/cdn/chunks/chunk-YWPZG2MZ.js +25 -0
- package/dist/cdn/chunks/chunk-ZIC5GEH2.js +1 -0
- package/dist/cdn/chunks/chunk-ZKLSZJFN.js +1 -0
- package/dist/cdn/chunks/clip-inspect-HZ7N2YOP-DCDXB76T.js +1 -0
- package/dist/cdn/chunks/create-document-capture-UHZJUZHC-YYZNCSW6.js +1 -0
- package/dist/cdn/chunks/create-portrait-capture-VRZZOMJS-I4FBRNBP.js +1 -0
- package/dist/cdn/chunks/detector-scanic-F3Y5X3DF-FGVR4NEM.js +1 -0
- package/dist/cdn/chunks/document-capture-view-JE6IX4IE-2454PW6Z.js +1 -0
- package/dist/cdn/chunks/eid-view-RZS6MLT6-35VSHTV3.js +1 -0
- package/dist/cdn/chunks/email-otp-view-WUQ5OGDD-YDSUKAN2.js +1 -0
- package/dist/cdn/chunks/flow-views-5L7JF3MM-M6C3RXSX.js +1 -0
- package/dist/cdn/chunks/icao-gate-SO6YJ7RV-MPW6W3QN.js +1 -0
- package/dist/cdn/chunks/icao-tuning-DCZCMCEQ-ZQSK7ZOV.js +1 -0
- package/dist/cdn/chunks/keyframe-rank-R4NPQGN3-VRURE6OQ.js +1 -0
- package/dist/cdn/chunks/landmarker-3BBP3RBY-DDXMOLGK.js +1 -0
- package/dist/cdn/chunks/mrz-band-DCXFWDBD-OPMO6HYS.js +1 -0
- package/dist/cdn/chunks/overlay-de-JQ2FDZBA-HLFTXIF6.js +1 -0
- package/dist/cdn/chunks/overlay-es-WDYRSRHH-UXHTYCHD.js +1 -0
- package/dist/cdn/chunks/overlay-pt-AQMDWDWX-BD7TO6Y4.js +1 -0
- package/dist/cdn/chunks/plan-runner-ZHOYMRAO-RDS523K5.js +1 -0
- package/dist/cdn/chunks/portrait-capture-view-GQIBQY4U-TJUYRCTI.js +1 -0
- package/dist/cdn/chunks/portrait-review-view-XOQYQNU7-LPONGGFW.js +1 -0
- package/dist/cdn/chunks/print-4WOMNRBE-DNXJ7ERA.js +11 -0
- package/dist/cdn/chunks/scanic-ml-stub-XPNKT2N3-YSXFN7KY.js +1 -0
- package/dist/cdn/chunks/segmenter-3CVPTZMM-WGI6XGWN.js +1 -0
- package/dist/cdn/chunks/turnstile-N4K4U2AI-SLP55XAA.js +1 -0
- package/dist/cdn/chunks/upload-file-C4MFKLT3-DXCNEDXP.js +1 -0
- package/dist/cdn/chunks/vision_bundle-WBHR7TEE.js +41 -0
- package/dist/cdn/define.js +1 -0
- package/dist/cdn/index.js +1 -0
- package/dist/chunk-6NQ7EWA4.js +1 -0
- package/dist/chunk-72JW2LCH.js +25 -0
- package/dist/chunk-7URX73UH.js +1 -0
- package/dist/chunk-AGPBG22V.js +1 -0
- package/dist/chunk-B6A5RXN4.js +1 -0
- package/dist/chunk-EIRNIJXL.js +1 -0
- package/dist/chunk-ESSKMX7I.js +1 -0
- package/dist/chunk-IBPUWYHJ.js +1 -0
- package/dist/chunk-IGC6OQZ2.js +14 -0
- package/dist/chunk-QE2B3MSJ.js +1 -0
- package/dist/chunk-RMV3BNWO.js +1 -0
- package/dist/chunk-RPLVIGTS.js +1 -0
- package/dist/chunk-SEE6MST7.js +1 -0
- package/dist/chunk-TPIBYY2S.js +1 -0
- package/dist/chunk-XEY5ANJ6.js +1 -0
- package/dist/chunk-ZDF5JILV.js +33 -0
- package/dist/define.cjs +66 -0
- package/dist/define.d.cts +7 -0
- package/dist/define.d.ts +7 -0
- package/dist/define.js +1 -0
- package/dist/document-capture-view-JE6IX4IE-5HJYAEDX.js +1 -0
- package/dist/eid-view-RZS6MLT6-2W2T3AWK.js +1 -0
- package/dist/email-otp-view-WUQ5OGDD-NGI6PBX3.js +1 -0
- package/dist/flow-views-5L7JF3MM-P55CCCOH.js +1 -0
- package/dist/fonts/Cairo-OFL.txt +93 -0
- package/dist/fonts/Geist-OFL.txt +93 -0
- package/dist/fonts/Inter-OFL.txt +93 -0
- package/dist/fonts/SekyroCairo-Bold.woff2 +0 -0
- package/dist/fonts/SekyroCairo-Regular.woff2 +0 -0
- package/dist/fonts/SekyroCairo-SemiBold.woff2 +0 -0
- package/dist/fonts/SekyroGeist-Bold.woff2 +0 -0
- package/dist/fonts/SekyroGeist-SemiBold.woff2 +0 -0
- package/dist/fonts/SekyroInter-Medium.woff2 +0 -0
- package/dist/fonts/SekyroInter-Regular.woff2 +0 -0
- package/dist/fonts/SekyroInter-SemiBold.woff2 +0 -0
- package/dist/index.cjs +66 -0
- package/dist/index.d.cts +1115 -0
- package/dist/index.d.ts +1115 -0
- package/dist/index.js +1 -0
- package/dist/overlay-de-JQ2FDZBA-FR25JPE4.js +1 -0
- package/dist/overlay-es-WDYRSRHH-PFDMX5D2.js +1 -0
- package/dist/overlay-pt-AQMDWDWX-LTD4N2DW.js +1 -0
- package/dist/portrait-capture-view-GQIBQY4U-AFPEUDLY.js +1 -0
- package/dist/portrait-review-view-XOQYQNU7-IPKAZBP6.js +1 -0
- package/dist/styles.css +1479 -0
- package/package.json +117 -4
- package/types/empty.js +2 -0
- package/types/events.d.ts +9 -0
- package/types/jsx.d.ts +15 -0
- package/types/svelte.d.ts +16 -0
- package/types/vue.d.ts +15 -0
package/package.json
CHANGED
|
@@ -1,6 +1,119 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sekyro/elements",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.0-rc.1",
|
|
4
|
+
"description": "Sekyro AI custom elements: <sekyro-verification> for Vue, Angular, Svelte and plain HTML, the @sekyro/react flow with React bundled inside",
|
|
5
|
+
"license": "SEE LICENSE IN LICENSE",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/IBTIKAR-Technologies/ibtikar-identity.git",
|
|
9
|
+
"directory": "packages/sekyro-elements"
|
|
10
|
+
},
|
|
11
|
+
"keywords": [
|
|
12
|
+
"sekyro",
|
|
13
|
+
"kyc",
|
|
14
|
+
"identity-verification",
|
|
15
|
+
"liveness",
|
|
16
|
+
"custom-elements",
|
|
17
|
+
"web-components",
|
|
18
|
+
"vue",
|
|
19
|
+
"angular",
|
|
20
|
+
"svelte"
|
|
21
|
+
],
|
|
22
|
+
"engines": {
|
|
23
|
+
"node": ">=20"
|
|
24
|
+
},
|
|
25
|
+
"publishConfig": {
|
|
26
|
+
"access": "public"
|
|
27
|
+
},
|
|
28
|
+
"type": "module",
|
|
29
|
+
"sideEffects": [
|
|
30
|
+
"./dist/define.js",
|
|
31
|
+
"./dist/define.cjs",
|
|
32
|
+
"./dist/cdn/*",
|
|
33
|
+
"*.css"
|
|
34
|
+
],
|
|
35
|
+
"main": "./dist/index.cjs",
|
|
36
|
+
"module": "./dist/index.js",
|
|
37
|
+
"types": "./dist/index.d.ts",
|
|
38
|
+
"customElements": "./custom-elements.json",
|
|
39
|
+
"exports": {
|
|
40
|
+
".": {
|
|
41
|
+
"import": {
|
|
42
|
+
"types": "./dist/index.d.ts",
|
|
43
|
+
"default": "./dist/index.js"
|
|
44
|
+
},
|
|
45
|
+
"require": {
|
|
46
|
+
"types": "./dist/index.d.cts",
|
|
47
|
+
"default": "./dist/index.cjs"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"./define": {
|
|
51
|
+
"import": {
|
|
52
|
+
"types": "./dist/define.d.ts",
|
|
53
|
+
"default": "./dist/define.js"
|
|
54
|
+
},
|
|
55
|
+
"require": {
|
|
56
|
+
"types": "./dist/define.d.cts",
|
|
57
|
+
"default": "./dist/define.cjs"
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"./vue": {
|
|
61
|
+
"types": "./types/vue.d.ts",
|
|
62
|
+
"default": "./types/empty.js"
|
|
63
|
+
},
|
|
64
|
+
"./svelte": {
|
|
65
|
+
"types": "./types/svelte.d.ts",
|
|
66
|
+
"default": "./types/empty.js"
|
|
67
|
+
},
|
|
68
|
+
"./jsx": {
|
|
69
|
+
"types": "./types/jsx.d.ts",
|
|
70
|
+
"default": "./types/empty.js"
|
|
71
|
+
},
|
|
72
|
+
"./styles.css": "./dist/styles.css",
|
|
73
|
+
"./custom-elements.json": "./custom-elements.json",
|
|
74
|
+
"./package.json": "./package.json"
|
|
75
|
+
},
|
|
76
|
+
"files": [
|
|
77
|
+
"dist",
|
|
78
|
+
"types",
|
|
79
|
+
"custom-elements.json",
|
|
80
|
+
"README.md",
|
|
81
|
+
"CHANGELOG.md",
|
|
82
|
+
"LICENSE",
|
|
83
|
+
"sbom.cdx.json"
|
|
84
|
+
],
|
|
85
|
+
"scripts": {
|
|
86
|
+
"build": "tsup && node scripts/finish-build.mjs",
|
|
87
|
+
"test": "node --experimental-strip-types scripts/gen-manifest.mjs --check && vitest run",
|
|
88
|
+
"test:dist": "SEKYRO_REQUIRE_DIST=1 vitest run test/built && tsc -p tsconfig.types.json",
|
|
89
|
+
"e2e": "playwright test",
|
|
90
|
+
"size": "node scripts/check-size.mjs",
|
|
91
|
+
"typecheck": "tsc --noEmit",
|
|
92
|
+
"manifest": "node --experimental-strip-types scripts/gen-manifest.mjs",
|
|
93
|
+
"api:report": "api-extractor run --local",
|
|
94
|
+
"api:check": "api-extractor run"
|
|
95
|
+
},
|
|
96
|
+
"peerDependencies": {
|
|
97
|
+
"@sekyro/web": "^0.1.0-rc.23 || ^0.2.0-rc.0"
|
|
98
|
+
},
|
|
99
|
+
"devDependencies": {
|
|
100
|
+
"@microsoft/api-extractor": "^7.59.4",
|
|
101
|
+
"@playwright/test": "1.61.1",
|
|
102
|
+
"@sekyro/react": "file:../sekyro-react",
|
|
103
|
+
"@sekyro/web": "file:../sekyro-web",
|
|
104
|
+
"@types/node": "^22",
|
|
105
|
+
"@types/react": "^19",
|
|
106
|
+
"@types/react-dom": "^19",
|
|
107
|
+
"bootstrap": "5.3.8",
|
|
108
|
+
"esbuild": "^0.25",
|
|
109
|
+
"jsdom": "^25",
|
|
110
|
+
"react": "19.2.0",
|
|
111
|
+
"react-dom": "19.2.0",
|
|
112
|
+
"svelte": "^5.39.6",
|
|
113
|
+
"tailwindcss": "4.1.13",
|
|
114
|
+
"tsup": "^8",
|
|
115
|
+
"typescript": "^5.7",
|
|
116
|
+
"vitest": "^3",
|
|
117
|
+
"vue": "3.5.22"
|
|
118
|
+
}
|
|
119
|
+
}
|
package/types/empty.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// Shared by the framework typings: the element's events as framework listener props (`sekyro-step` → `onSekyroStep`).
|
|
2
|
+
import type { SekyroVerificationEventMap } from "@sekyro/elements";
|
|
3
|
+
|
|
4
|
+
type Camel<S extends string> = S extends `${infer Head}-${infer Tail}` ? `${Capitalize<Head>}${Camel<Tail>}` : Capitalize<S>;
|
|
5
|
+
|
|
6
|
+
/** `onSekyroStep`, `onSekyroResult`, ...: what Vue makes of `@sekyro-step` and JSX of `onSekyroStep`. */
|
|
7
|
+
export type SekyroVerificationListeners = {
|
|
8
|
+
[K in keyof SekyroVerificationEventMap as `on${Camel<K & string>}`]?: (event: CustomEvent<SekyroVerificationEventMap[K]>) => void;
|
|
9
|
+
};
|
package/types/jsx.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// React-typed JSX (React 19, Preact with compat types): `import "@sekyro/elements/jsx"` once types
|
|
2
|
+
// <sekyro-verification> with its attributes. In a React app, prefer @sekyro/react itself: same flow, no second React.
|
|
3
|
+
import type { SekyroVerificationAttributes, SekyroVerificationElement } from "@sekyro/elements";
|
|
4
|
+
import type { DetailedHTMLProps, HTMLAttributes } from "react";
|
|
5
|
+
|
|
6
|
+
type SekyroVerificationJsx = DetailedHTMLProps<HTMLAttributes<SekyroVerificationElement>, SekyroVerificationElement> &
|
|
7
|
+
Omit<SekyroVerificationAttributes, "dir">;
|
|
8
|
+
|
|
9
|
+
declare module "react" {
|
|
10
|
+
namespace JSX {
|
|
11
|
+
interface IntrinsicElements {
|
|
12
|
+
"sekyro-verification": SekyroVerificationJsx;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// Svelte: `import "@sekyro/elements/svelte"` once (in src/app.d.ts) types <sekyro-verification> for svelte-check:
|
|
2
|
+
// its attributes and its events (`onsekyro-step` in Svelte 5, `on:sekyro-step` in Svelte 4).
|
|
3
|
+
import type { SekyroVerificationAttributes, SekyroVerificationElement, SekyroVerificationEventMap } from "@sekyro/elements";
|
|
4
|
+
import type { HTMLAttributes } from "svelte/elements";
|
|
5
|
+
|
|
6
|
+
type SvelteEvents = {
|
|
7
|
+
[K in keyof SekyroVerificationEventMap as `on${K & string}` | `on:${K & string}`]?: (
|
|
8
|
+
event: CustomEvent<SekyroVerificationEventMap[K]>,
|
|
9
|
+
) => void;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
declare module "svelte/elements" {
|
|
13
|
+
interface SvelteHTMLElements {
|
|
14
|
+
"sekyro-verification": HTMLAttributes<SekyroVerificationElement> & SekyroVerificationAttributes & SvelteEvents;
|
|
15
|
+
}
|
|
16
|
+
}
|
package/types/vue.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// Vue: `import "@sekyro/elements/vue"` once (in a .d.ts or your main file) types <sekyro-verification> in templates
|
|
2
|
+
// for vue-tsc and Volar: its attributes, properties and events. Vue must also leave the tag to the browser:
|
|
3
|
+
// `compilerOptions.isCustomElement: (tag) => tag.startsWith("sekyro-")` in @vitejs/plugin-vue's `template` options.
|
|
4
|
+
import type { DefineComponent } from "vue";
|
|
5
|
+
import type { SekyroVerificationElementProperties } from "@sekyro/elements";
|
|
6
|
+
import type { SekyroVerificationListeners } from "./events";
|
|
7
|
+
|
|
8
|
+
export type SekyroVerificationVueProps = Partial<SekyroVerificationElementProperties> &
|
|
9
|
+
SekyroVerificationListeners & { dir?: "ltr" | "rtl" };
|
|
10
|
+
|
|
11
|
+
declare module "vue" {
|
|
12
|
+
interface GlobalComponents {
|
|
13
|
+
"sekyro-verification": DefineComponent<SekyroVerificationVueProps>;
|
|
14
|
+
}
|
|
15
|
+
}
|