@merit-systems/echo-react-sdk 1.0.29 → 1.0.31
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/LICENSE +13 -0
- package/dist/index.cjs +3 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -18
- package/dist/index.d.ts +12 -18
- package/dist/index.js +3 -4
- package/dist/index.js.map +1 -1
- package/package.json +25 -25
package/LICENSE
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
Copyright 2025 Merit Systems, Inc
|
|
2
|
+
|
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
you may not use this file except in compliance with the License.
|
|
5
|
+
You may obtain a copy of the License at
|
|
6
|
+
|
|
7
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
|
|
9
|
+
Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
See the License for the specific language governing permissions and
|
|
13
|
+
limitations under the License.
|
package/dist/index.cjs
CHANGED
|
@@ -134263,8 +134263,8 @@ var import_oidc_client_ts = require("oidc-client-ts");
|
|
|
134263
134263
|
var import_react_oidc_context2 = require("react-oidc-context");
|
|
134264
134264
|
|
|
134265
134265
|
// src/hooks/useEchoBalance.ts
|
|
134266
|
-
var import_echo_typescript_sdk = require("@merit-systems/echo-typescript-sdk");
|
|
134267
134266
|
var import_swr = __toESM(require("swr"), 1);
|
|
134267
|
+
var import_echo_typescript_sdk = require("@merit-systems/echo-typescript-sdk");
|
|
134268
134268
|
function useEchoBalance(echoClient, appId) {
|
|
134269
134269
|
const { data, error: error2, isLoading, mutate } = (0, import_swr.default)(
|
|
134270
134270
|
echoClient && appId ? ["balance", appId] : null,
|
|
@@ -135579,7 +135579,6 @@ function EchoTokens({
|
|
|
135579
135579
|
balance,
|
|
135580
135580
|
freeTierBalance,
|
|
135581
135581
|
isLoading,
|
|
135582
|
-
isLoggedIn,
|
|
135583
135582
|
refreshBalance,
|
|
135584
135583
|
isInsufficientFunds,
|
|
135585
135584
|
setIsInsufficientFunds
|
|
@@ -135727,10 +135726,10 @@ function EchoTokens({
|
|
|
135727
135726
|
onMouseEnter: () => setIsHovered(true),
|
|
135728
135727
|
onMouseLeave: () => setIsHovered(false),
|
|
135729
135728
|
children: [
|
|
135730
|
-
showAvatar && user?.
|
|
135729
|
+
showAvatar && user?.image ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
135731
135730
|
"img",
|
|
135732
135731
|
{
|
|
135733
|
-
src: user.
|
|
135732
|
+
src: user.image,
|
|
135734
135733
|
alt: user.name || user.email || "User avatar",
|
|
135735
135734
|
style: {
|
|
135736
135735
|
width: "24px",
|