@burdenoff/fe-libs 2026.703.1 → 2026.703.3
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/chrome/ProductSwitcher.d.ts +9 -0
- package/dist/chrome/ProductSwitcher.d.ts.map +1 -1
- package/dist/chrome/ProductSwitcher.js +30 -23
- package/dist/shared/config/products.d.ts +18 -0
- package/dist/shared/config/products.d.ts.map +1 -1
- package/dist/shared/config/products.js +163 -1
- package/dist/shared/graphql/client.d.ts.map +1 -1
- package/dist/shared/graphql/client.js +122 -108
- package/dist/shared/graphql/fetch.d.ts +10 -0
- package/dist/shared/graphql/fetch.d.ts.map +1 -1
- package/dist/shared/graphql/fetch.js +1 -1
- package/dist/ui/tooltip.d.ts +7 -1
- package/dist/ui/tooltip.d.ts.map +1 -1
- package/dist/ui/tooltip.js +8 -1
- package/package.json +1 -1
|
@@ -8,6 +8,15 @@ export interface Product {
|
|
|
8
8
|
/** When true, render as disabled with a "Coming soon" badge. */
|
|
9
9
|
comingSoon?: boolean;
|
|
10
10
|
}
|
|
11
|
+
/**
|
|
12
|
+
* Resolve the product to render as "current" in the switcher trigger.
|
|
13
|
+
*
|
|
14
|
+
* If the active shell's slug isn't in the catalog yet, synthesize a neutral
|
|
15
|
+
* product from the slug itself rather than mislabelling it as `products[0]`
|
|
16
|
+
* (which would show the first catalog entry's brand). Falls back to
|
|
17
|
+
* `products[0]` only when no slug is provided at all.
|
|
18
|
+
*/
|
|
19
|
+
export declare function resolveCurrentProduct(products: Product[], currentProductId?: string): Product | undefined;
|
|
11
20
|
export interface ProductSwitcherProps {
|
|
12
21
|
products: Product[];
|
|
13
22
|
currentProductId?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductSwitcher.d.ts","sourceRoot":"","sources":["../../src/chrome/ProductSwitcher.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAEhC,M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,CAAC;IAC7C,4CAA4C;IAC5C,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,eAAe,EAAE,EAAE,CAAC,oBAAoB,CAwIpD,CAAC"}
|
|
@@ -1,37 +1,44 @@
|
|
|
1
1
|
import { useEffect as e, useRef as t, useState as n } from "react";
|
|
2
2
|
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
3
3
|
//#region src/chrome/ProductSwitcher.tsx
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
function a(e, t) {
|
|
5
|
+
return e.find((e) => e.id === t) ?? (t ? {
|
|
6
|
+
id: t,
|
|
7
|
+
name: t,
|
|
8
|
+
url: "#"
|
|
9
|
+
} : e[0]);
|
|
10
|
+
}
|
|
11
|
+
var o = ({ products: o, currentProductId: s, onProductChange: c, compact: l = !1 }) => {
|
|
12
|
+
let [u, d] = n(!1), f = t(null), p = a(o, s);
|
|
6
13
|
e(() => {
|
|
7
14
|
let e = (e) => {
|
|
8
|
-
|
|
15
|
+
f.current && !f.current.contains(e.target) && d(!1);
|
|
9
16
|
};
|
|
10
|
-
if (
|
|
11
|
-
}, [
|
|
12
|
-
let
|
|
13
|
-
e.comingSoon || (
|
|
17
|
+
if (u) return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
|
|
18
|
+
}, [u]);
|
|
19
|
+
let m = (e) => {
|
|
20
|
+
e.comingSoon || (c ? c(e) : window.location.href = e.url, d(!1));
|
|
14
21
|
};
|
|
15
22
|
return /* @__PURE__ */ i("div", {
|
|
16
23
|
className: "relative",
|
|
17
|
-
ref:
|
|
24
|
+
ref: f,
|
|
18
25
|
children: [/* @__PURE__ */ i("button", {
|
|
19
|
-
onClick: () =>
|
|
20
|
-
className: `flex items-center gap-2 px-3 py-2 rounded-button hover:bg-bg-sunken transition-colors ${
|
|
26
|
+
onClick: () => d(!u),
|
|
27
|
+
className: `flex items-center gap-2 px-3 py-2 rounded-button hover:bg-bg-sunken transition-colors ${u ? "bg-bg-sunken" : ""}`,
|
|
21
28
|
"aria-label": "Switch product",
|
|
22
|
-
"aria-expanded":
|
|
29
|
+
"aria-expanded": u,
|
|
23
30
|
children: [
|
|
24
31
|
/* @__PURE__ */ r("div", {
|
|
25
32
|
className: "size-6 rounded-md flex items-center justify-center flex-shrink-0 text-text-inverse font-semibold text-xs",
|
|
26
|
-
style: { backgroundColor:
|
|
27
|
-
children:
|
|
33
|
+
style: { backgroundColor: p?.color || "var(--color-action-primary-bg)" },
|
|
34
|
+
children: p?.icon || p?.name.charAt(0)
|
|
28
35
|
}),
|
|
29
|
-
!
|
|
36
|
+
!l && /* @__PURE__ */ r("span", {
|
|
30
37
|
className: "text-body-sm font-medium text-text-primary",
|
|
31
|
-
children:
|
|
38
|
+
children: p?.name
|
|
32
39
|
}),
|
|
33
|
-
!
|
|
34
|
-
className: `w-4 h-4 text-text-secondary transition-transform ${
|
|
40
|
+
!l && /* @__PURE__ */ r("svg", {
|
|
41
|
+
className: `w-4 h-4 text-text-secondary transition-transform ${u ? "rotate-180" : ""}`,
|
|
35
42
|
fill: "none",
|
|
36
43
|
stroke: "currentColor",
|
|
37
44
|
viewBox: "0 0 24 24",
|
|
@@ -43,7 +50,7 @@ var a = ({ products: a, currentProductId: o, onProductChange: s, compact: c = !1
|
|
|
43
50
|
})
|
|
44
51
|
})
|
|
45
52
|
]
|
|
46
|
-
}),
|
|
53
|
+
}), u && /* @__PURE__ */ i("div", {
|
|
47
54
|
className: "absolute right-0 mt-2 w-[calc(100vw-1.5rem)] sm:w-64 max-w-64 bg-bg-elevated border border-border-subtle rounded-card shadow-[var(--shadow-elevation-4)] z-50 py-2 overflow-hidden animate-in fade-in-0 zoom-in-95 slide-in-from-top-2 duration-200",
|
|
48
55
|
children: [/* @__PURE__ */ r("div", {
|
|
49
56
|
className: "px-4 py-2 border-b border-border-subtle",
|
|
@@ -53,12 +60,12 @@ var a = ({ products: a, currentProductId: o, onProductChange: s, compact: c = !1
|
|
|
53
60
|
})
|
|
54
61
|
}), /* @__PURE__ */ r("div", {
|
|
55
62
|
className: "py-1 max-h-96 overflow-y-auto",
|
|
56
|
-
children:
|
|
57
|
-
onClick: () =>
|
|
63
|
+
children: o.map((e) => /* @__PURE__ */ i("button", {
|
|
64
|
+
onClick: () => m(e),
|
|
58
65
|
disabled: e.comingSoon,
|
|
59
66
|
"aria-disabled": e.comingSoon,
|
|
60
67
|
title: e.comingSoon ? "Coming soon" : void 0,
|
|
61
|
-
className: `w-full flex items-center gap-3 px-4 py-2.5 text-body-sm transition-colors ${e.comingSoon ? "text-text-muted cursor-not-allowed opacity-60" : e.id ===
|
|
68
|
+
className: `w-full flex items-center gap-3 px-4 py-2.5 text-body-sm transition-colors ${e.comingSoon ? "text-text-muted cursor-not-allowed opacity-60" : e.id === s ? "bg-[var(--color-accent-soft)] text-text-primary font-medium" : "text-text-primary hover:bg-bg-sunken"}`,
|
|
62
69
|
children: [
|
|
63
70
|
/* @__PURE__ */ r("div", {
|
|
64
71
|
className: "size-8 rounded-md flex items-center justify-center flex-shrink-0 text-text-inverse font-semibold text-sm",
|
|
@@ -72,7 +79,7 @@ var a = ({ products: a, currentProductId: o, onProductChange: s, compact: c = !1
|
|
|
72
79
|
e.comingSoon ? /* @__PURE__ */ r("span", {
|
|
73
80
|
className: "shrink-0 whitespace-nowrap rounded-full border border-border-subtle bg-bg-sunken px-1.5 py-0.5 text-[10px] font-medium uppercase tracking-wide text-text-secondary",
|
|
74
81
|
children: "Coming soon"
|
|
75
|
-
}) : e.id ===
|
|
82
|
+
}) : e.id === s && /* @__PURE__ */ r("svg", {
|
|
76
83
|
className: "size-5 text-action-primary-bg",
|
|
77
84
|
fill: "currentColor",
|
|
78
85
|
viewBox: "0 0 20 20",
|
|
@@ -89,4 +96,4 @@ var a = ({ products: a, currentProductId: o, onProductChange: s, compact: c = !1
|
|
|
89
96
|
});
|
|
90
97
|
};
|
|
91
98
|
//#endregion
|
|
92
|
-
export {
|
|
99
|
+
export { o as ProductSwitcher };
|
|
@@ -31,6 +31,24 @@ export declare const PRODUCT_URLS: {
|
|
|
31
31
|
readonly workspaces: "https://app.burdenoff.com/";
|
|
32
32
|
readonly vibecontrols: "https://app.vibecontrols.com/";
|
|
33
33
|
readonly botlit: "https://app.botlit.ai/";
|
|
34
|
+
readonly healthybowl: "https://app.gethealthybowl.com/";
|
|
35
|
+
readonly adaptercloud: "https://app.adaptercloud.com/";
|
|
36
|
+
readonly atheletebridge: "https://app.atheletebridge.com/";
|
|
37
|
+
readonly coolandlovely: "https://app.coolandlovely.com/";
|
|
38
|
+
readonly hookmovies: "https://app.hookmovies.com/";
|
|
39
|
+
readonly labsofscience: "https://app.labsofscience.com/";
|
|
40
|
+
readonly subscriberbot: "https://app.subscriberbot.com/";
|
|
41
|
+
readonly crewfoundry: "https://app.crewfoundry.com/";
|
|
42
|
+
readonly kadaikodi: "https://app.kadaikodi.com/";
|
|
43
|
+
readonly headshotmarketing: "https://app.headshotmarketing.com/";
|
|
44
|
+
readonly ggnomad: "https://app.ggnomad.com/";
|
|
45
|
+
readonly assethandler: "https://app.assethandler.com/";
|
|
46
|
+
readonly eventfullymanaged: "https://app.eventfullymanaged.com/";
|
|
47
|
+
readonly housingvista: "https://app.housingvista.com/";
|
|
48
|
+
readonly timecampus: "https://app.timecampus.com/";
|
|
49
|
+
readonly movethewheels: "https://app.movethewheels.com/";
|
|
50
|
+
readonly manufacturedops: "https://app.manufacturedops.com/";
|
|
51
|
+
readonly proserviceworld: "https://app.proserviceworld.com/";
|
|
34
52
|
};
|
|
35
53
|
};
|
|
36
54
|
export declare const PRODUCTS: ProductConfig[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"products.d.ts","sourceRoot":"","sources":["../../../src/shared/config/products.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;;OAKG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,eAAO,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"products.d.ts","sourceRoot":"","sources":["../../../src/shared/config/products.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;;OAKG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiCf,CAAC;AAEX,eAAO,MAAM,QAAQ,EAAE,aAAa,EA0LnC,CAAC;AAOF,wBAAgB,aAAa,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAIvD;AAED;;GAEG;AACH,wBAAgB,mBAAmB;;QA3P7B,MAAM;UACJ,MAAM;UACN,MAAM;WACL,MAAM;kBACC,MAAM;IACpB;;;;;OAKG;iBACU,OAAO;IAkPrB"}
|
|
@@ -12,7 +12,25 @@ var e = {
|
|
|
12
12
|
bigconsole: "https://app.bigconsole.com/",
|
|
13
13
|
workspaces: "https://app.burdenoff.com/",
|
|
14
14
|
vibecontrols: "https://app.vibecontrols.com/",
|
|
15
|
-
botlit: "https://app.botlit.ai/"
|
|
15
|
+
botlit: "https://app.botlit.ai/",
|
|
16
|
+
healthybowl: "https://app.gethealthybowl.com/",
|
|
17
|
+
adaptercloud: "https://app.adaptercloud.com/",
|
|
18
|
+
atheletebridge: "https://app.atheletebridge.com/",
|
|
19
|
+
coolandlovely: "https://app.coolandlovely.com/",
|
|
20
|
+
hookmovies: "https://app.hookmovies.com/",
|
|
21
|
+
labsofscience: "https://app.labsofscience.com/",
|
|
22
|
+
subscriberbot: "https://app.subscriberbot.com/",
|
|
23
|
+
crewfoundry: "https://app.crewfoundry.com/",
|
|
24
|
+
kadaikodi: "https://app.kadaikodi.com/",
|
|
25
|
+
headshotmarketing: "https://app.headshotmarketing.com/",
|
|
26
|
+
ggnomad: "https://app.ggnomad.com/",
|
|
27
|
+
assethandler: "https://app.assethandler.com/",
|
|
28
|
+
eventfullymanaged: "https://app.eventfullymanaged.com/",
|
|
29
|
+
housingvista: "https://app.housingvista.com/",
|
|
30
|
+
timecampus: "https://app.timecampus.com/",
|
|
31
|
+
movethewheels: "https://app.movethewheels.com/",
|
|
32
|
+
manufacturedops: "https://app.manufacturedops.com/",
|
|
33
|
+
proserviceworld: "https://app.proserviceworld.com/"
|
|
16
34
|
}
|
|
17
35
|
}, t = [
|
|
18
36
|
{
|
|
@@ -52,6 +70,150 @@ var e = {
|
|
|
52
70
|
color: "#f59e0b",
|
|
53
71
|
description: "AI agent platform",
|
|
54
72
|
comingSoon: !0
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
id: "healthybowl",
|
|
76
|
+
name: "Healthybowl",
|
|
77
|
+
icon: "HB",
|
|
78
|
+
color: "#22c55e",
|
|
79
|
+
description: "Health & wellness platform",
|
|
80
|
+
comingSoon: !0
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
id: "adaptercloud",
|
|
84
|
+
name: "AdapterCloud",
|
|
85
|
+
icon: "AC",
|
|
86
|
+
color: "#0ea5e9",
|
|
87
|
+
description: "Digital infrastructure continuum",
|
|
88
|
+
comingSoon: !0
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
id: "atheletebridge",
|
|
92
|
+
name: "AtheleteBridge",
|
|
93
|
+
icon: "AB",
|
|
94
|
+
color: "#f97316",
|
|
95
|
+
description: "Sports, gaming & training platform",
|
|
96
|
+
comingSoon: !0
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
id: "coolandlovely",
|
|
100
|
+
name: "CoolAndLovely",
|
|
101
|
+
icon: "CL",
|
|
102
|
+
color: "#ec4899",
|
|
103
|
+
description: "Fashion & lifestyle platform",
|
|
104
|
+
comingSoon: !0
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
id: "hookmovies",
|
|
108
|
+
name: "HookMovies",
|
|
109
|
+
icon: "HM",
|
|
110
|
+
color: "#ef4444",
|
|
111
|
+
description: "Multi-language global streaming network",
|
|
112
|
+
comingSoon: !0
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
id: "labsofscience",
|
|
116
|
+
name: "LabsOfScience",
|
|
117
|
+
icon: "LS",
|
|
118
|
+
color: "#14b8a6",
|
|
119
|
+
description: "Science & discovery platform",
|
|
120
|
+
comingSoon: !0
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
id: "subscriberbot",
|
|
124
|
+
name: "SubscriberBot",
|
|
125
|
+
icon: "SB",
|
|
126
|
+
color: "#a855f7",
|
|
127
|
+
description: "Recurring-subscription management",
|
|
128
|
+
comingSoon: !0
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
id: "crewfoundry",
|
|
132
|
+
name: "Crewfoundry",
|
|
133
|
+
icon: "CF",
|
|
134
|
+
color: "#6366f1",
|
|
135
|
+
description: "Workforce & crew management platform",
|
|
136
|
+
comingSoon: !0
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
id: "kadaikodi",
|
|
140
|
+
name: "Kadaikodi",
|
|
141
|
+
icon: "KK",
|
|
142
|
+
color: "#eab308",
|
|
143
|
+
description: "Local commerce marketplace",
|
|
144
|
+
comingSoon: !0
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
id: "headshotmarketing",
|
|
148
|
+
name: "HeadshotMarketing",
|
|
149
|
+
icon: "HS",
|
|
150
|
+
color: "#d946ef",
|
|
151
|
+
description: "AI-powered marketing platform",
|
|
152
|
+
comingSoon: !0
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
id: "ggnomad",
|
|
156
|
+
name: "GGNomad",
|
|
157
|
+
icon: "GG",
|
|
158
|
+
color: "#8b5cf6",
|
|
159
|
+
description: "Gaming & digital nomad platform",
|
|
160
|
+
comingSoon: !0
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
id: "assethandler",
|
|
164
|
+
name: "AssetHandler",
|
|
165
|
+
icon: "AH",
|
|
166
|
+
color: "#0891b2",
|
|
167
|
+
description: "Asset lifecycle management platform",
|
|
168
|
+
comingSoon: !0
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
id: "eventfullymanaged",
|
|
172
|
+
name: "EventfullyManaged",
|
|
173
|
+
icon: "EM",
|
|
174
|
+
color: "#e11d48",
|
|
175
|
+
description: "Event management platform",
|
|
176
|
+
comingSoon: !0
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
id: "housingvista",
|
|
180
|
+
name: "HousingVista",
|
|
181
|
+
icon: "HV",
|
|
182
|
+
color: "#059669",
|
|
183
|
+
description: "Real estate & housing platform",
|
|
184
|
+
comingSoon: !0
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
id: "timecampus",
|
|
188
|
+
name: "Timecampus",
|
|
189
|
+
icon: "TC",
|
|
190
|
+
color: "#2563eb",
|
|
191
|
+
description: "Time & scheduling platform",
|
|
192
|
+
comingSoon: !0
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
id: "movethewheels",
|
|
196
|
+
name: "MoveTheWheels",
|
|
197
|
+
icon: "MW",
|
|
198
|
+
color: "#ea580c",
|
|
199
|
+
description: "Logistics & mobility platform",
|
|
200
|
+
comingSoon: !0
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
id: "manufacturedops",
|
|
204
|
+
name: "ManufacturedOps",
|
|
205
|
+
icon: "MO",
|
|
206
|
+
color: "#475569",
|
|
207
|
+
description: "Manufacturing execution system",
|
|
208
|
+
comingSoon: !0
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
id: "proserviceworld",
|
|
212
|
+
name: "ProServiceWorld",
|
|
213
|
+
icon: "PS",
|
|
214
|
+
color: "#7c3aed",
|
|
215
|
+
description: "Professional services platform",
|
|
216
|
+
comingSoon: !0
|
|
55
217
|
}
|
|
56
218
|
];
|
|
57
219
|
function n() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/shared/graphql/client.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EAGZ,aAAa,EAId,MAAM,qBAAqB,CAAC;AAO7B,OAAO,EAAiB,KAAK,OAAO,EAAY,MAAM,WAAW,CAAC;AAqDlE;;;GAGG;AACH,wBAAgB,oBAAoB,IAAI,OAAO,CAE9C;AAWD,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAuB3D;AAkBD,YAAY,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC,MAAM,WAAW,mBAAmB;IAClC,4CAA4C;IAC5C,OAAO,EAAE,OAAO,CAAC;IACjB,wEAAwE;IACxE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,mDAAmD;IACnD,SAAS,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,MAAM,GAAG,IAAI,CAAC,CAAC;IAC3C,8FAA8F;IAC9F,cAAc,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,MAAM,GAAG,IAAI,CAAC,CAAC;IAChD,gEAAgE;IAChE,MAAM,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,MAAM,GAAG,IAAI,CAAC,CAAC;IACxC,yEAAyE;IACzE,SAAS,CAAC,EAAE,MAAM;QAChB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB,GAAG,IAAI,CAAC;IACT,8EAA8E;IAC9E,cAAc,CAAC,EAAE,MAAM,GAAG,CA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;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,2BAA2B;IAC3B,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,OAAO,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;CACvB;AA8FD;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,mBAAmB,gBAyqB/D;AASD,MAAM,WAAW,eAAe;IAC9B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,MAAM,GAAG,IAAI,CAAC,CAAC;IAC3C,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,eAAe,GAAG,IAAI,CA0BlE;AAED;;GAEG;AACH,wBAAgB,kBAAkB,IAAI,YAAY,CAKjD;AAED;;GAEG;AACH,wBAAgB,eAAe,IAAI,YAAY,CAK9C;AAED;;GAEG;AACH,wBAAgB,eAAe,IAAI,IAAI,CAStC"}
|
|
@@ -2,12 +2,12 @@ import { GATEWAYS as e, getGatewayUrl as t } from "../../shared-config.js";
|
|
|
2
2
|
import { validateGatewayBaseUrl as n } from "./security.js";
|
|
3
3
|
import { isWorkspaceTokenValidForContext as r } from "./workspaceToken.js";
|
|
4
4
|
import { dispatchBackendErrorEvent as i, markConnectionHealthy as a } from "../utils/backendErrors.js";
|
|
5
|
-
import { clearGraphqlFetchResponseCache as o, enqueueGraphQLFetch as s } from "./fetch.js";
|
|
6
|
-
import { SSELink as
|
|
7
|
-
import { onError as
|
|
8
|
-
import { RetryLink as
|
|
9
|
-
import { setContext as
|
|
10
|
-
import { ApolloClient as ee, ApolloLink as
|
|
5
|
+
import { clearGraphqlFetchResponseCache as o, enqueueGraphQLFetch as s, ensureWorkspaceToken as c } from "./fetch.js";
|
|
6
|
+
import { SSELink as l } from "./links/sse-link.js";
|
|
7
|
+
import { onError as u } from "@apollo/client/link/error";
|
|
8
|
+
import { RetryLink as d } from "@apollo/client/link/retry";
|
|
9
|
+
import { setContext as f } from "@apollo/client/link/context";
|
|
10
|
+
import { ApolloClient as ee, ApolloLink as p, InMemoryCache as te, Observable as m, from as ne, split as re } from "@apollo/client/core";
|
|
11
11
|
import { getMainDefinition as h } from "@apollo/client/utilities";
|
|
12
12
|
import { print as g } from "graphql";
|
|
13
13
|
//#region src/shared/graphql/client.ts
|
|
@@ -16,29 +16,29 @@ var _ = {
|
|
|
16
16
|
lastFailureTime: 0,
|
|
17
17
|
isOpen: !1
|
|
18
18
|
}, v = 5, y = 3e4;
|
|
19
|
-
function
|
|
19
|
+
function ie() {
|
|
20
20
|
return _.consecutiveFailures++, _.lastFailureTime = Date.now(), _.consecutiveFailures >= v && (_.isOpen = !0), _.isOpen;
|
|
21
21
|
}
|
|
22
22
|
function b() {
|
|
23
23
|
_.consecutiveFailures = 0, _.isOpen = !1, a();
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function x() {
|
|
26
26
|
return _.isOpen ? Date.now() - _.lastFailureTime > y ? (_.isOpen = !1, _.consecutiveFailures = 0, !1) : !0 : !1;
|
|
27
27
|
}
|
|
28
|
-
var
|
|
29
|
-
function
|
|
28
|
+
var S = /(?:\b40[13]\b|status code 40[13]|unauthori[sz]ed|unauthenticated|forbidden|invalid email or password)/i;
|
|
29
|
+
function C(e) {
|
|
30
30
|
return typeof e == "number" && Number.isInteger(e) ? e : typeof e == "string" && /^\d{3}$/.test(e) ? Number(e) : null;
|
|
31
31
|
}
|
|
32
32
|
function ae(e) {
|
|
33
33
|
let t = /* @__PURE__ */ new Set(), n = (e, r) => {
|
|
34
34
|
if (r > 3 || e == null || t.has(e)) return !1;
|
|
35
|
-
if (typeof e == "string") return
|
|
35
|
+
if (typeof e == "string") return S.test(e);
|
|
36
36
|
if (typeof e != "object") return !1;
|
|
37
37
|
t.add(e);
|
|
38
|
-
let i = e, a =
|
|
38
|
+
let i = e, a = C(i.status) ?? C(i.statusCode) ?? C(i.response?.status);
|
|
39
39
|
if (a === 401 || a === 403) return !0;
|
|
40
40
|
let o = i.message;
|
|
41
|
-
return typeof o == "string" &&
|
|
41
|
+
return typeof o == "string" && S.test(o) ? !0 : n(i.cause, r + 1);
|
|
42
42
|
};
|
|
43
43
|
return n(e, 0);
|
|
44
44
|
}
|
|
@@ -60,21 +60,21 @@ function le(e) {
|
|
|
60
60
|
let t = e.errors;
|
|
61
61
|
return Array.isArray(t) && t.length > 0;
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function w(e) {
|
|
64
64
|
let t = e.headers;
|
|
65
65
|
if (!t || typeof t != "object" || Array.isArray(t)) return {};
|
|
66
66
|
let n = {};
|
|
67
67
|
for (let [e, r] of Object.entries(t)) typeof r == "string" && (n[e] = r);
|
|
68
68
|
return n;
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function T(e) {
|
|
71
71
|
let t = e.fetchOptions;
|
|
72
72
|
if (!t || typeof t != "object" || !("signal" in t)) return;
|
|
73
73
|
let n = t.signal;
|
|
74
74
|
return n instanceof AbortSignal ? n : void 0;
|
|
75
75
|
}
|
|
76
76
|
function ue({ uri: e, batchMax: t, batchInterval: n }) {
|
|
77
|
-
return new
|
|
77
|
+
return new p((r) => new m((i) => {
|
|
78
78
|
let a = r.getContext(), o = { query: g(r.query) };
|
|
79
79
|
r.operationName && (o.operationName = r.operationName);
|
|
80
80
|
let c = r.variables ?? {}, l = r.extensions ?? {};
|
|
@@ -83,8 +83,8 @@ function ue({ uri: e, batchMax: t, batchInterval: n }) {
|
|
|
83
83
|
return s(e, {
|
|
84
84
|
"content-type": "application/json",
|
|
85
85
|
"Apollo-Require-Preflight": "true",
|
|
86
|
-
...
|
|
87
|
-
}, o,
|
|
86
|
+
...w(a)
|
|
87
|
+
}, o, T(a), {
|
|
88
88
|
batchMax: t,
|
|
89
89
|
batchInterval: n
|
|
90
90
|
}).then((e) => {
|
|
@@ -96,84 +96,98 @@ function ue({ uri: e, batchMax: t, batchInterval: n }) {
|
|
|
96
96
|
};
|
|
97
97
|
}));
|
|
98
98
|
}
|
|
99
|
-
function
|
|
100
|
-
let { gateway: s, baseUrl: g, authToken: v, workspaceToken: y, locale:
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
99
|
+
function E(a) {
|
|
100
|
+
let { gateway: s, baseUrl: g, authToken: v, workspaceToken: y, locale: S, geography: C, organizationId: w, productId: T, productSlug: E, workspaceId: D, projectId: O, tenantId: k, cache: A, enableSubscriptions: j = !1, sseUrl: M, onAuthError: N, onRefreshToken: P, onNetworkError: F, onNetworkStatusChange: I, onMutationSuccess: L, maxRetryAttempts: de = 3, batchMax: fe = 10, batchInterval: pe, debug: R = !1 } = a, z = null, B = null, me = (e) => {
|
|
101
|
+
B ||= setTimeout(() => {
|
|
102
|
+
B = null, z && z.refetchQueries({ include: "active" }).catch((t) => {
|
|
103
|
+
R && console.warn("[GraphQL] Active query refresh failed after mutation:", {
|
|
104
104
|
gateway: s,
|
|
105
105
|
operationName: e,
|
|
106
106
|
error: t
|
|
107
107
|
});
|
|
108
108
|
});
|
|
109
109
|
}, 0);
|
|
110
|
-
},
|
|
111
|
-
uri:
|
|
110
|
+
}, he = e[s], V = n(t(g, s)), H = ue({
|
|
111
|
+
uri: V,
|
|
112
112
|
batchMax: fe,
|
|
113
113
|
batchInterval: pe
|
|
114
|
-
}),
|
|
114
|
+
}), U = f((e, t) => {
|
|
115
115
|
let n = t.headers ?? {}, r = typeof v == "function" ? v() : v;
|
|
116
116
|
return { headers: {
|
|
117
117
|
...n,
|
|
118
118
|
...r ? { authorization: `Bearer ${r}` } : {}
|
|
119
119
|
} };
|
|
120
|
-
}),
|
|
121
|
-
let n = t.headers ?? {}, r = typeof
|
|
120
|
+
}), W = f((e, t) => {
|
|
121
|
+
let n = t.headers ?? {}, r = typeof S == "function" ? S() : S;
|
|
122
122
|
return { headers: {
|
|
123
123
|
...n,
|
|
124
124
|
...r ? { "accept-language": r } : {}
|
|
125
125
|
} };
|
|
126
|
-
}),
|
|
127
|
-
let n = t.headers ?? {}, r = typeof
|
|
126
|
+
}), G = f((e, t) => {
|
|
127
|
+
let n = t.headers ?? {}, r = typeof C == "function" ? C() : null;
|
|
128
128
|
return { headers: {
|
|
129
129
|
...n,
|
|
130
130
|
...r?.country ? { "x-geo-country": r.country } : {},
|
|
131
131
|
...r?.currency ? { "x-geo-currency": r.currency } : {},
|
|
132
132
|
...r?.timezone ? { "x-geo-timezone": r.timezone } : {}
|
|
133
133
|
} };
|
|
134
|
-
}),
|
|
135
|
-
let n = t.headers ?? {}, r = typeof
|
|
134
|
+
}), K = f((e, t) => {
|
|
135
|
+
let n = t.headers ?? {}, r = typeof w == "function" ? w() : w;
|
|
136
136
|
return { headers: {
|
|
137
137
|
...n,
|
|
138
138
|
...r ? { "x-org-id": r } : {}
|
|
139
139
|
} };
|
|
140
|
-
}),
|
|
141
|
-
let n = t.headers ?? {}, r = typeof
|
|
140
|
+
}), q = f((e, t) => {
|
|
141
|
+
let n = t.headers ?? {}, r = typeof T == "function" ? T() : T, i = typeof E == "function" ? E() : E;
|
|
142
142
|
return { headers: {
|
|
143
143
|
...n,
|
|
144
144
|
...r ? { "x-product-id": r } : {},
|
|
145
145
|
...i ? { "x-product-slug": i } : {}
|
|
146
146
|
} };
|
|
147
|
-
}),
|
|
148
|
-
let n = t.headers ?? {}, r = (typeof
|
|
147
|
+
}), J = f((e, t) => {
|
|
148
|
+
let n = t.headers ?? {}, r = (typeof D == "function" ? D() : D) || oe(e.variables);
|
|
149
149
|
return { headers: {
|
|
150
150
|
...n,
|
|
151
151
|
...r ? { "x-workspace-id": r } : {}
|
|
152
152
|
} };
|
|
153
|
-
}),
|
|
154
|
-
let n = t.headers ?? {}, r = (typeof
|
|
153
|
+
}), ge = f((e, t) => {
|
|
154
|
+
let n = t.headers ?? {}, r = (typeof O == "function" ? O() : O) || se(e.variables);
|
|
155
155
|
return { headers: {
|
|
156
156
|
...n,
|
|
157
157
|
...r ? { "x-project-id": r } : {}
|
|
158
158
|
} };
|
|
159
|
-
}),
|
|
160
|
-
let n = t.headers ?? {}, r = typeof
|
|
159
|
+
}), _e = f((e, t) => {
|
|
160
|
+
let n = t.headers ?? {}, r = typeof k == "function" ? k() : k;
|
|
161
161
|
return { headers: {
|
|
162
162
|
...n,
|
|
163
163
|
...r ? { "x-tenant-id": r } : {}
|
|
164
164
|
} };
|
|
165
|
-
}),
|
|
166
|
-
let n = t.headers ?? {}, i = typeof y == "function" ? y() : y, a = r(i, {
|
|
167
|
-
workspaceId:
|
|
168
|
-
organizationId:
|
|
169
|
-
tenantId:
|
|
170
|
-
projectId:
|
|
165
|
+
}), Y = f(async (e, t) => {
|
|
166
|
+
let n = t.headers ?? {}, i = typeof y == "function" ? y() : y, a = typeof D == "function" ? D() : D, o = typeof w == "function" ? w() : w, l = typeof k == "function" ? k() : k, u = typeof O == "function" ? O() : O, d = r(i, {
|
|
167
|
+
workspaceId: a,
|
|
168
|
+
organizationId: o,
|
|
169
|
+
tenantId: l,
|
|
170
|
+
projectId: u
|
|
171
171
|
}) ? i : null;
|
|
172
|
+
if (!d && s === "workspace") try {
|
|
173
|
+
let t = typeof v == "function" ? v() : v;
|
|
174
|
+
if (t) {
|
|
175
|
+
let n = await Promise.race([c({
|
|
176
|
+
url: V,
|
|
177
|
+
authToken: t,
|
|
178
|
+
workspaceId: a ?? void 0,
|
|
179
|
+
organizationId: o ?? void 0,
|
|
180
|
+
projectId: u ?? void 0,
|
|
181
|
+
currentQuery: e.operationName ?? ""
|
|
182
|
+
}), new Promise((e) => setTimeout(() => e(null), 4e3))]);
|
|
183
|
+
n && (d = n);
|
|
184
|
+
}
|
|
185
|
+
} catch {}
|
|
172
186
|
return { headers: {
|
|
173
187
|
...n,
|
|
174
|
-
...
|
|
188
|
+
...d ? { "x-workspace-authorization": `Bearer ${d}` } : {}
|
|
175
189
|
} };
|
|
176
|
-
}),
|
|
190
|
+
}), ve = new d({
|
|
177
191
|
delay: {
|
|
178
192
|
initial: 1e3,
|
|
179
193
|
max: 8e3,
|
|
@@ -182,23 +196,23 @@ function T(a) {
|
|
|
182
196
|
attempts: {
|
|
183
197
|
max: de,
|
|
184
198
|
retryIf: (e) => {
|
|
185
|
-
if (
|
|
199
|
+
if (x() || !e) return !1;
|
|
186
200
|
let t = e.message?.toLowerCase?.() ?? "";
|
|
187
201
|
return !(t.includes("401") || t.includes("403") || t.includes("unauthorized") || t.includes("forbidden") || t.includes("unauthenticated"));
|
|
188
202
|
}
|
|
189
203
|
}
|
|
190
|
-
}),
|
|
191
|
-
if (
|
|
192
|
-
|
|
204
|
+
}), ye = new p((e, t) => {
|
|
205
|
+
if (x()) {
|
|
206
|
+
R && console.warn("[CircuitBreaker] Circuit is open, blocking request:", e.operationName);
|
|
193
207
|
let t = /* @__PURE__ */ Error("Network circuit breaker is open — backend appears unreachable. Retrying in 30 seconds.");
|
|
194
|
-
return
|
|
208
|
+
return F?.(t), new m((e) => {
|
|
195
209
|
e.error(t);
|
|
196
210
|
});
|
|
197
211
|
}
|
|
198
|
-
return new
|
|
212
|
+
return new m((n) => {
|
|
199
213
|
let r = t(e).subscribe({
|
|
200
214
|
next: (e) => {
|
|
201
|
-
b(), _.consecutiveFailures === 0 &&
|
|
215
|
+
b(), _.consecutiveFailures === 0 && I?.(!1), n.next(e);
|
|
202
216
|
},
|
|
203
217
|
error: (e) => {
|
|
204
218
|
n.error(e);
|
|
@@ -215,11 +229,11 @@ function T(a) {
|
|
|
215
229
|
function Q(e) {
|
|
216
230
|
Z.forEach(({ resolve: t }) => t(e)), Z = [];
|
|
217
231
|
}
|
|
218
|
-
let
|
|
232
|
+
let be = u(({ error: e, operation: t, forward: n }) => {
|
|
219
233
|
let r = e.errors;
|
|
220
234
|
if (r) {
|
|
221
235
|
let a = r.some((e) => e.extensions?.code === "UNAUTHENTICATED" || e.message.includes("Unauthorized") || e.message.includes("Unauthenticated"));
|
|
222
|
-
for (let e of r)
|
|
236
|
+
for (let e of r) R && console.error("[GraphQL Error]:", e.message);
|
|
223
237
|
i({ errors: r }, { operationName: t.operationName });
|
|
224
238
|
let o = new Set(["STORAGE_QUOTA_EXCEEDED", "RESOURCE_CAP_EXCEEDED"]);
|
|
225
239
|
for (let e of r) {
|
|
@@ -229,60 +243,60 @@ function T(a) {
|
|
|
229
243
|
break;
|
|
230
244
|
}
|
|
231
245
|
}
|
|
232
|
-
if (a &&
|
|
246
|
+
if (a && P) return new m((r) => {
|
|
233
247
|
(async () => {
|
|
234
248
|
if (X) if (await new Promise((e) => {
|
|
235
249
|
Z.push({ resolve: e });
|
|
236
250
|
})) {
|
|
237
251
|
let e = n(t).subscribe(r);
|
|
238
252
|
return () => e.unsubscribe();
|
|
239
|
-
} else return
|
|
253
|
+
} else return N?.(), r.error(e), () => {};
|
|
240
254
|
X = !0;
|
|
241
255
|
try {
|
|
242
|
-
let i = await
|
|
256
|
+
let i = await P();
|
|
243
257
|
if (X = !1, i) {
|
|
244
258
|
Q(!0);
|
|
245
259
|
let e = n(t).subscribe(r);
|
|
246
260
|
return () => e.unsubscribe();
|
|
247
|
-
} else return Q(!1),
|
|
261
|
+
} else return Q(!1), N?.(), r.error(e), () => {};
|
|
248
262
|
} catch {
|
|
249
|
-
return X = !1, Q(!1),
|
|
263
|
+
return X = !1, Q(!1), N?.(), r.error(e), () => {};
|
|
250
264
|
}
|
|
251
265
|
})();
|
|
252
266
|
});
|
|
253
|
-
a &&
|
|
267
|
+
a && N?.(), b();
|
|
254
268
|
} else {
|
|
255
|
-
if (
|
|
269
|
+
if (R && console.error("[Network Error]:", e), ae(e)) {
|
|
256
270
|
b(), e instanceof Error && i(e, {
|
|
257
271
|
operationName: t.operationName,
|
|
258
272
|
fallbackMessage: "Your session is no longer valid. Please sign in again."
|
|
259
273
|
});
|
|
260
274
|
return;
|
|
261
275
|
}
|
|
262
|
-
if (
|
|
276
|
+
if (ie() && I?.(!0), e instanceof Error) F?.(e), i(e, {
|
|
263
277
|
operationName: t.operationName,
|
|
264
278
|
fallbackMessage: "We could not reach the server. Please check your connection and try again."
|
|
265
279
|
});
|
|
266
280
|
else {
|
|
267
281
|
let n = Error(String(e));
|
|
268
|
-
|
|
282
|
+
F?.(n), i(n, {
|
|
269
283
|
operationName: t.operationName,
|
|
270
284
|
fallbackMessage: "We could not reach the server. Please check your connection and try again."
|
|
271
285
|
});
|
|
272
286
|
}
|
|
273
287
|
}
|
|
274
|
-
}),
|
|
288
|
+
}), xe = new p((e, t) => {
|
|
275
289
|
let n = ce(e.query), r = n && e.getContext().autoRefreshAfterMutation !== !1 && e.getContext().skipMutationAutoRefresh !== !0;
|
|
276
|
-
return new
|
|
290
|
+
return new m((i) => {
|
|
277
291
|
let a = t(e).subscribe({
|
|
278
292
|
next: (t) => {
|
|
279
293
|
if (i.next(t), le(t) || (n && o(), !r)) return;
|
|
280
294
|
let a = e.operationName || "anonymous mutation";
|
|
281
|
-
|
|
295
|
+
L ? Promise.resolve(L({
|
|
282
296
|
gateway: s,
|
|
283
297
|
operationName: a
|
|
284
298
|
})).catch((e) => {
|
|
285
|
-
|
|
299
|
+
R && console.warn("[GraphQL] Mutation refresh callback failed:", {
|
|
286
300
|
gateway: s,
|
|
287
301
|
operationName: a,
|
|
288
302
|
error: e
|
|
@@ -300,49 +314,49 @@ function T(a) {
|
|
|
300
314
|
a.unsubscribe();
|
|
301
315
|
};
|
|
302
316
|
});
|
|
303
|
-
}), $ =
|
|
304
|
-
ge,
|
|
305
|
-
_e,
|
|
317
|
+
}), $ = ne([
|
|
306
318
|
ve,
|
|
307
319
|
ye,
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
320
|
+
be,
|
|
321
|
+
xe,
|
|
322
|
+
U,
|
|
323
|
+
Y,
|
|
311
324
|
K,
|
|
312
325
|
q,
|
|
313
326
|
J,
|
|
314
|
-
|
|
315
|
-
|
|
327
|
+
ge,
|
|
328
|
+
_e,
|
|
316
329
|
W,
|
|
317
|
-
|
|
330
|
+
G,
|
|
331
|
+
H
|
|
318
332
|
]);
|
|
319
|
-
if (
|
|
320
|
-
let e =
|
|
321
|
-
e && ($ =
|
|
322
|
-
ge,
|
|
323
|
-
_e,
|
|
333
|
+
if (j) {
|
|
334
|
+
let e = M || n(g || he.defaultBaseUrl) + he.sse;
|
|
335
|
+
e && ($ = ne([
|
|
324
336
|
ve,
|
|
325
337
|
ye,
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
338
|
+
be,
|
|
339
|
+
xe,
|
|
340
|
+
U,
|
|
341
|
+
Y,
|
|
329
342
|
K,
|
|
330
343
|
q,
|
|
331
344
|
J,
|
|
332
|
-
|
|
333
|
-
|
|
345
|
+
ge,
|
|
346
|
+
_e,
|
|
334
347
|
W,
|
|
335
|
-
|
|
348
|
+
G,
|
|
349
|
+
re(({ query: e }) => {
|
|
336
350
|
let t = h(e);
|
|
337
351
|
return t.kind === "OperationDefinition" && t.operation === "subscription";
|
|
338
|
-
}, new
|
|
352
|
+
}, new l({
|
|
339
353
|
url: e,
|
|
340
354
|
headers: {},
|
|
341
|
-
debug:
|
|
342
|
-
}),
|
|
355
|
+
debug: R
|
|
356
|
+
}), H)
|
|
343
357
|
]));
|
|
344
358
|
}
|
|
345
|
-
let
|
|
359
|
+
let Se = new te({ typePolicies: {
|
|
346
360
|
File: { keyFields: ["id"] },
|
|
347
361
|
Folder: { keyFields: ["id"] },
|
|
348
362
|
Tag: { keyFields: ["id"] },
|
|
@@ -377,9 +391,9 @@ function T(a) {
|
|
|
377
391
|
VibecontrolsAgent: { keyFields: ["id"] },
|
|
378
392
|
Query: { fields: { vibes: { keyArgs: ["filter"] } } }
|
|
379
393
|
} });
|
|
380
|
-
return
|
|
394
|
+
return z = new ee({
|
|
381
395
|
link: $,
|
|
382
|
-
cache:
|
|
396
|
+
cache: A ?? Se,
|
|
383
397
|
defaultOptions: {
|
|
384
398
|
watchQuery: {
|
|
385
399
|
fetchPolicy: "cache-and-network",
|
|
@@ -391,19 +405,19 @@ function T(a) {
|
|
|
391
405
|
},
|
|
392
406
|
mutate: { errorPolicy: "all" }
|
|
393
407
|
}
|
|
394
|
-
}),
|
|
408
|
+
}), z;
|
|
395
409
|
}
|
|
396
|
-
var
|
|
397
|
-
function
|
|
410
|
+
var D = null, O = null;
|
|
411
|
+
function k(e) {
|
|
398
412
|
let { workspaceBaseUrl: t, globalBaseUrl: n, authToken: r, enableSubscriptions: i = !1, onAuthError: a, debug: o = !1 } = e;
|
|
399
|
-
|
|
413
|
+
D = E({
|
|
400
414
|
gateway: "workspace",
|
|
401
415
|
baseUrl: t,
|
|
402
416
|
authToken: r,
|
|
403
417
|
enableSubscriptions: i,
|
|
404
418
|
onAuthError: a,
|
|
405
419
|
debug: o
|
|
406
|
-
}),
|
|
420
|
+
}), O = E({
|
|
407
421
|
gateway: "global",
|
|
408
422
|
baseUrl: n,
|
|
409
423
|
authToken: r,
|
|
@@ -411,16 +425,16 @@ function O(e) {
|
|
|
411
425
|
debug: o
|
|
412
426
|
});
|
|
413
427
|
}
|
|
414
|
-
function k() {
|
|
415
|
-
if (!E) throw Error("Workspace client not initialized. Call initializeAppClients first.");
|
|
416
|
-
return E;
|
|
417
|
-
}
|
|
418
428
|
function A() {
|
|
419
|
-
if (!D) throw Error("
|
|
429
|
+
if (!D) throw Error("Workspace client not initialized. Call initializeAppClients first.");
|
|
420
430
|
return D;
|
|
421
431
|
}
|
|
422
432
|
function j() {
|
|
423
|
-
|
|
433
|
+
if (!O) throw Error("Global client not initialized. Call initializeAppClients first.");
|
|
434
|
+
return O;
|
|
435
|
+
}
|
|
436
|
+
function M() {
|
|
437
|
+
D &&= (D.clearStore(), null), O &&= (O.clearStore(), null);
|
|
424
438
|
}
|
|
425
439
|
//#endregion
|
|
426
|
-
export {
|
|
440
|
+
export { E as createGraphQLClient, j as getGlobalClient, A as getWorkspaceClient, k as initializeAppClients, M as resetAppClients };
|
|
@@ -100,6 +100,16 @@ export declare function getStoredOrganizationId(): string | null;
|
|
|
100
100
|
export declare function getStoredTenantId(): string | null;
|
|
101
101
|
/** Read the active profile's project ID from profile context storage */
|
|
102
102
|
export declare function getStoredProjectId(): string | null;
|
|
103
|
+
export declare function ensureWorkspaceToken(options: {
|
|
104
|
+
url: string;
|
|
105
|
+
authToken: string | null;
|
|
106
|
+
workspaceId?: string;
|
|
107
|
+
organizationId?: string;
|
|
108
|
+
projectId?: string;
|
|
109
|
+
locale?: string;
|
|
110
|
+
signal?: AbortSignal;
|
|
111
|
+
currentQuery: string;
|
|
112
|
+
}): Promise<string | null>;
|
|
103
113
|
/** Resolve full gateway GraphQL URL */
|
|
104
114
|
export declare function resolveGatewayUrl(gateway: Gateway, baseUrl?: string): string;
|
|
105
115
|
export interface EnqueueGraphQLFetchOptions {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch.d.ts","sourceRoot":"","sources":["../../../src/shared/graphql/fetch.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAY,KAAK,OAAO,EAAsB,MAAM,WAAW,CAAC;AAuBvE,MAAM,WAAW,mBAAmB;IAClC,wBAAwB;IACxB,OAAO,EAAE,OAAO,CAAC;IACjB,sCAAsC;IACtC,KAAK,EAAE,MAAM,CAAC;IACd,kCAAkC;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACpC,sDAAsD;IACtD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,wEAAwE;IACxE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,cAAc,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAClC;;;;;OAKG;IACH,WAAW,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC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AE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC7B,MAAM,CAAC,EAAE,WAAW,EACpB,OAAO,CAAC,EAAE,0BAA0B,GACnC,OAAO,CAAC,OAAO,CAAC,CAyElB;AAgBD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,wBAAsB,YAAY,CAAC,CAAC,GAAG,OAAO,EAC5C,OAAO,EAAE,mBAAmB,GAC3B,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,CA+I7B"}
|
|
@@ -368,4 +368,4 @@ async function re(e) {
|
|
|
368
368
|
}
|
|
369
369
|
}
|
|
370
370
|
//#endregion
|
|
371
|
-
export { L as clearGraphqlFetchResponseCache, Q as enqueueGraphQLFetch, _ as getStoredAuthToken, C as getStoredLocale, T as getStoredOrganizationId, D as getStoredProjectId, w as getStoredWorkspaceId, v as getStoredWorkspaceToken, re as graphqlFetch, M as resolveGatewayUrl };
|
|
371
|
+
export { L as clearGraphqlFetchResponseCache, Q as enqueueGraphQLFetch, j as ensureWorkspaceToken, _ as getStoredAuthToken, C as getStoredLocale, T as getStoredOrganizationId, D as getStoredProjectId, w as getStoredWorkspaceId, v as getStoredWorkspaceToken, re as graphqlFetch, M as resolveGatewayUrl };
|
package/dist/ui/tooltip.d.ts
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, ElementRef } from 'react';
|
|
2
2
|
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
3
3
|
declare const TooltipProvider: import('react').FC<TooltipPrimitive.TooltipProviderProps>;
|
|
4
|
-
|
|
4
|
+
/**
|
|
5
|
+
* Tooltip root that self-provides a {@link TooltipProvider}. Radix permits
|
|
6
|
+
* nested providers, so this remains safe when a provider is already mounted
|
|
7
|
+
* higher up the tree, while also working for consumers that never mount one
|
|
8
|
+
* (which otherwise throws "Tooltip must be used within TooltipProvider").
|
|
9
|
+
*/
|
|
10
|
+
declare function Tooltip({ children, ...props }: ComponentPropsWithoutRef<typeof TooltipPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
5
11
|
declare const TooltipTrigger: import('react').ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
6
12
|
declare function TooltipContent({ ref, className, sideOffset, ...props }: ComponentPropsWithoutRef<typeof TooltipPrimitive.Content> & {
|
|
7
13
|
ref?: React.Ref<ElementRef<typeof TooltipPrimitive.Content>>;
|
package/dist/ui/tooltip.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../src/ui/tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,gBAAgB,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,KAAK,wBAAwB,EAAE,KAAK,UAAU,EAAE,MAAM,OAAO,CAAC;AAIvE,QAAA,MAAM,eAAe,2DAA4B,CAAC;AAElD,
|
|
1
|
+
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../src/ui/tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,gBAAgB,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,KAAK,wBAAwB,EAAE,KAAK,UAAU,EAAE,MAAM,OAAO,CAAC;AAIvE,QAAA,MAAM,eAAe,2DAA4B,CAAC;AAElD;;;;;GAKG;AACH,iBAAS,OAAO,CAAC,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,wBAAwB,CAAC,OAAO,gBAAgB,CAAC,IAAI,CAAC,2CAM9F;AAED,QAAA,MAAM,cAAc,oIAA2B,CAAC;AAEhD,iBAAS,cAAc,CAAC,EACtB,GAAG,EACH,SAAS,EACT,UAAc,EACd,GAAG,KAAK,EACT,EAAE,wBAAwB,CAAC,OAAO,gBAAgB,CAAC,OAAO,CAAC,GAAG;IAC7D,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,UAAU,CAAC,OAAO,gBAAgB,CAAC,OAAO,CAAC,CAAC,CAAC;CAC9D,2CAYA;kBAnBQ,cAAc;;;AAsBvB,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,cAAc,EAAE,CAAC"}
|
package/dist/ui/tooltip.js
CHANGED
|
@@ -2,7 +2,14 @@ import { cn as e } from "../shared-utils.js";
|
|
|
2
2
|
import { jsx as t } from "react/jsx-runtime";
|
|
3
3
|
import * as n from "@radix-ui/react-tooltip";
|
|
4
4
|
//#region src/ui/tooltip.tsx
|
|
5
|
-
var r = n.Provider
|
|
5
|
+
var r = n.Provider;
|
|
6
|
+
function i({ children: e, ...r }) {
|
|
7
|
+
return /* @__PURE__ */ t(n.Provider, { children: /* @__PURE__ */ t(n.Root, {
|
|
8
|
+
...r,
|
|
9
|
+
children: e
|
|
10
|
+
}) });
|
|
11
|
+
}
|
|
12
|
+
var a = n.Trigger;
|
|
6
13
|
function o({ ref: r, className: i, sideOffset: a = 4, ...o }) {
|
|
7
14
|
return /* @__PURE__ */ t(n.Content, {
|
|
8
15
|
ref: r,
|