@labyrinthe/otp-widget 0.0.0-stage → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +80 -0
- package/LICENSE +21 -0
- package/README.fr.md +584 -0
- package/README.md +574 -2
- package/dist/index.cjs +887 -0
- package/dist/index.d.cts +215 -0
- package/dist/index.d.ts +215 -0
- package/dist/index.js +875 -0
- package/dist/labyrinthe-otp.min.js +70 -0
- package/dist/react.cjs +81 -0
- package/dist/react.d.cts +43 -0
- package/dist/react.d.ts +43 -0
- package/dist/react.js +66 -0
- package/dist/server.cjs +613 -0
- package/dist/server.d.cts +264 -0
- package/dist/server.d.ts +264 -0
- package/dist/server.js +610 -0
- package/package.json +131 -4
package/package.json
CHANGED
|
@@ -1,6 +1,133 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@labyrinthe/otp-widget",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "1.2.0",
|
|
4
|
+
"description": "Drop-in phone verification widget for Labyrinthe Connect: <labyrinthe-otp> web component, React wrapper and server handlers (Express, Next.js). No API key in the browser.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"labyrinthe",
|
|
7
|
+
"otp",
|
|
8
|
+
"sms",
|
|
9
|
+
"2fa",
|
|
10
|
+
"verification",
|
|
11
|
+
"web-component",
|
|
12
|
+
"custom-element",
|
|
13
|
+
"react",
|
|
14
|
+
"drc",
|
|
15
|
+
"congo"
|
|
16
|
+
],
|
|
17
|
+
"homepage": "https://github.com/Labyrinthe-Team/labyrinthe-connect-sdks/tree/main/widget-otp#readme",
|
|
18
|
+
"bugs": {
|
|
19
|
+
"url": "https://github.com/Labyrinthe-Team/labyrinthe-connect-sdks/issues",
|
|
20
|
+
"email": "connect@labyrinthe-rdc.com"
|
|
21
|
+
},
|
|
22
|
+
"repository": {
|
|
23
|
+
"type": "git",
|
|
24
|
+
"url": "git+https://github.com/Labyrinthe-Team/labyrinthe-connect-sdks.git",
|
|
25
|
+
"directory": "widget-otp"
|
|
26
|
+
},
|
|
27
|
+
"license": "MIT",
|
|
28
|
+
"author": "Labyrinthe Connect <connect@labyrinthe-rdc.com>",
|
|
29
|
+
"type": "module",
|
|
30
|
+
"sideEffects": [
|
|
31
|
+
"./dist/index.js",
|
|
32
|
+
"./dist/index.cjs",
|
|
33
|
+
"./dist/labyrinthe-otp.min.js"
|
|
34
|
+
],
|
|
35
|
+
"exports": {
|
|
36
|
+
".": {
|
|
37
|
+
"import": {
|
|
38
|
+
"types": "./dist/index.d.ts",
|
|
39
|
+
"default": "./dist/index.js"
|
|
40
|
+
},
|
|
41
|
+
"require": {
|
|
42
|
+
"types": "./dist/index.d.cts",
|
|
43
|
+
"default": "./dist/index.cjs"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"./react": {
|
|
47
|
+
"import": {
|
|
48
|
+
"types": "./dist/react.d.ts",
|
|
49
|
+
"default": "./dist/react.js"
|
|
50
|
+
},
|
|
51
|
+
"require": {
|
|
52
|
+
"types": "./dist/react.d.cts",
|
|
53
|
+
"default": "./dist/react.cjs"
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"./server": {
|
|
57
|
+
"import": {
|
|
58
|
+
"types": "./dist/server.d.ts",
|
|
59
|
+
"default": "./dist/server.js"
|
|
60
|
+
},
|
|
61
|
+
"require": {
|
|
62
|
+
"types": "./dist/server.d.cts",
|
|
63
|
+
"default": "./dist/server.cjs"
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"./cdn": "./dist/labyrinthe-otp.min.js",
|
|
67
|
+
"./package.json": "./package.json"
|
|
68
|
+
},
|
|
69
|
+
"main": "./dist/index.cjs",
|
|
70
|
+
"module": "./dist/index.js",
|
|
71
|
+
"types": "./dist/index.d.cts",
|
|
72
|
+
"unpkg": "./dist/labyrinthe-otp.min.js",
|
|
73
|
+
"jsdelivr": "./dist/labyrinthe-otp.min.js",
|
|
74
|
+
"files": [
|
|
75
|
+
"dist",
|
|
76
|
+
"README.md",
|
|
77
|
+
"README.fr.md",
|
|
78
|
+
"CHANGELOG.md",
|
|
79
|
+
"LICENSE"
|
|
80
|
+
],
|
|
81
|
+
"engines": {
|
|
82
|
+
"node": ">=18"
|
|
83
|
+
},
|
|
84
|
+
"scripts": {
|
|
85
|
+
"build": "tsup",
|
|
86
|
+
"typecheck": "tsc --noEmit -p tsconfig.json && tsc --noEmit -p tsconfig.src.json",
|
|
87
|
+
"lint": "eslint .",
|
|
88
|
+
"test": "vitest run",
|
|
89
|
+
"test:watch": "vitest",
|
|
90
|
+
"test:integration": "vitest run tests/integration.test.ts",
|
|
91
|
+
"size": "node scripts/size.mjs",
|
|
92
|
+
"check:dist": "node scripts/check-dist.mjs && node scripts/check-dist.cjs",
|
|
93
|
+
"publint": "publint --strict",
|
|
94
|
+
"attw": "attw --pack . --profile node16 --exclude-entrypoints ./cdn",
|
|
95
|
+
"check": "npm run lint && npm run typecheck && npm test && npm run build && npm run check:dist && npm run size && npm run publint && npm run attw",
|
|
96
|
+
"prepublishOnly": "npm run build"
|
|
97
|
+
},
|
|
98
|
+
"peerDependencies": {
|
|
99
|
+
"@labyrinthe/connect": "^1.2.0",
|
|
100
|
+
"react": ">=18"
|
|
101
|
+
},
|
|
102
|
+
"peerDependenciesMeta": {
|
|
103
|
+
"@labyrinthe/connect": {
|
|
104
|
+
"optional": true
|
|
105
|
+
},
|
|
106
|
+
"react": {
|
|
107
|
+
"optional": true
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
"devDependencies": {
|
|
111
|
+
"@arethetypeswrong/cli": "0.18.5",
|
|
112
|
+
"@eslint/js": "9.39.5",
|
|
113
|
+
"@types/express": "5.0.6",
|
|
114
|
+
"@types/node": "20.19.43",
|
|
115
|
+
"@types/react": "19.3.0",
|
|
116
|
+
"@types/react-dom": "19.3.0",
|
|
117
|
+
"eslint": "9.39.5",
|
|
118
|
+
"express": "5.2.1",
|
|
119
|
+
"happy-dom": "21.0.4",
|
|
120
|
+
"publint": "0.3.25",
|
|
121
|
+
"react": "19.2.9",
|
|
122
|
+
"react-dom": "19.2.9",
|
|
123
|
+
"tsup": "8.5.1",
|
|
124
|
+
"typescript": "5.9.3",
|
|
125
|
+
"typescript-eslint": "8.72.0",
|
|
126
|
+
"vite": "6.4.4",
|
|
127
|
+
"vitest": "3.2.7"
|
|
128
|
+
},
|
|
129
|
+
"publishConfig": {
|
|
130
|
+
"access": "public",
|
|
131
|
+
"provenance": true
|
|
132
|
+
}
|
|
133
|
+
}
|