twd-js 0.4.0 → 0.5.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/README.md +331 -51
- package/dist/client-CUE3jVb4.mjs +25226 -0
- package/dist/index.d.ts +1 -1
- package/dist/initializers/initSidebar.d.ts +17 -0
- package/dist/initializers/viteLoadTests.d.ts +32 -0
- package/dist/mock-sw.js +1 -1
- package/dist/twd.es.js +3022 -2972
- package/dist/twd.umd.js +332 -83
- package/dist/ui/ClosedSidebar.d.ts +2 -1
- package/dist/ui/TWDSidebar.d.ts +12 -1
- package/package.json +26 -15
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
interface ClosedSidebarProps {
|
|
2
2
|
setOpen: (open: boolean) => void;
|
|
3
|
+
position: "left" | "right";
|
|
3
4
|
}
|
|
4
|
-
export declare const ClosedSidebar: ({ setOpen }: ClosedSidebarProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare const ClosedSidebar: ({ setOpen, position }: ClosedSidebarProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
6
|
export {};
|
package/dist/ui/TWDSidebar.d.ts
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
interface TWDSidebarProps {
|
|
2
|
+
/**
|
|
3
|
+
* Whether the sidebar is open by default
|
|
4
|
+
*/
|
|
2
5
|
open: boolean;
|
|
6
|
+
/**
|
|
7
|
+
* Sidebar position
|
|
8
|
+
* - left: Sidebar on the left side (default)
|
|
9
|
+
* - right: Sidebar on the right side
|
|
10
|
+
*
|
|
11
|
+
* @default "left"
|
|
12
|
+
*/
|
|
13
|
+
position?: "left" | "right";
|
|
3
14
|
}
|
|
4
|
-
export declare const TWDSidebar: ({ open }: TWDSidebarProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export declare const TWDSidebar: ({ open, position }: TWDSidebarProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
16
|
export {};
|
package/package.json
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "twd-js",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Test While Developing (TWD) - in-browser testing",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"author": "BRIKEV",
|
|
7
|
+
"homepage": "https://github.com/BRIKEV/twd#readme",
|
|
8
|
+
"bugs": {
|
|
9
|
+
"url": "https://github.com/BRIKEV/twd/issues"
|
|
10
|
+
},
|
|
5
11
|
"main": "./dist/twd.umd.js",
|
|
6
12
|
"module": "./dist/twd.es.js",
|
|
7
13
|
"types": "./dist/index.d.ts",
|
|
@@ -10,7 +16,7 @@
|
|
|
10
16
|
},
|
|
11
17
|
"repository": {
|
|
12
18
|
"type": "git",
|
|
13
|
-
"url": "
|
|
19
|
+
"url": "https://github.com/BRIKEV/twd.git"
|
|
14
20
|
},
|
|
15
21
|
"exports": {
|
|
16
22
|
".": {
|
|
@@ -20,14 +26,22 @@
|
|
|
20
26
|
}
|
|
21
27
|
},
|
|
22
28
|
"files": [
|
|
23
|
-
"dist"
|
|
29
|
+
"dist",
|
|
30
|
+
"README.md",
|
|
31
|
+
"LICENSE"
|
|
24
32
|
],
|
|
33
|
+
"engines": {
|
|
34
|
+
"node": ">=16"
|
|
35
|
+
},
|
|
25
36
|
"scripts": {
|
|
26
37
|
"build": "vite build && vite build -c vite.sw.config.js && cp src/cli/installsw.js dist/cli.js",
|
|
27
38
|
"test": "vitest",
|
|
28
39
|
"test:ci": "vitest --run --coverage",
|
|
29
40
|
"conventional-changelog": "conventional-changelog -i CHANGELOG.md",
|
|
30
|
-
"dev": "vite"
|
|
41
|
+
"dev": "vite",
|
|
42
|
+
"docs:dev": "vitepress dev docs",
|
|
43
|
+
"docs:build": "vitepress build docs",
|
|
44
|
+
"docs:preview": "vitepress preview docs"
|
|
31
45
|
},
|
|
32
46
|
"peerDependencies": {
|
|
33
47
|
"react": ">=17.0.0",
|
|
@@ -47,20 +61,17 @@
|
|
|
47
61
|
"typescript": "^5.9.2",
|
|
48
62
|
"vite": "^7.1.4",
|
|
49
63
|
"vite-plugin-dts": "^4.5.4",
|
|
64
|
+
"vitepress": "^2.0.0-alpha.12",
|
|
50
65
|
"vitest": "^3.2.4"
|
|
51
66
|
},
|
|
52
67
|
"keywords": [
|
|
53
68
|
"testing",
|
|
54
|
-
"
|
|
69
|
+
"test-runner",
|
|
70
|
+
"in-browser-testing",
|
|
71
|
+
"react-testing",
|
|
55
72
|
"twd",
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"development",
|
|
60
|
-
"react",
|
|
61
|
-
"javascript",
|
|
62
|
-
"typescript",
|
|
63
|
-
"vite",
|
|
64
|
-
"vitest"
|
|
73
|
+
"mock-service-worker",
|
|
74
|
+
"frontend-testing",
|
|
75
|
+
"typescript"
|
|
65
76
|
]
|
|
66
|
-
}
|
|
77
|
+
}
|