Skip to content

Commit

Permalink
Published version 2.2.23
Browse files Browse the repository at this point in the history
  • Loading branch information
Ansonhkg committed Jun 6, 2023
1 parent 53aa5da commit a235bc6
Show file tree
Hide file tree
Showing 219 changed files with 402 additions and 330 deletions.
50 changes: 25 additions & 25 deletions README.md

Large diffs are not rendered by default.

81 changes: 77 additions & 4 deletions apps/html/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!-- (DO NOT EDIT!) (HTML) THIS FILE IS AUTOMATICALLY GENERATED FROM tools/scripts/gen-html.mjs Tue, 06 Jun 2023 07:43:32 GMT -->
<!-- (DO NOT EDIT!) (HTML) THIS FILE IS AUTOMATICALLY GENERATED FROM tools/scripts/gen-html.mjs Tue, 06 Jun 2023 14:08:32 GMT -->
<!DOCTYPE html>
<html lang="en">
<head>
Expand Down Expand Up @@ -62,7 +62,7 @@
</style>
</head>
<body>
(HTML) THIS FILE IS AUTOMATICALLY GENERATED FROM tools/scripts/gen-html.mjs Tue, 06 Jun 2023 07:43:32 GMT
(HTML) THIS FILE IS AUTOMATICALLY GENERATED FROM tools/scripts/gen-html.mjs Tue, 06 Jun 2023 14:08:32 GMT

<!-- ==================== ALL EXPORTED VANILLA LIBRARIES ==================== -->
<script src="dist/packages/access-control-conditions-vanilla/access-control-conditions.js"></script>
Expand All @@ -86,6 +86,7 @@
<script src="dist/packages/pkp-client-vanilla/pkp-client.js"></script>
<script src="dist/packages/pkp-cosmos-vanilla/pkp-cosmos.js"></script>
<script src="dist/packages/pkp-ethers-vanilla/pkp-ethers.js"></script>
<script src="dist/packages/pkp-walletconnect-vanilla/pkp-walletconnect.js"></script>
<script src="dist/packages/types-vanilla/types.js"></script>
<script src="dist/packages/uint8arrays-vanilla/uint8arrays.js"></script>

Expand Down Expand Up @@ -1603,7 +1604,79 @@ <h1>LitJsSdk_pkpEthers has ${entries.length} functions</h1>
</script>


<!-- (22): TYPES -->
<!-- (22): PKPWALLETCONNECT -->
<script>
if(typeof LitJsSdk_pkpWalletconnect === 'undefined') {
console.error("LitJsSdk_pkpWalletconnect:", LitJsSdk_pkpWalletconnect);
}else{
console.warn("LitJsSdk_pkpWalletconnect:", LitJsSdk_pkpWalletconnect);
window.LitJsSdk_pkpWalletconnect = LitJsSdk_pkpWalletconnect;
}
window.addEventListener('load', function() {

var root = document.getElementById('root');
var result = document.getElementById('result');
var entries = Object.entries(LitJsSdk_pkpWalletconnect);
var lis = entries.map(([key, value]) => `
<li>
<div id="LitJsSdk_pkpWalletconnect_${key}" class="key" onClick="(async (e) => {
var fn = LitJsSdk_pkpWalletconnect['${key}'];
var fnType = typeof fn;
console.warn('[${key}] is type of [' + fnType + ']');
if ( fnType === 'string' ) return;
if( fnType === 'function' ){
try{
console.log('params:', globalThis.params);
var res;
try{
res = new fn(globalThis.params);
}catch{
res = await fn(globalThis.params);
}
window.output = res;
res = JSON.stringify(res, null, 2);
result.innerText = res;
console.log(res);
}catch(e){
console.error('Please set the [params] variable in the console then click again');
console.log(e);
}
return;
}
if( fnType === 'object' ){
var res = await fn;
window.output = res;
res = JSON.stringify(res, null, 2);
result.innerText = res;
console.log(res);
return;
}
})();">${key}</div>
<pre class="code">
<code>${(typeof value === 'function' ? value : JSON.stringify(value, null, 2))}</code>
</pre>
</li>`);
lis = lis.join(' ');
var template = `
<div class="cat">
<h1>LitJsSdk_pkpWalletconnect has ${entries.length} functions</h1>
<ul>
${ lis }
</ul>
</div>
`;
root.insertAdjacentHTML('beforeend', template);
});
</script>


<!-- (23): TYPES -->
<script>
if(typeof LitJsSdk_types === 'undefined') {
console.error("LitJsSdk_types:", LitJsSdk_types);
Expand Down Expand Up @@ -1675,7 +1748,7 @@ <h1>LitJsSdk_types has ${entries.length} functions</h1>
</script>


<!-- (23): UINT8ARRAYS -->
<!-- (24): UINT8ARRAYS -->
<script>
if(typeof LitJsSdk_uint8arrays === 'undefined') {
console.error("LitJsSdk_uint8arrays:", LitJsSdk_uint8arrays);
Expand Down
2 changes: 1 addition & 1 deletion apps/react/src/app/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1870,7 +1870,7 @@ pre {
`,
}}
/>
(REACT) THIS FILE IS AUTOMATICALLY GENERATED FROM tools/scripts/gen-react.mjs Tue, 06 Jun 2023 07:43:32 GMT
(REACT) THIS FILE IS AUTOMATICALLY GENERATED FROM tools/scripts/gen-react.mjs Tue, 06 Jun 2023 14:08:33 GMT
<div id="root"></div>
<pre><code id="result"></code></pre>
</>
Expand Down
2 changes: 1 addition & 1 deletion doc/assets/search.js

Large diffs are not rendered by default.

Loading

0 comments on commit a235bc6

Please sign in to comment.