@heybox/hb-sdk 0.3.3 → 0.4.1

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.
Files changed (35) hide show
  1. package/README.md +63 -28
  2. package/dist/cli-chunks/browser-RAy8e8cV.cjs +635 -0
  3. package/dist/cli-chunks/create-Ds8A82lV.cjs +1376 -0
  4. package/dist/cli-chunks/deploy-D4uxwB2W.cjs +3730 -0
  5. package/dist/cli-chunks/dev-v-tcA7mM.cjs +955 -0
  6. package/dist/cli-chunks/doctor-C8NP7bow.cjs +186 -0
  7. package/dist/cli-chunks/index-BWrMUHh9.cjs +64023 -0
  8. package/dist/cli-chunks/index-DDqd9qAR.cjs +13348 -0
  9. package/dist/cli-chunks/login-BJVOo-hq.cjs +193 -0
  10. package/dist/cli-chunks/session-Iyxc2AGl.cjs +3040 -0
  11. package/dist/cli.cjs +19 -77707
  12. package/dist/devtools/mock-host/index.html +62 -2
  13. package/dist/devtools/mock-host/main.js +3246 -20
  14. package/dist/index.cjs.js +20 -0
  15. package/dist/index.esm.js +20 -0
  16. package/dist/miniapp-publish.cjs.js +2810 -4
  17. package/dist/miniapp-publish.esm.js +2809 -4
  18. package/dist/protocol.cjs.js +15 -0
  19. package/dist/protocol.esm.js +15 -1
  20. package/dist/templates/vue3-vite-ts/README.md.ejs +6 -2
  21. package/dist/vite.cjs.js +2814 -14
  22. package/dist/vite.esm.js +2814 -14
  23. package/package.json +6 -1
  24. package/skill/SKILL.md +19 -13
  25. package/skill/references/api-protocol.md +7 -2
  26. package/skill/references/api-root.md +24 -13
  27. package/skill/references/cli.md +339 -104
  28. package/skill/scripts/sync-references.mjs +17 -1
  29. package/skill/skill.json +4 -4
  30. package/types/index.d.ts +1 -1
  31. package/types/miniapp-manifest/schema.d.ts +2 -1
  32. package/types/miniapp-publish/index.d.ts +2 -1
  33. package/types/modules/viewport/index.d.ts +33 -0
  34. package/types/protocol/capabilities.d.ts +17 -2
  35. package/types/protocol.d.ts +2 -2
@@ -11,7 +11,8 @@
11
11
 
12
12
  body {
13
13
  margin: 0;
14
- min-height: 100vh;
14
+ height: 100vh;
15
+ overflow: hidden;
15
16
  color: #1f2933;
16
17
  background: #eef2f6;
17
18
  font-family:
@@ -26,16 +27,21 @@
26
27
  .layout {
27
28
  display: grid;
28
29
  grid-template-columns: minmax(320px, 400px) minmax(360px, 1fr);
29
- min-height: 100vh;
30
+ height: 100vh;
31
+ min-height: 0;
30
32
  }
31
33
 
32
34
  .panel {
33
35
  display: flex;
34
36
  flex-direction: column;
35
37
  gap: 16px;
38
+ min-height: 0;
39
+ overflow-y: auto;
40
+ overscroll-behavior: contain;
36
41
  padding: 18px;
37
42
  border-right: 1px solid #d7dee8;
38
43
  background: #fff;
44
+ scrollbar-gutter: stable;
39
45
  }
40
46
 
41
47
  .panel h1 {
@@ -174,6 +180,31 @@
174
180
  padding: 0 10px;
175
181
  }
176
182
 
183
+ .field select {
184
+ min-height: 36px;
185
+ width: 100%;
186
+ border: 1px solid #cad5e2;
187
+ border-radius: 6px;
188
+ padding: 0 10px;
189
+ color: #1f2933;
190
+ background: #fff;
191
+ }
192
+
193
+ .mobile-qr {
194
+ display: grid;
195
+ justify-items: center;
196
+ gap: 8px;
197
+ margin-top: 10px;
198
+ }
199
+
200
+ .mobile-qr img {
201
+ width: 176px;
202
+ height: 176px;
203
+ border: 1px solid #d7dee8;
204
+ border-radius: 6px;
205
+ background: #fff;
206
+ }
207
+
177
208
  .logs {
178
209
  display: grid;
179
210
  gap: 8px;
@@ -207,7 +238,10 @@
207
238
  .stage {
208
239
  display: grid;
209
240
  place-items: center;
241
+ height: 100vh;
242
+ min-height: 0;
210
243
  min-width: 0;
244
+ overflow: hidden;
211
245
  padding: 22px;
212
246
  }
213
247
 
@@ -234,14 +268,28 @@
234
268
  }
235
269
 
236
270
  @media (max-width: 860px) {
271
+ body {
272
+ height: auto;
273
+ min-height: 100vh;
274
+ overflow: auto;
275
+ }
276
+
237
277
  .layout {
238
278
  grid-template-columns: 1fr;
279
+ height: auto;
280
+ min-height: 100vh;
239
281
  }
240
282
 
241
283
  .panel {
284
+ overflow: visible;
242
285
  border-right: 0;
243
286
  border-bottom: 1px solid #d7dee8;
244
287
  }
288
+
289
+ .stage {
290
+ height: auto;
291
+ min-height: 80vh;
292
+ }
245
293
  }
246
294
  </style>
247
295
  </head>
@@ -295,6 +343,18 @@
295
343
  </div>
296
344
  </section>
297
345
 
346
+ <section class="block">
347
+ <span>Mobile App</span>
348
+ <label class="field" style="margin-top: 10px">
349
+ <span>Network</span>
350
+ <select id="mobile-lan-select"></select>
351
+ </label>
352
+ <div class="mobile-qr">
353
+ <img id="mobile-qr-image" alt="手机扫码调试二维码" />
354
+ <div class="copy-status" id="mobile-qr-status"></div>
355
+ </div>
356
+ </section>
357
+
298
358
  <section class="block">
299
359
  <label class="field">
300
360
  <span>Nickname</span>