@burdenoff/fe-libs 2026.1113.5 → 2026.1113.6
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/button/Button.d.ts +1 -1
- package/dist/chrome/DynamicFooter.js +14 -14
- package/dist/chrome/HeaderBar.js +4 -4
- package/dist/shared/components/ContextConversationWidget.js +4 -4
- package/dist/shared/graphql/fetch.js +29 -29
- package/dist/shared/pages/LegalPage.js +13 -13
- package/dist/shared/providers/shell/ProfileI18nBridge.js +14 -14
- package/dist/shared/providers/shell/ProfileStorageManager.d.ts +9 -0
- package/dist/shared/providers/shell/ProfileStorageManager.js +83 -64
- package/dist/shared-hooks.js +6 -6
- package/dist/shared.js +44 -44
- package/dist/ui/access-gate.d.ts +22 -0
- package/dist/ui/access-gate.js +26 -0
- package/dist/ui/badge.d.ts +1 -1
- package/dist/ui/button.d.ts +1 -1
- package/dist/ui/index.d.ts +4 -0
- package/dist/ui/optional-fields.d.ts +13 -1
- package/dist/ui/optional-fields.js +76 -20
- package/dist/ui/page-tabs.d.ts +42 -0
- package/dist/ui/page-tabs.js +172 -0
- package/dist/ui/show-technical-details.d.ts +17 -0
- package/dist/ui/show-technical-details.js +73 -0
- package/dist/ui/use-remembered-open.d.ts +8 -0
- package/dist/ui/use-remembered-open.js +36 -0
- package/dist/ui.js +52 -48
- package/package.json +1 -1
|
@@ -3,36 +3,38 @@ import { __exportAll as e } from "../../../_virtual/_rolldown/runtime.js";
|
|
|
3
3
|
var t = /* @__PURE__ */ e({
|
|
4
4
|
PROFILE_STORAGE_CHANGE_EVENT: () => s,
|
|
5
5
|
addProfile: () => y,
|
|
6
|
-
clearActiveProfileId: () =>
|
|
7
|
-
getActiveContext: () =>
|
|
8
|
-
getActiveProfileId: () =>
|
|
9
|
-
getActiveTokens: () =>
|
|
10
|
-
getActiveUser: () =>
|
|
11
|
-
getActiveWorkspaceToken: () =>
|
|
12
|
-
getProfileContext: () =>
|
|
13
|
-
getProfileLocale: () =>
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
6
|
+
clearActiveProfileId: () => O,
|
|
7
|
+
getActiveContext: () => U,
|
|
8
|
+
getActiveProfileId: () => E,
|
|
9
|
+
getActiveTokens: () => V,
|
|
10
|
+
getActiveUser: () => B,
|
|
11
|
+
getActiveWorkspaceToken: () => H,
|
|
12
|
+
getProfileContext: () => I,
|
|
13
|
+
getProfileLocale: () => R,
|
|
14
|
+
getProfileOpenSection: () => S,
|
|
15
|
+
getProfileTokens: () => M,
|
|
16
|
+
getProfileUser: () => A,
|
|
17
|
+
getProfileWorkspaceToken: () => P,
|
|
17
18
|
getProfiles: () => p,
|
|
18
19
|
getSelectableProfiles: () => g,
|
|
19
20
|
getSwitchableProfiles: () => _,
|
|
20
21
|
hasProfileCredentials: () => h,
|
|
21
22
|
isPendingVerificationProfile: () => m,
|
|
22
|
-
loginProfile: () =>
|
|
23
|
-
logoutActiveProfile: () =>
|
|
24
|
-
logoutAllProfiles: () =>
|
|
25
|
-
removeAllProfiles: () =>
|
|
23
|
+
loginProfile: () => W,
|
|
24
|
+
logoutActiveProfile: () => G,
|
|
25
|
+
logoutAllProfiles: () => K,
|
|
26
|
+
removeAllProfiles: () => T,
|
|
26
27
|
removeProfile: () => b,
|
|
27
|
-
resolveActiveProfileId: () =>
|
|
28
|
-
setActiveProfileId: () =>
|
|
29
|
-
setProfileContext: () =>
|
|
30
|
-
setProfileLocale: () =>
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
28
|
+
resolveActiveProfileId: () => k,
|
|
29
|
+
setActiveProfileId: () => D,
|
|
30
|
+
setProfileContext: () => L,
|
|
31
|
+
setProfileLocale: () => z,
|
|
32
|
+
setProfileOpenSection: () => C,
|
|
33
|
+
setProfileTokens: () => N,
|
|
34
|
+
setProfileUser: () => j,
|
|
35
|
+
setProfileWorkspaceToken: () => F,
|
|
34
36
|
setProfiles: () => v,
|
|
35
|
-
switchProfile: () =>
|
|
37
|
+
switchProfile: () => q
|
|
36
38
|
}), n = "bf-profiles", r = "bf-active-profile", i = "bf-last-active-profile", a = "bf-p", o = "session", s = "bf-profile-storage-change";
|
|
37
39
|
function c() {
|
|
38
40
|
typeof window < "u" && window.dispatchEvent(new Event(s));
|
|
@@ -58,10 +60,10 @@ function p() {
|
|
|
58
60
|
return d(n) ?? [];
|
|
59
61
|
}
|
|
60
62
|
function m(e) {
|
|
61
|
-
return
|
|
63
|
+
return A(e)?.emailVerified === !1;
|
|
62
64
|
}
|
|
63
65
|
function h(e) {
|
|
64
|
-
let t =
|
|
66
|
+
let t = M(e);
|
|
65
67
|
return !!(t?.accessToken || t?.refreshToken);
|
|
66
68
|
}
|
|
67
69
|
function g() {
|
|
@@ -92,26 +94,43 @@ function b(e) {
|
|
|
92
94
|
"theme-typography",
|
|
93
95
|
"sidebar-collapsed"
|
|
94
96
|
]) localStorage.removeItem(l(e, t)), sessionStorage.removeItem(u(e, t));
|
|
97
|
+
w(e);
|
|
95
98
|
}
|
|
96
|
-
|
|
99
|
+
var x = "open-";
|
|
100
|
+
function S(e, t) {
|
|
101
|
+
let n = localStorage.getItem(l(e, x + t));
|
|
102
|
+
return n === "true" || n !== "false" && null;
|
|
103
|
+
}
|
|
104
|
+
function C(e, t, n) {
|
|
105
|
+
localStorage.setItem(l(e, x + t), n ? "true" : "false");
|
|
106
|
+
}
|
|
107
|
+
function w(e) {
|
|
108
|
+
let t = l(e, x), n = [];
|
|
109
|
+
for (let e = 0; e < localStorage.length; e += 1) {
|
|
110
|
+
let r = localStorage.key(e);
|
|
111
|
+
r?.startsWith(t) && n.push(r);
|
|
112
|
+
}
|
|
113
|
+
for (let e of n) localStorage.removeItem(e);
|
|
114
|
+
}
|
|
115
|
+
function T() {
|
|
97
116
|
let e = p();
|
|
98
117
|
for (let t of e) b(t.id);
|
|
99
118
|
localStorage.removeItem(n), sessionStorage.removeItem(r);
|
|
100
119
|
}
|
|
101
|
-
function
|
|
120
|
+
function E() {
|
|
102
121
|
return sessionStorage.getItem(r);
|
|
103
122
|
}
|
|
104
|
-
function
|
|
123
|
+
function D(e) {
|
|
105
124
|
sessionStorage.setItem(r, e);
|
|
106
125
|
try {
|
|
107
126
|
localStorage.setItem(i, e);
|
|
108
127
|
} catch {}
|
|
109
128
|
}
|
|
110
|
-
function
|
|
129
|
+
function O() {
|
|
111
130
|
sessionStorage.removeItem(r);
|
|
112
131
|
}
|
|
113
|
-
function
|
|
114
|
-
let e = g(), t =
|
|
132
|
+
function k() {
|
|
133
|
+
let e = g(), t = E();
|
|
115
134
|
if (t && e.some((e) => e.id === t)) return t;
|
|
116
135
|
let n = null;
|
|
117
136
|
try {
|
|
@@ -119,30 +138,30 @@ function T() {
|
|
|
119
138
|
} catch {
|
|
120
139
|
n = null;
|
|
121
140
|
}
|
|
122
|
-
return n && e.some((e) => e.id === n) ? (
|
|
141
|
+
return n && e.some((e) => e.id === n) ? (D(n), n) : e.length > 0 ? (D(e[0].id), e[0].id) : null;
|
|
123
142
|
}
|
|
124
|
-
function
|
|
143
|
+
function A(e) {
|
|
125
144
|
return d(l(e, "user"));
|
|
126
145
|
}
|
|
127
|
-
function
|
|
146
|
+
function j(e, t) {
|
|
128
147
|
let n = l(e, "user");
|
|
129
148
|
t ? f(n, t) : localStorage.removeItem(n);
|
|
130
149
|
}
|
|
131
|
-
function
|
|
150
|
+
function M(e) {
|
|
132
151
|
return d(l(e, "tokens"));
|
|
133
152
|
}
|
|
134
|
-
function
|
|
153
|
+
function N(e, t) {
|
|
135
154
|
let n = l(e, "tokens");
|
|
136
155
|
t ? f(n, t) : localStorage.removeItem(n);
|
|
137
156
|
}
|
|
138
|
-
function
|
|
157
|
+
function P(e) {
|
|
139
158
|
try {
|
|
140
159
|
let t = sessionStorage.getItem(u(e, "workspace-token"));
|
|
141
160
|
if (t) return t;
|
|
142
161
|
} catch {}
|
|
143
162
|
return localStorage.getItem(l(e, "workspace-token"));
|
|
144
163
|
}
|
|
145
|
-
function
|
|
164
|
+
function F(e, t) {
|
|
146
165
|
let n = l(e, "workspace-token"), r = u(e, "workspace-token");
|
|
147
166
|
if (t) {
|
|
148
167
|
try {
|
|
@@ -157,35 +176,35 @@ function j(e, t) {
|
|
|
157
176
|
}
|
|
158
177
|
c();
|
|
159
178
|
}
|
|
160
|
-
function
|
|
179
|
+
function I(e) {
|
|
161
180
|
return d(l(e, "context"));
|
|
162
181
|
}
|
|
163
|
-
function
|
|
182
|
+
function L(e, t) {
|
|
164
183
|
f(l(e, "context"), t);
|
|
165
184
|
}
|
|
166
|
-
function
|
|
185
|
+
function R(e) {
|
|
167
186
|
return localStorage.getItem(l(e, "locale"));
|
|
168
187
|
}
|
|
169
|
-
function
|
|
188
|
+
function z(e, t) {
|
|
170
189
|
localStorage.setItem(l(e, "locale"), t);
|
|
171
190
|
}
|
|
172
|
-
function
|
|
173
|
-
let e =
|
|
174
|
-
return e ? E(e) : null;
|
|
175
|
-
}
|
|
176
|
-
function L() {
|
|
177
|
-
let e = T();
|
|
178
|
-
return e ? O(e) : null;
|
|
179
|
-
}
|
|
180
|
-
function R() {
|
|
181
|
-
let e = T();
|
|
191
|
+
function B() {
|
|
192
|
+
let e = k();
|
|
182
193
|
return e ? A(e) : null;
|
|
183
194
|
}
|
|
184
|
-
function
|
|
185
|
-
let e =
|
|
195
|
+
function V() {
|
|
196
|
+
let e = k();
|
|
186
197
|
return e ? M(e) : null;
|
|
187
198
|
}
|
|
188
|
-
function
|
|
199
|
+
function H() {
|
|
200
|
+
let e = k();
|
|
201
|
+
return e ? P(e) : null;
|
|
202
|
+
}
|
|
203
|
+
function U() {
|
|
204
|
+
let e = k();
|
|
205
|
+
return e ? I(e) : null;
|
|
206
|
+
}
|
|
207
|
+
function W(e, t) {
|
|
189
208
|
let n = e.id;
|
|
190
209
|
return y({
|
|
191
210
|
id: n,
|
|
@@ -193,16 +212,16 @@ function B(e, t) {
|
|
|
193
212
|
name: e.name ?? `${e.firstName ?? ""} ${e.lastName ?? ""}`.trim(),
|
|
194
213
|
avatar: e.avatar,
|
|
195
214
|
lastLogin: (/* @__PURE__ */ new Date()).toISOString()
|
|
196
|
-
}),
|
|
215
|
+
}), j(n, e), N(n, t), D(n), c(), n;
|
|
197
216
|
}
|
|
198
|
-
function
|
|
199
|
-
let e =
|
|
200
|
-
e && (b(e),
|
|
217
|
+
function G() {
|
|
218
|
+
let e = E();
|
|
219
|
+
e && (b(e), O(), k(), c());
|
|
201
220
|
}
|
|
202
|
-
function
|
|
203
|
-
|
|
221
|
+
function K() {
|
|
222
|
+
T(), c();
|
|
204
223
|
}
|
|
205
|
-
function
|
|
206
|
-
return g().some((t) => t.id === e) ? (
|
|
224
|
+
function q(e) {
|
|
225
|
+
return g().some((t) => t.id === e) ? (D(e), !0) : !1;
|
|
207
226
|
}
|
|
208
|
-
export { s as PROFILE_STORAGE_CHANGE_EVENT, t as ProfileStorageManager_exports, y as addProfile,
|
|
227
|
+
export { s as PROFILE_STORAGE_CHANGE_EVENT, t as ProfileStorageManager_exports, y as addProfile, O as clearActiveProfileId, U as getActiveContext, E as getActiveProfileId, V as getActiveTokens, B as getActiveUser, H as getActiveWorkspaceToken, I as getProfileContext, R as getProfileLocale, S as getProfileOpenSection, M as getProfileTokens, A as getProfileUser, P as getProfileWorkspaceToken, p as getProfiles, g as getSelectableProfiles, _ as getSwitchableProfiles, h as hasProfileCredentials, m as isPendingVerificationProfile, W as loginProfile, G as logoutActiveProfile, K as logoutAllProfiles, T as removeAllProfiles, b as removeProfile, k as resolveActiveProfileId, D as setActiveProfileId, L as setProfileContext, z as setProfileLocale, C as setProfileOpenSection, N as setProfileTokens, j as setProfileUser, F as setProfileWorkspaceToken, v as setProfiles, q as switchProfile };
|
package/dist/shared-hooks.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { useDebounce as e } from "./shared/hooks/useDebounce.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
2
|
+
import { LogLevel as t } from "./shared/logger/types.js";
|
|
3
|
+
import { Logger as n } from "./shared/logger/Logger.js";
|
|
4
|
+
import { LogManager as ee, logManager as r } from "./shared/logger/LogManager.js";
|
|
5
|
+
import { ConsoleTransport as i } from "./shared/logger/ConsoleTransport.js";
|
|
6
|
+
import { useThrottle as a } from "./shared/hooks/useThrottle.js";
|
|
7
7
|
import { useMediaQuery as o } from "./shared/hooks/useMediaQuery.js";
|
|
8
8
|
import { BREAKPOINTS as s, useBreakpoint as c, useMobileBreakpoint as l } from "./shared/hooks/useBreakpoint.js";
|
|
9
9
|
import { useOnClickOutside as u, useOnClickOutsideWithRef as d } from "./shared/hooks/useOnClickOutside.js";
|
|
@@ -45,4 +45,4 @@ function Oe() {
|
|
|
45
45
|
if (!e) throw Error("useMicrofrontendContext must be used within a MicrofrontendProvider");
|
|
46
46
|
return e;
|
|
47
47
|
}
|
|
48
|
-
export { s as BREAKPOINTS, Y as COMMAND_CHORD_ID_PREFIX,
|
|
48
|
+
export { s as BREAKPOINTS, Y as COMMAND_CHORD_ID_PREFIX, i as ConsoleTransport, te as GLOBAL_SHORTCUT_CATEGORIES, t as LogLevel, ee as LogManager, n as Logger, V as MODIFIER_KEYS, $ as MicrofrontendContext, ge as PLAN_USAGE_SNAPSHOT_EVENT, H as PLATFORM_TYPES, le as PUSH_DEVICE_ID_STORAGE_KEY, pe as QUOTA_EXHAUSTED_EVENT, xe as UNSAVED_CHANGE_LABEL_MAX, ye as appendContextToPath, X as commandChordShortcuts, K as createGlobalShortcuts, f as detectPlatform, me as dispatchQuotaExhausted, p as formatKeyCombo, m as getDisplayKeysForPlatform, q as getGlobalShortcutsByCategory, ue as getOrCreatePushDeviceId, h as getShortcutLabel, Z as isChordShortcut, g as isMac, _ as isMobileDevice, v as isTabletDevice, Se as listUnsavedChanges, r as logManager, y as matchesKeyCombo, J as mergeShortcuts, Q as normalizeChord, b as normalizeKey, x as normalizePlatformCombo, S as parseKeyCombo, _e as publishPlanUsageSnapshot, de as registerPushDevice, Ce as registerUnsavedChange, C as shouldEnableKeyboardShortcuts, w as shouldIgnoreShortcut, fe as unregisterPushDevice, we as unsavedChangesBlocking, z as useAsync, B as useAsyncImmediate, c as useBreakpoint, F as useConditionalToggle, D as useCopyToClipboard, be as useCurrentContextSearchParams, e as useDebounce, O as useExclusiveMenu, ae as useHasAnimated, W as useHotkeys, T as useKeyPress, E as useKeyboardShortcut, U as useKeyboardShortcuts, A as useLocalStorage, ie as useLogger, o as useMediaQuery, Oe as useMicrofrontendContext, l as useMobileBreakpoint, u as useOnClickOutside, d as useOnClickOutsideWithRef, re as usePWA, R as usePagination, M as usePrevious, N as usePreviousDistinct, P as usePreviousHistory, ce as usePushDeviceRegistration, he as useQuotaErrorToast, se as useRecordProductVisit, oe as useReferralAttribution, k as useReturnFocus, j as useSessionStorage, G as useShortcutHelp, a as useThrottle, I as useToggle, L as useToggleObject, Te as useUnsavedChanges, ve as useUpgradePrompt, ne as withCommandChords };
|
package/dist/shared.js
CHANGED
|
@@ -1,48 +1,48 @@
|
|
|
1
1
|
import { useCopyToClipboard as e } from "./shared/hooks/useCopyToClipboard.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import { COMMON_SHELL_LESS_ROUTES as ct, DEFAULT_SHELL_CONFIG as lt, getShellConfig as ut, isShellLessRoute as dt, shouldShowBreadcrumb as ft, shouldShowSidebar as pt } from "./shared/config/shellRoutes.js";
|
|
2
|
+
import { createApolloClient as t } from "./shared/utils/apollo.js";
|
|
3
|
+
import { alertTokens as n, categoryTokens as r, getAlertTokens as i, getCategoryTokens as a, getProgressTokens as o, getStatusBadgeTokens as s, getStatusTokens as c, getTrendTokens as l, progressTokens as u, statusTokens as d, trendTokens as f } from "./shared/utils/tokens.js";
|
|
4
|
+
import { CHART_SERIES_COUNT as p, DATA_TYPES as m, EDGE_KINDS as h, NODE_CATEGORIES as g, NODE_STATES as _, chartSeriesColor as v, chartSeriesIndex as y, dataTypeColor as b, dataTypeTextClasses as x, edgeColor as S, nodeCategoryClasses as C, nodeCategoryColor as w, nodeCategorySubtleColor as T, nodeStateColor as E, nodeStateRingClasses as D, toDataType as O, toNodeCategory as k } from "./shared/utils/canvasTokens.js";
|
|
5
|
+
import { capitalizeFirst as A, capitalizeWords as j, formatBytes as M, formatCompactNumber as N, formatCurrency as P, formatCurrencyCompact as F, formatDate as I, formatDateTime as L, formatDuration as R, formatList as z, formatNumber as B, formatOrdinal as V, formatPercentage as H, formatRelativeTime as U, formatTime as W, pluralize as G, slugify as K, toCamelCase as q, toPascalCase as J, truncateText as Y } from "./shared/utils/format.js";
|
|
6
|
+
import { isChunkLoadError as X, lazyWithRetry as Z } from "./shared/utils/lazyWithRetry.js";
|
|
7
|
+
import { getCapacitorPlatform as Q, getNativeAppIdHeader as $, isCapacitorNative as ee } from "./shared/native/capacitor.js";
|
|
8
|
+
import { DESKTOP_UPDATE_UNSUPPORTED as te, DESKTOP_WINDOW_STATE_DEFAULT as ne, bootDesktopShell as re, desktopCheckForUpdates as ie, desktopDeepLinkToPath as ae, desktopInstallUpdate as oe, desktopNotify as se, desktopOpenExternal as ce, desktopSetBadgeCount as le, desktopSetLocale as ue, desktopSetTheme as de, desktopSetTrayQuickActions as fe, getDesktopAuthBridgeConfig as pe, getDesktopBridge as me, getDesktopGatewayBases as he, getDesktopGatewayUrls as ge, getDesktopRuntimeConfig as _e, getDesktopUpdateState as ve, getDesktopWindowState as ye, getLegacyDesktopRuntime as be, installDesktopDeepLinkHandler as xe, installDesktopNavigateHandler as Se, isDesktop as Ce, onDesktopUpdateState as we, onDesktopWindowState as Te, registerDesktopNavigator as Ee } from "./shared/native/desktop.js";
|
|
9
|
+
import { resolveExternalGatewayUrls as De, resolveGatewayUrls as Oe } from "./shared/config/gatewayUrls.js";
|
|
10
|
+
import { installGatewayFetchRewrite as ke, resolveGatewayBases as Ae, suppressConsole as je } from "./shared/utils/gatewayFetchRewrite.js";
|
|
11
|
+
import { SESSION_BRIDGE_PAGE_PATH as Me, SESSION_BRIDGE_ROUTE_PATH as Ne, isSessionBridgePath as Pe, resolveAuthBridgeConfig as Fe, resolveShellAuthBridgeConfig as Ie } from "./shared/config/authBridgeUrls.js";
|
|
12
|
+
import { PRODUCT_SLUG_EMIT as Le, PRODUCT_SLUG_RENAMES as Re, emitProductSlug as ze, isSameProductSlug as Be, legacyProductSlug as Ve, normalizeProductSlug as He } from "./shared/config/productSlug.js";
|
|
13
|
+
import { BOTMANOR_PRODUCT_SLUG as Ue, PRODUCTS as We, PRODUCT_URLS as Ge, findProductConfig as Ke, getProductUrl as qe, getProductsWithUrls as Je, isAlphaAppShell as Ye, toAlphaAppUrl as Xe, toCurrentEstateAppUrl as Ze } from "./shared/config/products.js";
|
|
14
|
+
import { CANONICAL_DOCS_HOSTS as Qe, buildProductDocsUrl as $e, canonicalizeDocsOrigin as et, getCatalogDocsOrigin as tt, normalizeDocsPath as nt, resolveDocsEnvironment as rt, resolveProductDocsOrigin as it, toEnvironmentDocsOrigin as at, toTrustedDocsOrigin as ot } from "./shared/config/docsUrls.js";
|
|
15
|
+
import { COMMON_SHELL_LESS_ROUTES as st, DEFAULT_SHELL_CONFIG as ct, getShellConfig as lt, isShellLessRoute as ut, shouldShowBreadcrumb as dt, shouldShowSidebar as ft } from "./shared/config/shellRoutes.js";
|
|
17
16
|
import "./shared-components.js";
|
|
18
|
-
import { getWorkspaceTokenPayload as
|
|
19
|
-
import { WORKSPACE_CONTEXT_CHANGED as
|
|
20
|
-
import { BACKEND_ERROR_EVENT as
|
|
21
|
-
import { clearGraphqlFetchResponseCache as
|
|
22
|
-
import { SSELink as
|
|
23
|
-
import { BYPASS_FETCH_RESPONSE_CACHE_CONTEXT_KEY as
|
|
24
|
-
import { GatewayProvider as
|
|
25
|
-
import { useHasAuthToken as
|
|
26
|
-
import { WsLink as
|
|
27
|
-
import { prepareWorkspaceRequest as
|
|
28
|
-
import { DEFAULT_PAGE_SIZE as
|
|
29
|
-
import { attemptTokenRefresh as
|
|
30
|
-
import { clearSSoCookie as
|
|
31
|
-
import { getNativeBridge as
|
|
32
|
-
import { getPlatform as
|
|
33
|
-
import { assignLocationWithAllowlist as
|
|
34
|
-
import { SSORedirectSpinner as
|
|
35
|
-
import { SSO_DEPOSITED_PARAM as
|
|
36
|
-
import { AppInitializer as
|
|
37
|
-
import { LogLevel as
|
|
38
|
-
import { Logger as
|
|
39
|
-
import { LogManager as
|
|
40
|
-
import { ConsoleTransport as
|
|
41
|
-
import { clearUserContext as
|
|
42
|
-
import { createProfileScopedStorage as
|
|
43
|
-
import { QUOTA_EXHAUSTED_CODE as
|
|
44
|
-
import { INLINE_ENCODE as
|
|
45
|
-
import { EventBusProvider as
|
|
17
|
+
import { getWorkspaceTokenPayload as pt, isWorkspaceTokenValidForContext as mt } from "./shared/graphql/workspaceToken.js";
|
|
18
|
+
import { WORKSPACE_CONTEXT_CHANGED as ht, WORKSPACE_CONTEXT_MISMATCH_EVENT as gt, WORKSPACE_WRITE_REFUSED_EVENT as _t, WORKSPACE_WRITE_REFUSED_MESSAGE as vt, WorkspaceContextChangedError as yt, isWorkspaceContextChangedError as bt, readContextInputWorkspaceId as xt } from "./shared/graphql/workspaceOperationGuard.js";
|
|
19
|
+
import { BACKEND_ERROR_EVENT as St, CONNECTION_STATUS_EVENT as Ct, dispatchBackendErrorEvent as wt, extractBackendError as Tt, isAbortError as Et, isBackendErrorDisplay as Dt, isTransportError as Ot, markConnectionHealthy as kt, shouldToastBackendError as At } from "./shared/utils/backendErrors.js";
|
|
20
|
+
import { clearGraphqlFetchResponseCache as jt, getStoredAuthToken as Mt, getStoredLocale as Nt, getStoredOrganizationId as Pt, getStoredProjectId as Ft, getStoredWorkspaceId as It, getStoredWorkspaceToken as Lt, graphqlFetch as Rt, graphqlFetchPinned as zt, resolveGatewayUrl as Bt } from "./shared/graphql/fetch.js";
|
|
21
|
+
import { SSELink as Vt } from "./shared/graphql/links/sse-link.js";
|
|
22
|
+
import { BYPASS_FETCH_RESPONSE_CACHE_CONTEXT_KEY as Ht, SEND_UNBATCHED_CONTEXT_KEY as Ut, createGraphQLClient as Wt, getGlobalClient as Gt, getWorkspaceClient as Kt, initializeAppClients as qt, resetAppClients as Jt } from "./shared/graphql/client.js";
|
|
23
|
+
import { GatewayProvider as Yt, useGateway as Xt, useGatewayClient as Zt, useSafeGateway as Qt, useSafeGatewayClient as $t } from "./shared/graphql/GatewayContext.js";
|
|
24
|
+
import { useHasAuthToken as en } from "./shared/graphql/useHasAuthToken.js";
|
|
25
|
+
import { WsLink as tn } from "./shared/graphql/links/ws-link.js";
|
|
26
|
+
import { prepareWorkspaceRequest as nn } from "./shared/graphql/prepareWorkspaceRequest.js";
|
|
27
|
+
import { DEFAULT_PAGE_SIZE as rn, GATEWAYS as an, getGatewayConfig as on, getGatewayUrl as sn, getGraphQLEndpoint as cn } from "./shared-config.js";
|
|
28
|
+
import { attemptTokenRefresh as ln, clearAuthSessionStorage as un, hasAuthGraphQLErrors as dn, isAuthGraphQLError as fn, isAuthNetworkError as pn, redirectToLogin as mn } from "./shared/utils/authErrorHandling.js";
|
|
29
|
+
import { clearSSoCookie as hn, clearShellSsoCookies as gn, getSSoCookie as _n, isSharedSsoCookieDomain as vn, isTrustedSsoOrigin as yn, readShellSsoCookie as bn, setSSoCookie as xn, setShellSsoCookies as Sn } from "./shared/utils/authCookie.js";
|
|
30
|
+
import { getNativeBridge as Cn } from "./shared/native/bridge.js";
|
|
31
|
+
import { getPlatform as wn, isAndroid as Tn, isElectron as En, isIOS as Dn, isInstalledApp as On, isNative as kn, isStandalonePWA as An, isWeb as jn, isWebBrowser as Mn } from "./shared/native/platform.js";
|
|
32
|
+
import { assignLocationWithAllowlist as Nn, isAllowedRedirectUrl as Pn, openUrlInNewTabWithAllowlist as Fn, replaceLocationWithAllowlist as In } from "./shared/utils/redirectAllowlist.js";
|
|
33
|
+
import { SSORedirectSpinner as Ln, checkRemoteSLO as Rn, checkSLO as zn, clearLocalAuthState as Bn, getSSORedirectUrl as Vn, redirectToSSO as Hn } from "./shared/components/SSORedirectGuard.js";
|
|
34
|
+
import { SSO_DEPOSITED_PARAM as Un, beginSsoNavigation as Wn, buildSsoDepositUrl as Gn, clearSsoDepositState as Kn, clearSsoNavigation as qn, consumeSsoDepositMarker as Jn, isSsoNavigationPending as Yn, markSsoDepositDone as Xn, markSsoDepositPending as Zn, mintSsoSessionTokens as Qn, readSsoDepositState as $n, shouldAttemptSsoDeposit as er } from "./shared/utils/ssoDeposit.js";
|
|
35
|
+
import { AppInitializer as tr, useRegistryHelpers as nr, useShellNavigate as rr } from "./shared/utils/appHelpers.js";
|
|
36
|
+
import { LogLevel as ir } from "./shared/logger/types.js";
|
|
37
|
+
import { Logger as ar } from "./shared/logger/Logger.js";
|
|
38
|
+
import { LogManager as or, logManager as sr } from "./shared/logger/LogManager.js";
|
|
39
|
+
import { ConsoleTransport as cr } from "./shared/logger/ConsoleTransport.js";
|
|
40
|
+
import { clearUserContext as lr, initializeLogger as ur, setUserContext as dr } from "./shared/utils/loggerInit.js";
|
|
41
|
+
import { createProfileScopedStorage as fr, getProfileScopedKey as pr } from "./shared/utils/profileScopedStorage.js";
|
|
42
|
+
import { QUOTA_EXHAUSTED_CODE as mr, RESOURCE_CAP_EXCEEDED_CODE as hr, STORAGE_QUOTA_EXCEEDED_CODE as gr, UPGRADE_ERROR_CODES as _r, buildQuotaExhaustedMessage as vr, extractQuotaExhaustedExtensions as yr, extractUpgradeErrorExtensions as br, isQuotaExhaustedError as xr, isUpgradeError as Sr } from "./shared/utils/quotaErrors.js";
|
|
43
|
+
import { INLINE_ENCODE as Cr, downscaleImage as wr, selectInlineBase64 as Tr } from "./shared/utils/imageDownscale.js";
|
|
44
|
+
import { EventBusProvider as Er, createEventBus as Dr, useEvent as Or, useEventBus as kr, useEventEmitter as Ar } from "./shared-events.js";
|
|
45
|
+
import { useMediaQuery as jr } from "./shared/hooks/useMediaQuery.js";
|
|
46
46
|
import { nativeActionSheet as Mr, nativeConfirm as Nr, nativeCopyText as Pr, nativeImpact as Fr, nativeNotify as Ir, nativeOpenUrl as Lr, nativeSelection as Rr, nativeShare as zr, nativeToast as Br } from "./shared/native/consumers.js";
|
|
47
47
|
import { MAIN_CONTENT_ID as Vr, MainLandmark as Hr, PublicLayout as Ur, SkipToContentLink as Wr, focusSkipTarget as Gr, useInsideMainLandmark as Kr } from "./shared/components/SkipToContent.js";
|
|
48
48
|
import { SafeAreaView as qr } from "./shared/native/SafeAreaView.js";
|
|
@@ -158,4 +158,4 @@ import "./shared-native.js";
|
|
|
158
158
|
import "./shared/actors/index.js";
|
|
159
159
|
// src/shared/index.ts
|
|
160
160
|
var jc = "1.0.0";
|
|
161
|
-
export { mo as ASSISTANT_WIDGET_TOGGLE_EVENT, $i as ATHELETEBRIDGE_ANALYTICS_ROUTES, ea as ATHELETEBRIDGE_RYBBIT_EVENTS, yi as AccessDenied, ni as ActorIdentity, fa as AnalyticsConsentBanner, Ri as ApolloClient, zi as ApolloProvider, ki as AppErrorBoundary, nr as AppInitializer, bc as AppShellProvider, ho as AssistantWidget, Ct as BACKEND_ERROR_EVENT, Ws as BIGCONSOLE_TOUR_ROUTE_CATALOG, We as BOTMANOR_PRODUCT_SLUG, No as BREAKPOINTS, Zi as BUILDMYIQ_RYBBIT_EVENTS, Gs as BUILDMYIQ_TOUR_ROUTE_CATALOG, Ks as BUILT_IN_TOUR_ROUTE_CATALOGS, Ut as BYPASS_FETCH_RESPONSE_CACHE_CONTEXT_KEY, oa as BackendAuditSink, aa as BroadcastChannelSink, $e as CANONICAL_DOCS_HOSTS, m as CHART_SERIES_COUNT, qs as COLLABKIN_TOUR_ROUTE_CATALOG, ss as COMMAND_CHORD_ID_PREFIX, ct as COMMON_SHELL_LESS_ROUTES, wt as CONNECTION_STATUS_EVENT, pa as CONSENT_BANNER_OFFSET_VAR, Ei as ConditionalShell, lr as ConsoleTransport, ya as ContextConversationWidget, h as DATA_TYPES, an as DEFAULT_PAGE_SIZE, za as DEFAULT_QUOTA_UPGRADE_COPY, lt as DEFAULT_SHELL_CONFIG, ne as DESKTOP_UPDATE_UNSUPPORTED, re as DESKTOP_WINDOW_STATE_DEFAULT, ko as DesktopUpdateToast, ia as DevtoolsSink, Ya as DocsLink, g as EDGE_KINDS, pi as ErrorBoundary, xi as ErrorFallback, Dr as EventBusProvider, jc as FE_SHARED_VERSION, ra as FLUIDGRIDS_RYBBIT_EVENTS, Js as FLUIDGRIDS_TOUR_ROUTE_CATALOG, Ai as FeatureFlagProvider, Li as FeatureGate, on as GATEWAYS, Qi as GGNOMAD_RYBBIT_EVENTS, rs as GLOBAL_SHORTCUT_CATEGORIES, Xt as GatewayProvider, wr as INLINE_ENCODE, Ys as INTELWATCHTOWER_TOUR_ROUTE_CATALOG, Bi as InMemoryCache, Na as KeyboardHelpDialogWrapper, so as LandingGateView, co as LandingOrDashboardRedirect, Si as LoadingFallback, ar as LogLevel, sr as LogManager, or as Logger, Vr as MAIN_CONTENT_ID, Xs as MANUFACTUREDOPS_TOUR_ROUTE_CATALOG, Qo as MODIFIER_KEYS, Hr as MainLandmark, go as Markdown, ua as MicrofrontendContext, Ti as MicrofrontendErrorBoundary, Ao as MicrofrontendProvider, _ as NODE_CATEGORIES, v as NODE_STATES, la as OtelBrowserSink, bs as PLAN_USAGE_SNAPSHOT_EVENT, $o as PLATFORM_TYPES, Ge as PRODUCTS, Re as PRODUCT_SLUG_EMIT, ze as PRODUCT_SLUG_RENAMES, ro as PRODUCT_SWITCH_HANDOFF_PARAM, Ke as PRODUCT_URLS, Xa as PUBLIC_PRODUCT_DOCS_URL_QUERY, Zr as PULL_TO_REFRESH_THRESHOLD, li as PUSH_DEVICE_ID_STORAGE_KEY, Oi as PWAInstallBanner, Ci as PageLoadingFallback, gi as PermissionButton, bi as PermissionDenied, _i as PermissionGate, vi as PermissionLink, Ur as PublicLayout, hr as QUOTA_EXHAUSTED_CODE, _s as QUOTA_EXHAUSTED_EVENT, Pa as QuotaMeter, Ba as QuotaUpgradeBridge, gr as RESOURCE_CAP_EXCEEDED_CODE, mi as RequireAuth, hi as RequireGuest, ma as RybbitSink, Yi as SEMANTICFED_ANALYTICS_ROUTES, Xi as SEMANTICFED_RYBBIT_EVENTS, Wt as SEND_UNBATCHED_CONTEXT_KEY, Ne as SESSION_BRIDGE_PAGE_PATH, Pe as SESSION_BRIDGE_ROUTE_PATH, Ht as SSELink, Rn as SSORedirectSpinner, Wn as SSO_DEPOSITED_PARAM, _r as STORAGE_QUOTA_EXCEEDED_CODE, qr as SafeAreaView, wi as SectionLoadingFallback, Wr as SkipToContentLink, na as THECULTUREPOST_RYBBIT_EVENTS, ta as TIMECAMPUS_RYBBIT_EVENTS, _c as TourInitializer, Vs as TourPlayer, Is as TourPlayerProvider, Ps as TourSpotlight, Fs as TourTooltip, Cc as TourTrigger, Hs as TourTriggerButton, fc as ToursProvider, Ts as UNSAVED_CHANGE_LABEL_MAX, vr as UPGRADE_ERROR_CODES, Fa as UPGRADE_PROMPT_EVENT, Ra as UpgradeInlineBanner, Ia as UpgradePromptModal, Zs as VIBECONTROLS_TOUR_ROUTE_CATALOG, gt as WORKSPACE_CONTEXT_CHANGED, _t as WORKSPACE_CONTEXT_MISMATCH_EVENT, vt as WORKSPACE_WRITE_REFUSED_EVENT, yt as WORKSPACE_WRITE_REFUSED_MESSAGE, bt as WorkspaceContextChangedError, nn as WsLink, wc as acknowledgeNativePurchase, r as alertTokens, Cs as appendContextToPath, Pn as assignLocationWithAllowlist, un as attemptTokenRefresh, Gn as beginSsoNavigation, ie as bootDesktopShell, ri as buildActorFallback, et as buildProductDocsUrl, yr as buildQuotaExhaustedMessage, Kn as buildSsoDepositUrl, tt as canonicalizeDocsOrigin, j as capitalizeFirst, M as capitalizeWords, Va as captureQuotaDialogOwners, i as categoryTokens, y as chartSeriesColor, b as chartSeriesIndex, zn as checkRemoteSLO, Bn as checkSLO, Ha as claimQuotaDialog, dn as clearAuthSessionStorage, Mt as clearGraphqlFetchResponseCache, Vn as clearLocalAuthState, gn as clearSSoCookie, _n as clearShellSsoCookies, qn as clearSsoDepositState, Jn as clearSsoNavigation, ur as clearUserContext, Sc as cn, cs as commandChordShortcuts, sa as compileRybbitRoutePattern, Qr as computePullOffset, $r as computePullProgress, Yn as consumeSsoDepositMarker, n as createApolloClient, Or as createEventBus, is as createGlobalShortcuts, Gt as createGraphQLClient, pr as createProfileScopedStorage, ec as createTourPageIdResolver, x as dataTypeColor, S as dataTypeTextClasses, ae as desktopCheckForUpdates, oe as desktopDeepLinkToPath, se as desktopInstallUpdate, ce as desktopNotify, le as desktopOpenExternal, ue as desktopSetBadgeCount, de as desktopSetLocale, fe as desktopSetTheme, pe as desktopSetTrayQuickActions, js as detectDeviceType, ba as detectPlatform, Tt as dispatchBackendErrorEvent, Ua as dispatchProductQuotaExhausted, vs as dispatchQuotaExhausted, La as dispatchUpgradePrompt, Tr as downscaleImage, C as edgeColor, Be as emitProductSlug, Et as extractBackendError, br as extractQuotaExhaustedExtensions, xr as extractUpgradeErrorExtensions, Za as fetchRegistryDocsUrl, qe as findProductConfig, Gr as focusSkipTarget, N as formatBytes, P as formatCompactNumber, F as formatCurrency, I as formatCurrencyCompact, L as formatDate, R as formatDateTime, z as formatDuration, xa as formatKeyCombo, B as formatList, V as formatNumber, H as formatOrdinal, U as formatPercentage, W as formatRelativeTime, G as formatTime, a as getAlertTokens, Qs as getBuiltInTourRouteCatalog, $ as getCapacitorPlatform, nt as getCatalogDocsOrigin, o as getCategoryTokens, me as getDesktopAuthBridgeConfig, he as getDesktopBridge, ge as getDesktopGatewayBases, _e as getDesktopGatewayUrls, ve as getDesktopRuntimeConfig, ye as getDesktopUpdateState, be as getDesktopWindowState, Sa as getDisplayKeysForPlatform, sn as getGatewayConfig, cn as getGatewayUrl, Kt as getGlobalClient, as as getGlobalShortcutsByCategory, ln as getGraphQLEndpoint, xe as getLegacyDesktopRuntime, ee as getNativeAppIdHeader, wn as getNativeBridge, to as getNativeEntryRoutes, Tc as getNativeProducts, Ec as getNativePurchases, ui as getOrCreatePushDeviceId, Tn as getPlatform, Je as getProductUrl, Ye as getProductsWithUrls, mr as getProfileScopedKey, s as getProgressTokens, ai as getPushOptInController, Ms as getResponsiveSelector, Hn as getSSORedirectUrl, vn as getSSoCookie, ut as getShellConfig, Ca as getShortcutLabel, c as getStatusBadgeTokens, l as getStatusTokens, Nt as getStoredAuthToken, Pt as getStoredLocale, Ft as getStoredOrganizationId, It as getStoredProjectId, Lt as getStoredWorkspaceId, Rt as getStoredWorkspaceToken, tc as getTourContextRank, nc as getTourRouteCatalog, rc as getTourRouteCatalogVersion, ic as getTourRouteModules, ac as getTourRoutePages, u as getTrendTokens, qt as getWorkspaceClient, mt as getWorkspaceTokenPayload, Vi as gql, zt as graphqlFetch, Bt as graphqlFetchPinned, fn as hasAuthGraphQLErrors, io as hasProductSwitchHandoff, oc as hasRegisteredTourRouteCatalog, lo as hasStoredValidSession, Jt as initializeAppClients, dr as initializeLogger, Se as installDesktopDeepLinkHandler, Ce as installDesktopNavigateHandler, Ae as installGatewayFetchRewrite, Dc as installNativeIAP, Dt as isAbortError, Fn as isAllowedRedirectUrl, Xe as isAlphaAppShell, En as isAndroid, pn as isAuthGraphQLError, mn as isAuthNetworkError, Ot as isBackendErrorDisplay, te as isCapacitorNative, ls as isChordShortcut, Z as isChunkLoadError, we as isDesktop, Dn as isElectron, On as isIOS, kn as isInstalledApp, wa as isMac, Ta as isMobileDevice, An as isNative, Oc as isNativeIAPAvailable, Sr as isQuotaExhaustedError, ca as isRybbitSkippedRoute, Ve as isSameProductSlug, Fe as isSessionBridgePath, yn as isSharedSsoCookieDomain, dt as isShellLessRoute, Xn as isSsoNavigationPending, jn as isStandalonePWA, Ea as isTabletDevice, sc as isTourVisibleForContext, kt as isTransportError, bn as isTrustedSsoOrigin, Cr as isUpgradeError, Mn as isWeb, Nn as isWebBrowser, xt as isWorkspaceContextChangedError, ht as isWorkspaceTokenValidForContext, Q as lazyWithRetry, He as legacyProductSlug, $s as listBuiltInTourRouteCatalogProductIds, Es as listUnsavedChanges, cr as logManager, At as markConnectionHealthy, Zn as markSsoDepositDone, Qn as markSsoDepositPending, Da as matchesKeyCombo, os as mergeShortcuts, $n as mintSsoSessionTokens, Mr as nativeActionSheet, Nr as nativeConfirm, Pr as nativeCopyText, Fr as nativeImpact, Ir as nativeNotify, Lr as nativeOpenUrl, Rr as nativeSelection, zr as nativeShare, Br as nativeToast, w as nodeCategoryClasses, T as nodeCategoryColor, E as nodeCategorySubtleColor, D as nodeStateColor, O as nodeStateRingClasses, us as normalizeChord, rt as normalizeDocsPath, Oa as normalizeKey, ka as normalizePlatformCombo, Ue as normalizeProductSlug, cc as normalizeTourPath, Te as onDesktopUpdateState, Ee as onDesktopWindowState, In as openUrlInNewTabWithAllowlist, Aa as parseKeyCombo, K as pluralize, rn as prepareWorkspaceRequest, d as progressTokens, ha as publishConsentBannerOffset, xs as publishPlanUsageSnapshot, kc as purchaseNativeProduct, Wa as quotaEventKind, ga as readAnalyticsConsent, _a as readAnalyticsConsentChoice, St as readContextInputWorkspaceId, Jr as readInitialNetworkStatus, Qa as readRegistryDocsUrl, xn as readShellSsoCookie, er as readSsoDepositState, oi as recordPushPermissionPromptDismissed, hn as redirectToLogin, Un as redirectToSSO, Yr as reduceNetworkStatus, De as registerDesktopNavigator, di as registerPushDevice, si as registerPushOptInController, lc as registerTourRouteCatalog, Ds as registerUnsavedChange, Ln as replaceLocationWithAllowlist, Yt as resetAppClients, wo as resolveActionSheetOutcome, xc as resolveAppShellObservabilityConfig, Ie as resolveAuthBridgeConfig, it as resolveDocsEnvironment, Oe as resolveExternalGatewayUrls, je as resolveGatewayBases, Vt as resolveGatewayUrl, ke as resolveGatewayUrls, uo as resolveLandingGate, at as resolveProductDocsOrigin, Ga as resolveQuotaUpgradeCopy, Le as resolveShellAuthBridgeConfig, uc as resolveTourTargetPath, Ac as restoreNativePurchases, Er as selectInlineBase64, va as setAnalyticsConsent, Sn as setSSoCookie, Cn as setShellSsoCookies, fr as setUserContext, tr as shouldAttemptSsoDeposit, ja as shouldEnableKeyboardShortcuts, Ma as shouldIgnoreShortcut, ci as shouldPromptForPushPermission, ft as shouldShowBreadcrumb, no as shouldShowNativeWelcome, pt as shouldShowSidebar, jt as shouldToastBackendError, Hi as skipToken, q as slugify, fo as startProductSwitchHandoff, f as statusTokens, ao as stripProductSwitchHandoff, dc as subscribeTourRouteCatalogs, Me as suppressConsole, Ze as toAlphaAppUrl, J as toCamelCase, Qe as toCurrentEstateAppUrl, k as toDataType, ot as toEnvironmentDocsOrigin, A as toNodeCategory, Y as toPascalCase, st as toTrustedDocsOrigin, p as trendTokens, X as truncateText, fi as unregisterPushDevice, Os as unsavedChangesBlocking, To as useActionSheet, ii as useActorProfiles, Ui as useApolloClient, bo as useAppState, Xo as useAsync, Zo as useAsyncImmediate, pc as useAutoStartTour, Po as useBreakpoint, Ko as useConditionalToggle, e as useCopyToClipboard, ws as useCurrentContextSearchParams, jo as useDebounce, Eo as useDesktop, Do as useDesktopUpdateState, Oo as useDesktopWindowState, xo as useDeviceInfo, kr as useEvent, Ar as useEventBus, jr as useEventEmitter, Bo as useExclusiveMenu, Ni as useFeatureFlag, Pi as useFeatureFlagDetails, Fi as useFeatureFlagValue, ji as useFeatureFlags, Zt as useGateway, Qt as useGatewayClient, So as useHaptics, ps as useHasAnimated, tn as useHasAuthToken, ts as useHotkeys, Kr as useInsideMainLandmark, Ls as useIsTourPlaying, Ro as useKeyPress, zo as useKeyboardShortcut, es as useKeyboardShortcuts, Wi as useLazyQuery, Vo as useLocalStorage, fs as useLogger, t as useMediaQuery, da as useMicrofrontendContext, Fo as useMobileBreakpoint, Gi as useMutation, yo as useNativeKeyboard, _o as useNativePlatform, Xr as useNetworkStatus, Io as useOnClickOutside, Lo as useOnClickOutsideWithRef, Ii as useOptionalFeatureFlag, Mi as useOptionalFeatureFlags, Di as usePWA, Yo as usePagination, Us as usePlayTour, Uo as usePrevious, Wo as usePreviousDistinct, Go as usePreviousHistory, $a as useProductDocsOrigin, eo as useProductDocsUrl, ei as usePullToRefresh, gs as usePushDeviceRegistration, Ki as useQuery, Ka as useQuotaDialogOwnership, ys as useQuotaErrorToast, qa as useQuotaUpgradeBridge, hs as useRecordProductVisit, ms as useReferralAttribution, vc as useRegisterTourRouteCatalog, rr as useRegistryHelpers, ti as useReturnFocus, vo as useSafeArea, $t as useSafeGateway, en as useSafeGatewayClient, mc as useSafeToursContext, Ho as useSessionStorage, ir as useShellNavigate, ns as useShortcutHelp, Rs as useStartTour, Co as useStatusBar, zs as useStopTour, qi as useSubscription, Ji as useSuspenseQuery, Mo as useThrottle, qo as useToggle, Jo as useToggleObject, Ns as useTourPlayer, Bs as useTourPlayerContext, yc as useTourRouteCatalog, hc as useTours, gc as useToursContext, ks as useUnsavedChanges, Ss as useUpgradePrompt, po as useVoiceInput, ds as withCommandChords, oo as withProductSwitchHandoff, Ja as withQuotaDialogOwnership, As as withTourProgressStatus };
|
|
161
|
+
export { mo as ASSISTANT_WIDGET_TOGGLE_EVENT, $i as ATHELETEBRIDGE_ANALYTICS_ROUTES, ea as ATHELETEBRIDGE_RYBBIT_EVENTS, yi as AccessDenied, ni as ActorIdentity, fa as AnalyticsConsentBanner, Ri as ApolloClient, zi as ApolloProvider, ki as AppErrorBoundary, tr as AppInitializer, bc as AppShellProvider, ho as AssistantWidget, St as BACKEND_ERROR_EVENT, Ws as BIGCONSOLE_TOUR_ROUTE_CATALOG, Ue as BOTMANOR_PRODUCT_SLUG, No as BREAKPOINTS, Zi as BUILDMYIQ_RYBBIT_EVENTS, Gs as BUILDMYIQ_TOUR_ROUTE_CATALOG, Ks as BUILT_IN_TOUR_ROUTE_CATALOGS, Ht as BYPASS_FETCH_RESPONSE_CACHE_CONTEXT_KEY, oa as BackendAuditSink, aa as BroadcastChannelSink, Qe as CANONICAL_DOCS_HOSTS, p as CHART_SERIES_COUNT, qs as COLLABKIN_TOUR_ROUTE_CATALOG, ss as COMMAND_CHORD_ID_PREFIX, st as COMMON_SHELL_LESS_ROUTES, Ct as CONNECTION_STATUS_EVENT, pa as CONSENT_BANNER_OFFSET_VAR, Ei as ConditionalShell, cr as ConsoleTransport, ya as ContextConversationWidget, m as DATA_TYPES, rn as DEFAULT_PAGE_SIZE, za as DEFAULT_QUOTA_UPGRADE_COPY, ct as DEFAULT_SHELL_CONFIG, te as DESKTOP_UPDATE_UNSUPPORTED, ne as DESKTOP_WINDOW_STATE_DEFAULT, ko as DesktopUpdateToast, ia as DevtoolsSink, Ya as DocsLink, h as EDGE_KINDS, pi as ErrorBoundary, xi as ErrorFallback, Er as EventBusProvider, jc as FE_SHARED_VERSION, ra as FLUIDGRIDS_RYBBIT_EVENTS, Js as FLUIDGRIDS_TOUR_ROUTE_CATALOG, Ai as FeatureFlagProvider, Li as FeatureGate, an as GATEWAYS, Qi as GGNOMAD_RYBBIT_EVENTS, rs as GLOBAL_SHORTCUT_CATEGORIES, Yt as GatewayProvider, Cr as INLINE_ENCODE, Ys as INTELWATCHTOWER_TOUR_ROUTE_CATALOG, Bi as InMemoryCache, Na as KeyboardHelpDialogWrapper, so as LandingGateView, co as LandingOrDashboardRedirect, Si as LoadingFallback, ir as LogLevel, or as LogManager, ar as Logger, Vr as MAIN_CONTENT_ID, Xs as MANUFACTUREDOPS_TOUR_ROUTE_CATALOG, Qo as MODIFIER_KEYS, Hr as MainLandmark, go as Markdown, ua as MicrofrontendContext, Ti as MicrofrontendErrorBoundary, Ao as MicrofrontendProvider, g as NODE_CATEGORIES, _ as NODE_STATES, la as OtelBrowserSink, bs as PLAN_USAGE_SNAPSHOT_EVENT, $o as PLATFORM_TYPES, We as PRODUCTS, Le as PRODUCT_SLUG_EMIT, Re as PRODUCT_SLUG_RENAMES, ro as PRODUCT_SWITCH_HANDOFF_PARAM, Ge as PRODUCT_URLS, Xa as PUBLIC_PRODUCT_DOCS_URL_QUERY, Zr as PULL_TO_REFRESH_THRESHOLD, li as PUSH_DEVICE_ID_STORAGE_KEY, Oi as PWAInstallBanner, Ci as PageLoadingFallback, gi as PermissionButton, bi as PermissionDenied, _i as PermissionGate, vi as PermissionLink, Ur as PublicLayout, mr as QUOTA_EXHAUSTED_CODE, _s as QUOTA_EXHAUSTED_EVENT, Pa as QuotaMeter, Ba as QuotaUpgradeBridge, hr as RESOURCE_CAP_EXCEEDED_CODE, mi as RequireAuth, hi as RequireGuest, ma as RybbitSink, Yi as SEMANTICFED_ANALYTICS_ROUTES, Xi as SEMANTICFED_RYBBIT_EVENTS, Ut as SEND_UNBATCHED_CONTEXT_KEY, Me as SESSION_BRIDGE_PAGE_PATH, Ne as SESSION_BRIDGE_ROUTE_PATH, Vt as SSELink, Ln as SSORedirectSpinner, Un as SSO_DEPOSITED_PARAM, gr as STORAGE_QUOTA_EXCEEDED_CODE, qr as SafeAreaView, wi as SectionLoadingFallback, Wr as SkipToContentLink, na as THECULTUREPOST_RYBBIT_EVENTS, ta as TIMECAMPUS_RYBBIT_EVENTS, _c as TourInitializer, Vs as TourPlayer, Is as TourPlayerProvider, Ps as TourSpotlight, Fs as TourTooltip, Cc as TourTrigger, Hs as TourTriggerButton, fc as ToursProvider, Ts as UNSAVED_CHANGE_LABEL_MAX, _r as UPGRADE_ERROR_CODES, Fa as UPGRADE_PROMPT_EVENT, Ra as UpgradeInlineBanner, Ia as UpgradePromptModal, Zs as VIBECONTROLS_TOUR_ROUTE_CATALOG, ht as WORKSPACE_CONTEXT_CHANGED, gt as WORKSPACE_CONTEXT_MISMATCH_EVENT, _t as WORKSPACE_WRITE_REFUSED_EVENT, vt as WORKSPACE_WRITE_REFUSED_MESSAGE, yt as WorkspaceContextChangedError, tn as WsLink, wc as acknowledgeNativePurchase, n as alertTokens, Cs as appendContextToPath, Nn as assignLocationWithAllowlist, ln as attemptTokenRefresh, Wn as beginSsoNavigation, re as bootDesktopShell, ri as buildActorFallback, $e as buildProductDocsUrl, vr as buildQuotaExhaustedMessage, Gn as buildSsoDepositUrl, et as canonicalizeDocsOrigin, A as capitalizeFirst, j as capitalizeWords, Va as captureQuotaDialogOwners, r as categoryTokens, v as chartSeriesColor, y as chartSeriesIndex, Rn as checkRemoteSLO, zn as checkSLO, Ha as claimQuotaDialog, un as clearAuthSessionStorage, jt as clearGraphqlFetchResponseCache, Bn as clearLocalAuthState, hn as clearSSoCookie, gn as clearShellSsoCookies, Kn as clearSsoDepositState, qn as clearSsoNavigation, lr as clearUserContext, Sc as cn, cs as commandChordShortcuts, sa as compileRybbitRoutePattern, Qr as computePullOffset, $r as computePullProgress, Jn as consumeSsoDepositMarker, t as createApolloClient, Dr as createEventBus, is as createGlobalShortcuts, Wt as createGraphQLClient, fr as createProfileScopedStorage, ec as createTourPageIdResolver, b as dataTypeColor, x as dataTypeTextClasses, ie as desktopCheckForUpdates, ae as desktopDeepLinkToPath, oe as desktopInstallUpdate, se as desktopNotify, ce as desktopOpenExternal, le as desktopSetBadgeCount, ue as desktopSetLocale, de as desktopSetTheme, fe as desktopSetTrayQuickActions, js as detectDeviceType, ba as detectPlatform, wt as dispatchBackendErrorEvent, Ua as dispatchProductQuotaExhausted, vs as dispatchQuotaExhausted, La as dispatchUpgradePrompt, wr as downscaleImage, S as edgeColor, ze as emitProductSlug, Tt as extractBackendError, yr as extractQuotaExhaustedExtensions, br as extractUpgradeErrorExtensions, Za as fetchRegistryDocsUrl, Ke as findProductConfig, Gr as focusSkipTarget, M as formatBytes, N as formatCompactNumber, P as formatCurrency, F as formatCurrencyCompact, I as formatDate, L as formatDateTime, R as formatDuration, xa as formatKeyCombo, z as formatList, B as formatNumber, V as formatOrdinal, H as formatPercentage, U as formatRelativeTime, W as formatTime, i as getAlertTokens, Qs as getBuiltInTourRouteCatalog, Q as getCapacitorPlatform, tt as getCatalogDocsOrigin, a as getCategoryTokens, pe as getDesktopAuthBridgeConfig, me as getDesktopBridge, he as getDesktopGatewayBases, ge as getDesktopGatewayUrls, _e as getDesktopRuntimeConfig, ve as getDesktopUpdateState, ye as getDesktopWindowState, Sa as getDisplayKeysForPlatform, on as getGatewayConfig, sn as getGatewayUrl, Gt as getGlobalClient, as as getGlobalShortcutsByCategory, cn as getGraphQLEndpoint, be as getLegacyDesktopRuntime, $ as getNativeAppIdHeader, Cn as getNativeBridge, to as getNativeEntryRoutes, Tc as getNativeProducts, Ec as getNativePurchases, ui as getOrCreatePushDeviceId, wn as getPlatform, qe as getProductUrl, Je as getProductsWithUrls, pr as getProfileScopedKey, o as getProgressTokens, ai as getPushOptInController, Ms as getResponsiveSelector, Vn as getSSORedirectUrl, _n as getSSoCookie, lt as getShellConfig, Ca as getShortcutLabel, s as getStatusBadgeTokens, c as getStatusTokens, Mt as getStoredAuthToken, Nt as getStoredLocale, Pt as getStoredOrganizationId, Ft as getStoredProjectId, It as getStoredWorkspaceId, Lt as getStoredWorkspaceToken, tc as getTourContextRank, nc as getTourRouteCatalog, rc as getTourRouteCatalogVersion, ic as getTourRouteModules, ac as getTourRoutePages, l as getTrendTokens, Kt as getWorkspaceClient, pt as getWorkspaceTokenPayload, Vi as gql, Rt as graphqlFetch, zt as graphqlFetchPinned, dn as hasAuthGraphQLErrors, io as hasProductSwitchHandoff, oc as hasRegisteredTourRouteCatalog, lo as hasStoredValidSession, qt as initializeAppClients, ur as initializeLogger, xe as installDesktopDeepLinkHandler, Se as installDesktopNavigateHandler, ke as installGatewayFetchRewrite, Dc as installNativeIAP, Et as isAbortError, Pn as isAllowedRedirectUrl, Ye as isAlphaAppShell, Tn as isAndroid, fn as isAuthGraphQLError, pn as isAuthNetworkError, Dt as isBackendErrorDisplay, ee as isCapacitorNative, ls as isChordShortcut, X as isChunkLoadError, Ce as isDesktop, En as isElectron, Dn as isIOS, On as isInstalledApp, wa as isMac, Ta as isMobileDevice, kn as isNative, Oc as isNativeIAPAvailable, xr as isQuotaExhaustedError, ca as isRybbitSkippedRoute, Be as isSameProductSlug, Pe as isSessionBridgePath, vn as isSharedSsoCookieDomain, ut as isShellLessRoute, Yn as isSsoNavigationPending, An as isStandalonePWA, Ea as isTabletDevice, sc as isTourVisibleForContext, Ot as isTransportError, yn as isTrustedSsoOrigin, Sr as isUpgradeError, jn as isWeb, Mn as isWebBrowser, bt as isWorkspaceContextChangedError, mt as isWorkspaceTokenValidForContext, Z as lazyWithRetry, Ve as legacyProductSlug, $s as listBuiltInTourRouteCatalogProductIds, Es as listUnsavedChanges, sr as logManager, kt as markConnectionHealthy, Xn as markSsoDepositDone, Zn as markSsoDepositPending, Da as matchesKeyCombo, os as mergeShortcuts, Qn as mintSsoSessionTokens, Mr as nativeActionSheet, Nr as nativeConfirm, Pr as nativeCopyText, Fr as nativeImpact, Ir as nativeNotify, Lr as nativeOpenUrl, Rr as nativeSelection, zr as nativeShare, Br as nativeToast, C as nodeCategoryClasses, w as nodeCategoryColor, T as nodeCategorySubtleColor, E as nodeStateColor, D as nodeStateRingClasses, us as normalizeChord, nt as normalizeDocsPath, Oa as normalizeKey, ka as normalizePlatformCombo, He as normalizeProductSlug, cc as normalizeTourPath, we as onDesktopUpdateState, Te as onDesktopWindowState, Fn as openUrlInNewTabWithAllowlist, Aa as parseKeyCombo, G as pluralize, nn as prepareWorkspaceRequest, u as progressTokens, ha as publishConsentBannerOffset, xs as publishPlanUsageSnapshot, kc as purchaseNativeProduct, Wa as quotaEventKind, ga as readAnalyticsConsent, _a as readAnalyticsConsentChoice, xt as readContextInputWorkspaceId, Jr as readInitialNetworkStatus, Qa as readRegistryDocsUrl, bn as readShellSsoCookie, $n as readSsoDepositState, oi as recordPushPermissionPromptDismissed, mn as redirectToLogin, Hn as redirectToSSO, Yr as reduceNetworkStatus, Ee as registerDesktopNavigator, di as registerPushDevice, si as registerPushOptInController, lc as registerTourRouteCatalog, Ds as registerUnsavedChange, In as replaceLocationWithAllowlist, Jt as resetAppClients, wo as resolveActionSheetOutcome, xc as resolveAppShellObservabilityConfig, Fe as resolveAuthBridgeConfig, rt as resolveDocsEnvironment, De as resolveExternalGatewayUrls, Ae as resolveGatewayBases, Bt as resolveGatewayUrl, Oe as resolveGatewayUrls, uo as resolveLandingGate, it as resolveProductDocsOrigin, Ga as resolveQuotaUpgradeCopy, Ie as resolveShellAuthBridgeConfig, uc as resolveTourTargetPath, Ac as restoreNativePurchases, Tr as selectInlineBase64, va as setAnalyticsConsent, xn as setSSoCookie, Sn as setShellSsoCookies, dr as setUserContext, er as shouldAttemptSsoDeposit, ja as shouldEnableKeyboardShortcuts, Ma as shouldIgnoreShortcut, ci as shouldPromptForPushPermission, dt as shouldShowBreadcrumb, no as shouldShowNativeWelcome, ft as shouldShowSidebar, At as shouldToastBackendError, Hi as skipToken, K as slugify, fo as startProductSwitchHandoff, d as statusTokens, ao as stripProductSwitchHandoff, dc as subscribeTourRouteCatalogs, je as suppressConsole, Xe as toAlphaAppUrl, q as toCamelCase, Ze as toCurrentEstateAppUrl, O as toDataType, at as toEnvironmentDocsOrigin, k as toNodeCategory, J as toPascalCase, ot as toTrustedDocsOrigin, f as trendTokens, Y as truncateText, fi as unregisterPushDevice, Os as unsavedChangesBlocking, To as useActionSheet, ii as useActorProfiles, Ui as useApolloClient, bo as useAppState, Xo as useAsync, Zo as useAsyncImmediate, pc as useAutoStartTour, Po as useBreakpoint, Ko as useConditionalToggle, e as useCopyToClipboard, ws as useCurrentContextSearchParams, jo as useDebounce, Eo as useDesktop, Do as useDesktopUpdateState, Oo as useDesktopWindowState, xo as useDeviceInfo, Or as useEvent, kr as useEventBus, Ar as useEventEmitter, Bo as useExclusiveMenu, Ni as useFeatureFlag, Pi as useFeatureFlagDetails, Fi as useFeatureFlagValue, ji as useFeatureFlags, Xt as useGateway, Zt as useGatewayClient, So as useHaptics, ps as useHasAnimated, en as useHasAuthToken, ts as useHotkeys, Kr as useInsideMainLandmark, Ls as useIsTourPlaying, Ro as useKeyPress, zo as useKeyboardShortcut, es as useKeyboardShortcuts, Wi as useLazyQuery, Vo as useLocalStorage, fs as useLogger, jr as useMediaQuery, da as useMicrofrontendContext, Fo as useMobileBreakpoint, Gi as useMutation, yo as useNativeKeyboard, _o as useNativePlatform, Xr as useNetworkStatus, Io as useOnClickOutside, Lo as useOnClickOutsideWithRef, Ii as useOptionalFeatureFlag, Mi as useOptionalFeatureFlags, Di as usePWA, Yo as usePagination, Us as usePlayTour, Uo as usePrevious, Wo as usePreviousDistinct, Go as usePreviousHistory, $a as useProductDocsOrigin, eo as useProductDocsUrl, ei as usePullToRefresh, gs as usePushDeviceRegistration, Ki as useQuery, Ka as useQuotaDialogOwnership, ys as useQuotaErrorToast, qa as useQuotaUpgradeBridge, hs as useRecordProductVisit, ms as useReferralAttribution, vc as useRegisterTourRouteCatalog, nr as useRegistryHelpers, ti as useReturnFocus, vo as useSafeArea, Qt as useSafeGateway, $t as useSafeGatewayClient, mc as useSafeToursContext, Ho as useSessionStorage, rr as useShellNavigate, ns as useShortcutHelp, Rs as useStartTour, Co as useStatusBar, zs as useStopTour, qi as useSubscription, Ji as useSuspenseQuery, Mo as useThrottle, qo as useToggle, Jo as useToggleObject, Ns as useTourPlayer, Bs as useTourPlayerContext, yc as useTourRouteCatalog, hc as useTours, gc as useToursContext, ks as useUnsavedChanges, Ss as useUpgradePrompt, po as useVoiceInput, ds as withCommandChords, oo as withProductSwitchHandoff, Ja as withQuotaDialogOwnership, As as withTourProgressStatus };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface AccessGateProps {
|
|
3
|
+
/** The plain sentence, already translated and with the item named: "You need access to Teams". */
|
|
4
|
+
message: React.ReactNode;
|
|
5
|
+
/** Who can grant access and how to reach them. Already translated. */
|
|
6
|
+
granterHint?: React.ReactNode;
|
|
7
|
+
/**
|
|
8
|
+
* Shows a "Request access" button that calls this. The AccessGate only draws the button;
|
|
9
|
+
* what the request does (the flow and the admin inbox) belongs to the caller.
|
|
10
|
+
*/
|
|
11
|
+
onRequestAccess?: () => void;
|
|
12
|
+
/** Overrides the shared "Request access" label. */
|
|
13
|
+
requestAccessLabel?: React.ReactNode;
|
|
14
|
+
className?: string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* "You need access" (BOFF-11841): the screen people see instead of a blank
|
|
18
|
+
* Access Denied when their role cannot open a page. It says what is needed,
|
|
19
|
+
* names who can grant it, and offers to ask. Render it in place of the gated
|
|
20
|
+
* content; it is an empty state, not a greyed-out copy of the real page.
|
|
21
|
+
*/
|
|
22
|
+
export declare function AccessGate({ message, granterHint, onRequestAccess, requestAccessLabel, className, }: AccessGateProps): React.JSX.Element;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { cn as e } from "../lib/utils.js";
|
|
2
|
+
import { useShellLabel as t } from "../shared/providers/shell/useShellLabel.js";
|
|
3
|
+
import { Button as n } from "./button.js";
|
|
4
|
+
import { EmptyState as r } from "./empty-state.js";
|
|
5
|
+
import "react";
|
|
6
|
+
import { LockIcon as i } from "lucide-react";
|
|
7
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
8
|
+
// src/ui/access-gate.tsx
|
|
9
|
+
function o({ message: o, granterHint: s, onRequestAccess: c, requestAccessLabel: l, className: u }) {
|
|
10
|
+
let d = t();
|
|
11
|
+
return /* @__PURE__ */ a(r, {
|
|
12
|
+
icon: /* @__PURE__ */ a(i, {
|
|
13
|
+
className: "size-6 text-action-primary-bg",
|
|
14
|
+
"aria-hidden": "true"
|
|
15
|
+
}),
|
|
16
|
+
title: o,
|
|
17
|
+
description: s,
|
|
18
|
+
action: c ? /* @__PURE__ */ a(n, {
|
|
19
|
+
type: "button",
|
|
20
|
+
onClick: c,
|
|
21
|
+
children: l ?? d("access.requestAccess", "Request access")
|
|
22
|
+
}) : void 0,
|
|
23
|
+
className: e(u)
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
export { o as AccessGate };
|
package/dist/ui/badge.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import { HTMLAttributes } from 'react';
|
|
3
3
|
declare const badgeVariants: (props?: ({
|
|
4
|
-
variant?: "default" | "
|
|
4
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | "success" | "warning" | "info" | null | undefined;
|
|
5
5
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
6
|
export interface BadgeProps extends HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
|
|
7
7
|
}
|
package/dist/ui/button.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
declare const buttonVariants: (props?: ({
|
|
4
|
-
variant?: "link" | "default" | "destructive" | "
|
|
4
|
+
variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
5
5
|
size?: "icon" | "default" | "sm" | "lg" | "icon-sm" | "icon-lg" | null | undefined;
|
|
6
6
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
7
|
export type ButtonProps = React.ComponentProps<'button'> & VariantProps<typeof buttonVariants> & {
|
package/dist/ui/index.d.ts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
export { Accordion, AccordionItem, AccordionTrigger, AccordionContent } from './accordion';
|
|
2
2
|
export { EntityIdModal, useEntityIdModal, type EntityIdInfo, type EntityIdModalControl, } from './entity-id-modal';
|
|
3
3
|
export { OptionalFields, type OptionalFieldsProps } from './optional-fields';
|
|
4
|
+
export { useRememberedOpen } from './use-remembered-open';
|
|
5
|
+
export { ShowTechnicalDetails, type ShowTechnicalDetailsProps } from './show-technical-details';
|
|
6
|
+
export { PageTabs, matchActiveTab, splitTabs, type PageTabItem, type PageTabsProps, } from './page-tabs';
|
|
7
|
+
export { AccessGate, type AccessGateProps } from './access-gate';
|
|
4
8
|
export { BottomSheet, BottomSheetClose, BottomSheetContent, BottomSheetDescription, BottomSheetFooter, BottomSheetHeader, BottomSheetTitle, BottomSheetTrigger, type BottomSheetContentProps, type BottomSheetProps, } from './bottom-sheet';
|
|
5
9
|
export { ResponsiveDialog, ResponsiveDialogClose, ResponsiveDialogContent, ResponsiveDialogDescription, ResponsiveDialogFooter, ResponsiveDialogHeader, ResponsiveDialogTitle, ResponsiveDialogTrigger, type ResponsiveDialogContentProps, } from './responsive-dialog';
|
|
6
10
|
export { ResponsiveTable, type ResponsiveTableColumn, type ResponsiveTableColumnPriority, type ResponsiveTableProps, } from './responsive-table';
|
|
@@ -7,9 +7,21 @@ export interface OptionalFieldsProps {
|
|
|
7
7
|
className?: string;
|
|
8
8
|
contentClassName?: string;
|
|
9
9
|
children: React.ReactNode;
|
|
10
|
+
/**
|
|
11
|
+
* Opt in to "More options" (BOFF-11841). Names this one form on this one page
|
|
12
|
+
* (`<page>.<form>`); open/closed is then remembered per profile, the section
|
|
13
|
+
* is closed on a first visit, and the fields stay mounted while it reads
|
|
14
|
+
* closed. Leave it out to keep the behaviour apps have today.
|
|
15
|
+
*/
|
|
16
|
+
storageKey?: string;
|
|
17
|
+
/** Trigger text with `storageKey`. Defaults to the shared "More options" label. */
|
|
18
|
+
label?: React.ReactNode;
|
|
10
19
|
}
|
|
11
20
|
/**
|
|
12
21
|
* Canonical progressive-disclosure container for *optional* / *advanced* fields.
|
|
13
22
|
* Children stay mounted at all times (only display collapses) — form state preserved.
|
|
23
|
+
*
|
|
24
|
+
* With `storageKey` it is the Navigation v2 "More options" fold; without it, the
|
|
25
|
+
* component is unchanged for every other app.
|
|
14
26
|
*/
|
|
15
|
-
export declare function OptionalFields(
|
|
27
|
+
export declare function OptionalFields(props: OptionalFieldsProps): React.JSX.Element;
|