@one_deploy/sdk 1.0.6 → 1.0.7
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/dist/react-native.d.mts +10 -6
- package/dist/react-native.d.ts +10 -6
- package/dist/react-native.js +695 -119
- package/dist/react-native.js.map +1 -1
- package/dist/react-native.mjs +696 -120
- package/dist/react-native.mjs.map +1 -1
- package/package.json +1 -1
- package/src/components/ai/OneChainSelector.tsx +336 -63
- package/src/components/ai/OnePairSelector.tsx +434 -77
package/dist/react-native.d.mts
CHANGED
|
@@ -9,8 +9,8 @@ import React from 'react';
|
|
|
9
9
|
import { ViewStyle, TextStyle } from 'react-native';
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
|
-
* OneChainSelector - Multi-chain selection component
|
|
13
|
-
* Part of ONE Ecosystem SDK -
|
|
12
|
+
* OneChainSelector - Multi-chain selection component with dropdown style
|
|
13
|
+
* Part of ONE Ecosystem SDK - Responsive design for desktop and mobile
|
|
14
14
|
*/
|
|
15
15
|
|
|
16
16
|
declare const CHAIN_CONFIG: Record<string, {
|
|
@@ -35,6 +35,8 @@ interface OneChainSelectorProps {
|
|
|
35
35
|
subtitle?: string;
|
|
36
36
|
/** Minimum required selections (for multi-select) */
|
|
37
37
|
minSelections?: number;
|
|
38
|
+
/** Placeholder text */
|
|
39
|
+
placeholder?: string;
|
|
38
40
|
/** Custom styles */
|
|
39
41
|
style?: ViewStyle;
|
|
40
42
|
/** Custom title style */
|
|
@@ -114,15 +116,15 @@ interface OneCycleSelectorProps {
|
|
|
114
116
|
declare const OneCycleSelector: React.FC<OneCycleSelectorProps>;
|
|
115
117
|
|
|
116
118
|
/**
|
|
117
|
-
* OnePairSelector - Trading pair selection component
|
|
118
|
-
* Part of ONE Ecosystem SDK -
|
|
119
|
+
* OnePairSelector - Trading pair selection component with dropdown style
|
|
120
|
+
* Part of ONE Ecosystem SDK - Responsive design for desktop and mobile
|
|
119
121
|
*/
|
|
120
122
|
|
|
121
123
|
declare const PAIR_ICONS: Record<string, string>;
|
|
122
124
|
interface OnePairSelectorProps {
|
|
123
|
-
/** List of supported trading
|
|
125
|
+
/** List of supported trading pair IDs (e.g., 'BTC', 'ETH') */
|
|
124
126
|
supportedPairs: string[];
|
|
125
|
-
/** Currently selected
|
|
127
|
+
/** Currently selected pair IDs */
|
|
126
128
|
selectedPairs: string[];
|
|
127
129
|
/** Callback when pair selection changes */
|
|
128
130
|
onTogglePair: (pair: string) => void;
|
|
@@ -136,6 +138,8 @@ interface OnePairSelectorProps {
|
|
|
136
138
|
minSelections?: number;
|
|
137
139
|
/** Maximum allowed selections (0 = unlimited) */
|
|
138
140
|
maxSelections?: number;
|
|
141
|
+
/** Placeholder text */
|
|
142
|
+
placeholder?: string;
|
|
139
143
|
/** Custom styles */
|
|
140
144
|
style?: ViewStyle;
|
|
141
145
|
/** Custom title style */
|
package/dist/react-native.d.ts
CHANGED
|
@@ -9,8 +9,8 @@ import React from 'react';
|
|
|
9
9
|
import { ViewStyle, TextStyle } from 'react-native';
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
|
-
* OneChainSelector - Multi-chain selection component
|
|
13
|
-
* Part of ONE Ecosystem SDK -
|
|
12
|
+
* OneChainSelector - Multi-chain selection component with dropdown style
|
|
13
|
+
* Part of ONE Ecosystem SDK - Responsive design for desktop and mobile
|
|
14
14
|
*/
|
|
15
15
|
|
|
16
16
|
declare const CHAIN_CONFIG: Record<string, {
|
|
@@ -35,6 +35,8 @@ interface OneChainSelectorProps {
|
|
|
35
35
|
subtitle?: string;
|
|
36
36
|
/** Minimum required selections (for multi-select) */
|
|
37
37
|
minSelections?: number;
|
|
38
|
+
/** Placeholder text */
|
|
39
|
+
placeholder?: string;
|
|
38
40
|
/** Custom styles */
|
|
39
41
|
style?: ViewStyle;
|
|
40
42
|
/** Custom title style */
|
|
@@ -114,15 +116,15 @@ interface OneCycleSelectorProps {
|
|
|
114
116
|
declare const OneCycleSelector: React.FC<OneCycleSelectorProps>;
|
|
115
117
|
|
|
116
118
|
/**
|
|
117
|
-
* OnePairSelector - Trading pair selection component
|
|
118
|
-
* Part of ONE Ecosystem SDK -
|
|
119
|
+
* OnePairSelector - Trading pair selection component with dropdown style
|
|
120
|
+
* Part of ONE Ecosystem SDK - Responsive design for desktop and mobile
|
|
119
121
|
*/
|
|
120
122
|
|
|
121
123
|
declare const PAIR_ICONS: Record<string, string>;
|
|
122
124
|
interface OnePairSelectorProps {
|
|
123
|
-
/** List of supported trading
|
|
125
|
+
/** List of supported trading pair IDs (e.g., 'BTC', 'ETH') */
|
|
124
126
|
supportedPairs: string[];
|
|
125
|
-
/** Currently selected
|
|
127
|
+
/** Currently selected pair IDs */
|
|
126
128
|
selectedPairs: string[];
|
|
127
129
|
/** Callback when pair selection changes */
|
|
128
130
|
onTogglePair: (pair: string) => void;
|
|
@@ -136,6 +138,8 @@ interface OnePairSelectorProps {
|
|
|
136
138
|
minSelections?: number;
|
|
137
139
|
/** Maximum allowed selections (0 = unlimited) */
|
|
138
140
|
maxSelections?: number;
|
|
141
|
+
/** Placeholder text */
|
|
142
|
+
placeholder?: string;
|
|
139
143
|
/** Custom styles */
|
|
140
144
|
style?: ViewStyle;
|
|
141
145
|
/** Custom title style */
|