@1urso/generic-editor 0.1.54 → 0.1.55

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.
@@ -18876,7 +18876,7 @@ var camelToKebab = (n) => n.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toL
18876
18876
  className: "list-item",
18877
18877
  style: {
18878
18878
  position: "relative",
18879
- height: computeItemHeight(n, _, E.canvasHeight || 0),
18879
+ minHeight: computeItemHeight(n, _, E.canvasHeight || 0),
18880
18880
  width: "100%",
18881
18881
  flexShrink: 0,
18882
18882
  animation: `${N} ${P} ${z}`,
@@ -18939,7 +18939,7 @@ var getRuntimeScript = (n, _) => `
18939
18939
  const itemHeight = computeItemHeight(elements, data, itemHeightFallback);
18940
18940
  const itemContainerStyle = styleObjectToString({
18941
18941
  position: 'relative',
18942
- height: itemHeight,
18942
+ minHeight: itemHeight,
18943
18943
  width: '100%'
18944
18944
  });
18945
18945
 
@@ -121,7 +121,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${n.do
121
121
  }
122
122
  .list-wrapper::-webkit-scrollbar { width: 6px; }
123
123
  .list-wrapper::-webkit-scrollbar-thumb { background-color: rgba(0,0,0,0.2); border-radius: 3px; }
124
- `}}),(0,r.jsx)(`div`,{className:`list-wrapper`,style:d,children:i.map((t,i)=>(0,r.jsx)(`div`,{className:`list-item`,style:{position:`relative`,height:hA(e,t,n.canvasHeight||0),width:`100%`,flexShrink:0,animation:`${c} ${l} ${u}`,marginBottom:`10px`},children:mA(e,t).layoutElements.map(e=>(0,r.jsx)(_A,{element:e,itemData:t},e.id))},i))}),a?.scrollDirection===`up`&&(0,r.jsx)(`script`,{dangerouslySetInnerHTML:{__html:`document.addEventListener('DOMContentLoaded', () => { const w = document.querySelector('.list-wrapper'); if(w) w.scrollTop = w.scrollHeight; });`}})]})}let{layoutElements:o}=mA(e,t);return(0,r.jsx)(`div`,{style:{position:`relative`,width:`100%`,height:`100%`,overflow:`hidden`},children:o.map(e=>(0,r.jsx)(_A,{element:e,itemData:t},e.id))})};let yA=(e,t,n={})=>(0,i.renderToStaticMarkup)((0,r.jsx)(vA,{elements:e,data:t,options:n}))+(n.isList?bA(e,n):``);var bA=(e,t)=>`
124
+ `}}),(0,r.jsx)(`div`,{className:`list-wrapper`,style:d,children:i.map((t,i)=>(0,r.jsx)(`div`,{className:`list-item`,style:{position:`relative`,minHeight:hA(e,t,n.canvasHeight||0),width:`100%`,flexShrink:0,animation:`${c} ${l} ${u}`,marginBottom:`10px`},children:mA(e,t).layoutElements.map(e=>(0,r.jsx)(_A,{element:e,itemData:t},e.id))},i))}),a?.scrollDirection===`up`&&(0,r.jsx)(`script`,{dangerouslySetInnerHTML:{__html:`document.addEventListener('DOMContentLoaded', () => { const w = document.querySelector('.list-wrapper'); if(w) w.scrollTop = w.scrollHeight; });`}})]})}let{layoutElements:o}=mA(e,t);return(0,r.jsx)(`div`,{style:{position:`relative`,width:`100%`,height:`100%`,overflow:`hidden`},children:o.map(e=>(0,r.jsx)(_A,{element:e,itemData:t},e.id))})};let yA=(e,t,n={})=>(0,i.renderToStaticMarkup)((0,r.jsx)(vA,{elements:e,data:t,options:n}))+(n.isList?bA(e,n):``);var bA=(e,t)=>`
125
125
  <script>
126
126
  (function() {
127
127
  try {
@@ -150,7 +150,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${n.do
150
150
  const itemHeight = computeItemHeight(elements, data, itemHeightFallback);
151
151
  const itemContainerStyle = styleObjectToString({
152
152
  position: 'relative',
153
- height: itemHeight,
153
+ minHeight: itemHeight,
154
154
  width: '100%'
155
155
  });
156
156
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@1urso/generic-editor",
3
- "version": "0.1.54",
3
+ "version": "0.1.55",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },