@dhedge/trading-widget 6.4.0 → 7.0.0

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.
Files changed (31) hide show
  1. package/README.md +4 -17
  2. package/core-kit/types/index.d.ts +9 -9
  3. package/index.cjs +1 -1
  4. package/index.js +2698 -2742
  5. package/limit-orders/common/percentage-input.d.ts +1 -1
  6. package/limit-orders/common/price-input.d.ts +1 -1
  7. package/limit-orders/limit-buys/providers/translation-provider/index.d.ts +1 -1
  8. package/limit-orders/providers/theme-provider/index.d.ts +1 -1
  9. package/limit-orders/providers/translation-provider/index.d.ts +1 -1
  10. package/package.json +3 -2
  11. package/trading-widget/components/common/input/input-number.d.ts +8 -6
  12. package/trading-widget/components/common/meta/transaction-disclosure/transaction-disclosure-item/transaction-disclosure-item.d.ts +1 -1
  13. package/trading-widget/components/common/switch/switch.d.ts +2 -1
  14. package/trading-widget/components/deposit/input-group/input-group.d.ts +2 -1
  15. package/trading-widget/components/deposit/meta/transaction-disclosure/transaction-disclosure.d.ts +2 -1
  16. package/trading-widget/components/widget/widget-buttons/switch-network-button/switch-network-button.d.ts +2 -1
  17. package/trading-widget/components/widget/widget-input/all-assets-composition-table/all-assets-composition-table.d.ts +2 -1
  18. package/trading-widget/components/widget/widget-input/widget-input.hooks.d.ts +1 -1
  19. package/trading-widget/components/widget/widget-overlay/token-select-overlay/multi-token-select-item/multi-token-select-item.d.ts +2 -1
  20. package/trading-widget/components/widget/widget-overlay/token-select-overlay/token-select-item/token-select-item.d.ts +2 -1
  21. package/trading-widget/components/widget/widget-overlay/trading-overlay/limit-order/limit-order-processing-content.d.ts +2 -1
  22. package/trading-widget/components/widget/widget-settings/token-allowance-switch/token-allowance-switch.d.ts +2 -1
  23. package/trading-widget/components/withdraw/complete-step/meta/transaction-disclosure/transaction-disclosure.d.ts +2 -1
  24. package/trading-widget/components/withdraw/init-step/init-step.d.ts +2 -1
  25. package/trading-widget/components/withdraw/init-step/input-group/init-withdraw-input-group.d.ts +2 -1
  26. package/trading-widget/components/withdraw/init-step/meta/transaction-disclosure/transaction-disclosure.d.ts +2 -1
  27. package/trading-widget/providers/component-provider/index.d.ts +1 -1
  28. package/trading-widget/providers/config-provider/index.d.ts +1 -1
  29. package/trading-widget/providers/overlay-provider/overlay-provider.hooks.d.ts +1 -1
  30. package/trading-widget/providers/theme-provider/index.d.ts +1 -1
  31. package/trading-widget/providers/translation-provider/index.d.ts +1 -1
package/README.md CHANGED
@@ -7,9 +7,9 @@ Requirements:
7
7
  Widget library has some vital `peerDependencies` as a core tool stack. Make sure having all those dependencies installed in app before starting the integration:
8
8
 
9
9
  ```bash
10
- "@tanstack/react-query": "^5.28.4",
11
- "react": ">=18.2.0",
12
- "viem": "^2.44.2",
10
+ "@tanstack/react-query": "^5.81.2",
11
+ "react": "^19.0.0",
12
+ "viem": "^2.52.2",
13
13
  "wagmi": "^2.19.5"
14
14
  ```
15
15
 
@@ -739,17 +739,4 @@ Follow the steps below to set up the project for local development:
739
739
  pnpm install
740
740
  ```
741
741
 
742
- 2. **Update Alchemy API Key**: Replace the placeholder Alchemy API key in the file:
743
-
744
- ```bash
745
- packages/trading-widget/src/core-kit/providers/wagmi-provider.tsx
746
- ```
747
-
748
- 3. **Implement** getSwapQuotes in:
749
- ```bash
750
- packages/trading-widget/src/core-kit/providers/wagmi-provider.tsx
751
- ```
752
- 4. **Run Storybook**
753
- ```bash
754
- pnpm storybook
755
- ```
742
+ 2. **Run the widget inside an app**: `pnpm dev` at the repository root starts toros-dapp and rebuilds the widget's `dist/` on every change (`vite build --watch`); `pnpm dev:mstable` and `pnpm dev:flat` do the same for the other apps. Run `pnpm --filter @dhedge/trading-widget run test` and `run lint` before publishing.
@@ -1,9 +1,9 @@
1
- export * from '../types/config.types';
2
- export * from '../types/contract.types';
3
- export * from '../types/pool.types';
4
- export * from '../types/referral.types';
5
- export * from '../types/state.types';
6
- export * from '../types/trading.types';
7
- export * from '../types/trading-panel.types';
8
- export * from '../types/web3.types';
9
- export * from '../types/react-query.types';
1
+ export type * from '../types/config.types';
2
+ export type * from '../types/contract.types';
3
+ export type * from '../types/pool.types';
4
+ export type * from '../types/referral.types';
5
+ export type * from '../types/state.types';
6
+ export type * from '../types/trading.types';
7
+ export type * from '../types/trading-panel.types';
8
+ export type * from '../types/web3.types';
9
+ export type * from '../types/react-query.types';