Remove connectSrc configuration option from connect-web and connect-webextension:
- Remove connectSrc from ConnectSettingsPublic interface
- Move connectSrc to ConnectSettingsMobile only (still needed for mobile deeplink)
- Remove connectSrc parsing and validation in parseConnectSettings
- Remove global __TREZOR_CONNECT_SRC window variable handling
- Update connect-explorer to remove connectSrc initialization logic
- Simplify mobile-expo example (always use trezorsuite://connect)
- Remove connectSrc from middleware and action handlers
The new architecture uses Suite Web popup directly without configurable connect source.
We already have removed all the iframe but we still have this core event
with it's name. This changes the name of the event to CORE_CALL and
CoreCallMessage.
Moving VERSIONS constants file in connect to connect-common since those
constants are used in connect, connect-web and connect-mobile.
Also had to chcange the script connect/scripts/bump-version.ts so the
versions are updated properly.
We are already running replace-imports.sh from build:libs that is run
before publishing to NPM so callingit when "prepublish" is a redundancy,
besides prepublish.js was only building for cjs and now we are going to
have cjs and esm.
- Adding ESM builds for all the packages that are published on 'npm'.
- Adding libESM to published files in package.json files
- Relays only on "exports" section on package.json to define the ways to consume the package, so only modern bundlers would be able to use them, that should not be an issue, since projects are used to be on the latest
- Using the root tsconfig.libESM
- Using wildcard for @trezor/utils export so we can import any of the functions directly https://nodejs.org/api/packages.html#subpath-patterns