@optona/otofill 0.0.0-stage → 0.1.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/LICENSE +202 -0
- package/README.md +118 -3
- package/dist/otofill.js +2536 -0
- package/dist/otofill.min.js +77 -0
- package/dist/types/drivers.d.ts +9 -0
- package/dist/types/engine.d.ts +30 -0
- package/dist/types/fill-utils.d.ts +22 -0
- package/dist/types/index.d.ts +26 -0
- package/dist/types/io.d.ts +33 -0
- package/dist/types/matcher.d.ts +36 -0
- package/dist/types/panel/dom.d.ts +16 -0
- package/dist/types/panel/panel.d.ts +81 -0
- package/dist/types/panel/styles.d.ts +1 -0
- package/dist/types/scanner.d.ts +30 -0
- package/dist/types/store.d.ts +42 -0
- package/dist/types/types.d.ts +69 -0
- package/dist/types/ui/element-plus.d.ts +7 -0
- package/dist/types/util.d.ts +21 -0
- package/package.json +49 -4
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/** Karşılaştırma için metni düzleştirir: Türkçe karakterler, büyük/küçük harf, noktalama. */
|
|
2
|
+
export declare function norm(s?: string | null): string;
|
|
3
|
+
/** İki metnin benzerliği (0..1), harf ikilileriyle Dice katsayısı. */
|
|
4
|
+
export declare function similarity(a: string, b: string): number;
|
|
5
|
+
/** Metinden anahtar önerisi: "Adı Soyadı" → "adi_soyadi". */
|
|
6
|
+
export declare function slug(s?: string | null): string;
|
|
7
|
+
export declare function uid(): string;
|
|
8
|
+
export declare function nowIso(): string;
|
|
9
|
+
export declare function globToRegExp(pattern: string): RegExp;
|
|
10
|
+
/** Alanın sayfa desenlerinden biri adrese uyuyor mu? Boş liste her sayfaya uyar. */
|
|
11
|
+
export declare function pageMatches(pages: string[] | undefined, url: string): boolean;
|
|
12
|
+
/** Bulunulan sayfa için önerilen desen: sayısal parçalar * olur. */
|
|
13
|
+
export declare function suggestPagePattern(loc?: Location): string;
|
|
14
|
+
export declare function sitePattern(loc?: Location): string;
|
|
15
|
+
/** Framework'lerin her render'da ürettiği kararsız id'ler (el-id-1234-5, :r3:, v-12 ...). */
|
|
16
|
+
export declare function isDynamicId(id: string): boolean;
|
|
17
|
+
declare function cssEsc(s: string): string;
|
|
18
|
+
/** Alan için kısa ve mümkün olduğunca kararlı bir CSS seçici üretir. */
|
|
19
|
+
export declare function cssPath(el: Element): string;
|
|
20
|
+
export { cssEsc };
|
|
21
|
+
export declare const sleep: (ms: number) => Promise<void>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,51 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@optona/otofill",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "Ctrl+Q ile açılan, alanları sizin tanıttığınız ve verisini sizin içe aktardığınız form doldurma kütüphanesi.",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"author": "Optona",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"main": "./dist/otofill.js",
|
|
9
|
+
"module": "./dist/otofill.js",
|
|
10
|
+
"types": "./dist/types/index.d.ts",
|
|
11
|
+
"unpkg": "./dist/otofill.min.js",
|
|
12
|
+
"jsdelivr": "./dist/otofill.min.js",
|
|
13
|
+
"exports": {
|
|
14
|
+
".": {
|
|
15
|
+
"types": "./dist/types/index.d.ts",
|
|
16
|
+
"import": "./dist/otofill.js"
|
|
17
|
+
},
|
|
18
|
+
"./otofill.min.js": "./dist/otofill.min.js"
|
|
19
|
+
},
|
|
20
|
+
"files": [
|
|
21
|
+
"dist",
|
|
22
|
+
"README.md",
|
|
23
|
+
"LICENSE"
|
|
24
|
+
],
|
|
25
|
+
"sideEffects": false,
|
|
26
|
+
"keywords": [
|
|
27
|
+
"autofill",
|
|
28
|
+
"form",
|
|
29
|
+
"form-filler",
|
|
30
|
+
"test-data",
|
|
31
|
+
"qa",
|
|
32
|
+
"vue",
|
|
33
|
+
"element-plus",
|
|
34
|
+
"bookmarklet"
|
|
35
|
+
],
|
|
36
|
+
"scripts": {
|
|
37
|
+
"build": "vite build && vite build --mode iife && tsc -p tsconfig.build.json",
|
|
38
|
+
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
39
|
+
"prepack": "npm run build"
|
|
40
|
+
},
|
|
41
|
+
"devDependencies": {
|
|
42
|
+
"typescript": "^7.0.2",
|
|
43
|
+
"vite": "^8.4.1"
|
|
44
|
+
},
|
|
45
|
+
"publishConfig": {
|
|
46
|
+
"access": "public"
|
|
47
|
+
},
|
|
48
|
+
"engines": {
|
|
49
|
+
"node": ">=18"
|
|
50
|
+
}
|
|
51
|
+
}
|