vite-plugin-opencode-assistant 1.1.2 → 1.1.4

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.
@@ -257,6 +257,14 @@ function generateBridgeScript(options) {
257
257
  }
258
258
  \`;
259
259
 
260
+ // === \u901A\u7528\u6837\u5F0F ===
261
+ const generalStyles = \`
262
+ /* \u9690\u85CF\u4F1A\u8BDD\u9762\u677F\u6807\u9898\u53F3\u4FA7\u6309\u94AE\u533A */
263
+ [data-session-title] .shrink-0 {
264
+ display: none !important;
265
+ }
266
+ \`;
267
+
260
268
  // === \u5BA1\u67E5\u9762\u677F\u8986\u76D6\u6837\u5F0F ===
261
269
  // \u5BA1\u67E5\u9762\u677F\u5168\u5C4F\uFF0C\u4F1A\u8BDD\u9762\u677F\u6D6E\u5728\u53F3\u4E0B\u89D2\uFF08\u7C7B\u4F3C\u63D2\u4EF6\u6700\u5C0F\u5316\u72B6\u6001\uFF09
262
270
  const reviewPanelStyles = \`
@@ -307,10 +315,7 @@ function generateBridgeScript(options) {
307
315
  display: none !important;
308
316
  }
309
317
 
310
- /* \u9690\u85CF\u4F1A\u8BDD\u9762\u677F\u6807\u9898\u53F3\u4FA7\u6309\u94AE\u533A */
311
- .opencode-review-panel-overlay [data-ref="session-panel"] [data-session-title] .shrink-0 {
312
- display: none !important;
313
- }
318
+
314
319
 
315
320
  /* \u9690\u85CF\u6D6E\u52A8\u4F1A\u8BDD\uFF08\u7528 visibility+opacity \u907F\u514D\u5207\u6362\u95EA\u70C1\uFF09 */
316
321
  .opencode-review-panel-overlay.hide-chat [data-ref="session-panel"] {
@@ -362,6 +367,14 @@ function generateBridgeScript(options) {
362
367
  document.head.appendChild(style);
363
368
  }
364
369
 
370
+ function injectGeneralStyles() {
371
+ if (document.getElementById('opencode-general-styles')) return;
372
+ const style = document.createElement('style');
373
+ style.id = 'opencode-general-styles';
374
+ style.textContent = generalStyles;
375
+ document.head.appendChild(style);
376
+ }
377
+
365
378
  // === \u6700\u5C0F\u5316\u72B6\u6001\u5904\u7406 ===
366
379
  let savedMinimizedState = null;
367
380
  let savedPromptDockVisibleState = null;
@@ -654,6 +667,7 @@ function generateBridgeScript(options) {
654
667
  function init() {
655
668
  injectMinimizeStyles();
656
669
  injectReviewPanelStyles();
670
+ injectGeneralStyles();
657
671
  if (window.parent !== window) {
658
672
  window.parent.postMessage({ type: ${JSON.stringify(import_shared.WIDGET_MSG.READY)} }, "*");
659
673
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite-plugin-opencode-assistant",
3
- "version": "1.1.2",
3
+ "version": "1.1.4",
4
4
  "description": "Embed OpenCode Web UI in your Vite dev server for real-time code modification and preview",
5
5
  "type": "module",
6
6
  "main": "lib/index.cjs",
@@ -37,15 +37,15 @@
37
37
  "dependencies": {
38
38
  "unplugin-vue-inspector": "^3.0.0",
39
39
  "execa": "^9.6.1",
40
- "@vite-plugin-opencode-assistant/opencode": "1.1.2",
41
- "@vite-plugin-opencode-assistant/shared": "1.1.2",
42
- "@vite-plugin-opencode-assistant/components": "1.1.2"
40
+ "@vite-plugin-opencode-assistant/components": "1.1.4",
41
+ "@vite-plugin-opencode-assistant/shared": "1.1.4",
42
+ "@vite-plugin-opencode-assistant/opencode": "1.1.4"
43
43
  },
44
44
  "peerDependencies": {
45
45
  "vite": ">=5.0.0"
46
46
  },
47
47
  "devDependencies": {
48
- "@vite-plugin-opencode-assistant/client": "1.1.2"
48
+ "@vite-plugin-opencode-assistant/client": "1.1.4"
49
49
  },
50
50
  "scripts": {
51
51
  "build": "pagoda-cli build && vite build -c vite.client.config.ts",