@oyat/editor 1.7.7 → 1.7.8
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.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -273,7 +273,7 @@ return si.jsxs(k,{as:"span",...t,children:[
|
|
|
273
273
|
/* @__PURE__ */si.jsx(Uc,{}),
|
|
274
274
|
/* @__PURE__ */si.jsxs(qc,{children:[!c&&/* @__PURE__ */si.jsx(Kc,{children:"No results"}),
|
|
275
275
|
/* @__PURE__ */si.jsx(Zc,{children:d.map(e=>/* @__PURE__ */si.jsxs(Wc,{value:e.name,onClick:()=>gn(n,e),children:[e.skins[0].native," ",e.name]},e.id))})]})]}),r]})})],Xc=[x.configure({shortcuts:{insert:{keys:"mod+enter"},insertBefore:{keys:"mod+shift+enter"}}})];function Qc(e){/* @__PURE__ */
|
|
276
|
-
return si.jsx(Zi,{...e,className:mi("
|
|
276
|
+
return si.jsx(Zi,{...e,className:mi("sticky top-0 left-0 z-50 w-full justify-between overflow-x-auto rounded-t-lg border-b border-b-border bg-background/95 p-1 backdrop-blur-sm supports-backdrop-blur:bg-background/60",e.className)})}const ed=[{icon:Jt,value:"left"},{icon:Xt,value:"center"},{icon:Qt,value:"right"},{icon:er,value:"justify"}];function td(t){const{editor:r,tf:n}=E(de),s=Z({defaultValue:"start",getProp:e=>e.align})??"left",[o,a]=e.useState(!1),i=ed.find(e=>e.value===s)?.icon??Jt;/* @__PURE__ */
|
|
277
277
|
return si.jsxs(Ii,{open:o,onOpenChange:a,modal:!1,...t,children:[
|
|
278
278
|
/* @__PURE__ */si.jsx(Ai,{asChild:!0,children:/* @__PURE__ */si.jsx(Xi,{pressed:o,tooltip:"Align",isDropdown:!0,children:/* @__PURE__ */si.jsx(i,{})})}),
|
|
279
279
|
/* @__PURE__ */si.jsx(Fi,{className:"min-w-0",align:"start",children:/* @__PURE__ */si.jsx(Pi,{value:s,onValueChange:e=>{n.textAlign.setNodes(e),r.tf.focus()},children:ed.map(({icon:e,value:t})=>/* @__PURE__ */si.jsx(Hi,{className:"pl-2 data-[state=checked]:bg-accent *:first:[span]:hidden",value:t,children:/* @__PURE__ */si.jsx(e,{})},t))})})]})}function rd(){const e=I();/* @__PURE__ */
|