@motiadev/plugin-states 0.13.2-beta.164-732151 → 0.13.2-beta.164-704005
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.cjs +12 -12
- package/dist/index.js +12 -12
- package/package.json +5 -5
package/dist/index.cjs
CHANGED
|
@@ -20,62 +20,62 @@
|
|
|
20
20
|
React keys must be passed directly to JSX without using spread:
|
|
21
21
|
let props = %s;
|
|
22
22
|
<%s key={someKey} {...props} />`,v,J,X,J),Z[J+v]=!0)}if(J=null,C!==void 0&&(r(C),J=""+C),l(g)&&(r(g.key),J=""+g.key),"key"in g){C={};for(var be in g)be!=="key"&&(C[be]=g[be])}else C=g;return J&&u(C,typeof i=="function"?i.displayName||i.name||"Unknown":i),f(i,J,B,A,s(),C,ve,me)}function m(i){typeof i=="object"&&i!==null&&i.$$typeof===R&&i._store&&(i._store.validated=1)}var E=c,R=Symbol.for("react.transitional.element"),O=Symbol.for("react.portal"),N=Symbol.for("react.fragment"),p=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),k=Symbol.for("react.consumer"),I=Symbol.for("react.context"),w=Symbol.for("react.forward_ref"),b=Symbol.for("react.suspense"),x=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),H=Symbol.for("react.lazy"),_=Symbol.for("react.activity"),S=Symbol.for("react.client.reference"),$=E.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V=Object.prototype.hasOwnProperty,U=Array.isArray,F=console.createTask?console.createTask:function(){return null};E={react_stack_bottom_frame:function(i){return i()}};var j,M={},P=E.react_stack_bottom_frame.bind(E,o)(),z=F(n(o)),Z={};re.Fragment=N,re.jsx=function(i,g,C,v,A){var B=1e4>$.recentlyCreatedOwnerStacks++;return d(i,g,C,!1,v,A,B?Error("react-stack-top-frame"):P,B?F(n(i)):z)},re.jsxs=function(i,g,C,v,A){var B=1e4>$.recentlyCreatedOwnerStacks++;return d(i,g,C,!0,v,A,B?Error("react-stack-top-frame"):P,B?F(n(i)):z)}}()),re}var Ue;function $t(){return Ue||(Ue=1,process.env.NODE_ENV==="production"?ce.exports=It():ce.exports=Pt()),ce.exports}var a=$t();/**
|
|
23
|
-
* @license lucide-react v0.
|
|
23
|
+
* @license lucide-react v0.548.0 - ISC
|
|
24
24
|
*
|
|
25
25
|
* This source code is licensed under the ISC license.
|
|
26
26
|
* See the LICENSE file in the root directory of this source tree.
|
|
27
27
|
*/const Dt=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Lt=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase()),ze=e=>{const t=Lt(e);return t.charAt(0).toUpperCase()+t.slice(1)},yt=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim(),Vt=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
|
|
28
|
-
* @license lucide-react v0.
|
|
28
|
+
* @license lucide-react v0.548.0 - ISC
|
|
29
29
|
*
|
|
30
30
|
* This source code is licensed under the ISC license.
|
|
31
31
|
* See the LICENSE file in the root directory of this source tree.
|
|
32
32
|
*/var Ht={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
33
|
-
* @license lucide-react v0.
|
|
33
|
+
* @license lucide-react v0.548.0 - ISC
|
|
34
34
|
*
|
|
35
35
|
* This source code is licensed under the ISC license.
|
|
36
36
|
* See the LICENSE file in the root directory of this source tree.
|
|
37
37
|
*/const Ft=c.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:s="",children:o,iconNode:l,...u},h)=>c.createElement("svg",{ref:h,...Ht,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:yt("lucide",s),...!o&&!Vt(u)&&{"aria-hidden":"true"},...u},[...l.map(([f,d])=>c.createElement(f,d)),...Array.isArray(o)?o:[o]]));/**
|
|
38
|
-
* @license lucide-react v0.
|
|
38
|
+
* @license lucide-react v0.548.0 - ISC
|
|
39
39
|
*
|
|
40
40
|
* This source code is licensed under the ISC license.
|
|
41
41
|
* See the LICENSE file in the root directory of this source tree.
|
|
42
42
|
*/const W=(e,t)=>{const r=c.forwardRef(({className:n,...s},o)=>c.createElement(Ft,{ref:o,iconNode:t,className:yt(`lucide-${Dt(ze(e))}`,`lucide-${e}`,n),...s}));return r.displayName=ze(e),r};/**
|
|
43
|
-
* @license lucide-react v0.
|
|
43
|
+
* @license lucide-react v0.548.0 - ISC
|
|
44
44
|
*
|
|
45
45
|
* This source code is licensed under the ISC license.
|
|
46
46
|
* See the LICENSE file in the root directory of this source tree.
|
|
47
47
|
*/const Ut=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],zt=W("refresh-cw",Ut);/**
|
|
48
|
-
* @license lucide-react v0.
|
|
48
|
+
* @license lucide-react v0.548.0 - ISC
|
|
49
49
|
*
|
|
50
50
|
* This source code is licensed under the ISC license.
|
|
51
51
|
* See the LICENSE file in the root directory of this source tree.
|
|
52
52
|
*/const Zt=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Jt=W("search",Zt);/**
|
|
53
|
-
* @license lucide-react v0.
|
|
53
|
+
* @license lucide-react v0.548.0 - ISC
|
|
54
54
|
*
|
|
55
55
|
* This source code is licensed under the ISC license.
|
|
56
56
|
* See the LICENSE file in the root directory of this source tree.
|
|
57
57
|
*/const Bt=[["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],qt=W("trash",Bt);/**
|
|
58
|
-
* @license lucide-react v0.
|
|
58
|
+
* @license lucide-react v0.548.0 - ISC
|
|
59
59
|
*
|
|
60
60
|
* This source code is licensed under the ISC license.
|
|
61
61
|
* See the LICENSE file in the root directory of this source tree.
|
|
62
62
|
*/const Yt=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],jt=W("x",Yt),Wt=()=>{const[e,t]=c.useState([]),r=c.useCallback(()=>{fetch("/__motia/state").then(async s=>{if(s.ok)return s.json();throw await s.json()}).then(t).catch(s=>console.error(s))},[]),n=s=>{fetch("/__motia/state/delete",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({ids:s})}).then(()=>r())};return c.useEffect(()=>{r()},[r]),{items:e,deleteItems:n,refetch:r}},Ze=e=>{let t;const r=new Set,n=(f,d)=>{const m=typeof f=="function"?f(t):f;if(!Object.is(m,t)){const E=t;t=d??(typeof m!="object"||m===null)?m:Object.assign({},t,m),r.forEach(R=>R(t,E))}},s=()=>t,u={setState:n,getState:s,getInitialState:()=>h,subscribe:f=>(r.add(f),()=>r.delete(f))},h=t=e(n,s,u);return u},Kt=e=>e?Ze(e):Ze,Gt=e=>e;function Xt(e,t=Gt){const r=c.useSyncExternalStore(e.subscribe,c.useCallback(()=>t(e.getState()),[e,t]),c.useCallback(()=>t(e.getInitialState()),[e,t]));return c.useDebugValue(r),r}const Qt=e=>{const t=Kt(e),r=n=>Xt(t,n);return Object.assign(r,t),r},er=e=>Qt,Je=er()(e=>({selectedStateId:void 0,selectStateId:t=>e({selectedStateId:t})}));function tr(e,t,r,n){function s(o){return o instanceof r?o:new r(function(l){l(o)})}return new(r||(r=Promise))(function(o,l){function u(d){try{f(n.next(d))}catch(m){l(m)}}function h(d){try{f(n.throw(d))}catch(m){l(m)}}function f(d){d.done?o(d.value):s(d.value).then(u,h)}f((n=n.apply(e,[])).next())})}var rr=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n<e.rangeCount;n++)r.push(e.getRangeAt(n));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||r.forEach(function(s){e.addRange(s)}),t&&t.focus()}},nr=rr,Be={"text/plain":"Text","text/html":"Url",default:"Text"},ar="Copy to clipboard: #{key}, Enter";function sr(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function or(e,t){var r,n,s,o,l,u,h=!1;t||(t={}),r=t.debug||!1;try{s=nr(),o=document.createRange(),l=document.getSelection(),u=document.createElement("span"),u.textContent=e,u.ariaHidden="true",u.style.all="unset",u.style.position="fixed",u.style.top=0,u.style.clip="rect(0, 0, 0, 0)",u.style.whiteSpace="pre",u.style.webkitUserSelect="text",u.style.MozUserSelect="text",u.style.msUserSelect="text",u.style.userSelect="text",u.addEventListener("copy",function(d){if(d.stopPropagation(),t.format)if(d.preventDefault(),typeof d.clipboardData>"u"){r&&console.warn("unable to use e.clipboardData"),r&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var m=Be[t.format]||Be.default;window.clipboardData.setData(m,e)}else d.clipboardData.clearData(),d.clipboardData.setData(t.format,e);t.onCopy&&(d.preventDefault(),t.onCopy(d.clipboardData))}),document.body.appendChild(u),o.selectNodeContents(u),l.addRange(o);var f=document.execCommand("copy");if(!f)throw new Error("copy command was unsuccessful");h=!0}catch(d){r&&console.error("unable to copy using execCommand: ",d),r&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),h=!0}catch(m){r&&console.error("unable to copy using clipboardData: ",m),r&&console.error("falling back to prompt"),n=sr("message"in t?t.message:ar),window.prompt(n,e)}}finally{l&&(typeof l.removeRange=="function"?l.removeRange(o):l.removeAllRanges()),u&&document.body.removeChild(u),s()}return h}var ir=or;function K(e){return Object.prototype.toString.call(e)==="[object Object]"}function ae(e){return Array.isArray(e)?e.length:K(e)?Object.keys(e).length:0}function cr(e,t){if(typeof e=="string")return e;try{return JSON.stringify(e,(r,n)=>{switch(typeof n){case"bigint":return String(n)+"n";case"number":case"boolean":case"object":case"string":return n;default:return String(n)}},t)}catch(r){return`${r.name}: ${r.message}`||"JSON.stringify failed"}}function lr(e){return tr(this,void 0,void 0,function*(){try{yield navigator.clipboard.writeText(e)}catch{ir(e)}})}function qe(e,t,r,n,s,o){if(o&&o.collapsed!==void 0)return!!o.collapsed;if(typeof n=="boolean")return n;if(typeof n=="number"&&t>n)return!0;const l=ae(e);if(typeof n=="function"){const u=_e(n,[{node:e,depth:t,indexOrName:r,size:l}]);if(typeof u=="boolean")return u}return!!(Array.isArray(e)&&l>s||K(e)&&l>s)}function Ye(e,t,r,n,s,o){if(o&&o.collapsed!==void 0)return!!o.collapsed;if(typeof n=="boolean")return n;if(typeof n=="number"&&t>n)return!0;const l=Math.ceil(e.length/100);if(typeof n=="function"){const u=_e(n,[{node:e,depth:t,indexOrName:r,size:l}]);if(typeof u=="boolean")return u}return!!(Array.isArray(e)&&l>s||K(e)&&l>s)}function ee(e,t,r){return typeof e=="boolean"?e:!!(typeof e=="number"&&t>e||e==="collapsed"&&r||e==="expanded"&&!r)}function _e(e,t){try{return e(...t)}catch(r){reportError(r)}}function wt(e){if(e===!0||K(e)&&e.add===!0)return!0}function We(e){if(e===!0||K(e)&&e.edit===!0)return!0}function Me(e){if(e===!0||K(e)&&e.delete===!0)return!0}function ur(e){return typeof e=="function"}function xt(e){return!e||e.add===void 0||!!e.add}function Ke(e){return!e||e.edit===void 0||!!e.edit}function Ie(e){return!e||e.delete===void 0||!!e.delete}function pe(e){return!e||e.enableClipboard===void 0||!!e.enableClipboard}function fr(e){return!e||e.matchesURL===void 0||!!e.matchesURL}function dr(e,t){return e==="string"?t.trim().replace(/^\"([\s\S]+?)\"$/,"$1"):t}var Ge;function xe(){return xe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},xe.apply(this,arguments)}var Pe=function(t){return D.createElement("svg",xe({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},t),Ge||(Ge=D.createElement("path",{fill:"currentColor",d:"M12.473 5.806a.666.666 0 0 0-.946 0L8.473 8.86a.667.667 0 0 1-.946 0L4.473 5.806a.667.667 0 1 0-.946.94l3.06 3.06a2 2 0 0 0 2.826 0l3.06-3.06a.667.667 0 0 0 0-.94Z"})))},Xe;function Ce(){return Ce=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ce.apply(this,arguments)}var pr=function(t){return D.createElement("svg",Ce({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},t),Xe||(Xe=D.createElement("path",{fill:"currentColor",d:"M17.542 2.5h-4.75a3.963 3.963 0 0 0-3.959 3.958v4.75a3.963 3.963 0 0 0 3.959 3.959h4.75a3.963 3.963 0 0 0 3.958-3.959v-4.75A3.963 3.963 0 0 0 17.542 2.5Zm2.375 8.708a2.378 2.378 0 0 1-2.375 2.375h-4.75a2.378 2.378 0 0 1-2.375-2.375v-4.75a2.378 2.378 0 0 1 2.375-2.375h4.75a2.378 2.378 0 0 1 2.375 2.375v4.75Zm-4.75 6.334a3.963 3.963 0 0 1-3.959 3.958h-4.75A3.963 3.963 0 0 1 2.5 17.542v-4.75a3.963 3.963 0 0 1 3.958-3.959.791.791 0 1 1 0 1.584 2.378 2.378 0 0 0-2.375 2.375v4.75a2.378 2.378 0 0 0 2.375 2.375h4.75a2.378 2.378 0 0 0 2.375-2.375.792.792 0 1 1 1.584 0Z"})))},Qe,et;function Se(){return Se=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Se.apply(this,arguments)}var gr=function(t){return D.createElement("svg",Se({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},t),Qe||(Qe=D.createElement("path",{fill:"currentColor",d:"M17.25 3H6.75A3.755 3.755 0 0 0 3 6.75v10.5A3.754 3.754 0 0 0 6.75 21h10.5A3.754 3.754 0 0 0 21 17.25V6.75A3.755 3.755 0 0 0 17.25 3Zm2.25 14.25a2.25 2.25 0 0 1-2.25 2.25H6.75a2.25 2.25 0 0 1-2.25-2.25V6.75A2.25 2.25 0 0 1 6.75 4.5h10.5a2.25 2.25 0 0 1 2.25 2.25v10.5Z"})),et||(et=D.createElement("path",{fill:"#14C786",d:"M10.312 14.45 7.83 11.906a.625.625 0 0 0-.896 0 .659.659 0 0 0 0 .918l2.481 2.546a1.264 1.264 0 0 0 .896.381 1.237 1.237 0 0 0 .895-.38l5.858-6.011a.658.658 0 0 0 0-.919.625.625 0 0 0-.896 0l-5.857 6.01Z"})))};function ge({node:e,nodeMeta:t}){const{customizeCopy:r,CopyComponent:n,CopiedComponent:s}=c.useContext(G),[o,l]=c.useState(!1),u=h=>{h.stopPropagation();const f=r(e,t);typeof f=="string"&&f&&lr(f),l(!0),setTimeout(()=>l(!1),3e3)};return o?typeof s=="function"?a.jsx(s,{className:"json-view--copy",style:{display:"inline-block"}}):a.jsx(gr,{className:"json-view--copy",style:{display:"inline-block"}}):typeof n=="function"?a.jsx(n,{onClick:u,className:"json-view--copy"}):a.jsx(pr,{onClick:u,className:"json-view--copy"})}function Ee({indexOrName:e,value:t,depth:r,deleteHandle:n,editHandle:s,parent:o,parentPath:l}){const{displayArrayIndex:u}=c.useContext(G),h=Array.isArray(o);return a.jsxs("div",Object.assign({className:"json-view--pair"},{children:[!h||h&&u?a.jsxs(a.Fragment,{children:[a.jsx("span",Object.assign({className:typeof e=="number"?"json-view--index":"json-view--property"},{children:e})),":"," "]}):a.jsx(a.Fragment,{}),a.jsx(St,{node:t,depth:r+1,deleteHandle:(f,d)=>n(f,d),editHandle:(f,d,m,E)=>s(f,d,m,E),parent:o,indexOrName:e,parentPath:l})]}))}var tt,rt;function Oe(){return Oe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Oe.apply(this,arguments)}var $e=function(t){return D.createElement("svg",Oe({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},t),tt||(tt=D.createElement("path",{fill:"currentColor",d:"M18.75 6h-2.325a3.757 3.757 0 0 0-3.675-3h-1.5a3.757 3.757 0 0 0-3.675 3H5.25a.75.75 0 0 0 0 1.5H6v9.75A3.754 3.754 0 0 0 9.75 21h4.5A3.754 3.754 0 0 0 18 17.25V7.5h.75a.75.75 0 1 0 0-1.5Zm-7.5-1.5h1.5A2.255 2.255 0 0 1 14.872 6H9.128a2.255 2.255 0 0 1 2.122-1.5Zm5.25 12.75a2.25 2.25 0 0 1-2.25 2.25h-4.5a2.25 2.25 0 0 1-2.25-2.25V7.5h9v9.75Z"})),rt||(rt=D.createElement("path",{fill:"#DA0000",d:"M10.5 16.5a.75.75 0 0 0 .75-.75v-4.5a.75.75 0 1 0-1.5 0v4.5a.75.75 0 0 0 .75.75ZM13.5 16.5a.75.75 0 0 0 .75-.75v-4.5a.75.75 0 1 0-1.5 0v4.5a.75.75 0 0 0 .75.75Z"})))},nt,at;function ke(){return ke=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ke.apply(this,arguments)}var Ct=function(t){return D.createElement("svg",ke({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},t),nt||(nt=D.createElement("path",{fill:"currentColor",d:"M21 6.75v10.5A3.754 3.754 0 0 1 17.25 21H6.75A3.754 3.754 0 0 1 3 17.25V6.75A3.754 3.754 0 0 1 6.75 3h10.5A3.754 3.754 0 0 1 21 6.75Zm-1.5 0c0-1.24-1.01-2.25-2.25-2.25H6.75C5.51 4.5 4.5 5.51 4.5 6.75v10.5c0 1.24 1.01 2.25 2.25 2.25h10.5c1.24 0 2.25-1.01 2.25-2.25V6.75Z"})),at||(at=D.createElement("path",{fill:"#14C786",d:"M15 12.75a.75.75 0 1 0 0-1.5h-2.25V9a.75.75 0 1 0-1.5 0v2.25H9a.75.75 0 1 0 0 1.5h2.25V15a.75.75 0 1 0 1.5 0v-2.25H15Z"})))},st,ot;function Ae(){return Ae=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ae.apply(this,arguments)}var De=function(t){return D.createElement("svg",Ae({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},t),st||(st=D.createElement("path",{fill:"currentColor",d:"M12 3a9 9 0 1 0 9 9 9.01 9.01 0 0 0-9-9Zm0 16.5a7.5 7.5 0 1 1 7.5-7.5 7.509 7.509 0 0 1-7.5 7.5Z"})),ot||(ot=D.createElement("path",{fill:"#14C786",d:"m10.85 13.96-1.986-2.036a.5.5 0 0 0-.716 0 .527.527 0 0 0 0 .735l1.985 2.036a1.01 1.01 0 0 0 .717.305.99.99 0 0 0 .716-.305l4.686-4.808a.526.526 0 0 0 0-.735.5.5 0 0 0-.716 0l-4.687 4.809Z"})))},it,ct;function Ne(){return Ne=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ne.apply(this,arguments)}var Le=function(t){return D.createElement("svg",Ne({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},t),it||(it=D.createElement("path",{fill:"#DA0000",d:"M15 9a.75.75 0 0 0-1.06 0L12 10.94 10.06 9A.75.75 0 0 0 9 10.06L10.94 12 9 13.94A.75.75 0 0 0 10.06 15L12 13.06 13.94 15A.75.75 0 0 0 15 13.94L13.06 12 15 10.06A.75.75 0 0 0 15 9Z"})),ct||(ct=D.createElement("path",{fill:"currentColor",d:"M12 3a9 9 0 1 0 9 9 9.01 9.01 0 0 0-9-9Zm0 16.5a7.5 7.5 0 1 1 7.5-7.5 7.509 7.509 0 0 1-7.5 7.5Z"})))};function hr({originNode:e,node:t,depth:r,index:n,deleteHandle:s,customOptions:o,startIndex:l,parent:u,parentPath:h}){const{enableClipboard:f,src:d,onEdit:m,onChange:E,forceUpdate:R,displaySize:O,CustomOperation:N}=c.useContext(G),p=[...h,String(n)],[T,k]=c.useState(!0),I=c.useCallback((x,y,H)=>{e[x]=y,m&&m({newValue:y,oldValue:H,depth:r,src:d,indexOrName:x,parentType:"array",parentPath:h}),E&&E({type:"edit",depth:r,src:d,indexOrName:x,parentType:"array",parentPath:h}),R()},[t,m,E,R]),w=x=>{e.splice(x,1),s&&s(x,h),R()},b=a.jsxs(a.Fragment,{children:[!T&&a.jsxs("span",Object.assign({onClick:()=>k(!0),className:"jv-size-chevron"},{children:[ee(O,r,T)&&a.jsxs("span",Object.assign({className:"jv-size"},{children:[ae(t)," Items"]})),a.jsx(Pe,{className:"jv-chevron"})]})),!T&&f&&pe(o)&&a.jsx(ge,{node:t,nodeMeta:{depth:r,indexOrName:n,parent:u,parentPath:h,currentPath:p}}),typeof N=="function"?a.jsx(N,{node:t}):null]});return a.jsxs("div",{children:[a.jsx("span",{children:"["}),b,T?a.jsxs("button",Object.assign({onClick:()=>k(!1),className:"jv-button"},{children:[l," ... ",l+t.length-1]})):a.jsx("div",Object.assign({className:"jv-indent"},{children:t.map((x,y)=>a.jsx(Ee,{indexOrName:y+l,value:x,depth:r,parent:t,deleteHandle:w,editHandle:I,parentPath:h},String(n)+String(y)))})),a.jsx("span",{children:"]"})]})}function vr({node:e,depth:t,deleteHandle:r,indexOrName:n,customOptions:s,parent:o,parentPath:l}){const u=typeof n<"u"?[...l,String(n)]:l,h=[];for(let j=0;j<e.length;j+=100)h.push(e.slice(j,j+100));const{collapsed:f,enableClipboard:d,collapseObjectsAfterLength:m,editable:E,onDelete:R,src:O,onAdd:N,CustomOperation:p,onChange:T,forceUpdate:k,displaySize:I}=c.useContext(G),[w,b]=c.useState(Ye(e,t,n,f,m,s));c.useEffect(()=>{b(Ye(e,t,n,f,m,s))},[f,m]);const[x,y]=c.useState(!1),H=()=>{y(!1),r&&r(n,l),R&&R({value:e,depth:t,src:O,indexOrName:n,parentType:"array",parentPath:l}),T&&T({type:"delete",depth:t,src:O,indexOrName:n,parentType:"array",parentPath:l})},[_,S]=c.useState(!1),$=()=>{const j=e;j.push(null),N&&N({indexOrName:j.length-1,depth:t,src:O,parentType:"array",parentPath:l}),T&&T({type:"add",indexOrName:j.length-1,depth:t,src:O,parentType:"array",parentPath:l}),k()},V=x||_,U=()=>{y(!1),S(!1)},F=a.jsxs(a.Fragment,{children:[!w&&!V&&a.jsxs("span",Object.assign({onClick:()=>b(!0),className:"jv-size-chevron"},{children:[ee(I,t,w)&&a.jsxs("span",Object.assign({className:"jv-size"},{children:[e.length," Items"]})),a.jsx(Pe,{className:"jv-chevron"})]})),V&&a.jsx(De,{className:"json-view--edit",style:{display:"inline-block"},onClick:_?$:H}),V&&a.jsx(Le,{className:"json-view--edit",style:{display:"inline-block"},onClick:U}),!w&&!V&&d&&pe(s)&&a.jsx(ge,{node:e,nodeMeta:{depth:t,indexOrName:n,parent:o,parentPath:l,currentPath:u}}),!w&&!V&&wt(E)&&xt(s)&&a.jsx(Ct,{className:"json-view--edit",onClick:()=>{$()}}),!w&&!V&&Me(E)&&Ie(s)&&r&&a.jsx($e,{className:"json-view--edit",onClick:()=>y(!0)}),typeof p=="function"?a.jsx(p,{node:e}):null]});return a.jsxs(a.Fragment,{children:[a.jsx("span",{children:"["}),F,w?a.jsx("button",Object.assign({onClick:()=>b(!1),className:"jv-button"},{children:"..."})):a.jsx("div",Object.assign({className:"jv-indent"},{children:h.map((j,M)=>a.jsx(hr,{originNode:e,node:j,depth:t,index:M,startIndex:M*100,deleteHandle:r,customOptions:s,parentPath:l},String(n)+String(M)))})),a.jsx("span",{children:"]"}),w&&ee(I,t,w)&&a.jsxs("span",Object.assign({onClick:()=>b(!1),className:"jv-size"},{children:[e.length," Items"]}))]})}function mr({node:e,depth:t,indexOrName:r,deleteHandle:n,customOptions:s,parent:o,parentPath:l}){const{collapsed:u,onCollapse:h,enableClipboard:f,ignoreLargeArray:d,collapseObjectsAfterLength:m,editable:E,onDelete:R,src:O,onAdd:N,onEdit:p,onChange:T,forceUpdate:k,displaySize:I,CustomOperation:w}=c.useContext(G),b=typeof r<"u"?[...l,String(r)]:l;if(!d&&Array.isArray(e)&&e.length>100)return a.jsx(vr,{node:e,depth:t,indexOrName:r,deleteHandle:n,customOptions:s,parentPath:b});const x=K(e),[y,H]=c.useState(qe(e,t,r,u,m,s)),_=v=>{h?.({isCollapsing:!v,node:e,depth:t,indexOrName:r}),H(v)};c.useEffect(()=>{_(qe(e,t,r,u,m,s))},[u,m]);const S=c.useCallback((v,A,B)=>{Array.isArray(e)?e[+v]=A:e&&(e[v]=A),p&&p({newValue:A,oldValue:B,depth:t,src:O,indexOrName:v,parentType:x?"object":"array",parentPath:b}),T&&T({type:"edit",depth:t,src:O,indexOrName:v,parentType:x?"object":"array",parentPath:b}),k()},[e,p,T,k]),$=v=>{Array.isArray(e)?e.splice(+v,1):e&&delete e[v],k()},[V,U]=c.useState(!1),F=()=>{U(!1),n&&n(r,b),R&&R({value:e,depth:t,src:O,indexOrName:r,parentType:x?"object":"array",parentPath:b}),T&&T({type:"delete",depth:t,src:O,indexOrName:r,parentType:x?"object":"array",parentPath:b})},[j,M]=c.useState(!1),P=c.useRef(null),z=()=>{var v;if(x){const A=(v=P.current)===null||v===void 0?void 0:v.value;A&&(e[A]=null,P.current&&(P.current.value=""),M(!1),N&&N({indexOrName:A,depth:t,src:O,parentType:"object",parentPath:b}),T&&T({type:"add",indexOrName:A,depth:t,src:O,parentType:"object",parentPath:b}))}else if(Array.isArray(e)){const A=e;A.push(null),N&&N({indexOrName:A.length-1,depth:t,src:O,parentType:"array",parentPath:b}),T&&T({type:"add",indexOrName:A.length-1,depth:t,src:O,parentType:"array",parentPath:b})}k()},Z=v=>{v.key==="Enter"?(v.preventDefault(),z()):v.key==="Escape"&&g()},i=V||j,g=()=>{U(!1),M(!1)},C=a.jsxs(a.Fragment,{children:[!y&&!i&&a.jsxs("span",Object.assign({onClick:()=>_(!0),className:"jv-size-chevron"},{children:[ee(I,t,y)&&a.jsxs("span",Object.assign({className:"jv-size"},{children:[ae(e)," Items"]})),a.jsx(Pe,{className:"jv-chevron"})]})),j&&x&&a.jsx("input",{className:"json-view--input",placeholder:"property",ref:P,onKeyDown:Z}),i&&a.jsx(De,{className:"json-view--edit",style:{display:"inline-block"},onClick:j?z:F}),i&&a.jsx(Le,{className:"json-view--edit",style:{display:"inline-block"},onClick:g}),!y&&!i&&f&&pe(s)&&a.jsx(ge,{node:e,nodeMeta:{depth:t,indexOrName:r,parent:o,parentPath:l,currentPath:b}}),!y&&!i&&wt(E)&&xt(s)&&a.jsx(Ct,{className:"json-view--edit",onClick:()=>{x?(M(!0),setTimeout(()=>{var v;return(v=P.current)===null||v===void 0?void 0:v.focus()})):z()}}),!y&&!i&&Me(E)&&Ie(s)&&n&&a.jsx($e,{className:"json-view--edit",onClick:()=>U(!0)}),typeof w=="function"?a.jsx(w,{node:e}):null]});return Array.isArray(e)?a.jsxs(a.Fragment,{children:[a.jsx("span",{children:"["}),C,y?a.jsx("button",Object.assign({onClick:()=>_(!1),className:"jv-button"},{children:"..."})):a.jsx("div",Object.assign({className:"jv-indent"},{children:e.map((v,A)=>a.jsx(Ee,{indexOrName:A,value:v,depth:t,parent:e,deleteHandle:$,editHandle:S,parentPath:b},String(r)+String(A)))})),a.jsx("span",{children:"]"}),y&&ee(I,t,y)&&a.jsxs("span",Object.assign({onClick:()=>_(!1),className:"jv-size"},{children:[ae(e)," Items"]}))]}):x?a.jsxs(a.Fragment,{children:[a.jsx("span",{children:"{"}),C,y?a.jsx("button",Object.assign({onClick:()=>_(!1),className:"jv-button"},{children:"..."})):a.jsx("div",Object.assign({className:"jv-indent"},{children:Object.entries(e).map(([v,A])=>a.jsx(Ee,{indexOrName:v,value:A,depth:t,parent:e,deleteHandle:$,editHandle:S,parentPath:b},String(r)+String(v)))})),a.jsx("span",{children:"}"}),y&&ee(I,t,y)&&a.jsxs("span",Object.assign({onClick:()=>_(!1),className:"jv-size"},{children:[ae(e)," Items"]}))]}):a.jsx("span",{children:String(e)})}const br=c.forwardRef(({str:e,className:t,ctrlClick:r},n)=>{let{collapseStringMode:s,collapseStringsAfterLength:o,customizeCollapseStringUI:l}=c.useContext(G);const[u,h]=c.useState(!0),f=c.useRef(null);o=o>0?o:0;const d=e.replace(/\s+/g," "),m=typeof l=="function"?l(d,u):typeof l=="string"?l:"...",E=R=>{var O;if((R.ctrlKey||R.metaKey)&&r)r(R);else{const N=window.getSelection();if(N&&N.anchorOffset!==N.focusOffset&&((O=N.anchorNode)===null||O===void 0?void 0:O.parentElement)===f.current)return;h(!u)}};if(e.length<=o)return a.jsxs("span",Object.assign({ref:f,className:t,onClick:r},{children:['"',e,'"']}));if(s==="address")return e.length<=10?a.jsxs("span",Object.assign({ref:f,className:t,onClick:r},{children:['"',e,'"']})):a.jsxs("span",Object.assign({ref:f,onClick:E,className:t+" cursor-pointer"},{children:['"',u?[d.slice(0,6),m,d.slice(-4)]:e,'"']}));if(s==="directly")return a.jsxs("span",Object.assign({ref:f,onClick:E,className:t+" cursor-pointer"},{children:['"',u?[d.slice(0,o),m]:e,'"']}));if(s==="word"){let R=o,O=o+1,N=d,p=1;for(;;){if(/\W/.test(e[R])){N=e.slice(0,R);break}if(/\W/.test(e[O])){N=e.slice(0,O);break}if(p===6){N=e.slice(0,o);break}p++,R--,O++}return a.jsxs("span",Object.assign({ref:f,onClick:E,className:t+" cursor-pointer"},{children:['"',u?[N,m]:e,'"']}))}return a.jsxs("span",Object.assign({ref:f,className:t},{children:['"',e,'"']}))});var lt;function Te(){return Te=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Te.apply(this,arguments)}var yr=function(t){return D.createElement("svg",Te({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},t),lt||(lt=D.createElement("path",{fill:"currentColor",d:"M17.25 3H6.75A3.754 3.754 0 0 0 3 6.75v10.5A3.754 3.754 0 0 0 6.75 21h10.5A3.754 3.754 0 0 0 21 17.25V6.75A3.754 3.754 0 0 0 17.25 3Zm2.25 14.25c0 1.24-1.01 2.25-2.25 2.25H6.75c-1.24 0-2.25-1.01-2.25-2.25V6.75c0-1.24 1.01-2.25 2.25-2.25h10.5c1.24 0 2.25 1.01 2.25 2.25v10.5Zm-6.09-9.466-5.031 5.03a2.981 2.981 0 0 0-.879 2.121v1.19c0 .415.336.75.75.75h1.19c.8 0 1.554-.312 2.12-.879l5.03-5.03a2.252 2.252 0 0 0 0-3.182c-.85-.85-2.331-.85-3.18 0Zm-2.91 7.151c-.28.28-.666.44-1.06.44H9v-.44c0-.4.156-.777.44-1.06l3.187-3.188 1.06 1.061-3.187 3.188Zm5.03-5.03-.782.783-1.06-1.061.782-.782a.766.766 0 0 1 1.06 0 .75.75 0 0 1 0 1.06Z"})))},ut,ft;function Re(){return Re=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Re.apply(this,arguments)}var jr=function(t){return D.createElement("svg",Re({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},t),ut||(ut=D.createElement("path",{fill:"currentColor",d:"M6.75 3h5.5v1.5h-5.5C5.51 4.5 4.5 5.51 4.5 6.75v10.5c0 1.24 1.01 2.25 2.25 2.25h10.5c1.24 0 2.25-1.01 2.25-2.25v-5.5H21v5.5A3.754 3.754 0 0 1 17.25 21H6.75A3.754 3.754 0 0 1 3 17.25V6.75A3.754 3.754 0 0 1 6.75 3Z"})),ft||(ft=D.createElement("path",{fill:"currentColor",d:"M20.013 3h-3.946a.987.987 0 0 0 0 1.973h1.564l-6.342 6.342a1.004 1.004 0 0 0 0 1.396 1.004 1.004 0 0 0 1.396 0l6.342-6.342v1.564a.987.987 0 0 0 1.973 0V3.987A.987.987 0 0 0 20.013 3Z"})))};function St({node:e,depth:t,deleteHandle:r,indexOrName:n,parent:s,editHandle:o,parentPath:l}){const{collapseStringsAfterLength:u,enableClipboard:h,editable:f,src:d,onDelete:m,onChange:E,customizeNode:R,matchesURL:O,urlRegExp:N,EditComponent:p,DoneComponent:T,CancelComponent:k,CustomOperation:I}=c.useContext(G);let w;if(typeof R=="function"&&(w=_e(R,[{node:e,depth:t,indexOrName:n}])),w){if(c.isValidElement(w))return w;if(ur(w)){const b=w;return a.jsx(b,{node:e,depth:t,indexOrName:n})}}if(Array.isArray(e)||K(e))return a.jsx(mr,{parent:s,node:e,depth:t,indexOrName:n,deleteHandle:r,parentPath:l,customOptions:typeof w=="object"?w:void 0});{const b=typeof e,x=typeof n<"u"?[...l,String(n)]:l,[y,H]=c.useState(!1),[_,S]=c.useState(!1),$=c.useRef(null),V=()=>{H(!0),setTimeout(()=>{var v,A;(v=window.getSelection())===null||v===void 0||v.selectAllChildren($.current),(A=$.current)===null||A===void 0||A.focus()})},U=c.useCallback(()=>{let v=$.current.innerText;try{const A=JSON.parse(v);o&&o(n,A,e,l)}catch{const B=dr(b,v);o&&o(n,B,e,l)}H(!1)},[o,n,e,l,b]),F=()=>{H(!1),S(!1)},j=()=>{S(!1),r&&r(n,l),m&&m({value:e,depth:t,src:d,indexOrName:n,parentType:Array.isArray(s)?"array":"object",parentPath:l}),E&&E({depth:t,src:d,indexOrName:n,parentType:Array.isArray(s)?"array":"object",type:"delete",parentPath:l})},M=c.useCallback(v=>{v.key==="Enter"?(v.preventDefault(),U()):v.key==="Escape"&&F()},[U]),P=y||_,z=!P&&We(f)&&Ke(w)&&o?v=>{(v.ctrlKey||v.metaKey)&&V()}:void 0,Z=a.jsxs(a.Fragment,{children:[P&&(typeof T=="function"?a.jsx(T,{className:"json-view--edit",style:{display:"inline-block"},onClick:_?j:U}):a.jsx(De,{className:"json-view--edit",style:{display:"inline-block"},onClick:_?j:U})),P&&(typeof k=="function"?a.jsx(k,{className:"json-view--edit",style:{display:"inline-block"},onClick:F}):a.jsx(Le,{className:"json-view--edit",style:{display:"inline-block"},onClick:F})),!P&&h&&pe(w)&&a.jsx(ge,{node:e,nodeMeta:{depth:t,indexOrName:n,parent:s,parentPath:l,currentPath:x}}),!P&&O&&b==="string"&&N.test(e)&&fr(w)&&a.jsx("a",Object.assign({href:e,target:"_blank",className:"json-view--link"},{children:a.jsx(jr,{})})),!P&&We(f)&&Ke(w)&&o&&(typeof p=="function"?a.jsx(p,{className:"json-view--edit",onClick:V}):a.jsx(yr,{className:"json-view--edit",onClick:V})),!P&&Me(f)&&Ie(w)&&r&&a.jsx($e,{className:"json-view--edit",onClick:()=>S(!0)}),typeof I=="function"?a.jsx(I,{node:e}):null]});let i="json-view--string";switch(b){case"number":case"bigint":i="json-view--number";break;case"boolean":i="json-view--boolean";break;case"object":i="json-view--null";break}typeof w?.className=="string"&&(i+=" "+w.className),_&&(i+=" json-view--deleting");let g=String(e);b==="bigint"&&(g+="n");const C=c.useMemo(()=>a.jsx("span",{contentEditable:!0,className:i,dangerouslySetInnerHTML:{__html:b==="string"?`"${g}"`:g},ref:$,onKeyDown:M}),[g,b,M]);return b==="string"?a.jsxs(a.Fragment,{children:[y?C:e.length>u?a.jsx(br,{str:e,ref:$,className:i,ctrlClick:z}):a.jsxs("span",Object.assign({className:i,onClick:z},{children:['"',g,'"']})),Z]}):a.jsxs(a.Fragment,{children:[y?C:a.jsx("span",Object.assign({className:i,onClick:z},{children:g})),Z]})}}const Et=/^(((ht|f)tps?):\/\/)?([^!@#$%^&*?.\s-]([^!@#$%^&*?.\s]{0,63}[^!@#$%^&*?.\s])?\.)+[a-z]{2,6}\/?/,G=c.createContext({src:void 0,collapseStringsAfterLength:99,collapseStringMode:"directly",customizeCollapseStringUI:void 0,collapseObjectsAfterLength:20,collapsed:!1,onCollapse:void 0,enableClipboard:!0,editable:!1,onEdit:void 0,onDelete:void 0,onAdd:void 0,onChange:void 0,forceUpdate:()=>{},customizeNode:void 0,customizeCopy:()=>{},displaySize:void 0,displayArrayIndex:!0,matchesURL:!1,urlRegExp:Et,ignoreLargeArray:!1,CopyComponent:void 0,CopiedComponent:void 0,EditComponent:void 0,CancelComponent:void 0,DoneComponent:void 0,CustomOperation:void 0});function wr({src:e,collapseStringsAfterLength:t=99,collapseStringMode:r="directly",customizeCollapseStringUI:n,collapseObjectsAfterLength:s=99,collapsed:o,onCollapse:l,enableClipboard:u=!0,editable:h=!1,onEdit:f,onDelete:d,onAdd:m,onChange:E,dark:R=!1,theme:O="default",customizeNode:N,customizeCopy:p=F=>cr(F),displaySize:T,displayArrayIndex:k=!0,style:I,className:w,matchesURL:b=!1,urlRegExp:x=Et,ignoreLargeArray:y=!1,CopyComponent:H,CopiedComponent:_,EditComponent:S,CancelComponent:$,DoneComponent:V,CustomOperation:U}){const[F,j]=c.useState(0),M=c.useCallback(()=>j(Z=>++Z),[]),[P,z]=c.useState(e);return c.useEffect(()=>z(e),[e]),a.jsx(G.Provider,Object.assign({value:{src:P,collapseStringsAfterLength:t,collapseStringMode:r,customizeCollapseStringUI:n,collapseObjectsAfterLength:s,collapsed:o,onCollapse:l,enableClipboard:u,editable:h,onEdit:f,onDelete:d,onAdd:m,onChange:E,forceUpdate:M,customizeNode:N,customizeCopy:p,displaySize:T,displayArrayIndex:k,matchesURL:b,urlRegExp:x,ignoreLargeArray:y,CopyComponent:H,CopiedComponent:_,EditComponent:S,CancelComponent:$,DoneComponent:V,CustomOperation:U}},{children:a.jsx("code",Object.assign({className:"json-view"+(R?" dark":"")+(O&&O!=="default"?" json-view_"+O:"")+(w?" "+w:""),style:I},{children:a.jsx(St,{node:P,depth:1,editHandle:(Z,i,g,C)=>{z(i),f&&f({newValue:i,oldValue:g,depth:1,src:P,indexOrName:Z,parentType:null,parentPath:C}),E&&E({type:"edit",depth:1,src:P,indexOrName:Z,parentType:null,parentPath:C})},deleteHandle:(Z,i)=>{z(void 0),d&&d({value:P,depth:1,src:P,indexOrName:Z,parentType:null,parentPath:i}),E&&E({depth:1,src:P,indexOrName:Z,parentType:null,type:"delete",parentPath:i})},parentPath:[]})}))}))}const xr=({state:e})=>a.jsx(wr,{src:e.value,theme:"default"});/**
|
|
63
|
-
* @license lucide-react v0.
|
|
63
|
+
* @license lucide-react v0.548.0 - ISC
|
|
64
64
|
*
|
|
65
65
|
* This source code is licensed under the ISC license.
|
|
66
66
|
* See the LICENSE file in the root directory of this source tree.
|
|
67
67
|
*/const Cr=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],dt=W("circle-alert",Cr);/**
|
|
68
|
-
* @license lucide-react v0.
|
|
68
|
+
* @license lucide-react v0.548.0 - ISC
|
|
69
69
|
*
|
|
70
70
|
* This source code is licensed under the ISC license.
|
|
71
71
|
* See the LICENSE file in the root directory of this source tree.
|
|
72
72
|
*/const Sr=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Er=W("check",Sr);/**
|
|
73
|
-
* @license lucide-react v0.
|
|
73
|
+
* @license lucide-react v0.548.0 - ISC
|
|
74
74
|
*
|
|
75
75
|
* This source code is licensed under the ISC license.
|
|
76
76
|
* See the LICENSE file in the root directory of this source tree.
|
|
77
77
|
*/const Or=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],kr=W("loader-circle",Or);/**
|
|
78
|
-
* @license lucide-react v0.
|
|
78
|
+
* @license lucide-react v0.548.0 - ISC
|
|
79
79
|
*
|
|
80
80
|
* This source code is licensed under the ISC license.
|
|
81
81
|
* See the LICENSE file in the root directory of this source tree.
|
package/dist/index.js
CHANGED
|
@@ -282,7 +282,7 @@ function nr() {
|
|
|
282
282
|
}
|
|
283
283
|
var a = nr();
|
|
284
284
|
/**
|
|
285
|
-
* @license lucide-react v0.
|
|
285
|
+
* @license lucide-react v0.548.0 - ISC
|
|
286
286
|
*
|
|
287
287
|
* This source code is licensed under the ISC license.
|
|
288
288
|
* See the LICENSE file in the root directory of this source tree.
|
|
@@ -299,7 +299,7 @@ const ar = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), sr = (
|
|
|
299
299
|
return !0;
|
|
300
300
|
};
|
|
301
301
|
/**
|
|
302
|
-
* @license lucide-react v0.
|
|
302
|
+
* @license lucide-react v0.548.0 - ISC
|
|
303
303
|
*
|
|
304
304
|
* This source code is licensed under the ISC license.
|
|
305
305
|
* See the LICENSE file in the root directory of this source tree.
|
|
@@ -316,7 +316,7 @@ var ir = {
|
|
|
316
316
|
strokeLinejoin: "round"
|
|
317
317
|
};
|
|
318
318
|
/**
|
|
319
|
-
* @license lucide-react v0.
|
|
319
|
+
* @license lucide-react v0.548.0 - ISC
|
|
320
320
|
*
|
|
321
321
|
* This source code is licensed under the ISC license.
|
|
322
322
|
* See the LICENSE file in the root directory of this source tree.
|
|
@@ -351,7 +351,7 @@ const cr = _t(
|
|
|
351
351
|
)
|
|
352
352
|
);
|
|
353
353
|
/**
|
|
354
|
-
* @license lucide-react v0.
|
|
354
|
+
* @license lucide-react v0.548.0 - ISC
|
|
355
355
|
*
|
|
356
356
|
* This source code is licensed under the ISC license.
|
|
357
357
|
* See the LICENSE file in the root directory of this source tree.
|
|
@@ -372,7 +372,7 @@ const X = (e, t) => {
|
|
|
372
372
|
return r.displayName = tt(e), r;
|
|
373
373
|
};
|
|
374
374
|
/**
|
|
375
|
-
* @license lucide-react v0.
|
|
375
|
+
* @license lucide-react v0.548.0 - ISC
|
|
376
376
|
*
|
|
377
377
|
* This source code is licensed under the ISC license.
|
|
378
378
|
* See the LICENSE file in the root directory of this source tree.
|
|
@@ -384,7 +384,7 @@ const lr = [
|
|
|
384
384
|
["path", { d: "M8 16H3v5", key: "1cv678" }]
|
|
385
385
|
], ur = X("refresh-cw", lr);
|
|
386
386
|
/**
|
|
387
|
-
* @license lucide-react v0.
|
|
387
|
+
* @license lucide-react v0.548.0 - ISC
|
|
388
388
|
*
|
|
389
389
|
* This source code is licensed under the ISC license.
|
|
390
390
|
* See the LICENSE file in the root directory of this source tree.
|
|
@@ -394,7 +394,7 @@ const dr = [
|
|
|
394
394
|
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }]
|
|
395
395
|
], fr = X("search", dr);
|
|
396
396
|
/**
|
|
397
|
-
* @license lucide-react v0.
|
|
397
|
+
* @license lucide-react v0.548.0 - ISC
|
|
398
398
|
*
|
|
399
399
|
* This source code is licensed under the ISC license.
|
|
400
400
|
* See the LICENSE file in the root directory of this source tree.
|
|
@@ -405,7 +405,7 @@ const pr = [
|
|
|
405
405
|
["path", { d: "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2", key: "e791ji" }]
|
|
406
406
|
], gr = X("trash", pr);
|
|
407
407
|
/**
|
|
408
|
-
* @license lucide-react v0.
|
|
408
|
+
* @license lucide-react v0.548.0 - ISC
|
|
409
409
|
*
|
|
410
410
|
* This source code is licensed under the ISC license.
|
|
411
411
|
* See the LICENSE file in the root directory of this source tree.
|
|
@@ -1186,7 +1186,7 @@ function Ur({ src: e, collapseStringsAfterLength: t = 99, collapseStringMode: r
|
|
|
1186
1186
|
}
|
|
1187
1187
|
const zr = ({ state: e }) => /* @__PURE__ */ a.jsx(Ur, { src: e.value, theme: "default" });
|
|
1188
1188
|
/**
|
|
1189
|
-
* @license lucide-react v0.
|
|
1189
|
+
* @license lucide-react v0.548.0 - ISC
|
|
1190
1190
|
*
|
|
1191
1191
|
* This source code is licensed under the ISC license.
|
|
1192
1192
|
* See the LICENSE file in the root directory of this source tree.
|
|
@@ -1197,21 +1197,21 @@ const Zr = [
|
|
|
1197
1197
|
["line", { x1: "12", x2: "12.01", y1: "16", y2: "16", key: "4dfq90" }]
|
|
1198
1198
|
], St = X("circle-alert", Zr);
|
|
1199
1199
|
/**
|
|
1200
|
-
* @license lucide-react v0.
|
|
1200
|
+
* @license lucide-react v0.548.0 - ISC
|
|
1201
1201
|
*
|
|
1202
1202
|
* This source code is licensed under the ISC license.
|
|
1203
1203
|
* See the LICENSE file in the root directory of this source tree.
|
|
1204
1204
|
*/
|
|
1205
1205
|
const Jr = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]], Yr = X("check", Jr);
|
|
1206
1206
|
/**
|
|
1207
|
-
* @license lucide-react v0.
|
|
1207
|
+
* @license lucide-react v0.548.0 - ISC
|
|
1208
1208
|
*
|
|
1209
1209
|
* This source code is licensed under the ISC license.
|
|
1210
1210
|
* See the LICENSE file in the root directory of this source tree.
|
|
1211
1211
|
*/
|
|
1212
1212
|
const qr = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], Br = X("loader-circle", qr);
|
|
1213
1213
|
/**
|
|
1214
|
-
* @license lucide-react v0.
|
|
1214
|
+
* @license lucide-react v0.548.0 - ISC
|
|
1215
1215
|
*
|
|
1216
1216
|
* This source code is licensed under the ISC license.
|
|
1217
1217
|
* See the LICENSE file in the root directory of this source tree.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@motiadev/plugin-states",
|
|
3
|
-
"version": "0.13.2-beta.164-
|
|
3
|
+
"version": "0.13.2-beta.164-704005",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@monaco-editor/react": "^4.7.0",
|
|
26
|
-
"lucide-react": "^0.
|
|
26
|
+
"lucide-react": "^0.548.0",
|
|
27
27
|
"react18-json-view": "^0.2.9",
|
|
28
28
|
"zustand": "^5.0.8"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
|
-
"@motiadev/stream-client-browser": "0.13.2-beta.164-
|
|
32
|
-
"@motiadev/ui": "0.13.2-beta.164-
|
|
33
|
-
"@motiadev/core": "0.13.2-beta.164-
|
|
31
|
+
"@motiadev/stream-client-browser": "0.13.2-beta.164-704005",
|
|
32
|
+
"@motiadev/ui": "0.13.2-beta.164-704005",
|
|
33
|
+
"@motiadev/core": "0.13.2-beta.164-704005"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@tailwindcss/vite": "^4.1.14",
|