@hazem3500/komo 0.9.30 → 0.9.31

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/setup.js CHANGED
@@ -1 +1 @@
1
- import{a as o,c as n}from"./chunk-YSTPKET2.js";import"./chunk-ILX63XAJ.js";import"./chunk-DH22G2S5.js";import"./chunk-53M6AOAX.js";import"./chunk-WGISPOJV.js";import"./chunk-PLSWBSSX.js";function r(r){return(s={})=>n(o({...r,...s}))}export{r as defineKomo};
1
+ import{a as o,c as n}from"./chunk-FFJ7Z4MJ.js";import"./chunk-ILX63XAJ.js";import"./chunk-DH22G2S5.js";import"./chunk-53M6AOAX.js";import"./chunk-WGISPOJV.js";import"./chunk-PLSWBSSX.js";function r(r){return(s={})=>n(o({...r,...s}))}export{r as defineKomo};
package/dist/types.d.ts CHANGED
@@ -107,7 +107,7 @@ export interface CommentsOptions {
107
107
  /**
108
108
  * Sidebar presentation when the review opens. "edge" (default) is a floating,
109
109
  * draggable sidebar that parks off and peeks from the viewport edge while
110
- * closed. "background" frames the site and shows the sidebar in the scaled
110
+ * closed. "background" reflows the site beside the sidebar in an unscaled
111
111
  * review sheet. Users can switch Floating and Frame from the Account panel;
112
112
  * that choice is remembered per project. Compact viewports always use a bottom
113
113
  * Drawer, retaining the desktop preference when the viewport grows.
@@ -133,13 +133,17 @@ export interface CommentsOptions {
133
133
  */
134
134
  pickRoots?: () => Element[];
135
135
  /**
136
- * Frame view scales body-level portals (dialogs, overlays, toasts) with the
137
- * page, including fixed descendants of portal wrappers. Script-positioned
138
- * popovers keep their viewport placement while their contents scale.
136
+ * Frame reflows the page at its available width without adding a scale,
137
+ * preserving native CSS-pixel interactions. Fixed body-level portals are
138
+ * kept inside the frame without moving their DOM.
139
+ * `scale: true` opts into shrinking the original viewport instead. Hosts
140
+ * deriving local values from client coordinates must handle that scale;
141
+ * arbitrary canvas, drag, and grid handlers cannot be corrected generically.
139
142
  * `include` overrides the default per body child; true maps the whole child
140
143
  * through the frame, and false leaves its subtree alone.
141
144
  */
142
145
  frame?: {
146
+ scale?: boolean;
143
147
  include?(element: HTMLElement): boolean;
144
148
  };
145
149
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hazem3500/komo",
3
- "version": "0.9.30",
3
+ "version": "0.9.31",
4
4
  "description": "Point, area, and threaded comments for website branches.",
5
5
  "type": "module",
6
6
  "license": "MIT",