@rango-dev/widget-embedded 0.29.0 → 0.29.1-next.1

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 (48) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist/components/BlockchainList/BlockchainList.styles.d.ts +3 -3
  3. package/dist/components/BlockchainsSection/BlockchainsSection.styles.d.ts +1 -1
  4. package/dist/components/ConfirmWalletsModal/ConfirmWallets.styles.d.ts +15 -15
  5. package/dist/components/ConfirmWalletsModal/WalletList.styles.d.ts +3 -3
  6. package/dist/components/CustomCollapsible/CustomCollapsible.styles.d.ts +4 -4
  7. package/dist/components/HeaderButtons/HeaderButtons.styles.d.ts +8 -8
  8. package/dist/components/HistoryGroupedList/HistoryGroupedList.styles.d.ts +6 -6
  9. package/dist/components/Layout/Layout.styles.d.ts +4 -4
  10. package/dist/components/Layout/PageContainer.d.ts +1 -1
  11. package/dist/components/Layout/ScrollableArea.d.ts +1 -1
  12. package/dist/components/LoadingLiquiditySourceList/LoadingLiquiditySourceList.styles.d.ts +1 -1
  13. package/dist/components/LoadingSwapDetails/LoadingSwapDetails.styles.d.ts +14 -14
  14. package/dist/components/NoResult/NoResult.styles.d.ts +4 -4
  15. package/dist/components/NotificationContent/NotificationContent.styles.d.ts +8 -8
  16. package/dist/components/Quote/Quote.styles.d.ts +21 -21
  17. package/dist/components/Quote/QuoteCostDetails.styles.d.ts +5 -5
  18. package/dist/components/Quote/QuoteSummary.styles.d.ts +2 -2
  19. package/dist/components/QuoteSkeleton/QuoteSkeleton.styles.d.ts +4 -4
  20. package/dist/components/QuoteSkeleton/QuoteSummarySkeleton.styles.d.ts +10 -10
  21. package/dist/components/QuoteSkeleton/StepSkeleton.styles.d.ts +5 -5
  22. package/dist/components/QuoteWarningsAndErrors/QuoteWarningsAndErrors.styles.d.ts +4 -4
  23. package/dist/components/Quotes/Quotes.styles.d.ts +3 -3
  24. package/dist/components/RefreshModal/RefreshModal.styles.d.ts +1 -1
  25. package/dist/components/SearchInput/SearchInput.styles.d.ts +1 -1
  26. package/dist/components/SettingsContainer/SettingsContainer.style.d.ts +3 -3
  27. package/dist/components/Slippage/Slippage.styles.d.ts +5 -5
  28. package/dist/components/SwapDetails/SwapDetails.styles.d.ts +15 -15
  29. package/dist/components/SwapDetailsAlerts/SwapDetailsAlerts.styles.d.ts +3 -3
  30. package/dist/components/SwapDetailsModal/SwapDetailsModal.styles.d.ts +2 -2
  31. package/dist/components/SwitchFromAndTo/SwitchFromAndTo.styles.d.ts +2 -2
  32. package/dist/components/TokenList/TokenList.styles.d.ts +18 -18
  33. package/dist/components/WalletModal/WalletModalContent.styles.d.ts +4 -4
  34. package/dist/components/WalletNamespacesModal/WalletNamespacesModal.styles.d.ts +1 -1
  35. package/dist/containers/App/App.styles.d.ts +1 -1
  36. package/dist/containers/ExpandedQuotes/ExpandedQuotes.styles.d.ts +2 -2
  37. package/dist/containers/Inputs/Inputs.styles.d.ts +2 -2
  38. package/dist/containers/QuoteInfo/QuoteInfo.styles.d.ts +3 -3
  39. package/dist/hooks/useTheme.d.ts.map +1 -1
  40. package/dist/index.js +1 -1
  41. package/dist/index.js.map +2 -2
  42. package/dist/types/config.d.ts +2 -1
  43. package/dist/types/config.d.ts.map +1 -1
  44. package/dist/widget-embedded.build.json +1 -1
  45. package/package.json +9 -9
  46. package/src/components/Layout/Layout.styles.ts +1 -1
  47. package/src/hooks/useTheme.ts +1 -0
  48. package/src/types/config.ts +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rango-dev/widget-embedded",
3
- "version": "0.29.0",
3
+ "version": "0.29.1-next.1",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "source": "./src/index.ts",
@@ -25,22 +25,22 @@
25
25
  "@lingui/core": "4.2.1",
26
26
  "@lingui/react": "4.2.1",
27
27
  "@rango-dev/logging-core": "^0.4.0",
28
- "@rango-dev/provider-all": "^0.34.0",
28
+ "@rango-dev/provider-all": "^0.34.1-next.0",
29
29
  "@rango-dev/queue-manager-core": "^0.26.0",
30
- "@rango-dev/queue-manager-rango-preset": "^0.34.0",
30
+ "@rango-dev/queue-manager-rango-preset": "^0.34.1-next.0",
31
31
  "@rango-dev/queue-manager-react": "^0.26.0",
32
- "@rango-dev/signer-solana": "^0.29.0",
33
- "@rango-dev/ui": "^0.35.0",
34
- "@rango-dev/wallets-react": "^0.20.0",
35
- "@rango-dev/wallets-shared": "^0.34.0",
32
+ "@rango-dev/signer-solana": "^0.29.1-next.0",
33
+ "@rango-dev/ui": "^0.35.1-next.1",
34
+ "@rango-dev/wallets-react": "^0.20.1-next.0",
35
+ "@rango-dev/wallets-shared": "^0.34.1-next.0",
36
36
  "bignumber.js": "^9.1.1",
37
37
  "copy-to-clipboard": "^3.3.3",
38
38
  "dayjs": "^1.11.7",
39
39
  "ethers": "^5.7.2",
40
40
  "immer": "^9.0.19",
41
41
  "mitt": "^3.0.0",
42
- "rango-sdk": "^0.1.45",
43
- "rango-types": "^0.1.59",
42
+ "rango-sdk": "^0.1.49",
43
+ "rango-types": "^0.1.69",
44
44
  "react-i18next": "^12.2.0",
45
45
  "react-router-dom": "^6.8.0",
46
46
  "values.js": "2.1.1",
@@ -7,7 +7,7 @@ export const LayoutContainer = css({
7
7
  display: 'flex',
8
8
  flexDirection: 'column',
9
9
  overflow: 'hidden',
10
- boxShadow: '15px 15px 15px 0px rgba(0, 0, 0, 0.05)',
10
+ boxShadow: '$mainContainer',
11
11
  });
12
12
 
13
13
  export const Container = styled('div', {
@@ -30,6 +30,7 @@ export function useTheme(props: WidgetTheme) {
30
30
  const { dark, light } = customizedThemeTokens(colors);
31
31
 
32
32
  const baseTheme = createTheme({
33
+ shadows: props.shadows || {},
33
34
  radii: {
34
35
  primary: `${borderRadius}px`,
35
36
  secondary: `${secondaryBorderRadius}px`,
@@ -1,4 +1,4 @@
1
- import type { Language } from '@rango-dev/ui';
1
+ import type { Language, theme } from '@rango-dev/ui';
2
2
  import type { ProviderInterface } from '@rango-dev/wallets-react';
3
3
  import type { WalletType } from '@rango-dev/wallets-shared';
4
4
  import type { Asset } from 'rango-sdk';
@@ -49,6 +49,7 @@ export type WidgetTheme = {
49
49
  mode?: 'auto' | 'light' | 'dark';
50
50
  fontFamily?: string;
51
51
  colors?: { light?: WidgetColors; dark?: WidgetColors };
52
+ shadows?: typeof theme.shadows;
52
53
  borderRadius?: number;
53
54
  secondaryBorderRadius?: number;
54
55
  width?: number;