@burdenoff/fe-libs 2026.915.3 → 2026.915.4
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.
|
@@ -105,6 +105,29 @@ export declare function resolveInitialActiveContext(options: {
|
|
|
105
105
|
syncToUrl: boolean;
|
|
106
106
|
urlParams: ActiveContextUrlParams;
|
|
107
107
|
}): ActiveContextBootstrapFields;
|
|
108
|
+
/**
|
|
109
|
+
* Decide what a browser Back/Forward (popstate) should do to ONE context field.
|
|
110
|
+
*
|
|
111
|
+
* BOFF-7248: the handler used to apply every URL value verbatim, so a history
|
|
112
|
+
* entry whose URL carried no `?workspace=` cleared the active workspace. Such
|
|
113
|
+
* entries are ordinary — the params are written with `replaceState` only after
|
|
114
|
+
* the context resolves, and never on `/auth/*` routes — so going Back to one
|
|
115
|
+
* dropped the user's workspace. The app shell then rendered its "pick a
|
|
116
|
+
* workspace" empty state and the RBAC-gated sidebar entries disappeared, which
|
|
117
|
+
* looks exactly like the page failing to load.
|
|
118
|
+
*
|
|
119
|
+
* An ABSENT param makes no statement about the field: the entry predates the
|
|
120
|
+
* sync or is a route that never carries context. Leave the current value
|
|
121
|
+
* alone. A PRESENT param is the context that entry was viewed in, so apply it.
|
|
122
|
+
* Context is only ever cleared deliberately through `setWorkspace(null)` and
|
|
123
|
+
* friends, never by navigating.
|
|
124
|
+
*/
|
|
125
|
+
export declare function resolvePopStateContextValue(urlValue: string | null, currentValue: string | null): {
|
|
126
|
+
apply: true;
|
|
127
|
+
value: string;
|
|
128
|
+
} | {
|
|
129
|
+
apply: false;
|
|
130
|
+
};
|
|
108
131
|
/**
|
|
109
132
|
* ActiveContextProvider
|
|
110
133
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActiveContextProvider.d.ts","sourceRoot":"","sources":["../../../../src/shared/providers/shell/ActiveContextProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAQL,KAAK,SAAS,EACf,MAAM,OAAO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EAAE,4BAA4B,EACtC,SAAS,EAAE,wBAAwB,GAClC,4BAA4B,CAY9B;AAgBD;;;;GAIG;AACH,wBAAgB,2BAA2B,CAAC,OAAO,EAAE;IACnD,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,sBAAsB,CAAC;CACnC,GAAG,4BAA4B,CAsC/B;
|
|
1
|
+
{"version":3,"file":"ActiveContextProvider.d.ts","sourceRoot":"","sources":["../../../../src/shared/providers/shell/ActiveContextProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAQL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAMf,OAAO,EASL,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC9B,MAAM,wBAAwB,CAAC;AAGhC;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,yCAAyC;IACzC,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,sCAAsC;IACtC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,oCAAoC;IACpC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,mCAAmC;IACnC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IAExB,kCAAkC;IAClC,eAAe,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IAChD,+BAA+B;IAC/B,YAAY,EAAE,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IACnD,6BAA6B;IAC7B,UAAU,EAAE,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IAC/C,4BAA4B;IAC5B,SAAS,EAAE,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IAE7C,qCAAqC;IACrC,UAAU,EAAE,CACV,OAAO,EAAE,OAAO,CAAC;QACf,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;QAC9B,WAAW,EAAE,MAAM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, n]) => {
|
|
68
68
|
n ? t.searchParams.set(e, n) : t.searchParams.delete(e);
|
|
69
|
-
})
|
|
69
|
+
});
|
|
70
|
+
let n = window.history.state ?? null;
|
|
71
|
+
window.history.replaceState(n, "", t.toString());
|
|
72
|
+
}
|
|
73
|
+
function O(e, t) {
|
|
74
|
+
return e === null || e === "" || e === t ? { apply: !1 } : {
|
|
75
|
+
apply: !0,
|
|
76
|
+
value: e
|
|
77
|
+
};
|
|
70
78
|
}
|
|
71
|
-
function
|
|
72
|
-
let [
|
|
79
|
+
function k({ children: c, defaultOrganizationId: d = null, defaultWorkspaceId: f = null, defaultProjectId: p = null, defaultTenantId: S = null, storageKey: w = r, syncToUrl: T = !1, urlParams: k = i }) {
|
|
80
|
+
let [A] = v(() => E({
|
|
73
81
|
storageKey: w,
|
|
74
82
|
syncToUrl: T,
|
|
75
|
-
urlParams:
|
|
76
|
-
})), [
|
|
83
|
+
urlParams: k
|
|
84
|
+
})), [j, M] = v(() => typeof window > "u" ? d : A.organizationId ?? d), [N, P] = v(() => {
|
|
77
85
|
if (typeof window > "u") return f;
|
|
78
|
-
let r =
|
|
86
|
+
let r = A.workspaceId ?? f;
|
|
79
87
|
if (r) {
|
|
80
88
|
let i = t();
|
|
81
89
|
if (i) {
|
|
@@ -87,82 +95,88 @@ function O({ children: c, defaultOrganizationId: d = null, defaultWorkspaceId: f
|
|
|
87
95
|
}
|
|
88
96
|
}
|
|
89
97
|
return r;
|
|
90
|
-
}), [
|
|
98
|
+
}), [F, I] = v(() => typeof window > "u" ? p : A.projectId ?? p), [L, R] = v(() => {
|
|
91
99
|
if (typeof window > "u") return S;
|
|
92
100
|
if (T) {
|
|
93
|
-
let e = o(
|
|
101
|
+
let e = o(k.tenant);
|
|
94
102
|
if (e) return e;
|
|
95
103
|
}
|
|
96
104
|
return s("tenant", w) || S;
|
|
97
|
-
}),
|
|
98
|
-
|
|
99
|
-
let z = _(null);
|
|
100
|
-
z.current === null && (z.current = x(M));
|
|
105
|
+
}), z = _(null);
|
|
106
|
+
z.current === null && (z.current = x(j));
|
|
101
107
|
let B = _(null);
|
|
102
|
-
B.current === null && (B.current = x(
|
|
108
|
+
B.current === null && (B.current = x(N));
|
|
103
109
|
let V = _(null);
|
|
104
|
-
V.current === null && (V.current = x(
|
|
105
|
-
|
|
110
|
+
V.current === null && (V.current = x(F));
|
|
111
|
+
let H = _(null);
|
|
112
|
+
H.current === null && (H.current = x(L)), h(() => {
|
|
113
|
+
u("organization", j, w), u("workspace", N, w), u("project", F, w), u("tenant", L, w);
|
|
106
114
|
}, [
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
115
|
+
j,
|
|
116
|
+
N,
|
|
117
|
+
F,
|
|
118
|
+
L,
|
|
111
119
|
w
|
|
112
120
|
]), h(() => {
|
|
113
121
|
let r = t();
|
|
114
122
|
if (!r) return;
|
|
115
123
|
let i = e(r), a = {
|
|
116
124
|
...i,
|
|
117
|
-
organizationId:
|
|
118
|
-
workspaceId:
|
|
119
|
-
projectId:
|
|
120
|
-
tenantId:
|
|
125
|
+
organizationId: j,
|
|
126
|
+
workspaceId: N,
|
|
127
|
+
projectId: F,
|
|
128
|
+
tenantId: L
|
|
121
129
|
};
|
|
122
130
|
i?.organizationId === a.organizationId && i?.workspaceId === a.workspaceId && i?.projectId === a.projectId && i?.tenantId === a.tenantId || n(r, a);
|
|
123
131
|
}, [
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
132
|
+
j,
|
|
133
|
+
N,
|
|
134
|
+
F,
|
|
135
|
+
L
|
|
128
136
|
]), h(() => {
|
|
129
137
|
T && D({
|
|
130
|
-
[
|
|
131
|
-
[
|
|
132
|
-
[
|
|
133
|
-
[
|
|
138
|
+
[k.organization]: j,
|
|
139
|
+
[k.workspace]: N,
|
|
140
|
+
[k.project]: F,
|
|
141
|
+
[k.tenant]: L
|
|
134
142
|
});
|
|
135
143
|
}, [
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
144
|
+
j,
|
|
145
|
+
N,
|
|
146
|
+
F,
|
|
147
|
+
L,
|
|
140
148
|
T,
|
|
141
|
-
|
|
149
|
+
k
|
|
142
150
|
]), h(() => {
|
|
143
151
|
if (!T) return;
|
|
144
152
|
let e = () => {
|
|
145
|
-
let e = o(
|
|
146
|
-
|
|
153
|
+
let e = o(k.organization), t = o(k.workspace), n = o(k.project), r = o(k.tenant), i = O(e, j);
|
|
154
|
+
i.apply && (M(i.value), z.current.previous = z.current.current, z.current.current = i.value);
|
|
155
|
+
let a = O(t, N);
|
|
156
|
+
a.apply && (P(a.value), B.current.previous = B.current.current, B.current.current = a.value);
|
|
157
|
+
let s = O(n, F);
|
|
158
|
+
s.apply && (I(s.value), V.current.previous = V.current.current, V.current.current = s.value);
|
|
159
|
+
let c = O(r, L);
|
|
160
|
+
c.apply && (R(c.value), H.current.previous = H.current.current, H.current.current = c.value);
|
|
147
161
|
};
|
|
148
162
|
return window.addEventListener("popstate", e), () => window.removeEventListener("popstate", e);
|
|
149
163
|
}, [
|
|
150
164
|
T,
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
165
|
+
k,
|
|
166
|
+
j,
|
|
167
|
+
N,
|
|
168
|
+
F,
|
|
169
|
+
L
|
|
156
170
|
]);
|
|
157
|
-
let
|
|
158
|
-
if (!C("organizationId",
|
|
159
|
-
|
|
171
|
+
let U = m((r) => {
|
|
172
|
+
if (!C("organizationId", z.current, r, Date.now())) return;
|
|
173
|
+
M(r);
|
|
160
174
|
let i = t();
|
|
161
175
|
i && n(i, {
|
|
162
176
|
...e(i),
|
|
163
177
|
organizationId: r
|
|
164
178
|
}), typeof window < "u" && window.dispatchEvent(new CustomEvent("burdenoff:organization-changed", { detail: { organizationId: r } }));
|
|
165
|
-
}, []),
|
|
179
|
+
}, []), W = m((r, i) => {
|
|
166
180
|
let a = {
|
|
167
181
|
organization: "organizationId",
|
|
168
182
|
workspace: "workspaceId",
|
|
@@ -175,57 +189,57 @@ function O({ children: c, defaultOrganizationId: d = null, defaultWorkspaceId: f
|
|
|
175
189
|
...e(o),
|
|
176
190
|
[a[r]]: i
|
|
177
191
|
}) : typeof window < "u" && l(r, i, w);
|
|
178
|
-
}, [w]),
|
|
179
|
-
C("workspaceId",
|
|
180
|
-
}, [
|
|
181
|
-
C("projectId",
|
|
182
|
-
}, [
|
|
183
|
-
C("tenantId",
|
|
184
|
-
}, [
|
|
185
|
-
e.organizationId !== void 0 &&
|
|
192
|
+
}, [w]), G = m((e) => {
|
|
193
|
+
C("workspaceId", B.current, e, Date.now()) && (P(e), W("workspace", e), typeof window < "u" && window.dispatchEvent(new CustomEvent("burdenoff:workspace-changed", { detail: { workspaceId: e } })));
|
|
194
|
+
}, [W]), K = m((e) => {
|
|
195
|
+
C("projectId", V.current, e, Date.now()) && (I(e), W("project", e), typeof window < "u" && window.dispatchEvent(new CustomEvent("burdenoff:project-changed", { detail: { projectId: e } })));
|
|
196
|
+
}, [W]), q = m((e) => {
|
|
197
|
+
C("tenantId", H.current, e, Date.now()) && (R(e), W("tenant", e));
|
|
198
|
+
}, [W]), J = m((e) => {
|
|
199
|
+
e.organizationId !== void 0 && U(e.organizationId), e.workspaceId !== void 0 && G(e.workspaceId), e.projectId !== void 0 && K(e.projectId), e.tenantId !== void 0 && q(e.tenantId);
|
|
186
200
|
}, [
|
|
187
|
-
|
|
188
|
-
W,
|
|
201
|
+
U,
|
|
189
202
|
G,
|
|
190
|
-
K
|
|
191
|
-
|
|
192
|
-
|
|
203
|
+
K,
|
|
204
|
+
q
|
|
205
|
+
]), Y = m(() => {
|
|
206
|
+
M(null), P(null), I(null), R(null), z.current = x(null), B.current = x(null), V.current = x(null), H.current = x(null), a(w);
|
|
193
207
|
let e = t();
|
|
194
208
|
e && n(e, {});
|
|
195
|
-
}, [w]),
|
|
196
|
-
organizationId:
|
|
197
|
-
workspaceId:
|
|
198
|
-
projectId:
|
|
199
|
-
tenantId:
|
|
200
|
-
setOrganization:
|
|
201
|
-
setWorkspace:
|
|
202
|
-
setProject:
|
|
203
|
-
setTenant:
|
|
204
|
-
setContext:
|
|
205
|
-
clearContext:
|
|
209
|
+
}, [w]), X = g(() => ({
|
|
210
|
+
organizationId: j,
|
|
211
|
+
workspaceId: N,
|
|
212
|
+
projectId: F,
|
|
213
|
+
tenantId: L,
|
|
214
|
+
setOrganization: U,
|
|
215
|
+
setWorkspace: G,
|
|
216
|
+
setProject: K,
|
|
217
|
+
setTenant: q,
|
|
218
|
+
setContext: J,
|
|
219
|
+
clearContext: Y,
|
|
206
220
|
urlSyncEnabled: T
|
|
207
221
|
}), [
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
W,
|
|
222
|
+
j,
|
|
223
|
+
N,
|
|
224
|
+
F,
|
|
225
|
+
L,
|
|
226
|
+
U,
|
|
214
227
|
G,
|
|
215
228
|
K,
|
|
216
229
|
q,
|
|
217
230
|
J,
|
|
231
|
+
Y,
|
|
218
232
|
T
|
|
219
233
|
]);
|
|
220
234
|
return /* @__PURE__ */ y(b.Provider, {
|
|
221
|
-
value:
|
|
235
|
+
value: X,
|
|
222
236
|
children: c
|
|
223
237
|
});
|
|
224
238
|
}
|
|
225
|
-
function
|
|
239
|
+
function A() {
|
|
226
240
|
let e = p(b);
|
|
227
241
|
if (!e) throw Error("useActiveContext must be used within an ActiveContextProvider");
|
|
228
242
|
return e;
|
|
229
243
|
}
|
|
230
244
|
//#endregion
|
|
231
|
-
export {
|
|
245
|
+
export { k as ActiveContextProvider, A as useActiveContext };
|