@zerohash-sdk/crypto-account-link-react 1.14.12 → 1.14.13
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/README.md +1 -1
- package/dist/index.js +2 -2
- package/package.json +1 -1
- package/src/lib/crypto-account-link-react.tsx +2 -1
- package/vite.config.mts +2 -55
package/README.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -160,10 +160,10 @@ var s = {
|
|
|
160
160
|
};
|
|
161
161
|
return i && (s.sandbox = o(v.cert), s.production = o(v.prod)), r && (s["eu-cert"] = o(v["eu-cert"]), s["eu-prod"] = o(v["eu-prod"])), s;
|
|
162
162
|
};
|
|
163
|
-
({
|
|
163
|
+
[...Object.entries(v).filter(([e]) => e !== "local").map(([, e]) => e)], {
|
|
164
164
|
LOADED: "travel_rule_loaded",
|
|
165
165
|
COMPLETED: "travel_rule_completed"
|
|
166
|
-
}
|
|
166
|
+
}.LOADED;
|
|
167
167
|
//#endregion
|
|
168
168
|
//#region ../../../common/callbacks/dist/shared/models.js
|
|
169
169
|
var x;
|
package/package.json
CHANGED
|
@@ -217,7 +217,8 @@ declare global {
|
|
|
217
217
|
}
|
|
218
218
|
|
|
219
219
|
interface CryptoAccountLinkElement
|
|
220
|
-
extends
|
|
220
|
+
extends
|
|
221
|
+
HTMLElement,
|
|
221
222
|
Pick<
|
|
222
223
|
CryptoAccountLinkProps,
|
|
223
224
|
'theme' | 'onCompleted' | 'onError' | 'onClose' | 'onLoaded' | 'onEvent' | 'onExternalAccountCreated'
|
package/vite.config.mts
CHANGED
|
@@ -1,58 +1,5 @@
|
|
|
1
1
|
/// <reference types='vitest' />
|
|
2
|
-
import react from '@vitejs/plugin-react';
|
|
3
|
-
import * as path from 'path';
|
|
4
|
-
import { defineConfig } from 'vite';
|
|
5
|
-
import dts from 'vite-plugin-dts';
|
|
6
|
-
|
|
7
2
|
// eslint-disable-next-line @nx/enforce-module-boundaries
|
|
8
|
-
import {
|
|
3
|
+
import { sdkReactConfig } from '../../../../vite-sdk.config.mjs';
|
|
9
4
|
|
|
10
|
-
export default
|
|
11
|
-
root: import.meta.dirname,
|
|
12
|
-
cacheDir: '../../../../node_modules/.vite/src/crypto-account-link/sdks/react',
|
|
13
|
-
plugins: [
|
|
14
|
-
rolldownCjsInterop(),
|
|
15
|
-
react(),
|
|
16
|
-
dts({
|
|
17
|
-
entryRoot: 'src',
|
|
18
|
-
tsconfigPath: path.join(import.meta.dirname, 'tsconfig.lib.json'),
|
|
19
|
-
bundleTypes: { bundledPackages: ['@zerohash/callbacks'] }, // Bundle all type dependencies
|
|
20
|
-
}),
|
|
21
|
-
],
|
|
22
|
-
// Uncomment this if you are using workers.
|
|
23
|
-
// worker: {
|
|
24
|
-
// plugins: [],
|
|
25
|
-
// },
|
|
26
|
-
// Configuration for building your library.
|
|
27
|
-
// See: https://vitejs.dev/guide/build.html#library-mode
|
|
28
|
-
build: {
|
|
29
|
-
outDir: './dist',
|
|
30
|
-
emptyOutDir: true,
|
|
31
|
-
reportCompressedSize: true,
|
|
32
|
-
lib: {
|
|
33
|
-
// Could also be a dictionary or array of multiple entry points.
|
|
34
|
-
entry: 'src/index.ts',
|
|
35
|
-
name: '@zerohash-sdk/crypto-account-link-react',
|
|
36
|
-
fileName: 'index',
|
|
37
|
-
// Change this to the formats you want to support.
|
|
38
|
-
// Don't forget to update your package.json as well.
|
|
39
|
-
formats: ['es' as const],
|
|
40
|
-
},
|
|
41
|
-
rolldownOptions: {
|
|
42
|
-
// External packages that should not be bundled into your library.
|
|
43
|
-
external: ['react', 'react-dom', 'react/jsx-runtime'],
|
|
44
|
-
},
|
|
45
|
-
},
|
|
46
|
-
test: {
|
|
47
|
-
name: '@zerohash-sdk/crypto-account-link-react',
|
|
48
|
-
watch: false,
|
|
49
|
-
globals: true,
|
|
50
|
-
environment: 'jsdom',
|
|
51
|
-
include: ['{src,tests}/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
|
|
52
|
-
reporters: ['default'],
|
|
53
|
-
coverage: {
|
|
54
|
-
reportsDirectory: './test-output/vitest/coverage',
|
|
55
|
-
provider: 'v8' as const,
|
|
56
|
-
},
|
|
57
|
-
},
|
|
58
|
-
}));
|
|
5
|
+
export default sdkReactConfig(import.meta.dirname, { name: '@zerohash-sdk/crypto-account-link-react' });
|