Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@zag-js/editable

Package Overview
Dependencies
Maintainers
1
Versions
1043
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zag-js/editable - npm Package Compare versions

Comparing version 0.0.0-dev-20220410020729 to 0.0.0-dev-20220412122925

15

dist/editable.types.d.ts

@@ -11,4 +11,19 @@ import type { StateMachine as S } from "@zag-js/core";

};
declare type IdMap = Partial<{
root: string;
area: string;
label: string;
preview: string;
input: string;
controlGroup: string;
submitBtn: string;
cancelBtn: string;
editBtn: string;
}>;
export declare type MachineContext = Context<{
/**
* The ids of the elements in the editable. Useful for composition.
*/
ids?: IdMap;
/**
* Whether the input's value is invalid.

@@ -15,0 +30,0 @@ */

2

dist/index.js

@@ -1,2 +0,2 @@

var k=Object.defineProperty;var M=Object.getOwnPropertyDescriptor;var B=Object.getOwnPropertyNames;var A=Object.prototype.hasOwnProperty;var D=e=>k(e,"__esModule",{value:!0});var V=(e,t)=>{for(var n in t)k(e,n,{get:t[n],enumerable:!0})},O=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of B(t))!A.call(e,i)&&(n||i!=="default")&&k(e,i,{get:()=>t[i],enumerable:!(r=M(t,i))||r.enumerable});return e};var H=(e=>(t,n)=>e&&e.get(t)||(n=O(D({}),t,1),e&&e.set(t,n),n))(typeof WeakMap!="undefined"?new WeakMap:0);var z={};V(z,{connect:()=>I,machine:()=>S});var s=e=>e?"":void 0,w=e=>e?!0:void 0;function L(e){let t=new Set;function n(r){let i=globalThis.requestAnimationFrame(r);t.add(()=>globalThis.cancelAnimationFrame(i))}return n(()=>n(e)),function(){t.forEach(function(r){r()})}}var F=()=>{};var j=(()=>{let e=0;return()=>(e++,e.toString(36))})();var b=new Map,m=new Map;function R(e,t,n,r){var i;if(!e)return F;let a=JSON.stringify({type:t,options:r}),f=b.get(e);if(b.has(e))(f==null?void 0:f.has(a))?(i=f==null?void 0:f.get(a))==null||i.add(n):f==null||f.set(a,new Set([n]));else{let c=new Map([[a,new Set([n])]]);b.set(e,c)}function g(c){var d,p;function u(l){var v;let y=b.get(c);(v=y==null?void 0:y.get(a))==null||v.forEach(E=>E(l))}if(!(m==null?void 0:m.has(c))){m.set(c,new Map([[a,u]])),c.addEventListener(t,u,r);return}((d=m==null?void 0:m.get(c))==null?void 0:d.has(a))||((p=m.get(c))==null||p.set(a,u),c.addEventListener(t,u,r))}return g(e),function(){var c,d,p,u;if(!b.has(e))return;let l=b.get(e);if((c=l==null?void 0:l.get(a))==null||c.delete(n),((d=l==null?void 0:l.get(a))==null?void 0:d.size)===0){let v=(p=m.get(e))==null?void 0:p.get(a);e.removeEventListener(t,v,r),l==null||l.delete(a),(u=m.get(e))==null||u.delete(a),(l==null?void 0:l.size)===0&&(b.delete(e),m.delete(e))}}}var T=e=>Object.prototype.toString.call(e).slice(8,-1),N=e=>T(e)==="Object"&&"current"in e,U=e=>T(e)==="Function"?e():e;function q(e,t,n,r){let i=N(e)?e.current:U(e);return R(i,t,n,r)}function x(e,t){var n;let r=Array.isArray(t.exclude)?t.exclude:[t.exclude],i=(n=e.relatedTarget)!=null?n:t.fallback;return r.every(a=>!(a==null?void 0:a.contains(i)))}var K=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","embed","iframe","object","a[href]","area[href]","[tabindex]","audio[controls]","video[controls]","*[tabindex]:not([aria-disabled])","[contenteditable]:not([contenteditable=false])","details > summary:first-of-type"].join(",");function P(e,t){var n;let r=(n=e.defaultView)!=null?n:window;return q(e,"pointerdown",i=>{i.target instanceof r.HTMLElement&&t(i.target)})}function W(e){return{button:e,label:e,input:e,output:e,element:e}}var C=W(e=>e);var o={getDoc:e=>{var t;return(t=e.doc)!=null?t:document},getRootId:e=>`editable-${e.uid}`,getAreaId:e=>`editable-${e.uid}-area`,getLabelId:e=>`editable-${e.uid}-label`,getPreviewId:e=>`editable-${e.uid}-preview`,getInputId:e=>`editable-${e.uid}-input`,getControlGroupId:e=>`editable-${e.uid}-controls`,getSubmitBtnId:e=>`editable-${e.uid}-submit-btn`,getCancelBtnId:e=>`editable-${e.uid}-cancel-btn`,getEditBtnId:e=>`editable-${e.uid}-edit-btn`,getInputEl:e=>o.getDoc(e).getElementById(o.getInputId(e)),getPreviewEl:e=>o.getDoc(e).getElementById(o.getPreviewId(e)),getSubmitBtnEl:e=>o.getDoc(e).getElementById(o.getSubmitBtnId(e)),getCancelBtnEl:e=>o.getDoc(e).getElementById(o.getCancelBtnId(e)),getEditBtnEl:e=>o.getDoc(e).getElementById(o.getEditBtnId(e))};function I(e,t,n=C){let r=e.context.disabled,i=e.context.isInteractive,a=e.context.readonly,f=e.context.isValueEmpty,g=e.context.invalid,c=e.context.pointerdownNode,d=e.context.autoResize,p=e.context.messages,u=e.matches("edit");return{isEditing:u,isValueEmpty:f,value:e.context.value,setValue(l){t({type:"SET_VALUE",value:l})},clearValue(){t({type:"SET_VALUE",value:""})},edit(){!i||t("EDIT")},cancel(){!i||t("CANCEL")},submit(){!i||t("SUBMIT")},rootProps:n.element({"data-part":"root",id:o.getRootId(e.context)}),areaProps:n.element({"data-part":"area",id:o.getAreaId(e.context),style:d?{display:"inline-grid"}:void 0,"data-focus":s(u),"data-disabled":s(r),"data-placeholder-shown":s(f)}),labelProps:n.label({"data-part":"label",id:o.getLabelId(e.context),htmlFor:o.getInputId(e.context),"data-focus":s(u),"data-invalid":s(g),onPointerDown(l){var v;u||(l.preventDefault(),(v=o.getPreviewEl(e.context))==null||v.focus())}}),inputProps:n.input({"data-part":"input","aria-label":p.input,name:e.context.name,id:o.getInputId(e.context),hidden:d?void 0:!u,placeholder:e.context.placeholder,disabled:r,"data-disabled":s(r),readOnly:a,"data-readonly":s(a),"aria-invalid":w(g),"data-invalid":s(g),value:e.context.value,size:d?1:void 0,onBlur(l){x(l,{exclude:[o.getCancelBtnEl(e.context),o.getSubmitBtnEl(e.context)],fallback:c})&&t("BLUR")},onChange(l){t({type:"TYPE",value:l.currentTarget.value})},onKeyDown(l){let y={Escape(){t("CANCEL")},Enter(E){!E.shiftKey&&!E.metaKey&&t("ENTER")}}[l.key];y&&(l.preventDefault(),y(l))},style:d?{all:"unset",gridArea:"1 / 1 / auto / auto",visibility:u?void 0:"hidden"}:void 0}),previewProps:n.element({id:o.getPreviewId(e.context),"data-part":"preview","data-placeholder-shown":s(f),"aria-readonly":w(a),"data-readonly":s(r),"data-disabled":s(r),"aria-disabled":w(r),"aria-invalid":w(g),"data-invalid":s(g),children:f?e.context.placeholder:e.context.value,hidden:d?void 0:u,tabIndex:i&&e.context.isPreviewFocusable?0:void 0,onFocus(){!i||t("FOCUS")},onDoubleClick(){!i||t("DBLCLICK")},style:d?{whiteSpace:"pre",userSelect:"none",gridArea:"1 / 1 / auto / auto",visibility:u?"hidden":void 0,overflow:"hidden",textOverflow:"ellipsis"}:void 0}),editButtonProps:n.button({"data-part":"edit-button",id:o.getEditBtnId(e.context),"aria-label":p.edit,type:"button",disabled:r,onClick(){!i||t("EDIT")}}),controlGroupProps:n.element({id:o.getControlGroupId(e.context),"data-part":"control-group"}),submitButtonProps:n.button({"data-part":"submit-button",id:o.getSubmitBtnId(e.context),"aria-label":p.submit,disabled:r,type:"button",onClick(){!i||t("SUBMIT")}}),cancelButtonProps:n.button({"data-part":"cancel-button","aria-label":p.cancel,id:o.getCancelBtnId(e.context),type:"button",disabled:r,onClick(){!i||t("CANCEL")}})}}var h=require("@zag-js/core");var{not:_}=h.guards,S=(0,h.createMachine)({id:"editable-machine",initial:"unknown",context:{startWithEditView:!1,activationMode:"focus",submitMode:"both",uid:"",value:"",previousValue:"",selectOnFocus:!0,messages:{input:"editable input",edit:"edit",submit:"submit",cancel:"cancel"}},computed:{submitOnEnter:e=>["both","enter"].includes(e.submitMode),submitOnBlur:e=>["both","blur"].includes(e.submitMode),isInteractive:e=>!(e.disabled||e.readonly),isValueEmpty:e=>e.value==="",isPreviewFocusable:e=>e.activationMode==="focus"},on:{SET_VALUE:{actions:["setValue","invokeOnChange"]}},states:{unknown:{on:{SETUP:[{guard:"startWithEditView",target:"edit",actions:"setupDocument"},{target:"preview",actions:"setupDocument"}]}},preview:{entry:"clearPointerdownNode",on:{EDIT:"edit",DBLCLICK:{guard:"activateOnDblClick",target:"edit"},FOCUS:{guard:"activateOnFocus",target:"edit",actions:["setPreviousValue"]}}},edit:{activities:"trackPointerDown",entry:["focusInput","invokeOnEdit"],on:{TYPE:{guard:_("isAtMaxLength"),actions:["setValue","invokeOnChange"]},BLUR:[{guard:"submitOnBlur",target:"preview",actions:["focusEditButton","invokeOnSubmit"]},{target:"preview",actions:["revertValue","focusEditButton"]}],CANCEL:{target:"preview",actions:["focusEditButton","revertValue","invokeOnCancel"]},ENTER:{guard:"submitOnEnter",target:"preview",actions:["setPreviousValue","invokeOnSubmit","focusEditButton"]},SUBMIT:{target:"preview",actions:["setPreviousValue","invokeOnSubmit","focusEditButton"]}}}}},{guards:{submitOnBlur:e=>e.submitOnBlur,submitOnEnter:e=>e.submitOnEnter,isAtMaxLength:e=>e.maxLength!=null&&e.value.length===e.maxLength,activateOnDblClick:e=>e.activationMode==="dblclick",activateOnFocus:e=>e.activationMode==="focus",startWithEditView:e=>e.startWithEditView},activities:{trackPointerDown(e){return P(o.getDoc(e),t=>{e.pointerdownNode=(0,h.ref)(t)})}},actions:{setupDocument(e,t){t.doc&&(e.doc=(0,h.ref)(t.doc)),e.uid=t.id},focusEditButton(e){L(()=>{var t;(t=o.getEditBtnEl(e))==null||t.focus()})},focusInput(e){L(()=>{let t=o.getInputEl(e);!t||(e.selectOnFocus?t.select():t.focus())})},invokeOnCancel(e){var t;(t=e.onCancel)==null||t.call(e,{value:e.previousValue})},invokeOnSubmit(e){var t;(t=e.onSubmit)==null||t.call(e,{value:e.value})},invokeOnEdit(e){var t;(t=e.onEdit)==null||t.call(e)},invokeOnChange(e){var t;(t=e.onChange)==null||t.call(e,{value:e.value})},setValue(e,t){e.value=t.value},setPreviousValue(e){e.previousValue=e.value},revertValue(e){e.value=e.previousValue},clearPointerdownNode(e){e.pointerdownNode=null}}});module.exports=H(z);
var k=Object.defineProperty;var M=Object.getOwnPropertyDescriptor;var B=Object.getOwnPropertyNames;var A=Object.prototype.hasOwnProperty;var D=e=>k(e,"__esModule",{value:!0});var V=(e,t)=>{for(var n in t)k(e,n,{get:t[n],enumerable:!0})},O=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of B(t))!A.call(e,i)&&(n||i!=="default")&&k(e,i,{get:()=>t[i],enumerable:!(r=M(t,i))||r.enumerable});return e};var H=(e=>(t,n)=>e&&e.get(t)||(n=O(D({}),t,1),e&&e.set(t,n),n))(typeof WeakMap!="undefined"?new WeakMap:0);var z={};V(z,{connect:()=>x,machine:()=>S});var d=e=>e?"":void 0,w=e=>e?!0:void 0;function L(e){let t=new Set;function n(r){let i=globalThis.requestAnimationFrame(r);t.add(()=>globalThis.cancelAnimationFrame(i))}return n(()=>n(e)),function(){t.forEach(function(r){r()})}}var F=()=>{};var j=(()=>{let e=0;return()=>(e++,e.toString(36))})();var b=new Map,m=new Map;function R(e,t,n,r){var i;if(!e)return F;let a=JSON.stringify({type:t,options:r}),f=b.get(e);if(b.has(e))(f==null?void 0:f.has(a))?(i=f==null?void 0:f.get(a))==null||i.add(n):f==null||f.set(a,new Set([n]));else{let s=new Map([[a,new Set([n])]]);b.set(e,s)}function g(s){var c,p;function u(l){var v;let y=b.get(s);(v=y==null?void 0:y.get(a))==null||v.forEach(E=>E(l))}if(!(m==null?void 0:m.has(s))){m.set(s,new Map([[a,u]])),s.addEventListener(t,u,r);return}((c=m==null?void 0:m.get(s))==null?void 0:c.has(a))||((p=m.get(s))==null||p.set(a,u),s.addEventListener(t,u,r))}return g(e),function(){var s,c,p,u;if(!b.has(e))return;let l=b.get(e);if((s=l==null?void 0:l.get(a))==null||s.delete(n),((c=l==null?void 0:l.get(a))==null?void 0:c.size)===0){let v=(p=m.get(e))==null?void 0:p.get(a);e.removeEventListener(t,v,r),l==null||l.delete(a),(u=m.get(e))==null||u.delete(a),(l==null?void 0:l.size)===0&&(b.delete(e),m.delete(e))}}}var T=e=>Object.prototype.toString.call(e).slice(8,-1),N=e=>T(e)==="Object"&&"current"in e,U=e=>T(e)==="Function"?e():e;function q(e,t,n,r){let i=N(e)?e.current:U(e);return R(i,t,n,r)}function P(e,t){var n;let r=Array.isArray(t.exclude)?t.exclude:[t.exclude],i=(n=e.relatedTarget)!=null?n:t.fallback;return r.every(a=>!(a==null?void 0:a.contains(i)))}var K=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","embed","iframe","object","a[href]","area[href]","[tabindex]","audio[controls]","video[controls]","*[tabindex]:not([aria-disabled])","[contenteditable]:not([contenteditable=false])","details > summary:first-of-type"].join(",");function C(e,t){var n;let r=(n=e.defaultView)!=null?n:window;return q(e,"pointerdown",i=>{i.target instanceof r.HTMLElement&&t(i.target)})}function W(e){return{button:e,label:e,input:e,output:e,element:e}}var I=W(e=>e);var o={getDoc:e=>{var t;return(t=e.doc)!=null?t:document},getRootId:e=>{var t,n;return(n=(t=e.ids)==null?void 0:t.root)!=null?n:`editable-${e.uid}`},getAreaId:e=>{var t,n;return(n=(t=e.ids)==null?void 0:t.area)!=null?n:`editable-${e.uid}-area`},getLabelId:e=>{var t,n;return(n=(t=e.ids)==null?void 0:t.label)!=null?n:`editable-${e.uid}-label`},getPreviewId:e=>{var t,n;return(n=(t=e.ids)==null?void 0:t.preview)!=null?n:`editable-${e.uid}-preview`},getInputId:e=>{var t,n;return(n=(t=e.ids)==null?void 0:t.input)!=null?n:`editable-${e.uid}-input`},getControlGroupId:e=>{var t,n;return(n=(t=e.ids)==null?void 0:t.controlGroup)!=null?n:`editable-${e.uid}-controls`},getSubmitBtnId:e=>{var t,n;return(n=(t=e.ids)==null?void 0:t.submitBtn)!=null?n:`editable-${e.uid}-submit-btn`},getCancelBtnId:e=>{var t,n;return(n=(t=e.ids)==null?void 0:t.cancelBtn)!=null?n:`editable-${e.uid}-cancel-btn`},getEditBtnId:e=>{var t,n;return(n=(t=e.ids)==null?void 0:t.editBtn)!=null?n:`editable-${e.uid}-edit-btn`},getInputEl:e=>o.getDoc(e).getElementById(o.getInputId(e)),getPreviewEl:e=>o.getDoc(e).getElementById(o.getPreviewId(e)),getSubmitBtnEl:e=>o.getDoc(e).getElementById(o.getSubmitBtnId(e)),getCancelBtnEl:e=>o.getDoc(e).getElementById(o.getCancelBtnId(e)),getEditBtnEl:e=>o.getDoc(e).getElementById(o.getEditBtnId(e))};function x(e,t,n=I){let r=e.context.disabled,i=e.context.isInteractive,a=e.context.readonly,f=e.context.isValueEmpty,g=e.context.invalid,s=e.context.pointerdownNode,c=e.context.autoResize,p=e.context.messages,u=e.matches("edit");return{isEditing:u,isValueEmpty:f,value:e.context.value,setValue(l){t({type:"SET_VALUE",value:l})},clearValue(){t({type:"SET_VALUE",value:""})},edit(){!i||t("EDIT")},cancel(){!i||t("CANCEL")},submit(){!i||t("SUBMIT")},rootProps:n.element({"data-part":"root",id:o.getRootId(e.context)}),areaProps:n.element({"data-part":"area",id:o.getAreaId(e.context),style:c?{display:"inline-grid"}:void 0,"data-focus":d(u),"data-disabled":d(r),"data-placeholder-shown":d(f)}),labelProps:n.label({"data-part":"label",id:o.getLabelId(e.context),htmlFor:o.getInputId(e.context),"data-focus":d(u),"data-invalid":d(g),onPointerDown(l){var v;u||(l.preventDefault(),(v=o.getPreviewEl(e.context))==null||v.focus())}}),inputProps:n.input({"data-part":"input","aria-label":p.input,name:e.context.name,id:o.getInputId(e.context),hidden:c?void 0:!u,placeholder:e.context.placeholder,disabled:r,"data-disabled":d(r),readOnly:a,"data-readonly":d(a),"aria-invalid":w(g),"data-invalid":d(g),value:e.context.value,size:c?1:void 0,onBlur(l){P(l,{exclude:[o.getCancelBtnEl(e.context),o.getSubmitBtnEl(e.context)],fallback:s})&&t("BLUR")},onChange(l){t({type:"TYPE",value:l.currentTarget.value})},onKeyDown(l){let y={Escape(){t("CANCEL")},Enter(E){!E.shiftKey&&!E.metaKey&&t("ENTER")}}[l.key];y&&(l.preventDefault(),y(l))},style:c?{all:"unset",gridArea:"1 / 1 / auto / auto",visibility:u?void 0:"hidden"}:void 0}),previewProps:n.element({id:o.getPreviewId(e.context),"data-part":"preview","data-placeholder-shown":d(f),"aria-readonly":w(a),"data-readonly":d(r),"data-disabled":d(r),"aria-disabled":w(r),"aria-invalid":w(g),"data-invalid":d(g),children:f?e.context.placeholder:e.context.value,hidden:c?void 0:u,tabIndex:i&&e.context.isPreviewFocusable?0:void 0,onFocus(){!i||t("FOCUS")},onDoubleClick(){!i||t("DBLCLICK")},style:c?{whiteSpace:"pre",userSelect:"none",gridArea:"1 / 1 / auto / auto",visibility:u?"hidden":void 0,overflow:"hidden",textOverflow:"ellipsis"}:void 0}),editButtonProps:n.button({"data-part":"edit-button",id:o.getEditBtnId(e.context),"aria-label":p.edit,type:"button",disabled:r,onClick(){!i||t("EDIT")}}),controlGroupProps:n.element({id:o.getControlGroupId(e.context),"data-part":"control-group"}),submitButtonProps:n.button({"data-part":"submit-button",id:o.getSubmitBtnId(e.context),"aria-label":p.submit,disabled:r,type:"button",onClick(){!i||t("SUBMIT")}}),cancelButtonProps:n.button({"data-part":"cancel-button","aria-label":p.cancel,id:o.getCancelBtnId(e.context),type:"button",disabled:r,onClick(){!i||t("CANCEL")}})}}var h=require("@zag-js/core");var{not:_}=h.guards,S=(0,h.createMachine)({id:"editable-machine",initial:"unknown",context:{startWithEditView:!1,activationMode:"focus",submitMode:"both",uid:"",value:"",previousValue:"",selectOnFocus:!0,messages:{input:"editable input",edit:"edit",submit:"submit",cancel:"cancel"}},computed:{submitOnEnter:e=>["both","enter"].includes(e.submitMode),submitOnBlur:e=>["both","blur"].includes(e.submitMode),isInteractive:e=>!(e.disabled||e.readonly),isValueEmpty:e=>e.value==="",isPreviewFocusable:e=>e.activationMode==="focus"},on:{SET_VALUE:{actions:["setValue","invokeOnChange"]}},states:{unknown:{on:{SETUP:[{guard:"startWithEditView",target:"edit",actions:"setupDocument"},{target:"preview",actions:"setupDocument"}]}},preview:{entry:"clearPointerdownNode",on:{EDIT:"edit",DBLCLICK:{guard:"activateOnDblClick",target:"edit"},FOCUS:{guard:"activateOnFocus",target:"edit",actions:["setPreviousValue"]}}},edit:{activities:"trackPointerDown",entry:["focusInput","invokeOnEdit"],on:{TYPE:{guard:_("isAtMaxLength"),actions:["setValue","invokeOnChange"]},BLUR:[{guard:"submitOnBlur",target:"preview",actions:["focusEditButton","invokeOnSubmit"]},{target:"preview",actions:["revertValue","focusEditButton"]}],CANCEL:{target:"preview",actions:["focusEditButton","revertValue","invokeOnCancel"]},ENTER:{guard:"submitOnEnter",target:"preview",actions:["setPreviousValue","invokeOnSubmit","focusEditButton"]},SUBMIT:{target:"preview",actions:["setPreviousValue","invokeOnSubmit","focusEditButton"]}}}}},{guards:{submitOnBlur:e=>e.submitOnBlur,submitOnEnter:e=>e.submitOnEnter,isAtMaxLength:e=>e.maxLength!=null&&e.value.length===e.maxLength,activateOnDblClick:e=>e.activationMode==="dblclick",activateOnFocus:e=>e.activationMode==="focus",startWithEditView:e=>e.startWithEditView},activities:{trackPointerDown(e){return C(o.getDoc(e),t=>{e.pointerdownNode=(0,h.ref)(t)})}},actions:{setupDocument(e,t){t.doc&&(e.doc=(0,h.ref)(t.doc)),e.uid=t.id},focusEditButton(e){L(()=>{var t;(t=o.getEditBtnEl(e))==null||t.focus()})},focusInput(e){L(()=>{let t=o.getInputEl(e);!t||(e.selectOnFocus?t.select():t.focus())})},invokeOnCancel(e){var t;(t=e.onCancel)==null||t.call(e,{value:e.previousValue})},invokeOnSubmit(e){var t;(t=e.onSubmit)==null||t.call(e,{value:e.value})},invokeOnEdit(e){var t;(t=e.onEdit)==null||t.call(e)},invokeOnChange(e){var t;(t=e.onChange)==null||t.call(e,{value:e.value})},setValue(e,t){e.value=t.value},setPreviousValue(e){e.previousValue=e.value},revertValue(e){e.value=e.previousValue},clearPointerdownNode(e){e.pointerdownNode=null}}});module.exports=H(z);
//# sourceMappingURL=index.js.map
{
"name": "@zag-js/editable",
"version": "0.0.0-dev-20220410020729",
"version": "0.0.0-dev-20220412122925",
"description": "Core logic for the editable widget implemented as a state machine",

@@ -32,6 +32,6 @@ "keywords": [

"dependencies": {
"@zag-js/core": "^0.0.0-dev-20220410020729",
"@zag-js/dom-utils": "^0.0.0-dev-20220410020729",
"@zag-js/types": "^0.0.0-dev-20220410020729"
"@zag-js/core": "^0.0.0-dev-20220412122925",
"@zag-js/dom-utils": "^0.0.0-dev-20220412122925",
"@zag-js/types": "^0.0.0-dev-20220412122925"
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc