@heybox/hb-sdk 0.2.0-alpha.2 → 0.3.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.
@@ -102,6 +102,65 @@
102
102
  background: #2563eb;
103
103
  }
104
104
 
105
+ .mac-app-status {
106
+ display: grid;
107
+ gap: 8px;
108
+ margin-top: 10px;
109
+ color: #475569;
110
+ font-size: 12px;
111
+ line-height: 1.5;
112
+ }
113
+
114
+ .mac-app-status[hidden] {
115
+ display: none;
116
+ }
117
+
118
+ .debug-page-url {
119
+ display: grid;
120
+ grid-template-columns: minmax(0, 1fr) 32px;
121
+ align-items: center;
122
+ gap: 8px;
123
+ }
124
+
125
+ .debug-page-url code {
126
+ min-width: 0;
127
+ overflow-wrap: anywhere;
128
+ word-break: break-word;
129
+ border: 1px solid #d7dee8;
130
+ border-radius: 6px;
131
+ padding: 7px 8px;
132
+ color: #1f2933;
133
+ background: #fff;
134
+ }
135
+
136
+ .copy-icon-button {
137
+ display: inline-grid;
138
+ place-items: center;
139
+ width: 32px;
140
+ height: 32px;
141
+ border: 1px solid #cad5e2;
142
+ border-radius: 6px;
143
+ padding: 0;
144
+ color: #475569;
145
+ background: #fff;
146
+ cursor: pointer;
147
+ }
148
+
149
+ .copy-icon-button:hover {
150
+ border-color: #2563eb;
151
+ color: #2563eb;
152
+ }
153
+
154
+ .copy-icon-button svg {
155
+ width: 16px;
156
+ height: 16px;
157
+ }
158
+
159
+ .copy-status {
160
+ min-height: 18px;
161
+ color: #64748b;
162
+ }
163
+
105
164
  .field {
106
165
  display: grid;
107
166
  gap: 6px;
@@ -215,7 +274,25 @@
215
274
  <div class="actions" style="margin-top: 10px">
216
275
  <button class="primary" id="mac-app-button" type="button">在 Mac 版 APP 中启动</button>
217
276
  </div>
218
- <pre id="mac-app-status"></pre>
277
+ <div class="mac-app-status" id="mac-app-status" hidden>
278
+ <div>如果没有唤起 Mac 版 APP,请在系统浏览器中打开当前调试页面后重试。Codex、VSCode 等内嵌浏览器可能会拦截 heybox:// 协议。</div>
279
+ <div class="debug-page-url">
280
+ <code id="debug-page-url"></code>
281
+ <button
282
+ class="copy-icon-button"
283
+ id="copy-debug-page-url-button"
284
+ type="button"
285
+ aria-label="复制调试页面地址"
286
+ title="复制调试页面地址"
287
+ >
288
+ <svg viewBox="0 0 24 24" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="2">
289
+ <rect x="9" y="9" width="13" height="13" rx="2" />
290
+ <path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1" />
291
+ </svg>
292
+ </button>
293
+ </div>
294
+ <div class="copy-status" id="debug-page-copy-status"></div>
295
+ </div>
219
296
  </section>
220
297
 
221
298
  <section class="block">