@lightprotocol/stateless.js 0.23.0-beta.1 → 0.23.0-beta.3
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/dist/cjs/browser/constants.d.ts +16 -6
- package/dist/cjs/browser/index.cjs +1 -1
- package/dist/cjs/browser/index.cjs.map +1 -1
- package/dist/cjs/node/constants.d.ts +16 -6
- package/dist/cjs/node/index.cjs +1 -1
- package/dist/cjs/node/index.cjs.map +1 -1
- package/dist/es/browser/constants.d.ts +16 -6
- package/dist/es/browser/index.js +1 -1
- package/dist/es/browser/index.js.map +1 -1
- package/dist/types/index.d.ts +16 -6
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -375,19 +375,29 @@ declare enum VERSION {
|
|
|
375
375
|
V1 = "V1",
|
|
376
376
|
V2 = "V2"
|
|
377
377
|
}
|
|
378
|
-
/**
|
|
379
|
-
/**
|
|
380
|
-
* @internal
|
|
381
|
-
* Feature flags. Only use if you know what you are doing.
|
|
382
|
-
*/
|
|
383
378
|
declare const featureFlags: {
|
|
384
379
|
version: VERSION;
|
|
385
380
|
isV2: () => boolean;
|
|
386
381
|
/**
|
|
387
382
|
* Beta flag for interface methods (not yet deployed on mainnet).
|
|
388
|
-
*
|
|
383
|
+
* Checks programmatic override first, then env var LIGHT_PROTOCOL_BETA.
|
|
389
384
|
*/
|
|
390
385
|
isBeta: () => boolean;
|
|
386
|
+
/**
|
|
387
|
+
* Enable beta features programmatically.
|
|
388
|
+
* Call this once at app initialization to unlock interface methods.
|
|
389
|
+
*
|
|
390
|
+
* @example
|
|
391
|
+
* ```typescript
|
|
392
|
+
* import { featureFlags } from '@lightprotocol/stateless.js';
|
|
393
|
+
* featureFlags.enableBeta();
|
|
394
|
+
* ```
|
|
395
|
+
*/
|
|
396
|
+
enableBeta: () => void;
|
|
397
|
+
/**
|
|
398
|
+
* Disable beta features programmatically.
|
|
399
|
+
*/
|
|
400
|
+
disableBeta: () => void;
|
|
391
401
|
};
|
|
392
402
|
/**
|
|
393
403
|
* Error message for beta-gated interface methods.
|