@metamask-previews/preferences-controller 23.0.0-preview-419030b03 → 23.0.0-preview-3f2e0ea
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/PreferencesController-method-action-types.cjs +1 -1
- package/dist/PreferencesController-method-action-types.cjs.map +1 -1
- package/dist/PreferencesController-method-action-types.d.cts +1 -1
- package/dist/PreferencesController-method-action-types.d.mts +1 -1
- package/dist/PreferencesController-method-action-types.mjs +1 -1
- package/dist/PreferencesController-method-action-types.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* This file is auto generated by
|
|
3
|
+
* This file is auto generated by `@metamask/messenger/generate-action-types`.
|
|
4
4
|
* Do not edit manually.
|
|
5
5
|
*/
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PreferencesController-method-action-types.cjs","sourceRoot":"","sources":["../src/PreferencesController-method-action-types.ts"],"names":[],"mappings":";AAAA;;;GAGG","sourcesContent":["/**\n * This file is auto generated by
|
|
1
|
+
{"version":3,"file":"PreferencesController-method-action-types.cjs","sourceRoot":"","sources":["../src/PreferencesController-method-action-types.ts"],"names":[],"mappings":";AAAA;;;GAGG","sourcesContent":["/**\n * This file is auto generated by `@metamask/messenger/generate-action-types`.\n * Do not edit manually.\n */\n\nimport type { PreferencesController } from './PreferencesController';\n\n/**\n * Enable or disable a specific feature flag.\n *\n * @param feature - Feature to toggle.\n * @param activated - Value to assign.\n */\nexport type PreferencesControllerSetFeatureFlagAction = {\n type: `PreferencesController:setFeatureFlag`;\n handler: PreferencesController['setFeatureFlag'];\n};\n\n/**\n * Sets new IPFS gateway.\n *\n * @param ipfsGateway - IPFS gateway string.\n */\nexport type PreferencesControllerSetIpfsGatewayAction = {\n type: `PreferencesController:setIpfsGateway`;\n handler: PreferencesController['setIpfsGateway'];\n};\n\n/**\n * Toggle the token detection setting.\n *\n * @param useTokenDetection - Boolean indicating user preference on token detection.\n */\nexport type PreferencesControllerSetUseTokenDetectionAction = {\n type: `PreferencesController:setUseTokenDetection`;\n handler: PreferencesController['setUseTokenDetection'];\n};\n\n/**\n * Toggle the NFT detection setting.\n *\n * @param useNftDetection - Boolean indicating user preference on NFT detection.\n */\nexport type PreferencesControllerSetUseNftDetectionAction = {\n type: `PreferencesController:setUseNftDetection`;\n handler: PreferencesController['setUseNftDetection'];\n};\n\n/**\n * Toggle the display nft media enabled setting.\n *\n * @param displayNftMedia - Boolean indicating user preference on using OpenSea's API.\n */\nexport type PreferencesControllerSetDisplayNftMediaAction = {\n type: `PreferencesController:setDisplayNftMedia`;\n handler: PreferencesController['setDisplayNftMedia'];\n};\n\n/**\n * Toggle the security alert enabled setting.\n *\n * @param securityAlertsEnabled - Boolean indicating user preference on using security alerts.\n */\nexport type PreferencesControllerSetSecurityAlertsEnabledAction = {\n type: `PreferencesController:setSecurityAlertsEnabled`;\n handler: PreferencesController['setSecurityAlertsEnabled'];\n};\n\n/**\n * A setter for the user preferences to enable/disable fetch of multiple accounts balance.\n *\n * @param isMultiAccountBalancesEnabled - true to enable multiple accounts balance fetch, false to fetch only selectedAddress.\n */\nexport type PreferencesControllerSetIsMultiAccountBalancesEnabledAction = {\n type: `PreferencesController:setIsMultiAccountBalancesEnabled`;\n handler: PreferencesController['setIsMultiAccountBalancesEnabled'];\n};\n\n/**\n * A setter for the user have the test networks visible/hidden.\n *\n * @param showTestNetworks - true to show test networks, false to hidden.\n */\nexport type PreferencesControllerSetShowTestNetworksAction = {\n type: `PreferencesController:setShowTestNetworks`;\n handler: PreferencesController['setShowTestNetworks'];\n};\n\n/**\n * A setter for the user allow to be fetched IPFS content\n *\n * @param isIpfsGatewayEnabled - true to enable ipfs source\n */\nexport type PreferencesControllerSetIsIpfsGatewayEnabledAction = {\n type: `PreferencesController:setIsIpfsGatewayEnabled`;\n handler: PreferencesController['setIsIpfsGatewayEnabled'];\n};\n\n/**\n * A setter for the user allow to be fetched IPFS content\n *\n * @param chainId - On hexadecimal format to enable the incoming transaction network\n * @param isIncomingTransactionNetworkEnable - true to enable incoming transactions\n */\nexport type PreferencesControllerSetEnableNetworkIncomingTransactionsAction = {\n type: `PreferencesController:setEnableNetworkIncomingTransactions`;\n handler: PreferencesController['setEnableNetworkIncomingTransactions'];\n};\n\n/**\n * Toggle multi rpc migration modal.\n *\n * @param showMultiRpcModal - Boolean indicating if the multi rpc modal will be displayed or not.\n */\nexport type PreferencesControllerSetShowMultiRpcModalAction = {\n type: `PreferencesController:setShowMultiRpcModal`;\n handler: PreferencesController['setShowMultiRpcModal'];\n};\n\n/**\n * A setter for the user to opt into smart transactions\n *\n * @param smartTransactionsOptInStatus - true to opt into smart transactions\n */\nexport type PreferencesControllerSetSmartTransactionsOptInStatusAction = {\n type: `PreferencesController:setSmartTransactionsOptInStatus`;\n handler: PreferencesController['setSmartTransactionsOptInStatus'];\n};\n\n/**\n * A setter for the user preferences to enable/disable transaction simulations.\n *\n * @param useTransactionSimulations - true to enable transaction simulations, false to disable it.\n */\nexport type PreferencesControllerSetUseTransactionSimulationsAction = {\n type: `PreferencesController:setUseTransactionSimulations`;\n handler: PreferencesController['setUseTransactionSimulations'];\n};\n\n/**\n * A setter to update the user's preferred token sorting order.\n *\n * @param tokenSortConfig - a configuration representing the sort order of tokens.\n */\nexport type PreferencesControllerSetTokenSortConfigAction = {\n type: `PreferencesController:setTokenSortConfig`;\n handler: PreferencesController['setTokenSortConfig'];\n};\n\n/**\n * A setter for the user preferences to enable/disable safe chains list validation.\n *\n * @param useSafeChainsListValidation - true to enable safe chains list validation, false to disable it.\n */\nexport type PreferencesControllerSetUseSafeChainsListValidationAction = {\n type: `PreferencesController:setUseSafeChainsListValidation`;\n handler: PreferencesController['setUseSafeChainsListValidation'];\n};\n\n/**\n * A setter for the user preferences to enable/disable privacy mode.\n *\n * @param privacyMode - true to enable privacy mode, false to disable it.\n */\nexport type PreferencesControllerSetPrivacyModeAction = {\n type: `PreferencesController:setPrivacyMode`;\n handler: PreferencesController['setPrivacyMode'];\n};\n\n/**\n * A setter for the user preferences dismiss smart account upgrade prompt.\n *\n * @param dismissSmartAccountSuggestionEnabled - true to dismiss smart account upgrade prompt, false to enable it.\n */\nexport type PreferencesControllerSetDismissSmartAccountSuggestionEnabledAction =\n {\n type: `PreferencesController:setDismissSmartAccountSuggestionEnabled`;\n handler: PreferencesController['setDismissSmartAccountSuggestionEnabled'];\n };\n\n/**\n * A setter for the user preferences smart account OptIn.\n *\n * @param smartAccountOptIn - true if user opts in for smart account update, false otherwise.\n */\nexport type PreferencesControllerSetSmartAccountOptInAction = {\n type: `PreferencesController:setSmartAccountOptIn`;\n handler: PreferencesController['setSmartAccountOptIn'];\n};\n\n/**\n * Set the token network filter configuration setting.\n *\n * @param tokenNetworkFilter - Object describing token network filter configuration.\n */\nexport type PreferencesControllerSetTokenNetworkFilterAction = {\n type: `PreferencesController:setTokenNetworkFilter`;\n handler: PreferencesController['setTokenNetworkFilter'];\n};\n\n/**\n * Union of all PreferencesController action types.\n */\nexport type PreferencesControllerMethodActions =\n | PreferencesControllerSetFeatureFlagAction\n | PreferencesControllerSetIpfsGatewayAction\n | PreferencesControllerSetUseTokenDetectionAction\n | PreferencesControllerSetUseNftDetectionAction\n | PreferencesControllerSetDisplayNftMediaAction\n | PreferencesControllerSetSecurityAlertsEnabledAction\n | PreferencesControllerSetIsMultiAccountBalancesEnabledAction\n | PreferencesControllerSetShowTestNetworksAction\n | PreferencesControllerSetIsIpfsGatewayEnabledAction\n | PreferencesControllerSetEnableNetworkIncomingTransactionsAction\n | PreferencesControllerSetShowMultiRpcModalAction\n | PreferencesControllerSetSmartTransactionsOptInStatusAction\n | PreferencesControllerSetUseTransactionSimulationsAction\n | PreferencesControllerSetTokenSortConfigAction\n | PreferencesControllerSetUseSafeChainsListValidationAction\n | PreferencesControllerSetPrivacyModeAction\n | PreferencesControllerSetDismissSmartAccountSuggestionEnabledAction\n | PreferencesControllerSetSmartAccountOptInAction\n | PreferencesControllerSetTokenNetworkFilterAction;\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PreferencesController-method-action-types.mjs","sourceRoot":"","sources":["../src/PreferencesController-method-action-types.ts"],"names":[],"mappings":"AAAA;;;GAGG","sourcesContent":["/**\n * This file is auto generated by
|
|
1
|
+
{"version":3,"file":"PreferencesController-method-action-types.mjs","sourceRoot":"","sources":["../src/PreferencesController-method-action-types.ts"],"names":[],"mappings":"AAAA;;;GAGG","sourcesContent":["/**\n * This file is auto generated by `@metamask/messenger/generate-action-types`.\n * Do not edit manually.\n */\n\nimport type { PreferencesController } from './PreferencesController';\n\n/**\n * Enable or disable a specific feature flag.\n *\n * @param feature - Feature to toggle.\n * @param activated - Value to assign.\n */\nexport type PreferencesControllerSetFeatureFlagAction = {\n type: `PreferencesController:setFeatureFlag`;\n handler: PreferencesController['setFeatureFlag'];\n};\n\n/**\n * Sets new IPFS gateway.\n *\n * @param ipfsGateway - IPFS gateway string.\n */\nexport type PreferencesControllerSetIpfsGatewayAction = {\n type: `PreferencesController:setIpfsGateway`;\n handler: PreferencesController['setIpfsGateway'];\n};\n\n/**\n * Toggle the token detection setting.\n *\n * @param useTokenDetection - Boolean indicating user preference on token detection.\n */\nexport type PreferencesControllerSetUseTokenDetectionAction = {\n type: `PreferencesController:setUseTokenDetection`;\n handler: PreferencesController['setUseTokenDetection'];\n};\n\n/**\n * Toggle the NFT detection setting.\n *\n * @param useNftDetection - Boolean indicating user preference on NFT detection.\n */\nexport type PreferencesControllerSetUseNftDetectionAction = {\n type: `PreferencesController:setUseNftDetection`;\n handler: PreferencesController['setUseNftDetection'];\n};\n\n/**\n * Toggle the display nft media enabled setting.\n *\n * @param displayNftMedia - Boolean indicating user preference on using OpenSea's API.\n */\nexport type PreferencesControllerSetDisplayNftMediaAction = {\n type: `PreferencesController:setDisplayNftMedia`;\n handler: PreferencesController['setDisplayNftMedia'];\n};\n\n/**\n * Toggle the security alert enabled setting.\n *\n * @param securityAlertsEnabled - Boolean indicating user preference on using security alerts.\n */\nexport type PreferencesControllerSetSecurityAlertsEnabledAction = {\n type: `PreferencesController:setSecurityAlertsEnabled`;\n handler: PreferencesController['setSecurityAlertsEnabled'];\n};\n\n/**\n * A setter for the user preferences to enable/disable fetch of multiple accounts balance.\n *\n * @param isMultiAccountBalancesEnabled - true to enable multiple accounts balance fetch, false to fetch only selectedAddress.\n */\nexport type PreferencesControllerSetIsMultiAccountBalancesEnabledAction = {\n type: `PreferencesController:setIsMultiAccountBalancesEnabled`;\n handler: PreferencesController['setIsMultiAccountBalancesEnabled'];\n};\n\n/**\n * A setter for the user have the test networks visible/hidden.\n *\n * @param showTestNetworks - true to show test networks, false to hidden.\n */\nexport type PreferencesControllerSetShowTestNetworksAction = {\n type: `PreferencesController:setShowTestNetworks`;\n handler: PreferencesController['setShowTestNetworks'];\n};\n\n/**\n * A setter for the user allow to be fetched IPFS content\n *\n * @param isIpfsGatewayEnabled - true to enable ipfs source\n */\nexport type PreferencesControllerSetIsIpfsGatewayEnabledAction = {\n type: `PreferencesController:setIsIpfsGatewayEnabled`;\n handler: PreferencesController['setIsIpfsGatewayEnabled'];\n};\n\n/**\n * A setter for the user allow to be fetched IPFS content\n *\n * @param chainId - On hexadecimal format to enable the incoming transaction network\n * @param isIncomingTransactionNetworkEnable - true to enable incoming transactions\n */\nexport type PreferencesControllerSetEnableNetworkIncomingTransactionsAction = {\n type: `PreferencesController:setEnableNetworkIncomingTransactions`;\n handler: PreferencesController['setEnableNetworkIncomingTransactions'];\n};\n\n/**\n * Toggle multi rpc migration modal.\n *\n * @param showMultiRpcModal - Boolean indicating if the multi rpc modal will be displayed or not.\n */\nexport type PreferencesControllerSetShowMultiRpcModalAction = {\n type: `PreferencesController:setShowMultiRpcModal`;\n handler: PreferencesController['setShowMultiRpcModal'];\n};\n\n/**\n * A setter for the user to opt into smart transactions\n *\n * @param smartTransactionsOptInStatus - true to opt into smart transactions\n */\nexport type PreferencesControllerSetSmartTransactionsOptInStatusAction = {\n type: `PreferencesController:setSmartTransactionsOptInStatus`;\n handler: PreferencesController['setSmartTransactionsOptInStatus'];\n};\n\n/**\n * A setter for the user preferences to enable/disable transaction simulations.\n *\n * @param useTransactionSimulations - true to enable transaction simulations, false to disable it.\n */\nexport type PreferencesControllerSetUseTransactionSimulationsAction = {\n type: `PreferencesController:setUseTransactionSimulations`;\n handler: PreferencesController['setUseTransactionSimulations'];\n};\n\n/**\n * A setter to update the user's preferred token sorting order.\n *\n * @param tokenSortConfig - a configuration representing the sort order of tokens.\n */\nexport type PreferencesControllerSetTokenSortConfigAction = {\n type: `PreferencesController:setTokenSortConfig`;\n handler: PreferencesController['setTokenSortConfig'];\n};\n\n/**\n * A setter for the user preferences to enable/disable safe chains list validation.\n *\n * @param useSafeChainsListValidation - true to enable safe chains list validation, false to disable it.\n */\nexport type PreferencesControllerSetUseSafeChainsListValidationAction = {\n type: `PreferencesController:setUseSafeChainsListValidation`;\n handler: PreferencesController['setUseSafeChainsListValidation'];\n};\n\n/**\n * A setter for the user preferences to enable/disable privacy mode.\n *\n * @param privacyMode - true to enable privacy mode, false to disable it.\n */\nexport type PreferencesControllerSetPrivacyModeAction = {\n type: `PreferencesController:setPrivacyMode`;\n handler: PreferencesController['setPrivacyMode'];\n};\n\n/**\n * A setter for the user preferences dismiss smart account upgrade prompt.\n *\n * @param dismissSmartAccountSuggestionEnabled - true to dismiss smart account upgrade prompt, false to enable it.\n */\nexport type PreferencesControllerSetDismissSmartAccountSuggestionEnabledAction =\n {\n type: `PreferencesController:setDismissSmartAccountSuggestionEnabled`;\n handler: PreferencesController['setDismissSmartAccountSuggestionEnabled'];\n };\n\n/**\n * A setter for the user preferences smart account OptIn.\n *\n * @param smartAccountOptIn - true if user opts in for smart account update, false otherwise.\n */\nexport type PreferencesControllerSetSmartAccountOptInAction = {\n type: `PreferencesController:setSmartAccountOptIn`;\n handler: PreferencesController['setSmartAccountOptIn'];\n};\n\n/**\n * Set the token network filter configuration setting.\n *\n * @param tokenNetworkFilter - Object describing token network filter configuration.\n */\nexport type PreferencesControllerSetTokenNetworkFilterAction = {\n type: `PreferencesController:setTokenNetworkFilter`;\n handler: PreferencesController['setTokenNetworkFilter'];\n};\n\n/**\n * Union of all PreferencesController action types.\n */\nexport type PreferencesControllerMethodActions =\n | PreferencesControllerSetFeatureFlagAction\n | PreferencesControllerSetIpfsGatewayAction\n | PreferencesControllerSetUseTokenDetectionAction\n | PreferencesControllerSetUseNftDetectionAction\n | PreferencesControllerSetDisplayNftMediaAction\n | PreferencesControllerSetSecurityAlertsEnabledAction\n | PreferencesControllerSetIsMultiAccountBalancesEnabledAction\n | PreferencesControllerSetShowTestNetworksAction\n | PreferencesControllerSetIsIpfsGatewayEnabledAction\n | PreferencesControllerSetEnableNetworkIncomingTransactionsAction\n | PreferencesControllerSetShowMultiRpcModalAction\n | PreferencesControllerSetSmartTransactionsOptInStatusAction\n | PreferencesControllerSetUseTransactionSimulationsAction\n | PreferencesControllerSetTokenSortConfigAction\n | PreferencesControllerSetUseSafeChainsListValidationAction\n | PreferencesControllerSetPrivacyModeAction\n | PreferencesControllerSetDismissSmartAccountSuggestionEnabledAction\n | PreferencesControllerSetSmartAccountOptInAction\n | PreferencesControllerSetTokenNetworkFilterAction;\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@metamask-previews/preferences-controller",
|
|
3
|
-
"version": "23.0.0-preview-
|
|
3
|
+
"version": "23.0.0-preview-3f2e0ea",
|
|
4
4
|
"description": "Manages user-configurable settings for MetaMask",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"MetaMask",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"build:docs": "typedoc",
|
|
41
41
|
"changelog:update": "../../scripts/update-changelog.sh @metamask/preferences-controller",
|
|
42
42
|
"changelog:validate": "../../scripts/validate-changelog.sh @metamask/preferences-controller",
|
|
43
|
-
"generate-method-action-types": "tsx ../../
|
|
43
|
+
"generate-method-action-types": "tsx ../../packages/messenger/src/generate-action-types/cli.ts",
|
|
44
44
|
"since-latest-release": "../../scripts/since-latest-release.sh",
|
|
45
45
|
"test": "NODE_OPTIONS=--experimental-vm-modules jest --reporters=jest-silent-reporter",
|
|
46
46
|
"test:clean": "NODE_OPTIONS=--experimental-vm-modules jest --clearCache",
|