@ledgerhq/types-live 6.23.0 → 6.24.0-next.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.
@@ -1,4 +1,4 @@
1
- @ledgerhq/types-live:build: cache hit, replaying output a1085a2a58c63b45
1
+ @ledgerhq/types-live:build: cache hit, replaying output b130b17643b4741a
2
2
  @ledgerhq/types-live:build:
3
3
  @ledgerhq/types-live:build: > @ledgerhq/types-live@6.23.0 build /home/runner/work/ledger-live/ledger-live/libs/ledgerjs/packages/types-live
4
4
  @ledgerhq/types-live:build: > tsc && tsc -m ES6 --outDir lib-es
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # @ledgerhq/types-live
2
2
 
3
+ ## 6.24.0-next.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#814](https://github.com/LedgerHQ/ledger-live/pull/814) [`23c9bf994`](https://github.com/LedgerHQ/ledger-live/commit/23c9bf9949169d31d534f12dca48e21e35df05b2) Thanks [@juan-cortes](https://github.com/juan-cortes)! - Added development/QA tool for feature flags [Desktop]
8
+
9
+ ### Patch Changes
10
+
11
+ - [#958](https://github.com/LedgerHQ/ledger-live/pull/958) [`68c50cd94`](https://github.com/LedgerHQ/ledger-live/commit/68c50cd94bbe50a1bf284a2e9e5aed3781788754) Thanks [@ofreyssinet-ledger](https://github.com/ofreyssinet-ledger)! - Add properties to Feature type: "overridesRemote", "enabledOverriddenForCurrentLanguage"
12
+
3
13
  ## 6.23.0
4
14
 
5
15
  ### Minor Changes
package/README.md CHANGED
@@ -54,6 +54,8 @@ Ledger Live main types.
54
54
  * [languages_whitelisted](#languages_whitelisted)
55
55
  * [languages_whitelisted](#languages_whitelisted-1)
56
56
  * [languages_blacklisted](#languages_blacklisted)
57
+ * [enabledOverriddenForCurrentLanguage](#enabledoverriddenforcurrentlanguage)
58
+ * [overridesRemote](#overridesremote)
57
59
  * [params](#params)
58
60
  * [DefaultFeatures](#defaultfeatures)
59
61
  * [LedgerScriptParams](#ledgerscriptparams)
@@ -455,20 +457,22 @@ Type: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Globa
455
457
 
456
458
  Add others with union (e.g. "learn" | "market" | "foo")
457
459
 
458
- Type: (`"learn"` | `"pushNotifications"` | `"llmUsbFirmwareUpdate"` | `"ratings"` | `"counterValue"` | `"buyDeviceFromLive"` | `"ptxSmartRouting"` | `"currencyOsmosis"` | [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String))
460
+ Type: (`"learn"` | `"pushNotifications"` | `"llmUsbFirmwareUpdate"` | `"ratings"` | `"counterValue"` | `"buyDeviceFromLive"` | `"ptxSmartRouting"` | `"currencyOsmosis"` | `"ptxSmartRoutingMobile"` | [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String))
459
461
 
460
462
  ### Feature
461
463
 
462
464
  We use objects instead of direct booleans for potential future improvements
463
465
  like feature versioning etc
464
466
 
465
- Type: {enabled: [boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean), languages_whitelisted: \[[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)]?, languages_blacklisted: \[[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)]?, params: any?}
467
+ Type: {enabled: [boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean), languages_whitelisted: \[[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)]?, languages_blacklisted: \[[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)]?, enabledOverriddenForCurrentLanguage: [boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)?, overridesRemote: [boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)?, params: any?}
466
468
 
467
469
  #### Properties
468
470
 
469
471
  * `enabled` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)**
470
472
  * `languages_whitelisted` **\[[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)]?**
471
473
  * `languages_blacklisted` **\[[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)]?**
474
+ * `enabledOverriddenForCurrentLanguage` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)?**
475
+ * `overridesRemote` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)?**
472
476
  * `params` **any?**
473
477
 
474
478
  #### enabled
@@ -495,6 +499,18 @@ List of languages for which the feature is disabled
495
499
 
496
500
  Type: \[[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)]
497
501
 
502
+ #### enabledOverriddenForCurrentLanguage
503
+
504
+ Whether the remote value of `enabled` was overriden due to `languages_whitelisted` or `languages_blacklisted`
505
+
506
+ Type: [boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)
507
+
508
+ #### overridesRemote
509
+
510
+ Whether the remote value of this object was overriden locally
511
+
512
+ Type: [boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)
513
+
498
514
  #### params
499
515
 
500
516
  Additional params
package/lib/feature.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /** Add others with union (e.g. "learn" | "market" | "foo") */
2
- export declare type FeatureId = "learn" | "pushNotifications" | "llmUsbFirmwareUpdate" | "ratings" | "counterValue" | "buyDeviceFromLive" | "ptxSmartRouting" | "currencyOsmosis" | string;
2
+ export declare type FeatureId = "learn" | "pushNotifications" | "llmUsbFirmwareUpdate" | "ratings" | "counterValue" | "buyDeviceFromLive" | "ptxSmartRouting" | "currencyOsmosis" | "ptxSmartRoutingMobile" | string;
3
3
  /** We use objects instead of direct booleans for potential future improvements
4
4
  like feature versioning etc */
5
5
  export declare type Feature = {
@@ -10,6 +10,10 @@ export declare type Feature = {
10
10
  languages_whitelisted?: [string];
11
11
  /** List of languages for which the feature is disabled */
12
12
  languages_blacklisted?: [string];
13
+ /** Whether the remote value of `enabled` was overriden due to `languages_whitelisted` or `languages_blacklisted` */
14
+ enabledOverriddenForCurrentLanguage?: boolean;
15
+ /** Whether the remote value of this object was overriden locally */
16
+ overridesRemote?: boolean;
13
17
  /** Additional params */
14
18
  params?: any;
15
19
  };
@@ -1 +1 @@
1
- {"version":3,"file":"feature.d.ts","sourceRoot":"","sources":["../src/feature.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAC/D,oBAAY,SAAS,GACjB,OAAO,GACP,mBAAmB,GACnB,sBAAsB,GACtB,SAAS,GACT,cAAc,GACd,mBAAmB,GACnB,iBAAiB,GACjB,iBAAiB,GACjB,MAAM,CAAC;AAEX;8BAC8B;AAC9B,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,MAAM;AACN,oBAAY,eAAe,GAAG;KAAG,GAAG,IAAI,SAAS,GAAG,OAAO;CAAE,CAAC"}
1
+ {"version":3,"file":"feature.d.ts","sourceRoot":"","sources":["../src/feature.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAC/D,oBAAY,SAAS,GACjB,OAAO,GACP,mBAAmB,GACnB,sBAAsB,GACtB,SAAS,GACT,cAAc,GACd,mBAAmB,GACnB,iBAAiB,GACjB,iBAAiB,GACjB,uBAAuB,GACvB,MAAM,CAAC;AAEX;8BAC8B;AAC9B,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,oHAAoH;IACpH,mCAAmC,CAAC,EAAE,OAAO,CAAC;IAC9C,oEAAoE;IACpE,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,wBAAwB;IACxB,MAAM,CAAC,EAAE,GAAG,CAAC;CACd,CAAC;AAEF,MAAM;AACN,oBAAY,eAAe,GAAG;KAAG,GAAG,IAAI,SAAS,GAAG,OAAO;CAAE,CAAC"}
@@ -1,5 +1,5 @@
1
1
  /** Add others with union (e.g. "learn" | "market" | "foo") */
2
- export declare type FeatureId = "learn" | "pushNotifications" | "llmUsbFirmwareUpdate" | "ratings" | "counterValue" | "buyDeviceFromLive" | "ptxSmartRouting" | "currencyOsmosis" | string;
2
+ export declare type FeatureId = "learn" | "pushNotifications" | "llmUsbFirmwareUpdate" | "ratings" | "counterValue" | "buyDeviceFromLive" | "ptxSmartRouting" | "currencyOsmosis" | "ptxSmartRoutingMobile" | string;
3
3
  /** We use objects instead of direct booleans for potential future improvements
4
4
  like feature versioning etc */
5
5
  export declare type Feature = {
@@ -10,6 +10,10 @@ export declare type Feature = {
10
10
  languages_whitelisted?: [string];
11
11
  /** List of languages for which the feature is disabled */
12
12
  languages_blacklisted?: [string];
13
+ /** Whether the remote value of `enabled` was overriden due to `languages_whitelisted` or `languages_blacklisted` */
14
+ enabledOverriddenForCurrentLanguage?: boolean;
15
+ /** Whether the remote value of this object was overriden locally */
16
+ overridesRemote?: boolean;
13
17
  /** Additional params */
14
18
  params?: any;
15
19
  };
@@ -1 +1 @@
1
- {"version":3,"file":"feature.d.ts","sourceRoot":"","sources":["../src/feature.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAC/D,oBAAY,SAAS,GACjB,OAAO,GACP,mBAAmB,GACnB,sBAAsB,GACtB,SAAS,GACT,cAAc,GACd,mBAAmB,GACnB,iBAAiB,GACjB,iBAAiB,GACjB,MAAM,CAAC;AAEX;8BAC8B;AAC9B,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,MAAM;AACN,oBAAY,eAAe,GAAG;KAAG,GAAG,IAAI,SAAS,GAAG,OAAO;CAAE,CAAC"}
1
+ {"version":3,"file":"feature.d.ts","sourceRoot":"","sources":["../src/feature.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAC/D,oBAAY,SAAS,GACjB,OAAO,GACP,mBAAmB,GACnB,sBAAsB,GACtB,SAAS,GACT,cAAc,GACd,mBAAmB,GACnB,iBAAiB,GACjB,iBAAiB,GACjB,uBAAuB,GACvB,MAAM,CAAC;AAEX;8BAC8B;AAC9B,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,oHAAoH;IACpH,mCAAmC,CAAC,EAAE,OAAO,CAAC;IAC9C,oEAAoE;IACpE,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,wBAAwB;IACxB,MAAM,CAAC,EAAE,GAAG,CAAC;CACd,CAAC;AAEF,MAAM;AACN,oBAAY,eAAe,GAAG;KAAG,GAAG,IAAI,SAAS,GAAG,OAAO;CAAE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ledgerhq/types-live",
3
- "version": "6.23.0",
3
+ "version": "6.24.0-next.0",
4
4
  "description": "Ledger Live main types.",
5
5
  "keywords": [
6
6
  "Ledger"
@@ -26,7 +26,7 @@
26
26
  },
27
27
  "devDependencies": {
28
28
  "@ledgerhq/types-cryptoassets": "^6.23.0",
29
- "@ledgerhq/types-devices": "^6.22.0"
29
+ "@ledgerhq/types-devices": "^6.22.1-next.0"
30
30
  },
31
31
  "scripts": {
32
32
  "clean": "rimraf lib lib-es",
package/src/feature.ts CHANGED
@@ -8,6 +8,7 @@ export type FeatureId =
8
8
  | "buyDeviceFromLive"
9
9
  | "ptxSmartRouting"
10
10
  | "currencyOsmosis"
11
+ | "ptxSmartRoutingMobile"
11
12
  | string;
12
13
 
13
14
  /** We use objects instead of direct booleans for potential future improvements
@@ -20,6 +21,10 @@ export type Feature = {
20
21
  languages_whitelisted?: [string];
21
22
  /** List of languages for which the feature is disabled */
22
23
  languages_blacklisted?: [string];
24
+ /** Whether the remote value of `enabled` was overriden due to `languages_whitelisted` or `languages_blacklisted` */
25
+ enabledOverriddenForCurrentLanguage?: boolean;
26
+ /** Whether the remote value of this object was overriden locally */
27
+ overridesRemote?: boolean;
23
28
  /** Additional params */
24
29
  params?: any;
25
30
  };