cardbuddy 0.7.0 → 0.9.0

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 (36) hide show
  1. package/README.md +21 -0
  2. package/dist/cli.js +5 -0
  3. package/dist/preview-editor/assets/index-CrcrVs4F.css +1 -0
  4. package/dist/preview-editor/assets/index-DnpHHKWl.js +80 -0
  5. package/dist/preview-editor/index.html +2 -2
  6. package/dist/server-core/codeBridge.js +359 -0
  7. package/dist/server-core/index.js +27 -2
  8. package/dist/server-core/logStream.js +275 -0
  9. package/dist/standalone.js +33 -6
  10. package/dist/vendored/App.vue +28 -19
  11. package/dist/vendored/ansi.js +185 -0
  12. package/dist/vendored/api.js +164 -28
  13. package/dist/vendored/components/ApiCallPanel.vue +13 -1
  14. package/dist/vendored/components/ApiPayloadTree.vue +34 -1
  15. package/dist/vendored/components/CardGallery.vue +2 -2
  16. package/dist/vendored/components/ComponentPalette.vue +46 -39
  17. package/dist/vendored/components/ConfirmDialog.vue +2 -2
  18. package/dist/vendored/components/DebugPanel.vue +420 -69
  19. package/dist/vendored/components/EventEditor.vue +29 -3
  20. package/dist/vendored/components/LogValue.vue +2 -1
  21. package/dist/vendored/components/NodeInspector.vue +1 -1
  22. package/dist/vendored/components/PropControl.vue +6 -2
  23. package/dist/vendored/components/RemotePreview.vue +3 -1
  24. package/dist/vendored/components/StructureTree.vue +2 -0
  25. package/dist/vendored/components/setters/SetCode.vue +111 -3
  26. package/dist/vendored/styles/app.css +529 -96
  27. package/dist/vendored/styles/card-gallery.css +4 -11
  28. package/dist/vendored/styles/card-select.css +0 -15
  29. package/dist/vendored/styles/dropdown.css +3 -15
  30. package/dist/vendored/styles/json-tree.css +1 -1
  31. package/dist/vendored/styles/node-inspector.css +204 -131
  32. package/dist/vendored/styles/setters.css +91 -2
  33. package/dist/vendored/styles/structure-tree.css +27 -12
  34. package/package.json +1 -1
  35. package/dist/preview-editor/assets/index-BlscexDE.js +0 -79
  36. package/dist/preview-editor/assets/index-dlbSPb5W.css +0 -1
@@ -11,8 +11,9 @@
11
11
  align-items: center;
12
12
  justify-content: center;
13
13
  padding: 24px;
14
- background: rgba(0, 0, 0, 0.5);
15
- /* 独立显示区背景用暗色半透明,不随编辑器主题翻转(预览即真实卡片内容) */
14
+ /* 与确认框 .confirm-mask 同款模糊遮罩:暗色半透明 + 2px 背景模糊,不随主题翻转 */
15
+ background: var(--scrim-modal);
16
+ backdrop-filter: blur(var(--scrim-modal-blur));
16
17
  }
17
18
  .cg-modal {
18
19
  display: flex;
@@ -243,12 +244,4 @@
243
244
  font-size: 13px;
244
245
  }
245
246
 
246
- /* ============ 过渡 ============ */
247
- .cg-fade-enter-active,
248
- .cg-fade-leave-active {
249
- transition: opacity 0.16s ease;
250
- }
251
- .cg-fade-enter,
252
- .cg-fade-leave-to {
253
- opacity: 0;
254
- }
247
+ /* 过渡:统一使用 app.css 的 .modal-* 进出场动画(遮罩淡入淡出 + 弹卡片抬升缩放) */
@@ -194,21 +194,6 @@
194
194
  background: var(--accent-soft);
195
195
  }
196
196
 
197
- /* 下拉列表滚动条(WebKit) */
198
- .csel__list::-webkit-scrollbar {
199
- width: 8px;
200
- }
201
- .csel__list::-webkit-scrollbar-thumb {
202
- background: var(--scroll-thumb);
203
- border-radius: 4px;
204
- }
205
- .csel__list::-webkit-scrollbar-thumb:hover {
206
- background: var(--scroll-thumb-hover);
207
- }
208
- .csel__list::-webkit-scrollbar-track {
209
- background: transparent;
210
- }
211
-
212
197
  /* 弹出动画 */
213
198
  .csel-fade-enter-active,
214
199
  .csel-fade-leave-active {
@@ -38,6 +38,9 @@
38
38
  font-size: 12px;
39
39
  font-family: inherit;
40
40
  line-height: 1;
41
+ /* button 的 UA 默认 text-align:center 会被 .dd__label 继承,短文案(如「0px」)
42
+ 会在触发器里居中;表单下拉统一左对齐 */
43
+ text-align: left;
41
44
  cursor: pointer;
42
45
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
43
46
  appearance: none;
@@ -258,21 +261,6 @@
258
261
  cursor: default;
259
262
  }
260
263
 
261
- /* 滚动条 */
262
- .dd__list::-webkit-scrollbar {
263
- width: 8px;
264
- }
265
- .dd__list::-webkit-scrollbar-thumb {
266
- background: var(--scroll-thumb);
267
- border-radius: 4px;
268
- }
269
- .dd__list::-webkit-scrollbar-thumb:hover {
270
- background: var(--scroll-thumb-hover);
271
- }
272
- .dd__list::-webkit-scrollbar-track {
273
- background: transparent;
274
- }
275
-
276
264
  /* 弹出动画 */
277
265
  .dd-fade-enter-active,
278
266
  .dd-fade-leave-active {
@@ -38,7 +38,7 @@
38
38
  }
39
39
  .jt__list--root {
40
40
  padding-left: 2px;
41
- padding-bottom: 44px;
41
+ padding-bottom: 52px;
42
42
  }
43
43
  .jt__child {
44
44
  padding-left: 16px;