@metamask-previews/wallet 4.0.0-preview-a8fd340 → 4.0.0-preview-55f166437

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/CHANGELOG.md CHANGED
@@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
11
11
 
12
12
  - **BREAKING:** Wire `PreferencesController` into the default wallet initialization ([#9232](https://github.com/MetaMask/core/pull/9232))
13
13
  - The default `Wallet` now constructs a `PreferencesController` and registers its `PreferencesController:*` messenger actions. Consumers that pass their own `messenger` and already wire a `PreferencesController` must remove their own before upgrading, or the duplicate registration will collide.
14
+ - Export the `InitializationConfiguration`, `InitFunctionArguments`, and `InstanceState` types so consumers can author initialization configurations that override a default controller ([#9232](https://github.com/MetaMask/core/pull/9232))
14
15
 
15
16
  ### Changed
16
17
 
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,uCAAkC;AAAzB,gGAAA,MAAM,OAAA;AACf,sHAA+G;AAAtG,4HAAA,mBAAmB,OAAA;AAC5B,6CAAyD;AAAhD,uHAAA,0BAA0B,OAAA","sourcesContent":["export { Wallet } from './Wallet';\nexport { AlwaysOnlineAdapter } from './initialization/instances/connectivity-controller/always-online-adapter';\nexport { importSecretRecoveryPhrase } from './utilities';\nexport type { WalletOptions } from './types';\nexport type {\n DefaultActions,\n DefaultEvents,\n DefaultInstances,\n DefaultState,\n RootMessenger,\n} from './initialization/defaults';\n"]}
1
+ {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,uCAAkC;AAAzB,gGAAA,MAAM,OAAA;AACf,sHAA+G;AAAtG,4HAAA,mBAAmB,OAAA;AAC5B,6CAAyD;AAAhD,uHAAA,0BAA0B,OAAA","sourcesContent":["export { Wallet } from './Wallet';\nexport { AlwaysOnlineAdapter } from './initialization/instances/connectivity-controller/always-online-adapter';\nexport { importSecretRecoveryPhrase } from './utilities';\nexport type { WalletOptions } from './types';\nexport type {\n DefaultActions,\n DefaultEvents,\n DefaultInstances,\n DefaultState,\n RootMessenger,\n} from './initialization/defaults';\nexport type {\n InitFunctionArguments,\n InitializationConfiguration,\n InstanceState,\n} from './initialization/types';\n"]}
package/dist/index.d.cts CHANGED
@@ -3,4 +3,5 @@ export { AlwaysOnlineAdapter } from "./initialization/instances/connectivity-con
3
3
  export { importSecretRecoveryPhrase } from "./utilities.cjs";
4
4
  export type { WalletOptions } from "./types.cjs";
5
5
  export type { DefaultActions, DefaultEvents, DefaultInstances, DefaultState, RootMessenger, } from "./initialization/defaults.cjs";
6
+ export type { InitFunctionArguments, InitializationConfiguration, InstanceState, } from "./initialization/types.cjs";
6
7
  //# sourceMappingURL=index.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,qBAAiB;AAClC,OAAO,EAAE,mBAAmB,EAAE,qFAAiF;AAC/G,OAAO,EAAE,0BAA0B,EAAE,wBAAoB;AACzD,YAAY,EAAE,aAAa,EAAE,oBAAgB;AAC7C,YAAY,EACV,cAAc,EACd,aAAa,EACb,gBAAgB,EAChB,YAAY,EACZ,aAAa,GACd,sCAAkC"}
1
+ {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,qBAAiB;AAClC,OAAO,EAAE,mBAAmB,EAAE,qFAAiF;AAC/G,OAAO,EAAE,0BAA0B,EAAE,wBAAoB;AACzD,YAAY,EAAE,aAAa,EAAE,oBAAgB;AAC7C,YAAY,EACV,cAAc,EACd,aAAa,EACb,gBAAgB,EAChB,YAAY,EACZ,aAAa,GACd,sCAAkC;AACnC,YAAY,EACV,qBAAqB,EACrB,2BAA2B,EAC3B,aAAa,GACd,mCAA+B"}
package/dist/index.d.mts CHANGED
@@ -3,4 +3,5 @@ export { AlwaysOnlineAdapter } from "./initialization/instances/connectivity-con
3
3
  export { importSecretRecoveryPhrase } from "./utilities.mjs";
4
4
  export type { WalletOptions } from "./types.mjs";
5
5
  export type { DefaultActions, DefaultEvents, DefaultInstances, DefaultState, RootMessenger, } from "./initialization/defaults.mjs";
6
+ export type { InitFunctionArguments, InitializationConfiguration, InstanceState, } from "./initialization/types.mjs";
6
7
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,qBAAiB;AAClC,OAAO,EAAE,mBAAmB,EAAE,qFAAiF;AAC/G,OAAO,EAAE,0BAA0B,EAAE,wBAAoB;AACzD,YAAY,EAAE,aAAa,EAAE,oBAAgB;AAC7C,YAAY,EACV,cAAc,EACd,aAAa,EACb,gBAAgB,EAChB,YAAY,EACZ,aAAa,GACd,sCAAkC"}
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,qBAAiB;AAClC,OAAO,EAAE,mBAAmB,EAAE,qFAAiF;AAC/G,OAAO,EAAE,0BAA0B,EAAE,wBAAoB;AACzD,YAAY,EAAE,aAAa,EAAE,oBAAgB;AAC7C,YAAY,EACV,cAAc,EACd,aAAa,EACb,gBAAgB,EAChB,YAAY,EACZ,aAAa,GACd,sCAAkC;AACnC,YAAY,EACV,qBAAqB,EACrB,2BAA2B,EAC3B,aAAa,GACd,mCAA+B"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,qBAAiB;AAClC,OAAO,EAAE,mBAAmB,EAAE,qFAAiF;AAC/G,OAAO,EAAE,0BAA0B,EAAE,wBAAoB","sourcesContent":["export { Wallet } from './Wallet';\nexport { AlwaysOnlineAdapter } from './initialization/instances/connectivity-controller/always-online-adapter';\nexport { importSecretRecoveryPhrase } from './utilities';\nexport type { WalletOptions } from './types';\nexport type {\n DefaultActions,\n DefaultEvents,\n DefaultInstances,\n DefaultState,\n RootMessenger,\n} from './initialization/defaults';\n"]}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,qBAAiB;AAClC,OAAO,EAAE,mBAAmB,EAAE,qFAAiF;AAC/G,OAAO,EAAE,0BAA0B,EAAE,wBAAoB","sourcesContent":["export { Wallet } from './Wallet';\nexport { AlwaysOnlineAdapter } from './initialization/instances/connectivity-controller/always-online-adapter';\nexport { importSecretRecoveryPhrase } from './utilities';\nexport type { WalletOptions } from './types';\nexport type {\n DefaultActions,\n DefaultEvents,\n DefaultInstances,\n DefaultState,\n RootMessenger,\n} from './initialization/defaults';\nexport type {\n InitFunctionArguments,\n InitializationConfiguration,\n InstanceState,\n} from './initialization/types';\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metamask-previews/wallet",
3
- "version": "4.0.0-preview-a8fd340",
3
+ "version": "4.0.0-preview-55f166437",
4
4
  "description": "Provides a shared framework for building MetaMask wallets",
5
5
  "keywords": [
6
6
  "Ethereum",