@ledgerhq/live-common 25.1.0-next.1 → 25.1.0-next.2
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.
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
export declare type FeatureId = "learn" | "pushNotifications" | "llmUsbFirmwareUpdate" | "ratings" | "counterValue" | "buyDeviceFromLive" | "ptxSmartRouting" | string;
|
|
2
2
|
export declare type Feature = {
|
|
3
|
+
/** If false, the feature is disabled (for every languages regardless of the languages_whitelisted option) */
|
|
3
4
|
enabled: boolean;
|
|
5
|
+
/** You can optionnally use one of the two following options (languages_whitelisted and languages_blacklisted) (Only implemented on mobile for now) */
|
|
6
|
+
/** List of languages for which the feature is enabled (it will be disabled by default for all of the others) */
|
|
7
|
+
languages_whitelisted?: [string];
|
|
8
|
+
/** List of languages for which the feature is disabled */
|
|
9
|
+
languages_blacklisted?: [string];
|
|
10
|
+
/** Additional params */
|
|
4
11
|
params?: any;
|
|
5
12
|
};
|
|
6
13
|
export declare type DefaultFeatures = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/featureFlags/types.ts"],"names":[],"mappings":"AACA,oBAAY,SAAS,GACjB,OAAO,GACP,mBAAmB,GACnB,sBAAsB,GACtB,SAAS,GACT,cAAc,GACd,mBAAmB,GACnB,iBAAiB,GACjB,MAAM,CAAC;AAIX,oBAAY,OAAO,GAAG;IACpB,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE,GAAG,CAAC;CACd,CAAC;AAEF,oBAAY,eAAe,GAAG;KAAG,GAAG,IAAI,SAAS,GAAG,OAAO;CAAE,CAAC"}
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/featureFlags/types.ts"],"names":[],"mappings":"AACA,oBAAY,SAAS,GACjB,OAAO,GACP,mBAAmB,GACnB,sBAAsB,GACtB,SAAS,GACT,cAAc,GACd,mBAAmB,GACnB,iBAAiB,GACjB,MAAM,CAAC;AAIX,oBAAY,OAAO,GAAG;IACpB,6GAA6G;IAC7G,OAAO,EAAE,OAAO,CAAC;IACjB,sJAAsJ;IACtJ,gHAAgH;IAChH,qBAAqB,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC;IACjC,0DAA0D;IAC1D,qBAAqB,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC;IACjC,wBAAwB;IACxB,MAAM,CAAC,EAAE,GAAG,CAAC;CACd,CAAC;AAEF,oBAAY,eAAe,GAAG;KAAG,GAAG,IAAI,SAAS,GAAG,OAAO;CAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -12,7 +12,14 @@ export type FeatureId =
|
|
|
12
12
|
// We use objects instead of direct booleans for potential future improvements
|
|
13
13
|
// like feature versioning etc
|
|
14
14
|
export type Feature = {
|
|
15
|
+
/** If false, the feature is disabled (for every languages regardless of the languages_whitelisted option) */
|
|
15
16
|
enabled: boolean;
|
|
17
|
+
/** You can optionnally use one of the two following options (languages_whitelisted and languages_blacklisted) (Only implemented on mobile for now) */
|
|
18
|
+
/** List of languages for which the feature is enabled (it will be disabled by default for all of the others) */
|
|
19
|
+
languages_whitelisted?: [string];
|
|
20
|
+
/** List of languages for which the feature is disabled */
|
|
21
|
+
languages_blacklisted?: [string];
|
|
22
|
+
/** Additional params */
|
|
16
23
|
params?: any;
|
|
17
24
|
};
|
|
18
25
|
|