@gluwa/connect-kit 0.2.0-next.7 → 0.2.0-next.9

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/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # @gluwa/wallet-kit
2
2
 
3
+ ## 0.2.0-next.9
4
+
5
+ ### Patch Changes
6
+
7
+ - 18e631a: fix bugs
8
+
9
+ ## 0.2.0-next.8
10
+
11
+ ### Patch Changes
12
+
13
+ - e3789b4: emit OnSessionExpired when credit-connect QR session times out
14
+ - Updated dependencies [e3789b4]
15
+ - @gluwa/credit-connect-hub-node-ws@0.1.0-next.4
16
+ - @gluwa/credit-connect-sdk@0.2.0-next.4
17
+ - @gluwa/credit-connect-e2ee-tweetnacl@0.2.0-next.4
18
+ - @gluwa/credit-connect-storage-local@0.2.0-next.4
19
+
3
20
  ## 0.2.0-next.7
4
21
 
5
22
  ### Patch Changes
@@ -65,6 +65,10 @@ var creditConnectConnector = /* @__PURE__ */ __name((options) => {
65
65
  emitWagmiDisconnect == null ? void 0 : emitWagmiDisconnect();
66
66
  }
67
67
  });
68
+ manager.on("sessionExpired", (payload) => {
69
+ console.log("[CC connector] session expired \u2192 emit session_expired", payload);
70
+ emitWagmiMessage == null ? void 0 : emitWagmiMessage("session_expired", payload);
71
+ });
68
72
  return manager;
69
73
  }, "createManagerIfNeeded");
70
74
  const ensureManagerInitialized = /* @__PURE__ */ __name(async () => {
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  import {
3
3
  creditConnectConnector
4
- } from "./chunk-EDNRW47A.js";
4
+ } from "./chunk-VE5LB7BN.js";
5
5
  export {
6
6
  creditConnectConnector
7
7
  };
package/dist/index.css CHANGED
@@ -564,8 +564,9 @@
564
564
  width: 100%;
565
565
  max-width: none;
566
566
  grid-template-columns: 1fr;
567
+ grid-template-rows: minmax(0, 1fr);
567
568
  max-height: 82dvh;
568
- height: 100%;
569
+ height: auto;
569
570
  border-radius: 12px 12px 0 0;
570
571
  }
571
572
  .ck-root .ck-dialog[data-step=selector] .ck-detail {
@@ -877,6 +878,7 @@
877
878
  .ck-detail {
878
879
  display: flex;
879
880
  flex-direction: column;
881
+ min-width: 0;
880
882
  background: var(--semantic-paper-dialog);
881
883
  min-height: 0;
882
884
  position: relative;
@@ -959,6 +961,9 @@
959
961
  .ck-detail-body::-webkit-scrollbar-thumb:hover {
960
962
  background-color: var(--scale-gray-400);
961
963
  }
964
+ .ck-detail-body:has(.ck-all-wallets) {
965
+ padding-bottom: 0;
966
+ }
962
967
 
963
968
  /* src/layout/connectDialog/idle/style.scss */
964
969
  .ck-idle {
@@ -1158,15 +1163,15 @@
1158
1163
  overflow: hidden;
1159
1164
  outline: none;
1160
1165
  }
1161
- .ck-qr-loading {
1162
- border: 1px solid var(--semantic-divider-divider-1);
1163
- }
1164
- .ck-qr-timeout {
1166
+ .ck-qr-skeleton {
1167
+ padding: 20px;
1165
1168
  border: 1px solid var(--semantic-divider-divider-1);
1169
+ border-radius: 20px;
1166
1170
  }
1167
- .ck-qr-skeleton {
1168
- width: 248px;
1169
- height: 248px;
1171
+ .ck-qr-skeleton-inner {
1172
+ display: block;
1173
+ width: 246px;
1174
+ height: 246px;
1170
1175
  background:
1171
1176
  linear-gradient(
1172
1177
  132deg,
@@ -1177,9 +1182,24 @@
1177
1182
  animation: ck-qr-shimmer 1.5s linear infinite;
1178
1183
  }
1179
1184
  @media (max-width: 767px) {
1180
- .ck-qr-skeleton {
1181
- width: 200px;
1182
- height: 200px;
1185
+ .ck-qr-skeleton-inner {
1186
+ width: 198px;
1187
+ height: 198px;
1188
+ }
1189
+ }
1190
+ .ck-qr-timeout {
1191
+ width: 288px;
1192
+ height: 288px;
1193
+ border: 1px solid var(--semantic-divider-divider-1);
1194
+ background: var(--scale-gray-100);
1195
+ display: flex;
1196
+ align-items: center;
1197
+ justify-content: center;
1198
+ }
1199
+ @media (max-width: 767px) {
1200
+ .ck-qr-timeout {
1201
+ width: 240px;
1202
+ height: 240px;
1183
1203
  }
1184
1204
  }
1185
1205
  @keyframes ck-qr-shimmer {
@@ -1207,20 +1227,6 @@
1207
1227
  height: 198px;
1208
1228
  }
1209
1229
  }
1210
- .ck-qr-timeout {
1211
- width: 248px;
1212
- height: 248px;
1213
- background: var(--scale-gray-100);
1214
- display: flex;
1215
- align-items: center;
1216
- justify-content: center;
1217
- }
1218
- @media (max-width: 767px) {
1219
- .ck-qr-timeout {
1220
- width: 200px;
1221
- height: 200px;
1222
- }
1223
- }
1224
1230
  .ck-qr-timeout-inner {
1225
1231
  display: flex;
1226
1232
  flex-direction: column;
@@ -1690,15 +1696,8 @@
1690
1696
  gap: 8px;
1691
1697
  flex-shrink: 0;
1692
1698
  }
1693
- @media (max-width: 392px) {
1694
- .ck-all-wallets-controls {
1695
- flex-direction: column;
1696
- align-items: flex-end;
1697
- gap: 12px;
1698
- }
1699
- .ck-all-wallets-controls .ck-search {
1700
- width: 100%;
1701
- }
1699
+ .ck-all-wallets-controls .ck-search {
1700
+ min-width: 0;
1702
1701
  }
1703
1702
  .ck-wc-filter-btn {
1704
1703
  display: inline-flex;