@ledgerhq/types-live 6.28.0 → 6.28.1
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 +1 -1
- package/CHANGELOG.md +16 -0
- package/README.md +16 -9
- package/lib/feature.d.ts +1 -1
- package/lib/feature.d.ts.map +1 -1
- package/lib/postOnboarding.d.ts +12 -6
- package/lib/postOnboarding.d.ts.map +1 -1
- package/lib/postOnboarding.js +2 -0
- package/lib/postOnboarding.js.map +1 -1
- package/lib-es/feature.d.ts +1 -1
- package/lib-es/feature.d.ts.map +1 -1
- package/lib-es/postOnboarding.d.ts +12 -6
- package/lib-es/postOnboarding.d.ts.map +1 -1
- package/lib-es/postOnboarding.js +2 -0
- package/lib-es/postOnboarding.js.map +1 -1
- package/package.json +2 -2
- package/src/feature.ts +7 -2
- package/src/postOnboarding.ts +13 -6
package/.turbo/turbo-build.log
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @ledgerhq/types-live
|
|
2
2
|
|
|
3
|
+
## 6.28.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#2066](https://github.com/LedgerHQ/ledger-live/pull/2066) [`3a267c1424`](https://github.com/LedgerHQ/ledger-live/commit/3a267c14241ebc9184490e7eb81b5d4bcc94b092) Thanks [@ofreyssinet-ledger](https://github.com/ofreyssinet-ledger)! - New feature flag staxWelcomeScreen
|
|
8
|
+
|
|
9
|
+
* [#2066](https://github.com/LedgerHQ/ledger-live/pull/2066) [`3a267c1424`](https://github.com/LedgerHQ/ledger-live/commit/3a267c14241ebc9184490e7eb81b5d4bcc94b092) Thanks [@ofreyssinet-ledger](https://github.com/ofreyssinet-ledger)! - Remove useless field from PostOnboardingAction type
|
|
10
|
+
|
|
11
|
+
## 6.28.1-next.0
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [#2066](https://github.com/LedgerHQ/ledger-live/pull/2066) [`3a267c1424`](https://github.com/LedgerHQ/ledger-live/commit/3a267c14241ebc9184490e7eb81b5d4bcc94b092) Thanks [@ofreyssinet-ledger](https://github.com/ofreyssinet-ledger)! - New feature flag staxWelcomeScreen
|
|
16
|
+
|
|
17
|
+
* [#2066](https://github.com/LedgerHQ/ledger-live/pull/2066) [`3a267c1424`](https://github.com/LedgerHQ/ledger-live/commit/3a267c14241ebc9184490e7eb81b5d4bcc94b092) Thanks [@ofreyssinet-ledger](https://github.com/ofreyssinet-ledger)! - Remove useless field from PostOnboardingAction type
|
|
18
|
+
|
|
3
19
|
## 6.28.0
|
|
4
20
|
|
|
5
21
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -147,13 +147,14 @@ Ledger Live main types.
|
|
|
147
147
|
* [navigationParams](#navigationparams)
|
|
148
148
|
* [startAction](#startaction)
|
|
149
149
|
* [PostOnboardingAction](#postonboardingaction)
|
|
150
|
+
* [disabled](#disabled)
|
|
150
151
|
* [featureFlagId](#featureflagid)
|
|
151
152
|
* [Icon](#icon)
|
|
152
153
|
* [title](#title)
|
|
154
|
+
* [titleCompleted](#titlecompleted)
|
|
153
155
|
* [description](#description)
|
|
154
156
|
* [tagLabel](#taglabel)
|
|
155
157
|
* [actionCompletedPopupLabel](#actioncompletedpopuplabel)
|
|
156
|
-
* [actionCompletedHubTitle](#actioncompletedhubtitle)
|
|
157
158
|
* [startEvent](#startevent)
|
|
158
159
|
* [startEventProperties](#starteventproperties)
|
|
159
160
|
* [PostOnboardingActionState](#postonboardingactionstate)
|
|
@@ -491,7 +492,7 @@ Type: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Globa
|
|
|
491
492
|
|
|
492
493
|
Add others with union (e.g. "learn" | "market" | "foo")
|
|
493
494
|
|
|
494
|
-
Type: (`"learn"` | `"brazePushNotifications"` | `"llmNewDeviceSelection"` | `"llmUsbFirmwareUpdate"` | `"
|
|
495
|
+
Type: (`"learn"` | `"brazePushNotifications"` | `"brazeLearn"` | `"llmNewDeviceSelection"` | `"llmUsbFirmwareUpdate"` | `"ratingsPrompt"` | `"counterValue"` | `"deviceLocalization"` | `"deviceInitialApps"` | `"buyDeviceFromLive"` | `"ptxSmartRouting"` | `"currencyOsmosis"` | `"currencyOsmosisMobile"` | `"currencyFantom"` | `"currencyMoonbeam"` | `"currencyCronos"` | `"currencySongbird"` | `"currencyFlare"` | `"currencyNear"` | `"currencyFantomMobile"` | `"currencyMoonbeamMobile"` | `"currencyCronosMobile"` | `"currencySongbirdMobile"` | `"currencyFlareMobile"` | `"ptxSmartRoutingMobile"` | `"mockFeature"` | `"syncOnboarding"` | `"walletConnectLiveApp"` | `"customImage"` | `"referralProgramDiscoverCard"` | `"referralProgramDesktopBanner"` | `"disableNftSend"` | `"disableNftLedgerMarket"` | `"disableNftRaribleOpensea"` | `"walletNftGallery"` | `"receiveStakingFlowConfigDesktop"` | `"ethStakingProviders"` | `"storyly"` | `"staxWelcomeScreen"` | `"postOnboardingClaimNft"` | `"postOnboardingAssetsTransfer"` | `"firebaseEnvironmentReadOnly"` | `"protectServicesMobile"` | `"swapShowDexQuotes"`)
|
|
495
496
|
|
|
496
497
|
### Feature
|
|
497
498
|
|
|
@@ -1165,6 +1166,12 @@ action.
|
|
|
1165
1166
|
|
|
1166
1167
|
Type: any
|
|
1167
1168
|
|
|
1169
|
+
#### disabled
|
|
1170
|
+
|
|
1171
|
+
Allow to display the action without letting the user access its flow
|
|
1172
|
+
|
|
1173
|
+
Type: [boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)
|
|
1174
|
+
|
|
1168
1175
|
#### featureFlagId
|
|
1169
1176
|
|
|
1170
1177
|
If this action is linked to a feature that is enabled by a feature flag,
|
|
@@ -1184,6 +1191,13 @@ Title displayed for this action in the post onboarding hub.
|
|
|
1184
1191
|
|
|
1185
1192
|
Type: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)
|
|
1186
1193
|
|
|
1194
|
+
#### titleCompleted
|
|
1195
|
+
|
|
1196
|
+
Title displayed for this action in the post onboarding hub when the action
|
|
1197
|
+
is completed.
|
|
1198
|
+
|
|
1199
|
+
Type: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)
|
|
1200
|
+
|
|
1187
1201
|
#### description
|
|
1188
1202
|
|
|
1189
1203
|
Description displayed for this action in the post onboarding hub.
|
|
@@ -1203,13 +1217,6 @@ after completing this action.
|
|
|
1203
1217
|
|
|
1204
1218
|
Type: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)
|
|
1205
1219
|
|
|
1206
|
-
#### actionCompletedHubTitle
|
|
1207
|
-
|
|
1208
|
-
Will be used as a title success alert at the bottom of the post-onboarding
|
|
1209
|
-
hub after completing this action.
|
|
1210
|
-
|
|
1211
|
-
Type: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)
|
|
1212
|
-
|
|
1213
1220
|
#### startEvent
|
|
1214
1221
|
|
|
1215
1222
|
Event that will be dispatched when starting this action.
|
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" | "brazePushNotifications" | "llmNewDeviceSelection" | "llmUsbFirmwareUpdate" | "
|
|
2
|
+
export declare type FeatureId = "learn" | "brazePushNotifications" | "brazeLearn" | "llmNewDeviceSelection" | "llmUsbFirmwareUpdate" | "ratingsPrompt" | "counterValue" | "deviceLocalization" | "deviceInitialApps" | "buyDeviceFromLive" | "ptxSmartRouting" | "currencyOsmosis" | "currencyOsmosisMobile" | "currencyFantom" | "currencyMoonbeam" | "currencyCronos" | "currencySongbird" | "currencyFlare" | "currencyNear" | "currencyFantomMobile" | "currencyMoonbeamMobile" | "currencyCronosMobile" | "currencySongbirdMobile" | "currencyFlareMobile" | "ptxSmartRoutingMobile" | "mockFeature" | "syncOnboarding" | "walletConnectLiveApp" | "customImage" | "referralProgramDiscoverCard" | "referralProgramDesktopBanner" | "disableNftSend" | "disableNftLedgerMarket" | "disableNftRaribleOpensea" | "walletNftGallery" | "receiveStakingFlowConfigDesktop" | "ethStakingProviders" | "storyly" | "staxWelcomeScreen" | "postOnboardingClaimNft" | "postOnboardingAssetsTransfer" | "firebaseEnvironmentReadOnly" | "protectServicesMobile" | "swapShowDexQuotes";
|
|
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 = {
|
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,wBAAwB,GACxB,uBAAuB,GACvB,sBAAsB,GACtB,
|
|
1
|
+
{"version":3,"file":"feature.d.ts","sourceRoot":"","sources":["../src/feature.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAC/D,oBAAY,SAAS,GACjB,OAAO,GACP,wBAAwB,GACxB,YAAY,GACZ,uBAAuB,GACvB,sBAAsB,GACtB,eAAe,GACf,cAAc,GACd,oBAAoB,GACpB,mBAAmB,GACnB,mBAAmB,GACnB,iBAAiB,GACjB,iBAAiB,GACjB,uBAAuB,GACvB,gBAAgB,GAChB,kBAAkB,GAClB,gBAAgB,GAChB,kBAAkB,GAClB,eAAe,GACf,cAAc,GACd,sBAAsB,GACtB,wBAAwB,GACxB,sBAAsB,GACtB,wBAAwB,GACxB,qBAAqB,GACrB,uBAAuB,GACvB,aAAa,GACb,gBAAgB,GAChB,sBAAsB,GACtB,aAAa,GACb,6BAA6B,GAC7B,8BAA8B,GAC9B,gBAAgB,GAChB,wBAAwB,GACxB,0BAA0B,GAC1B,kBAAkB,GAClB,iCAAiC,GACjC,qBAAqB,GACrB,SAAS,GACT,mBAAmB,GACnB,wBAAwB,GACxB,8BAA8B,GAC9B,6BAA6B,GAC7B,uBAAuB,GACvB,mBAAmB,CAAC;AAExB;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,iFAAiF;IACjF,gGAAgG;IAChG,oFAAoF;IACpF,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,kFAAkF;IAClF,wCAAwC,CAAC,EAAE,OAAO,CAAC;IACnD,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,uFAAuF;IACvF,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/postOnboarding.d.ts
CHANGED
|
@@ -7,7 +7,9 @@ export declare enum PostOnboardingActionId {
|
|
|
7
7
|
claimMock = "claimMock",
|
|
8
8
|
migrateAssetsMock = "migrateAssetsMock",
|
|
9
9
|
personalizeMock = "personalizeMock",
|
|
10
|
-
customImage = "customImage"
|
|
10
|
+
customImage = "customImage",
|
|
11
|
+
claimNft = "claimNft",
|
|
12
|
+
assetsTransfer = "assetsTransfer"
|
|
11
13
|
}
|
|
12
14
|
export declare type WithNavigationParams = {
|
|
13
15
|
/**
|
|
@@ -31,6 +33,10 @@ declare type WithStartActionFunction = {
|
|
|
31
33
|
*/
|
|
32
34
|
export declare type PostOnboardingAction = {
|
|
33
35
|
id: PostOnboardingActionId;
|
|
36
|
+
/**
|
|
37
|
+
* Allow to display the action without letting the user access its flow
|
|
38
|
+
*/
|
|
39
|
+
disabled?: boolean;
|
|
34
40
|
/**
|
|
35
41
|
* If this action is linked to a feature that is enabled by a feature flag,
|
|
36
42
|
* use this property to identify the feature flag.
|
|
@@ -47,6 +53,11 @@ export declare type PostOnboardingAction = {
|
|
|
47
53
|
* Title displayed for this action in the post onboarding hub.
|
|
48
54
|
*/
|
|
49
55
|
title: string;
|
|
56
|
+
/**
|
|
57
|
+
* Title displayed for this action in the post onboarding hub when the action
|
|
58
|
+
* is completed.
|
|
59
|
+
*/
|
|
60
|
+
titleCompleted: string;
|
|
50
61
|
/**
|
|
51
62
|
* Description displayed for this action in the post onboarding hub.
|
|
52
63
|
*/
|
|
@@ -60,11 +71,6 @@ export declare type PostOnboardingAction = {
|
|
|
60
71
|
* after completing this action.
|
|
61
72
|
* */
|
|
62
73
|
actionCompletedPopupLabel: string;
|
|
63
|
-
/**
|
|
64
|
-
* Will be used as a title success alert at the bottom of the post-onboarding
|
|
65
|
-
* hub after completing this action.
|
|
66
|
-
* */
|
|
67
|
-
actionCompletedHubTitle: string;
|
|
68
74
|
/**
|
|
69
75
|
* Event that will be dispatched when starting this action.
|
|
70
76
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"postOnboarding.d.ts","sourceRoot":"","sources":["../src/postOnboarding.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,GAAG,CAAC;AAE9B;;GAEG;AACH,oBAAY,sBAAsB;IAChC,SAAS,cAAc;IACvB,iBAAiB,sBAAsB;IACvC,eAAe,oBAAoB;IACnC,WAAW,gBAAgB;
|
|
1
|
+
{"version":3,"file":"postO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AAG;IACtC;;;OAGG;IACH,SAAS,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF;;;;GAIG;AACH,oBAAY,mBAAmB,GAAG;IAChC;;OAEG;IACH,aAAa,EAAE,aAAa,GAAG,IAAI,CAAC;IAEpC;;OAEG;IACH,yBAAyB,EAAE,OAAO,CAAC;IAEnC;;;;OAIG;IACH,iBAAiB,EAAE,sBAAsB,EAAE,CAAC;IAE5C;;OAEG;IACH,gBAAgB,EAAE;SAAG,GAAG,IAAI,sBAAsB,CAAC,CAAC,EAAE,OAAO;KAAE,CAAC;IAEhE;;;;;OAKG;IACH,mBAAmB,EAAE,sBAAsB,GAAG,IAAI,CAAC;CACpD,CAAC;AAEF;;;GAGG;AACH,oBAAY,sBAAsB,GAAG;IACnC,aAAa,EAAE,aAAa,GAAG,IAAI,CAAC;IACpC,mBAAmB,EAAE,oBAAoB,GAAG,IAAI,CAAC;IACjD,YAAY,EAAE,CAAC,oBAAoB,GAAG,yBAAyB,CAAC,EAAE,CAAC;CACpE,CAAC"}
|
package/lib/postOnboarding.js
CHANGED
|
@@ -10,5 +10,7 @@ var PostOnboardingActionId;
|
|
|
10
10
|
PostOnboardingActionId["migrateAssetsMock"] = "migrateAssetsMock";
|
|
11
11
|
PostOnboardingActionId["personalizeMock"] = "personalizeMock";
|
|
12
12
|
PostOnboardingActionId["customImage"] = "customImage";
|
|
13
|
+
PostOnboardingActionId["claimNft"] = "claimNft";
|
|
14
|
+
PostOnboardingActionId["assetsTransfer"] = "assetsTransfer";
|
|
13
15
|
})(PostOnboardingActionId = exports.PostOnboardingActionId || (exports.PostOnboardingActionId = {}));
|
|
14
16
|
//# sourceMappingURL=postOnboarding.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"postOnboarding.js","sourceRoot":"","sources":["../src/postOnboarding.ts"],"names":[],"mappings":";;;AAGA;;GAEG;AACH,IAAY,
|
|
1
|
+
{"version":3,"file":"postOnboarding.js","sourceRoot":"","sources":["../src/postOnboarding.ts"],"names":[],"mappings":";;;AAGA;;GAEG;AACH,IAAY,sBAOX;AAPD,WAAY,sBAAsB;IAChC,iDAAuB,CAAA;IACvB,iEAAuC,CAAA;IACvC,6DAAmC,CAAA;IACnC,qDAA2B,CAAA;IAC3B,+CAAqB,CAAA;IACrB,2DAAiC,CAAA;AACnC,CAAC,EAPW,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QAOjC"}
|
package/lib-es/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" | "brazePushNotifications" | "llmNewDeviceSelection" | "llmUsbFirmwareUpdate" | "
|
|
2
|
+
export declare type FeatureId = "learn" | "brazePushNotifications" | "brazeLearn" | "llmNewDeviceSelection" | "llmUsbFirmwareUpdate" | "ratingsPrompt" | "counterValue" | "deviceLocalization" | "deviceInitialApps" | "buyDeviceFromLive" | "ptxSmartRouting" | "currencyOsmosis" | "currencyOsmosisMobile" | "currencyFantom" | "currencyMoonbeam" | "currencyCronos" | "currencySongbird" | "currencyFlare" | "currencyNear" | "currencyFantomMobile" | "currencyMoonbeamMobile" | "currencyCronosMobile" | "currencySongbirdMobile" | "currencyFlareMobile" | "ptxSmartRoutingMobile" | "mockFeature" | "syncOnboarding" | "walletConnectLiveApp" | "customImage" | "referralProgramDiscoverCard" | "referralProgramDesktopBanner" | "disableNftSend" | "disableNftLedgerMarket" | "disableNftRaribleOpensea" | "walletNftGallery" | "receiveStakingFlowConfigDesktop" | "ethStakingProviders" | "storyly" | "staxWelcomeScreen" | "postOnboardingClaimNft" | "postOnboardingAssetsTransfer" | "firebaseEnvironmentReadOnly" | "protectServicesMobile" | "swapShowDexQuotes";
|
|
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 = {
|
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,wBAAwB,GACxB,uBAAuB,GACvB,sBAAsB,GACtB,
|
|
1
|
+
{"version":3,"file":"feature.d.ts","sourceRoot":"","sources":["../src/feature.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAC/D,oBAAY,SAAS,GACjB,OAAO,GACP,wBAAwB,GACxB,YAAY,GACZ,uBAAuB,GACvB,sBAAsB,GACtB,eAAe,GACf,cAAc,GACd,oBAAoB,GACpB,mBAAmB,GACnB,mBAAmB,GACnB,iBAAiB,GACjB,iBAAiB,GACjB,uBAAuB,GACvB,gBAAgB,GAChB,kBAAkB,GAClB,gBAAgB,GAChB,kBAAkB,GAClB,eAAe,GACf,cAAc,GACd,sBAAsB,GACtB,wBAAwB,GACxB,sBAAsB,GACtB,wBAAwB,GACxB,qBAAqB,GACrB,uBAAuB,GACvB,aAAa,GACb,gBAAgB,GAChB,sBAAsB,GACtB,aAAa,GACb,6BAA6B,GAC7B,8BAA8B,GAC9B,gBAAgB,GAChB,wBAAwB,GACxB,0BAA0B,GAC1B,kBAAkB,GAClB,iCAAiC,GACjC,qBAAqB,GACrB,SAAS,GACT,mBAAmB,GACnB,wBAAwB,GACxB,8BAA8B,GAC9B,6BAA6B,GAC7B,uBAAuB,GACvB,mBAAmB,CAAC;AAExB;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,iFAAiF;IACjF,gGAAgG;IAChG,oFAAoF;IACpF,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,kFAAkF;IAClF,wCAAwC,CAAC,EAAE,OAAO,CAAC;IACnD,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,uFAAuF;IACvF,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"}
|
|
@@ -7,7 +7,9 @@ export declare enum PostOnboardingActionId {
|
|
|
7
7
|
claimMock = "claimMock",
|
|
8
8
|
migrateAssetsMock = "migrateAssetsMock",
|
|
9
9
|
personalizeMock = "personalizeMock",
|
|
10
|
-
customImage = "customImage"
|
|
10
|
+
customImage = "customImage",
|
|
11
|
+
claimNft = "claimNft",
|
|
12
|
+
assetsTransfer = "assetsTransfer"
|
|
11
13
|
}
|
|
12
14
|
export declare type WithNavigationParams = {
|
|
13
15
|
/**
|
|
@@ -31,6 +33,10 @@ declare type WithStartActionFunction = {
|
|
|
31
33
|
*/
|
|
32
34
|
export declare type PostOnboardingAction = {
|
|
33
35
|
id: PostOnboardingActionId;
|
|
36
|
+
/**
|
|
37
|
+
* Allow to display the action without letting the user access its flow
|
|
38
|
+
*/
|
|
39
|
+
disabled?: boolean;
|
|
34
40
|
/**
|
|
35
41
|
* If this action is linked to a feature that is enabled by a feature flag,
|
|
36
42
|
* use this property to identify the feature flag.
|
|
@@ -47,6 +53,11 @@ export declare type PostOnboardingAction = {
|
|
|
47
53
|
* Title displayed for this action in the post onboarding hub.
|
|
48
54
|
*/
|
|
49
55
|
title: string;
|
|
56
|
+
/**
|
|
57
|
+
* Title displayed for this action in the post onboarding hub when the action
|
|
58
|
+
* is completed.
|
|
59
|
+
*/
|
|
60
|
+
titleCompleted: string;
|
|
50
61
|
/**
|
|
51
62
|
* Description displayed for this action in the post onboarding hub.
|
|
52
63
|
*/
|
|
@@ -60,11 +71,6 @@ export declare type PostOnboardingAction = {
|
|
|
60
71
|
* after completing this action.
|
|
61
72
|
* */
|
|
62
73
|
actionCompletedPopupLabel: string;
|
|
63
|
-
/**
|
|
64
|
-
* Will be used as a title success alert at the bottom of the post-onboarding
|
|
65
|
-
* hub after completing this action.
|
|
66
|
-
* */
|
|
67
|
-
actionCompletedHubTitle: string;
|
|
68
74
|
/**
|
|
69
75
|
* Event that will be dispatched when starting this action.
|
|
70
76
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"postOnboarding.d.ts","sourceRoot":"","sources":["../src/postOnboarding.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,GAAG,CAAC;AAE9B;;GAEG;AACH,oBAAY,sBAAsB;IAChC,SAAS,cAAc;IACvB,iBAAiB,sBAAsB;IACvC,eAAe,oBAAoB;IACnC,WAAW,gBAAgB;
|
|
1
|
+
{"version":3,"file":"postOnboarding.d.ts","sourceRoot":"","sources":["../src/postOnboarding.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,GAAG,CAAC;AAE9B;;GAEG;AACH,oBAAY,sBAAsB;IAChC,SAAS,cAAc;IACvB,iBAAiB,sBAAsB;IACvC,eAAe,oBAAoB;IACnC,WAAW,gBAAgB;IAC3B,QAAQ,aAAa;IACrB,cAAc,mBAAmB;CAClC;AAED,oBAAY,oBAAoB,GAAG;IACjC;;;;;;OAMG;IACH,gBAAgB,CAAC,EAAE,GAAG,EAAE,CAAC;CAC1B,CAAC;AAEF,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AC;AAEF;;;GAGG;AACH,oBAAY,sBAAsB,GAAG;IACnC,aAAa,EAAE,aAAa,GAAG,IAAI,CAAC;IACpC,mBAAmB,EAAE,oBAAoB,GAAG,IAAI,CAAC;IACjD,YAAY,EAAE,CAAC,oBAAoB,GAAG,yBAAyB,CAAC,EAAE,CAAC;CACpE,CAAC"}
|
package/lib-es/postOnboarding.js
CHANGED
|
@@ -7,5 +7,7 @@ export var PostOnboardingActionId;
|
|
|
7
7
|
PostOnboardingActionId["migrateAssetsMock"] = "migrateAssetsMock";
|
|
8
8
|
PostOnboardingActionId["personalizeMock"] = "personalizeMock";
|
|
9
9
|
PostOnboardingActionId["customImage"] = "customImage";
|
|
10
|
+
PostOnboardingActionId["claimNft"] = "claimNft";
|
|
11
|
+
PostOnboardingActionId["assetsTransfer"] = "assetsTransfer";
|
|
10
12
|
})(PostOnboardingActionId || (PostOnboardingActionId = {}));
|
|
11
13
|
//# sourceMappingURL=postOnboarding.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"postOnboarding.js","sourceRoot":"","sources":["../src/postOnboarding.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,MAAM,CAAN,IAAY,
|
|
1
|
+
{"version":3,"file":"postOnboarding.js","sourceRoot":"","sources":["../src/postOnboarding.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,MAAM,CAAN,IAAY,sBAOX;AAPD,WAAY,sBAAsB;IAChC,iDAAuB,CAAA;IACvB,iEAAuC,CAAA;IACvC,6DAAmC,CAAA;IACnC,qDAA2B,CAAA;IAC3B,+CAAqB,CAAA;IACrB,2DAAiC,CAAA;AACnC,CAAC,EAPW,sBAAsB,KAAtB,sBAAsB,QAOjC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ledgerhq/types-live",
|
|
3
|
-
"version": "6.28.
|
|
3
|
+
"version": "6.28.1",
|
|
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.3",
|
|
29
|
-
"@ledgerhq/types-devices": "^6.22.
|
|
29
|
+
"@ledgerhq/types-devices": "^6.22.4"
|
|
30
30
|
},
|
|
31
31
|
"scripts": {
|
|
32
32
|
"clean": "rimraf lib lib-es",
|
package/src/feature.ts
CHANGED
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
export type FeatureId =
|
|
3
3
|
| "learn"
|
|
4
4
|
| "brazePushNotifications"
|
|
5
|
+
| "brazeLearn"
|
|
5
6
|
| "llmNewDeviceSelection"
|
|
6
7
|
| "llmUsbFirmwareUpdate"
|
|
7
|
-
| "
|
|
8
|
+
| "ratingsPrompt"
|
|
8
9
|
| "counterValue"
|
|
9
10
|
| "deviceLocalization"
|
|
10
11
|
| "deviceInitialApps"
|
|
@@ -37,8 +38,12 @@ export type FeatureId =
|
|
|
37
38
|
| "receiveStakingFlowConfigDesktop"
|
|
38
39
|
| "ethStakingProviders"
|
|
39
40
|
| "storyly"
|
|
41
|
+
| "staxWelcomeScreen"
|
|
42
|
+
| "postOnboardingClaimNft"
|
|
43
|
+
| "postOnboardingAssetsTransfer"
|
|
40
44
|
| "firebaseEnvironmentReadOnly"
|
|
41
|
-
| "protectServicesMobile"
|
|
45
|
+
| "protectServicesMobile"
|
|
46
|
+
| "swapShowDexQuotes";
|
|
42
47
|
|
|
43
48
|
/** We use objects instead of direct booleans for potential future improvements
|
|
44
49
|
like feature versioning etc */
|
package/src/postOnboarding.ts
CHANGED
|
@@ -9,6 +9,8 @@ export enum PostOnboardingActionId {
|
|
|
9
9
|
migrateAssetsMock = "migrateAssetsMock",
|
|
10
10
|
personalizeMock = "personalizeMock",
|
|
11
11
|
customImage = "customImage",
|
|
12
|
+
claimNft = "claimNft",
|
|
13
|
+
assetsTransfer = "assetsTransfer",
|
|
12
14
|
}
|
|
13
15
|
|
|
14
16
|
export type WithNavigationParams = {
|
|
@@ -36,6 +38,11 @@ type WithStartActionFunction = {
|
|
|
36
38
|
export type PostOnboardingAction = {
|
|
37
39
|
id: PostOnboardingActionId;
|
|
38
40
|
|
|
41
|
+
/**
|
|
42
|
+
* Allow to display the action without letting the user access its flow
|
|
43
|
+
*/
|
|
44
|
+
disabled?: boolean;
|
|
45
|
+
|
|
39
46
|
/**
|
|
40
47
|
* If this action is linked to a feature that is enabled by a feature flag,
|
|
41
48
|
* use this property to identify the feature flag.
|
|
@@ -52,6 +59,12 @@ export type PostOnboardingAction = {
|
|
|
52
59
|
*/
|
|
53
60
|
title: string;
|
|
54
61
|
|
|
62
|
+
/**
|
|
63
|
+
* Title displayed for this action in the post onboarding hub when the action
|
|
64
|
+
* is completed.
|
|
65
|
+
*/
|
|
66
|
+
titleCompleted: string;
|
|
67
|
+
|
|
55
68
|
/**
|
|
56
69
|
* Description displayed for this action in the post onboarding hub.
|
|
57
70
|
*/
|
|
@@ -68,12 +81,6 @@ export type PostOnboardingAction = {
|
|
|
68
81
|
* */
|
|
69
82
|
actionCompletedPopupLabel: string;
|
|
70
83
|
|
|
71
|
-
/**
|
|
72
|
-
* Will be used as a title success alert at the bottom of the post-onboarding
|
|
73
|
-
* hub after completing this action.
|
|
74
|
-
* */
|
|
75
|
-
actionCompletedHubTitle: string;
|
|
76
|
-
|
|
77
84
|
/**
|
|
78
85
|
* Event that will be dispatched when starting this action.
|
|
79
86
|
*/
|