@ledgerhq/types-live 6.24.3 → 6.25.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.
- package/.turbo/turbo-build.log +2 -2
- package/CHANGELOG.md +28 -0
- package/README.md +32 -2
- package/lib/feature.d.ts +7 -1
- package/lib/feature.d.ts.map +1 -1
- package/lib-es/feature.d.ts +7 -1
- package/lib-es/feature.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/feature.ts +9 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
@ledgerhq/types-live:build: cache hit, replaying output
|
|
1
|
+
@ledgerhq/types-live:build: cache hit, replaying output 6464e819b2014707
|
|
2
2
|
@ledgerhq/types-live:build:
|
|
3
|
-
@ledgerhq/types-live:build: > @ledgerhq/types-live@6.
|
|
3
|
+
@ledgerhq/types-live:build: > @ledgerhq/types-live@6.25.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
|
|
5
5
|
@ledgerhq/types-live:build:
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
# @ledgerhq/types-live
|
|
2
2
|
|
|
3
|
+
## 6.25.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#1366](https://github.com/LedgerHQ/ledger-live/pull/1366) [`955b045459`](https://github.com/LedgerHQ/ledger-live/commit/955b045459cf568fb3c96a732bc5ec0d8d831b19) Thanks [@cgrellard-ledger](https://github.com/cgrellard-ledger)! - Added a desktop_version param to the feature flags with the semver format to only enable a feature flag for specific versions of the desktop app
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- [#1447](https://github.com/LedgerHQ/ledger-live/pull/1447) [`777ccf8774`](https://github.com/LedgerHQ/ledger-live/commit/777ccf8774302cb17995a044f23972e2a9fc4045) Thanks [@LFBarreto](https://github.com/LFBarreto)! - Types - Add Referral Program Desktop Banner FeatureId Flag
|
|
12
|
+
|
|
13
|
+
* [#1474](https://github.com/LedgerHQ/ledger-live/pull/1474) [`2802e2d684`](https://github.com/LedgerHQ/ledger-live/commit/2802e2d6844a7e17127ea7d103fe0d1a45afa032) Thanks [@juan-cortes](https://github.com/juan-cortes)! - Introduce new feature flag for installSetOfApps
|
|
14
|
+
|
|
15
|
+
- [#1439](https://github.com/LedgerHQ/ledger-live/pull/1439) [`c33c82cd32`](https://github.com/LedgerHQ/ledger-live/commit/c33c82cd3291b651238659a8b9eababe6f953ece) Thanks [@LFBarreto](https://github.com/LFBarreto)! - Types - Add new feature flag FeatureId type
|
|
16
|
+
|
|
17
|
+
## 6.25.0-next.0
|
|
18
|
+
|
|
19
|
+
### Minor Changes
|
|
20
|
+
|
|
21
|
+
- [#1366](https://github.com/LedgerHQ/ledger-live/pull/1366) [`955b045459`](https://github.com/LedgerHQ/ledger-live/commit/955b045459cf568fb3c96a732bc5ec0d8d831b19) Thanks [@cgrellard-ledger](https://github.com/cgrellard-ledger)! - Added a desktop_version param to the feature flags with the semver format to only enable a feature flag for specific versions of the desktop app
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- [#1447](https://github.com/LedgerHQ/ledger-live/pull/1447) [`777ccf8774`](https://github.com/LedgerHQ/ledger-live/commit/777ccf8774302cb17995a044f23972e2a9fc4045) Thanks [@LFBarreto](https://github.com/LFBarreto)! - Types - Add Referral Program Desktop Banner FeatureId Flag
|
|
26
|
+
|
|
27
|
+
* [#1474](https://github.com/LedgerHQ/ledger-live/pull/1474) [`2802e2d684`](https://github.com/LedgerHQ/ledger-live/commit/2802e2d6844a7e17127ea7d103fe0d1a45afa032) Thanks [@juan-cortes](https://github.com/juan-cortes)! - Introduce new feature flag for installSetOfApps
|
|
28
|
+
|
|
29
|
+
- [#1439](https://github.com/LedgerHQ/ledger-live/pull/1439) [`c33c82cd32`](https://github.com/LedgerHQ/ledger-live/commit/c33c82cd3291b651238659a8b9eababe6f953ece) Thanks [@LFBarreto](https://github.com/LFBarreto)! - Types - Add new feature flag FeatureId type
|
|
30
|
+
|
|
3
31
|
## 6.24.3
|
|
4
32
|
|
|
5
33
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -51,6 +51,10 @@ Ledger Live main types.
|
|
|
51
51
|
* [Feature](#feature)
|
|
52
52
|
* [Properties](#properties-13)
|
|
53
53
|
* [enabled](#enabled)
|
|
54
|
+
* [desktop_version](#desktop_version)
|
|
55
|
+
* [desktop_version](#desktop_version-1)
|
|
56
|
+
* [desktop_version](#desktop_version-2)
|
|
57
|
+
* [enabledOverriddenForCurrentDesktopVersion](#enabledoverriddenforcurrentdesktopversion)
|
|
54
58
|
* [languages_whitelisted](#languages_whitelisted)
|
|
55
59
|
* [languages_whitelisted](#languages_whitelisted-1)
|
|
56
60
|
* [languages_blacklisted](#languages_blacklisted)
|
|
@@ -482,18 +486,20 @@ Type: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Globa
|
|
|
482
486
|
|
|
483
487
|
Add others with union (e.g. "learn" | "market" | "foo")
|
|
484
488
|
|
|
485
|
-
Type: (`"learn"` | `"pushNotifications"` | `"llmUsbFirmwareUpdate"` | `"ratings"` | `"counterValue"` | `"deviceLocalization"` | `"buyDeviceFromLive"` | `"ptxSmartRouting"` | `"currencyOsmosis"` | `"currencyOsmosisMobile"` | `"currencyFantom"` | `"currencyMoonbeam"` | `"currencyCronos"` | `"currencySongbird"` | `"currencyFlare"` | `"currencyFantomMobile"` | `"currencyMoonbeamMobile"` | `"currencyCronosMobile"` | `"currencySongbirdMobile"` | `"currencyFlareMobile"` | `"ptxSmartRoutingMobile"` | `"mockFeature"` | `"walletConnectLiveApp"` | `"customImage"` | `"referralProgramDiscoverCard"`)
|
|
489
|
+
Type: (`"learn"` | `"pushNotifications"` | `"llmUsbFirmwareUpdate"` | `"ratings"` | `"counterValue"` | `"deviceLocalization"` | `"deviceInitialApps"` | `"buyDeviceFromLive"` | `"ptxSmartRouting"` | `"currencyOsmosis"` | `"currencyOsmosisMobile"` | `"currencyFantom"` | `"currencyMoonbeam"` | `"currencyCronos"` | `"currencySongbird"` | `"currencyFlare"` | `"currencyFantomMobile"` | `"currencyMoonbeamMobile"` | `"currencyCronosMobile"` | `"currencySongbirdMobile"` | `"currencyFlareMobile"` | `"ptxSmartRoutingMobile"` | `"mockFeature"` | `"walletConnectLiveApp"` | `"customImage"` | `"referralProgramDiscoverCard"` | `"referralProgramDesktopBanner"`)
|
|
486
490
|
|
|
487
491
|
### Feature
|
|
488
492
|
|
|
489
493
|
We use objects instead of direct booleans for potential future improvements
|
|
490
494
|
like feature versioning etc
|
|
491
495
|
|
|
492
|
-
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?}
|
|
496
|
+
Type: {enabled: [boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean), desktop_version: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?, enabledOverriddenForCurrentDesktopVersion: [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?}
|
|
493
497
|
|
|
494
498
|
#### Properties
|
|
495
499
|
|
|
496
500
|
* `enabled` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)**
|
|
501
|
+
* `desktop_version` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?**
|
|
502
|
+
* `enabledOverriddenForCurrentDesktopVersion` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)?**
|
|
497
503
|
* `languages_whitelisted` **\[[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)]?**
|
|
498
504
|
* `languages_blacklisted` **\[[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)]?**
|
|
499
505
|
* `enabledOverriddenForCurrentLanguage` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)?**
|
|
@@ -506,6 +512,30 @@ If false, the feature is disabled (for every languages regardless of the languag
|
|
|
506
512
|
|
|
507
513
|
Type: [boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)
|
|
508
514
|
|
|
515
|
+
#### desktop_version
|
|
516
|
+
|
|
517
|
+
The `desktop_version` option is desktop specific, it has no impact on mobile
|
|
518
|
+
|
|
519
|
+
Type: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)
|
|
520
|
+
|
|
521
|
+
#### desktop_version
|
|
522
|
+
|
|
523
|
+
If set, the feature is disabled when the desktop app version does not satisfies this param
|
|
524
|
+
|
|
525
|
+
Type: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)
|
|
526
|
+
|
|
527
|
+
#### desktop_version
|
|
528
|
+
|
|
529
|
+
It should respect the semantic versioning specification (https://semver.org/)
|
|
530
|
+
|
|
531
|
+
Type: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)
|
|
532
|
+
|
|
533
|
+
#### enabledOverriddenForCurrentDesktopVersion
|
|
534
|
+
|
|
535
|
+
Whether the remote value of `enabled` was overriden due to `desktop_version`
|
|
536
|
+
|
|
537
|
+
Type: [boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)
|
|
538
|
+
|
|
509
539
|
#### languages_whitelisted
|
|
510
540
|
|
|
511
541
|
You can optionnally use one of the two following options (languages_whitelisted and languages_blacklisted) (Only implemented on mobile for now)
|
package/lib/feature.d.ts
CHANGED
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
/** Add others with union (e.g. "learn" | "market" | "foo") */
|
|
2
|
-
export declare type FeatureId = "learn" | "pushNotifications" | "llmUsbFirmwareUpdate" | "ratings" | "counterValue" | "deviceLocalization" | "buyDeviceFromLive" | "ptxSmartRouting" | "currencyOsmosis" | "currencyOsmosisMobile" | "currencyFantom" | "currencyMoonbeam" | "currencyCronos" | "currencySongbird" | "currencyFlare" | "currencyFantomMobile" | "currencyMoonbeamMobile" | "currencyCronosMobile" | "currencySongbirdMobile" | "currencyFlareMobile" | "ptxSmartRoutingMobile" | "mockFeature" | "walletConnectLiveApp" | "customImage" | "referralProgramDiscoverCard";
|
|
2
|
+
export declare type FeatureId = "learn" | "pushNotifications" | "llmUsbFirmwareUpdate" | "ratings" | "counterValue" | "deviceLocalization" | "deviceInitialApps" | "buyDeviceFromLive" | "ptxSmartRouting" | "currencyOsmosis" | "currencyOsmosisMobile" | "currencyFantom" | "currencyMoonbeam" | "currencyCronos" | "currencySongbird" | "currencyFlare" | "currencyFantomMobile" | "currencyMoonbeamMobile" | "currencyCronosMobile" | "currencySongbirdMobile" | "currencyFlareMobile" | "ptxSmartRoutingMobile" | "mockFeature" | "walletConnectLiveApp" | "customImage" | "referralProgramDiscoverCard" | "referralProgramDesktopBanner";
|
|
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 = {
|
|
6
6
|
/** If false, the feature is disabled (for every languages regardless of the languages_whitelisted option) */
|
|
7
7
|
enabled: boolean;
|
|
8
|
+
/** The `desktop_version` option is desktop specific, it has no impact on mobile */
|
|
9
|
+
/** If set, the feature is disabled when the desktop app version does not satisfies this param */
|
|
10
|
+
/** It should respect the semantic versioning specification (https://semver.org/) */
|
|
11
|
+
desktop_version?: string;
|
|
12
|
+
/** Whether the remote value of `enabled` was overriden due to `desktop_version` */
|
|
13
|
+
enabledOverriddenForCurrentDesktopVersion?: boolean;
|
|
8
14
|
/** You can optionnally use one of the two following options (languages_whitelisted and languages_blacklisted) (Only implemented on mobile for now) */
|
|
9
15
|
/** List of languages for which the feature is enabled (it will be disabled by default for all of the others) */
|
|
10
16
|
languages_whitelisted?: [string];
|
package/lib/feature.d.ts.map
CHANGED
|
@@ -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,oBAAoB,GACpB,mBAAmB,GACnB,iBAAiB,GACjB,iBAAiB,GACjB,uBAAuB,GACvB,gBAAgB,GAChB,kBAAkB,GAClB,gBAAgB,GAChB,kBAAkB,GAClB,eAAe,GACf,sBAAsB,GACtB,wBAAwB,GACxB,sBAAsB,GACtB,wBAAwB,GACxB,qBAAqB,GACrB,uBAAuB,GACvB,aAAa,GACb,sBAAsB,GACtB,aAAa,GACb,6BAA6B,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,oBAAoB,GACpB,mBAAmB,GACnB,mBAAmB,GACnB,iBAAiB,GACjB,iBAAiB,GACjB,uBAAuB,GACvB,gBAAgB,GAChB,kBAAkB,GAClB,gBAAgB,GAChB,kBAAkB,GAClB,eAAe,GACf,sBAAsB,GACtB,wBAAwB,GACxB,sBAAsB,GACtB,wBAAwB,GACxB,qBAAqB,GACrB,uBAAuB,GACvB,aAAa,GACb,sBAAsB,GACtB,aAAa,GACb,6BAA6B,GAC7B,8BAA8B,CAAC;AAEnC;8BAC8B;AAC9B,oBAAY,OAAO,GAAG;IACpB,6GAA6G;IAC7G,OAAO,EAAE,OAAO,CAAC;IACjB,mFAAmF;IACnF,iGAAiG;IACjG,oFAAoF;IACpF,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,mFAAmF;IACnF,yCAAyC,CAAC,EAAE,OAAO,CAAC;IACpD,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,CAAC,CAAC,EAAE,OAAO;CAAE,CAAC"}
|
package/lib-es/feature.d.ts
CHANGED
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
/** Add others with union (e.g. "learn" | "market" | "foo") */
|
|
2
|
-
export declare type FeatureId = "learn" | "pushNotifications" | "llmUsbFirmwareUpdate" | "ratings" | "counterValue" | "deviceLocalization" | "buyDeviceFromLive" | "ptxSmartRouting" | "currencyOsmosis" | "currencyOsmosisMobile" | "currencyFantom" | "currencyMoonbeam" | "currencyCronos" | "currencySongbird" | "currencyFlare" | "currencyFantomMobile" | "currencyMoonbeamMobile" | "currencyCronosMobile" | "currencySongbirdMobile" | "currencyFlareMobile" | "ptxSmartRoutingMobile" | "mockFeature" | "walletConnectLiveApp" | "customImage" | "referralProgramDiscoverCard";
|
|
2
|
+
export declare type FeatureId = "learn" | "pushNotifications" | "llmUsbFirmwareUpdate" | "ratings" | "counterValue" | "deviceLocalization" | "deviceInitialApps" | "buyDeviceFromLive" | "ptxSmartRouting" | "currencyOsmosis" | "currencyOsmosisMobile" | "currencyFantom" | "currencyMoonbeam" | "currencyCronos" | "currencySongbird" | "currencyFlare" | "currencyFantomMobile" | "currencyMoonbeamMobile" | "currencyCronosMobile" | "currencySongbirdMobile" | "currencyFlareMobile" | "ptxSmartRoutingMobile" | "mockFeature" | "walletConnectLiveApp" | "customImage" | "referralProgramDiscoverCard" | "referralProgramDesktopBanner";
|
|
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 = {
|
|
6
6
|
/** If false, the feature is disabled (for every languages regardless of the languages_whitelisted option) */
|
|
7
7
|
enabled: boolean;
|
|
8
|
+
/** The `desktop_version` option is desktop specific, it has no impact on mobile */
|
|
9
|
+
/** If set, the feature is disabled when the desktop app version does not satisfies this param */
|
|
10
|
+
/** It should respect the semantic versioning specification (https://semver.org/) */
|
|
11
|
+
desktop_version?: string;
|
|
12
|
+
/** Whether the remote value of `enabled` was overriden due to `desktop_version` */
|
|
13
|
+
enabledOverriddenForCurrentDesktopVersion?: boolean;
|
|
8
14
|
/** You can optionnally use one of the two following options (languages_whitelisted and languages_blacklisted) (Only implemented on mobile for now) */
|
|
9
15
|
/** List of languages for which the feature is enabled (it will be disabled by default for all of the others) */
|
|
10
16
|
languages_whitelisted?: [string];
|
package/lib-es/feature.d.ts.map
CHANGED
|
@@ -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,oBAAoB,GACpB,mBAAmB,GACnB,iBAAiB,GACjB,iBAAiB,GACjB,uBAAuB,GACvB,gBAAgB,GAChB,kBAAkB,GAClB,gBAAgB,GAChB,kBAAkB,GAClB,eAAe,GACf,sBAAsB,GACtB,wBAAwB,GACxB,sBAAsB,GACtB,wBAAwB,GACxB,qBAAqB,GACrB,uBAAuB,GACvB,aAAa,GACb,sBAAsB,GACtB,aAAa,GACb,6BAA6B,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,oBAAoB,GACpB,mBAAmB,GACnB,mBAAmB,GACnB,iBAAiB,GACjB,iBAAiB,GACjB,uBAAuB,GACvB,gBAAgB,GAChB,kBAAkB,GAClB,gBAAgB,GAChB,kBAAkB,GAClB,eAAe,GACf,sBAAsB,GACtB,wBAAwB,GACxB,sBAAsB,GACtB,wBAAwB,GACxB,qBAAqB,GACrB,uBAAuB,GACvB,aAAa,GACb,sBAAsB,GACtB,aAAa,GACb,6BAA6B,GAC7B,8BAA8B,CAAC;AAEnC;8BAC8B;AAC9B,oBAAY,OAAO,GAAG;IACpB,6GAA6G;IAC7G,OAAO,EAAE,OAAO,CAAC;IACjB,mFAAmF;IACnF,iGAAiG;IACjG,oFAAoF;IACpF,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,mFAAmF;IACnF,yCAAyC,CAAC,EAAE,OAAO,CAAC;IACpD,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,CAAC,CAAC,EAAE,OAAO;CAAE,CAAC"}
|
package/package.json
CHANGED
package/src/feature.ts
CHANGED
|
@@ -6,6 +6,7 @@ export type FeatureId =
|
|
|
6
6
|
| "ratings"
|
|
7
7
|
| "counterValue"
|
|
8
8
|
| "deviceLocalization"
|
|
9
|
+
| "deviceInitialApps"
|
|
9
10
|
| "buyDeviceFromLive"
|
|
10
11
|
| "ptxSmartRouting"
|
|
11
12
|
| "currencyOsmosis"
|
|
@@ -24,13 +25,20 @@ export type FeatureId =
|
|
|
24
25
|
| "mockFeature"
|
|
25
26
|
| "walletConnectLiveApp"
|
|
26
27
|
| "customImage"
|
|
27
|
-
| "referralProgramDiscoverCard"
|
|
28
|
+
| "referralProgramDiscoverCard"
|
|
29
|
+
| "referralProgramDesktopBanner";
|
|
28
30
|
|
|
29
31
|
/** We use objects instead of direct booleans for potential future improvements
|
|
30
32
|
like feature versioning etc */
|
|
31
33
|
export type Feature = {
|
|
32
34
|
/** If false, the feature is disabled (for every languages regardless of the languages_whitelisted option) */
|
|
33
35
|
enabled: boolean;
|
|
36
|
+
/** The `desktop_version` option is desktop specific, it has no impact on mobile */
|
|
37
|
+
/** If set, the feature is disabled when the desktop app version does not satisfies this param */
|
|
38
|
+
/** It should respect the semantic versioning specification (https://semver.org/) */
|
|
39
|
+
desktop_version?: string;
|
|
40
|
+
/** Whether the remote value of `enabled` was overriden due to `desktop_version` */
|
|
41
|
+
enabledOverriddenForCurrentDesktopVersion?: boolean;
|
|
34
42
|
/** You can optionnally use one of the two following options (languages_whitelisted and languages_blacklisted) (Only implemented on mobile for now) */
|
|
35
43
|
/** List of languages for which the feature is enabled (it will be disabled by default for all of the others) */
|
|
36
44
|
languages_whitelisted?: [string];
|