ci(github): simplify connect-bump versions
We are moving to release all npm packages under same version as connect,
so all of them are going to be released every time, that means we can
get rid of all the code that was checking what packages required release
and instead release all of them which is simpler.
Co-authored-by: karliatto <yo@karliatto.com>
- Include provider for React and React Native app.
- Since the configuration and related libraries differ, it does make sense to divide them.
- Define mutation and query keys (common, desktop, mobile).
- Re-export @tanstack/react-query hooks.
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.
Add cases where babel plugins were not handling properly adding js
extension for ESM and where some packages imports were not modified at
all because they were imported dynamically.
- remove re-exports, use direct imports from @suite/intl
- resolve cir. dep. between suite-data and package/suite
- update imports from @suite-common/intl-types to @suite/intl
- update imports from src/support/messages to @suite/intl
- remove @suite-common/intl-types
- move Translation from @trezor/suite to the new package
The current implementation of replace-impots.sh that was modified
previously to the current stable connect version was not updating
imports in .d.ts files that was causing to have in connect in npm
imports like:
import { Capability } from '@trezor/protobuf/src/messages';
But the released `@trezor/protobuf` package does not publish `src/` but
only `lib/` so it has to be handle also when publishing.
- Create a new hooks for handling trading asset options.
- It's now currectly memoized, greatly simplified and provides set of network symbols found in the trading info data.
- Also, the types has been greatly improved. There's now `asset.isNativeToken` boolean which easily narrows types.
- However, this change required to migrate all old types related to this hook including those ones in suite-native workspace.
- Instead of `toCryptoOption` method, there're now `createAssetOption` and `createDefaultAssetOption` method. Also the `useTradingAssets` hook now returns `createAssetOptionFromCryptoId` method.