@getpara/react-sdk 2.0.0-dev.0 → 2.0.0-dev.2
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/cli/cli.mjs +1 -6
- package/dist/index.d.ts +1 -0
- package/dist/index.js +708 -359
- package/dist/index.js.br +0 -0
- package/dist/index.js.gz +0 -0
- package/dist/modal/components/ExternalWalletVerificationStep/ExternalWalletVerificationStep.d.ts +1 -0
- package/dist/modal/components/common.d.ts +4 -0
- package/dist/modal/constants/constants.d.ts +1 -1
- package/dist/modal/index.d.ts +0 -1
- package/dist/modal/stores/modal/useModalStore.d.ts +11 -4
- package/dist/modal/types/commonTypes.d.ts +0 -42
- package/dist/modal/utils/steps.d.ts +2 -0
- package/dist/provider/actions/getAccount.d.ts +1 -1
- package/dist/provider/actions/index.d.ts +25 -0
- package/dist/provider/actions/utils.d.ts +3 -0
- package/dist/provider/hooks/mutations/index.d.ts +25 -1
- package/dist/provider/hooks/mutations/useSignTransaction.d.ts +3 -2
- package/dist/provider/hooks/mutations/utils.d.ts +4 -0
- package/dist/provider/hooks/queries/useAccount.d.ts +1 -1
- package/dist/provider/hooks/utils/useWalletState.d.ts +1 -0
- package/dist/provider/providers/AuthProvider.d.ts +31 -0
- package/dist/provider/providers/ExternalWalletProvider.d.ts +14 -1
- package/dist/provider/stores/types.d.ts +6 -2
- package/dist/provider/types/externalWalletProviders.d.ts +2 -2
- package/dist/provider/types/provider.d.ts +6 -1
- package/dist/provider/types/utils.d.ts +15 -0
- package/dist/provider/utils/renameMutations.d.ts +3 -0
- package/package.json +12 -12
- package/dist/modal/types/externalWallets.d.ts +0 -31
package/dist/cli/cli.mjs
CHANGED
|
@@ -21,17 +21,12 @@ const checkForPackages = async () => {
|
|
|
21
21
|
await import(packageName);
|
|
22
22
|
} catch (err) {
|
|
23
23
|
if (err.code === 'ERR_MODULE_NOT_FOUND') {
|
|
24
|
-
const packageJsonContent = {
|
|
25
|
-
name: packageName,
|
|
26
|
-
main: './index.js',
|
|
27
|
-
};
|
|
24
|
+
const packageJsonContent = { name: packageName, main: './index.js' };
|
|
28
25
|
await fs.mkdir(path.join(pathToNodeModules, packageName), { recursive: true });
|
|
29
26
|
await fs.writeFile(path.join(pathToNodeModules, packageName, 'index.js'), '//STUB');
|
|
30
27
|
await fs.writeFile(path.join(pathToNodeModules, packageName, 'package.json'), JSON.stringify(packageJsonContent), {
|
|
31
28
|
encoding: 'utf-8',
|
|
32
29
|
});
|
|
33
|
-
} else {
|
|
34
|
-
console.err('Para setup failed:', err);
|
|
35
30
|
}
|
|
36
31
|
}
|
|
37
32
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from './modal/index.js';
|
|
2
2
|
export * from './provider/index.js';
|
|
3
3
|
export * from '@getpara/web-sdk';
|
|
4
|
+
export { ExternalWallet, EvmWallet, SolanaWallet, CosmosWallet } from '@getpara/react-common';
|
|
4
5
|
export type { Theme } from '@getpara/react-components';
|
|
5
6
|
import ParaWeb from '@getpara/web-sdk';
|
|
6
7
|
export default ParaWeb;
|