react-semaphor 0.0.547 → 0.0.548

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.
@@ -1,4 +1,4 @@
1
- "use strict";var nt=t=>{throw TypeError(t)};var hs=(t,a,n)=>a.has(t)||nt("Cannot "+n);var re=(t,a,n)=>(hs(t,a,"read from private field"),n?n.call(t):a.get(t)),Oe=(t,a,n)=>a.has(t)?nt("Cannot add the same private member more than once"):a instanceof WeakSet?a.add(t):a.set(t,n),Be=(t,a,n,r)=>(hs(t,a,"write to private field"),r?r.call(t,n):a.set(t,n),n),Fe=(t,a,n)=>(hs(t,a,"access private method"),n);const e=require("react/jsx-runtime"),s=require("./index-N4c87NYQ.js"),M=require("react");require("react-dom");function Mn(t){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(a,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return a.default=t,Object.freeze(a)}const ue=Mn(M);var be,Ne,de,fe,ge,Ye,Ns,Nt,Ln=(Nt=class extends s.Subscribable{constructor(a,n){super();Oe(this,ge);Oe(this,be);Oe(this,Ne);Oe(this,de);Oe(this,fe);Be(this,be,a),this.setOptions(n),this.bindMethods(),Fe(this,ge,Ye).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(a){var r;const n=this.options;this.options=re(this,be).defaultMutationOptions(a),s.shallowEqualObjects(this.options,n)||re(this,be).getMutationCache().notify({type:"observerOptionsUpdated",mutation:re(this,de),observer:this}),n!=null&&n.mutationKey&&this.options.mutationKey&&s.hashKey(n.mutationKey)!==s.hashKey(this.options.mutationKey)?this.reset():((r=re(this,de))==null?void 0:r.state.status)==="pending"&&re(this,de).setOptions(this.options)}onUnsubscribe(){var a;this.hasListeners()||(a=re(this,de))==null||a.removeObserver(this)}onMutationUpdate(a){Fe(this,ge,Ye).call(this),Fe(this,ge,Ns).call(this,a)}getCurrentResult(){return re(this,Ne)}reset(){var a;(a=re(this,de))==null||a.removeObserver(this),Be(this,de,void 0),Fe(this,ge,Ye).call(this),Fe(this,ge,Ns).call(this)}mutate(a,n){var r;return Be(this,fe,n),(r=re(this,de))==null||r.removeObserver(this),Be(this,de,re(this,be).getMutationCache().build(re(this,be),this.options)),re(this,de).addObserver(this),re(this,de).execute(a)}},be=new WeakMap,Ne=new WeakMap,de=new WeakMap,fe=new WeakMap,ge=new WeakSet,Ye=function(){var n;const a=((n=re(this,de))==null?void 0:n.state)??s.getDefaultState();Be(this,Ne,{...a,isPending:a.status==="pending",isSuccess:a.status==="success",isError:a.status==="error",isIdle:a.status==="idle",mutate:this.mutate,reset:this.reset})},Ns=function(a){s.notifyManager.batch(()=>{var n,r,o,l,c,i,d,u;if(re(this,fe)&&this.hasListeners()){const m=re(this,Ne).variables,h=re(this,Ne).context;(a==null?void 0:a.type)==="success"?((r=(n=re(this,fe)).onSuccess)==null||r.call(n,a.data,m,h),(l=(o=re(this,fe)).onSettled)==null||l.call(o,a.data,null,m,h)):(a==null?void 0:a.type)==="error"&&((i=(c=re(this,fe)).onError)==null||i.call(c,a.error,m,h),(u=(d=re(this,fe)).onSettled)==null||u.call(d,void 0,a.error,m,h))}this.listeners.forEach(m=>{m(re(this,Ne))})})},Nt);function Ae(t,a){const n=s.useQueryClient(),[r]=ue.useState(()=>new Ln(n,t));ue.useEffect(()=>{r.setOptions(t)},[r,t]);const o=ue.useSyncExternalStore(ue.useCallback(c=>r.subscribe(s.notifyManager.batchCalls(c)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),l=ue.useCallback((c,i)=>{r.mutate(c,i).catch(s.noop)},[r]);if(o.error&&s.shouldThrowError(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:l,mutateAsync:o.mutate}}/**
1
+ "use strict";var nt=t=>{throw TypeError(t)};var hs=(t,a,n)=>a.has(t)||nt("Cannot "+n);var re=(t,a,n)=>(hs(t,a,"read from private field"),n?n.call(t):a.get(t)),Oe=(t,a,n)=>a.has(t)?nt("Cannot add the same private member more than once"):a instanceof WeakSet?a.add(t):a.set(t,n),Be=(t,a,n,r)=>(hs(t,a,"write to private field"),r?r.call(t,n):a.set(t,n),n),Fe=(t,a,n)=>(hs(t,a,"access private method"),n);const e=require("react/jsx-runtime"),s=require("./index-DIFWt1VS.js"),M=require("react");require("react-dom");function Mn(t){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(a,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return a.default=t,Object.freeze(a)}const ue=Mn(M);var be,Ne,de,fe,ge,Ye,Ns,Nt,Ln=(Nt=class extends s.Subscribable{constructor(a,n){super();Oe(this,ge);Oe(this,be);Oe(this,Ne);Oe(this,de);Oe(this,fe);Be(this,be,a),this.setOptions(n),this.bindMethods(),Fe(this,ge,Ye).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(a){var r;const n=this.options;this.options=re(this,be).defaultMutationOptions(a),s.shallowEqualObjects(this.options,n)||re(this,be).getMutationCache().notify({type:"observerOptionsUpdated",mutation:re(this,de),observer:this}),n!=null&&n.mutationKey&&this.options.mutationKey&&s.hashKey(n.mutationKey)!==s.hashKey(this.options.mutationKey)?this.reset():((r=re(this,de))==null?void 0:r.state.status)==="pending"&&re(this,de).setOptions(this.options)}onUnsubscribe(){var a;this.hasListeners()||(a=re(this,de))==null||a.removeObserver(this)}onMutationUpdate(a){Fe(this,ge,Ye).call(this),Fe(this,ge,Ns).call(this,a)}getCurrentResult(){return re(this,Ne)}reset(){var a;(a=re(this,de))==null||a.removeObserver(this),Be(this,de,void 0),Fe(this,ge,Ye).call(this),Fe(this,ge,Ns).call(this)}mutate(a,n){var r;return Be(this,fe,n),(r=re(this,de))==null||r.removeObserver(this),Be(this,de,re(this,be).getMutationCache().build(re(this,be),this.options)),re(this,de).addObserver(this),re(this,de).execute(a)}},be=new WeakMap,Ne=new WeakMap,de=new WeakMap,fe=new WeakMap,ge=new WeakSet,Ye=function(){var n;const a=((n=re(this,de))==null?void 0:n.state)??s.getDefaultState();Be(this,Ne,{...a,isPending:a.status==="pending",isSuccess:a.status==="success",isError:a.status==="error",isIdle:a.status==="idle",mutate:this.mutate,reset:this.reset})},Ns=function(a){s.notifyManager.batch(()=>{var n,r,o,l,c,i,d,u;if(re(this,fe)&&this.hasListeners()){const m=re(this,Ne).variables,h=re(this,Ne).context;(a==null?void 0:a.type)==="success"?((r=(n=re(this,fe)).onSuccess)==null||r.call(n,a.data,m,h),(l=(o=re(this,fe)).onSettled)==null||l.call(o,a.data,null,m,h)):(a==null?void 0:a.type)==="error"&&((i=(c=re(this,fe)).onError)==null||i.call(c,a.error,m,h),(u=(d=re(this,fe)).onSettled)==null||u.call(d,void 0,a.error,m,h))}this.listeners.forEach(m=>{m(re(this,Ne))})})},Nt);function Ae(t,a){const n=s.useQueryClient(),[r]=ue.useState(()=>new Ln(n,t));ue.useEffect(()=>{r.setOptions(t)},[r,t]);const o=ue.useSyncExternalStore(ue.useCallback(c=>r.subscribe(s.notifyManager.batchCalls(c)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),l=ue.useCallback((c,i)=>{r.mutate(c,i).catch(s.noop)},[r]);if(o.error&&s.shouldThrowError(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:l,mutateAsync:o.mutate}}/**
2
2
  * @license lucide-react v0.453.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -4,7 +4,7 @@ var Xs = (t) => {
4
4
  var Ra = (t, a, n) => a.has(t) || Xs("Cannot " + n);
5
5
  var Ce = (t, a, n) => (Ra(t, a, "read from private field"), n ? n.call(t) : a.get(t)), nn = (t, a, n) => a.has(t) ? Xs("Cannot add the same private member more than once") : a instanceof WeakSet ? a.add(t) : a.set(t, n), an = (t, a, n, r) => (Ra(t, a, "write to private field"), r ? r.call(t, n) : a.set(t, n), n), sn = (t, a, n) => (Ra(t, a, "access private method"), n);
6
6
  import { jsxs as s, jsx as e, Fragment as ne } from "react/jsx-runtime";
7
- import { E as Di, F as Ti, G as er, H as Mi, I as Or, J as He, K as Ei, L as Oi, M as H, N as ss, w as Y, A as yt, O as Ee, P as In, Q as Ar, R as V, T as Le, U as Rn, V as zn, W as Fn, X as Ln, Y as Q, Z as je, _ as ya, $ as _n, a0 as Pn, a1 as le, a2 as Vn, a3 as Ir, a4 as rn, a5 as Ai, a6 as tr, a7 as Rr, a8 as G, a9 as rs, aa as Me, ab as Ii, ac as ge, ad as ye, ae as ve, af as xe, ag as Pt, ah as Vt, ai as te, aj as zr, ak as at, al as st, am as Ri, an as Kt, ao as St, ap as Ft, aq as Ue, ar as qe, as as Ge, at as ht, au as ls, av as jn, aw as Un, ax as Fr, ay as vt, az as ln, aA as un, aB as rt, aC as De, aD as Ye, aE as is, aF as zi, aG as ia, aH as Lr, aI as dt, aJ as _r, aK as on, aL as os, aM as Pr, aN as Re, aO as ie, aP as Ne, aQ as mn, aR as lt, aS as hn, aT as Fi, aU as Lt, aV as tt, aW as Bn, aX as va, aY as Nn, aZ as cs, a_ as Cn, a$ as it, b0 as Jt, b1 as $n, b2 as qn, b3 as Vr, b4 as Wt, b5 as ds, b6 as us, b7 as ms, b8 as hs, b9 as pn, ba as Gn, bb as jr, bc as ps, bd as xa, be as fs, bf as Li, bg as gs, bh as _i, bi as Pi, bj as Yt, bk as Qt, bl as Fe, bm as Et, bn as Ur, C as se, bo as Gt, B as M, bp as Br, bq as $r, br as qr, bs as Gr, bt as Hr, bu as Kr, bv as Jr, bw as Wr, bx as Vi, by as ji, bz as qa, bA as ys, bB as Ui, bC as Bi, bD as $i, bE as Yr, bF as vs, bG as fn, bH as Hn, bI as Kn, bJ as Jn, bK as Wn, bL as jt, bM as gn, bN as wn, v as ot, bO as Qr, m as Zr, l as Xr, f as Xe, bP as qi, g as ut, bQ as Gi, h as Ht, j as mt, k as Hi, bR as Ki, bS as Ji, bT as At, bU as Ot, bV as el, bW as Wi, e as tl, bX as Sn, bY as kt, bZ as Yi, b_ as Ga, b$ as xs, c0 as Yn, c1 as ft, c2 as nl, r as oa, q as nr, c3 as ze, c4 as aa, c5 as al, c6 as Qi, c7 as Zi, c8 as Xi, c9 as sl, ca as eo, cb as ba, cc as to, cd as ca, ce as no, cf as Ha, cg as Dt, ch as Ve, ci as Tt, cj as ao, ck as so, cl as ro, cm as lo, cn as io, co as za, cp as oo, cq as ar, cr as co, cs as sr, ct as uo, cu as mo, cv as ho, cw as po, cx as bs, cy as fo, cz as rl, cA as Ns, cB as ll, cC as sa, cD as il, cE as go, cF as yo, cG as vo, cH as ol, cI as Qn, cJ as xo, cK as cl, cL as dl, cM as bo, cN as No, cO as Co, cP as ul, cQ as Cs, cR as ml, cS as wo, cT as rr, cU as Na, cV as Ca, cW as wa, cX as So, cY as ko, cZ as Do, c_ as xt, c$ as we, d0 as Se, d1 as ke, d2 as To, d3 as Mo, d4 as Eo, d5 as Oo, s as Ao, d6 as lr, d7 as hl, d8 as Io, d9 as Ro, da as zo, db as pl, dc as ws, dd as yn, de as Ss, df as It, dg as Fo, dh as Zn, di as fl, dj as Lo, dk as _o, dl as Po, dm as Vo, dn as jo, dp as ir, dq as Uo, dr as Bo, ds as $o, dt as qo, du as Go, dv as Ho, dw as Ko, dx as gl, dy as Jo, dz as Wo, dA as Yo, dB as Qo, dC as Zo, dD as yl, dE as Fa, dF as or, dG as Xo, dH as ec, dI as Ka, dJ as et, dK as Sa, dL as tc, dM as nc, dN as cr, dO as vl, dP as ks, dQ as ac, dR as sc, dS as kn, dT as Ja, dU as rc, dV as lc, dW as dr, dX as Wa, dY as Ya, dZ as da, d_ as cn, d$ as Dn, e0 as ic, e1 as oc, e2 as xl, e3 as cc, e4 as dc, S as uc, e5 as mc, e6 as hc, e7 as pc } from "./index-DjrkyZr5.js";
7
+ import { E as Di, F as Ti, G as er, H as Mi, I as Or, J as He, K as Ei, L as Oi, M as H, N as ss, w as Y, A as yt, O as Ee, P as In, Q as Ar, R as V, T as Le, U as Rn, V as zn, W as Fn, X as Ln, Y as Q, Z as je, _ as ya, $ as _n, a0 as Pn, a1 as le, a2 as Vn, a3 as Ir, a4 as rn, a5 as Ai, a6 as tr, a7 as Rr, a8 as G, a9 as rs, aa as Me, ab as Ii, ac as ge, ad as ye, ae as ve, af as xe, ag as Pt, ah as Vt, ai as te, aj as zr, ak as at, al as st, am as Ri, an as Kt, ao as St, ap as Ft, aq as Ue, ar as qe, as as Ge, at as ht, au as ls, av as jn, aw as Un, ax as Fr, ay as vt, az as ln, aA as un, aB as rt, aC as De, aD as Ye, aE as is, aF as zi, aG as ia, aH as Lr, aI as dt, aJ as _r, aK as on, aL as os, aM as Pr, aN as Re, aO as ie, aP as Ne, aQ as mn, aR as lt, aS as hn, aT as Fi, aU as Lt, aV as tt, aW as Bn, aX as va, aY as Nn, aZ as cs, a_ as Cn, a$ as it, b0 as Jt, b1 as $n, b2 as qn, b3 as Vr, b4 as Wt, b5 as ds, b6 as us, b7 as ms, b8 as hs, b9 as pn, ba as Gn, bb as jr, bc as ps, bd as xa, be as fs, bf as Li, bg as gs, bh as _i, bi as Pi, bj as Yt, bk as Qt, bl as Fe, bm as Et, bn as Ur, C as se, bo as Gt, B as M, bp as Br, bq as $r, br as qr, bs as Gr, bt as Hr, bu as Kr, bv as Jr, bw as Wr, bx as Vi, by as ji, bz as qa, bA as ys, bB as Ui, bC as Bi, bD as $i, bE as Yr, bF as vs, bG as fn, bH as Hn, bI as Kn, bJ as Jn, bK as Wn, bL as jt, bM as gn, bN as wn, v as ot, bO as Qr, m as Zr, l as Xr, f as Xe, bP as qi, g as ut, bQ as Gi, h as Ht, j as mt, k as Hi, bR as Ki, bS as Ji, bT as At, bU as Ot, bV as el, bW as Wi, e as tl, bX as Sn, bY as kt, bZ as Yi, b_ as Ga, b$ as xs, c0 as Yn, c1 as ft, c2 as nl, r as oa, q as nr, c3 as ze, c4 as aa, c5 as al, c6 as Qi, c7 as Zi, c8 as Xi, c9 as sl, ca as eo, cb as ba, cc as to, cd as ca, ce as no, cf as Ha, cg as Dt, ch as Ve, ci as Tt, cj as ao, ck as so, cl as ro, cm as lo, cn as io, co as za, cp as oo, cq as ar, cr as co, cs as sr, ct as uo, cu as mo, cv as ho, cw as po, cx as bs, cy as fo, cz as rl, cA as Ns, cB as ll, cC as sa, cD as il, cE as go, cF as yo, cG as vo, cH as ol, cI as Qn, cJ as xo, cK as cl, cL as dl, cM as bo, cN as No, cO as Co, cP as ul, cQ as Cs, cR as ml, cS as wo, cT as rr, cU as Na, cV as Ca, cW as wa, cX as So, cY as ko, cZ as Do, c_ as xt, c$ as we, d0 as Se, d1 as ke, d2 as To, d3 as Mo, d4 as Eo, d5 as Oo, s as Ao, d6 as lr, d7 as hl, d8 as Io, d9 as Ro, da as zo, db as pl, dc as ws, dd as yn, de as Ss, df as It, dg as Fo, dh as Zn, di as fl, dj as Lo, dk as _o, dl as Po, dm as Vo, dn as jo, dp as ir, dq as Uo, dr as Bo, ds as $o, dt as qo, du as Go, dv as Ho, dw as Ko, dx as gl, dy as Jo, dz as Wo, dA as Yo, dB as Qo, dC as Zo, dD as yl, dE as Fa, dF as or, dG as Xo, dH as ec, dI as Ka, dJ as et, dK as Sa, dL as tc, dM as nc, dN as cr, dO as vl, dP as ks, dQ as ac, dR as sc, dS as kn, dT as Ja, dU as rc, dV as lc, dW as dr, dX as Wa, dY as Ya, dZ as da, d_ as cn, d$ as Dn, e0 as ic, e1 as oc, e2 as xl, e3 as cc, e4 as dc, S as uc, e5 as mc, e6 as hc, e7 as pc } from "./index-CEWweOR2.js";
8
8
  import * as Ke from "react";
9
9
  import Ae, { useState as P, useCallback as me, useEffect as Te, useRef as nt, useMemo as $e, Suspense as bl, useContext as fc } from "react";
10
10
  import "react-dom";
@@ -26864,7 +26864,7 @@ function Iie(e) {
26864
26864
  );
26865
26865
  }
26866
26866
  function Aie(e) {
26867
- if (e.type === "table" || e.type === "view") {
26867
+ if (e.type === "table" || e.type === "view" || e.type === "dataset") {
26868
26868
  if (e.database && e.schema)
26869
26869
  return `${e.database}.${e.schema}.${e.name}`;
26870
26870
  if (e.database)
@@ -79241,6 +79241,7 @@ function Q4e({
79241
79241
  else {
79242
79242
  const S = {
79243
79243
  id: b.id,
79244
+ datasetType: b.type,
79244
79245
  name: b.name || b.table,
79245
79246
  label: b.label,
79246
79247
  domainId: b.domainId,
@@ -79249,7 +79250,9 @@ function Q4e({
79249
79250
  schema: b.schema,
79250
79251
  type: "dataset",
79251
79252
  connectionId: b.connectionId,
79252
- connectionType: b.connectionType
79253
+ connectionType: b.connectionType,
79254
+ datamodelId: b.datamodelId,
79255
+ sql: b.sql
79253
79256
  };
79254
79257
  x = [...y, S];
79255
79258
  }