@variantlab/core 0.1.6 → 0.1.7
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 +22 -3
- package/package.json +10 -11
- package/LICENSE +0 -21
package/README.md
CHANGED
|
@@ -1020,19 +1020,38 @@ export function createMMKVStorageAdapter(): Storage;
|
|
|
1020
1020
|
export function createSecureStoreAdapter(): Storage;
|
|
1021
1021
|
```
|
|
1022
1022
|
|
|
1023
|
-
### Debug overlay
|
|
1023
|
+
### Debug overlay (React Native — `@variantlab/react-native/debug`)
|
|
1024
1024
|
|
|
1025
1025
|
```tsx
|
|
1026
1026
|
export const VariantDebugOverlay: React.FC<{
|
|
1027
|
-
|
|
1027
|
+
forceEnable?: boolean;
|
|
1028
1028
|
routeFilter?: boolean;
|
|
1029
1029
|
position?: "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
1030
1030
|
hideButton?: boolean;
|
|
1031
1031
|
}>;
|
|
1032
1032
|
|
|
1033
1033
|
export function openDebugOverlay(): void;
|
|
1034
|
+
export function closeDebugOverlay(): void;
|
|
1034
1035
|
```
|
|
1035
1036
|
|
|
1037
|
+
### Debug overlay (React Web — `@variantlab/react/debug`)
|
|
1038
|
+
|
|
1039
|
+
```tsx
|
|
1040
|
+
export const VariantDebugOverlay: React.FC<{
|
|
1041
|
+
forceEnable?: boolean;
|
|
1042
|
+
routeFilter?: boolean;
|
|
1043
|
+
position?: "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
1044
|
+
hideButton?: boolean;
|
|
1045
|
+
theme?: Partial<OverlayTheme>;
|
|
1046
|
+
offset?: { x: number; y: number };
|
|
1047
|
+
}>;
|
|
1048
|
+
|
|
1049
|
+
export function openDebugOverlay(): void;
|
|
1050
|
+
export function closeDebugOverlay(): void;
|
|
1051
|
+
```
|
|
1052
|
+
|
|
1053
|
+
Also re-exported from `@variantlab/next/debug` with `"use client"` directive.
|
|
1054
|
+
|
|
1036
1055
|
### Deep link handler
|
|
1037
1056
|
|
|
1038
1057
|
```ts
|
|
@@ -1308,7 +1327,7 @@ We will:
|
|
|
1308
1327
|
- `@variantlab/vue` — Vue 3 composables + components
|
|
1309
1328
|
- `@variantlab/vanilla` — plain JS/TS helpers
|
|
1310
1329
|
- `@variantlab/devtools` — Chrome/Firefox browser extension
|
|
1311
|
-
- React web `VariantDebugOverlay`
|
|
1330
|
+
- ~~React web `VariantDebugOverlay`~~ — **Done** (available in `@variantlab/react/debug` and `@variantlab/next/debug`)
|
|
1312
1331
|
|
|
1313
1332
|
## Phase 3: Ecosystem (v0.3)
|
|
1314
1333
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@variantlab/core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"description": "The framework-agnostic variantlab engine. Zero dependencies, runs anywhere.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -27,8 +27,14 @@
|
|
|
27
27
|
"README.md"
|
|
28
28
|
],
|
|
29
29
|
"publishConfig": {
|
|
30
|
-
"access": "public"
|
|
31
|
-
|
|
30
|
+
"access": "public"
|
|
31
|
+
},
|
|
32
|
+
"scripts": {
|
|
33
|
+
"build": "tsup",
|
|
34
|
+
"typecheck": "tsc --noEmit",
|
|
35
|
+
"test": "pnpm --dir ../.. exec vitest run --project core",
|
|
36
|
+
"test:coverage": "pnpm --dir ../.. exec vitest run --coverage --project core",
|
|
37
|
+
"clean": "rm -rf dist"
|
|
32
38
|
},
|
|
33
39
|
"keywords": [
|
|
34
40
|
"ab-testing",
|
|
@@ -48,12 +54,5 @@
|
|
|
48
54
|
"homepage": "https://github.com/Minhaj-Rabby/variantlab#readme",
|
|
49
55
|
"engines": {
|
|
50
56
|
"node": ">=18.17"
|
|
51
|
-
},
|
|
52
|
-
"scripts": {
|
|
53
|
-
"build": "tsup",
|
|
54
|
-
"typecheck": "tsc --noEmit",
|
|
55
|
-
"test": "pnpm --dir ../.. exec vitest run --project core",
|
|
56
|
-
"test:coverage": "pnpm --dir ../.. exec vitest run --coverage --project core",
|
|
57
|
-
"clean": "rm -rf dist"
|
|
58
57
|
}
|
|
59
|
-
}
|
|
58
|
+
}
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 variantlab contributors
|
|
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.
|