@republicroad/seal-editor 1.27.0 → 1.28.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.
package/dist/index.d.ts CHANGED
@@ -2834,16 +2834,16 @@ export declare const writeRequestInputContract: (content: RequestContentLike & R
2834
2834
  export { }
2835
2835
 
2836
2836
 
2837
- declare module '@gorules/zen-engine-wasm' {
2838
- interface VariableType {
2839
- __hash: string;
2837
+ declare global {
2838
+ interface Window {
2839
+ monaco?: Monaco;
2840
2840
  }
2841
2841
  }
2842
2842
 
2843
2843
 
2844
- declare global {
2845
- interface Window {
2846
- monaco?: Monaco;
2844
+ declare module '@gorules/zen-engine-wasm' {
2845
+ interface VariableType {
2846
+ __hash: string;
2847
2847
  }
2848
2848
  }
2849
2849
 
package/dist/index.js CHANGED
@@ -16143,14 +16143,26 @@ var S_ = x_({
16143
16143
  let e = Z(), t = $m(), { panels: n, activePanel: r } = $(({ panels: e, activePanel: t }) => ({
16144
16144
  panels: e,
16145
16145
  activePanel: t
16146
- })), i = I(() => r === void 0 ? void 0 : (n || []).find((e) => e.id === r), [r, n]), a = I(() => Number.parseFloat(localStorage.getItem(k_) ?? "") ?? 300, [i]);
16146
+ })), i = I(() => r === void 0 ? void 0 : (n || []).find((e) => e.id === r), [r, n]), a = I(() => Number.parseFloat(localStorage.getItem(k_) ?? "") ?? 300, [i]), o = L(null);
16147
16147
  return F(() => {
16148
+ let e = o.current?.resizable, t = e instanceof HTMLElement ? e : e?.current ?? null;
16149
+ if (!t) return;
16150
+ let n = (e) => {
16151
+ e.target.classList.contains("seal-dock-resize-handle") && (localStorage.removeItem(k_), o.current?.updateSize({
16152
+ width: "100%",
16153
+ height: "auto"
16154
+ }));
16155
+ };
16156
+ return t.addEventListener("dblclick", n), () => t.removeEventListener("dblclick", n);
16157
+ }, [i]), F(() => {
16148
16158
  if (!i) return;
16149
16159
  let e = (e) => {
16150
16160
  e.key === "Escape" && t.setActivePanel(void 0);
16151
16161
  };
16152
16162
  return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
16153
16163
  }, [i, t]), i ? /* @__PURE__ */ U(ta, {
16164
+ ref: o,
16165
+ handleClasses: { top: "seal-dock-resize-handle" },
16154
16166
  className: "flex w-full flex-col border-t border-t-[var(--border)] bg-[var(--seal-color-primary-bg-fade)]",
16155
16167
  style: {
16156
16168
  position: "absolute",
@@ -16170,7 +16182,7 @@ var S_ = x_({
16170
16182
  bottomLeft: { display: "none" },
16171
16183
  bottomRight: { display: "none" }
16172
16184
  },
16173
- maxHeight: 500,
16185
+ maxHeight: "85%",
16174
16186
  minHeight: 150,
16175
16187
  onResize: (e, t, n) => {
16176
16188
  localStorage.setItem(k_, n.clientHeight.toString());