@variantlab/core 0.1.6 → 0.1.8

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.
Files changed (2) hide show
  1. package/README.md +22 -3
  2. package/package.json +2 -3
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
- shakeToOpen?: boolean;
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.6",
3
+ "version": "0.1.8",
4
4
  "description": "The framework-agnostic variantlab engine. Zero dependencies, runs anywhere.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -27,8 +27,7 @@
27
27
  "README.md"
28
28
  ],
29
29
  "publishConfig": {
30
- "access": "public",
31
- "provenance": false
30
+ "access": "public"
32
31
  },
33
32
  "keywords": [
34
33
  "ab-testing",