@vite-plugin-opencode-assistant/components 1.1.5 → 1.1.7

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/es/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type { App } from 'vue';
2
- declare const version = "1.1.5";
2
+ declare const version = "1.1.7";
3
3
  declare function install(app: App<any>, options?: any): void;
4
4
  export { install, version, };
5
5
  export * from './open-code-widget';
package/es/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { OpenCodeWidget } from "./open-code-widget/index.mjs";
2
- const version = "1.1.5";
2
+ const version = "1.1.7";
3
3
  function install(app, options) {
4
4
  const components = [
5
5
  OpenCodeWidget
@@ -55,7 +55,13 @@ function useSplitMode(options) {
55
55
  };
56
56
  const updateBodyClass = () => {
57
57
  if (typeof document === "undefined") return;
58
- if (isExtensionMode.value) return;
58
+ if (isExtensionMode.value) {
59
+ document.body.classList.remove("has-opencode-split");
60
+ document.body.classList.remove("has-opencode-split-left");
61
+ document.body.classList.remove("has-opencode-split-right");
62
+ document.body.style.removeProperty("--opencode-split-width");
63
+ return;
64
+ }
59
65
  const shouldShrink = isSplitMode.value && options.open.value && splitConfig.value.shrinkPage;
60
66
  if (shouldShrink) {
61
67
  document.body.classList.add("has-opencode-split");
@@ -74,7 +80,9 @@ function useSplitMode(options) {
74
80
  document.body.style.removeProperty("--opencode-split-width");
75
81
  }
76
82
  };
77
- watch([isSplitMode, options.open, panelWidth, splitPosition], updateBodyClass, { immediate: true });
83
+ watch([isSplitMode, options.open, panelWidth, splitPosition], updateBodyClass, {
84
+ immediate: true
85
+ });
78
86
  watch(splitConfig, (config) => {
79
87
  if (panelWidth.value < config.minWidth) {
80
88
  panelWidth.value = config.minWidth;
package/lib/index.cjs CHANGED
@@ -26,7 +26,7 @@ module.exports = __toCommonJS(lib_exports);
26
26
  var import_open_code_widget = require("./open-code-widget/index.cjs");
27
27
  __reExport(lib_exports, require("./open-code-widget/index.cjs"), module.exports);
28
28
  __reExport(lib_exports, require("./setup.cjs"), module.exports);
29
- const version = "1.1.5";
29
+ const version = "1.1.7";
30
30
  function install(app, options) {
31
31
  const components = [
32
32
  import_open_code_widget.OpenCodeWidget
package/lib/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type { App } from 'vue';
2
- declare const version = "1.1.5";
2
+ declare const version = "1.1.7";
3
3
  declare function install(app: App<any>, options?: any): void;
4
4
  export { install, version, };
5
5
  export * from './open-code-widget';
@@ -77,7 +77,13 @@ function useSplitMode(options) {
77
77
  };
78
78
  const updateBodyClass = () => {
79
79
  if (typeof document === "undefined") return;
80
- if (isExtensionMode.value) return;
80
+ if (isExtensionMode.value) {
81
+ document.body.classList.remove("has-opencode-split");
82
+ document.body.classList.remove("has-opencode-split-left");
83
+ document.body.classList.remove("has-opencode-split-right");
84
+ document.body.style.removeProperty("--opencode-split-width");
85
+ return;
86
+ }
81
87
  const shouldShrink = isSplitMode.value && options.open.value && splitConfig.value.shrinkPage;
82
88
  if (shouldShrink) {
83
89
  document.body.classList.add("has-opencode-split");
@@ -96,7 +102,9 @@ function useSplitMode(options) {
96
102
  document.body.style.removeProperty("--opencode-split-width");
97
103
  }
98
104
  };
99
- (0, import_vue.watch)([isSplitMode, options.open, panelWidth, splitPosition], updateBodyClass, { immediate: true });
105
+ (0, import_vue.watch)([isSplitMode, options.open, panelWidth, splitPosition], updateBodyClass, {
106
+ immediate: true
107
+ });
100
108
  (0, import_vue.watch)(splitConfig, (config) => {
101
109
  if (panelWidth.value < config.minWidth) {
102
110
  panelWidth.value = config.minWidth;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vite-plugin-opencode-assistant/components",
3
- "version": "1.1.5",
3
+ "version": "1.1.7",
4
4
  "description": "Reusable OpenCode widget components built with Pagoda CLI",
5
5
  "type": "module",
6
6
  "main": "lib/index.cjs",
@@ -31,7 +31,7 @@
31
31
  },
32
32
  "dependencies": {
33
33
  "css-selector-generator": "^3.9.2",
34
- "@vite-plugin-opencode-assistant/shared": "1.1.5"
34
+ "@vite-plugin-opencode-assistant/shared": "1.1.7"
35
35
  },
36
36
  "scripts": {
37
37
  "build": "pagoda-cli build",