@flamingo-stack/openframe-frontend-core 0.0.732 → 0.0.734
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/{chunk-YGKVHSNQ.cjs → chunk-2OHBH6PS.cjs} +42 -42
- package/dist/{chunk-MEDDKM3A.cjs → chunk-3HPB4H4C.cjs} +2 -2
- package/dist/{chunk-BS4EZZCN.cjs → chunk-3NANWZO3.cjs} +15 -15
- package/dist/{chunk-5HMGK3N6.cjs → chunk-4Q34V7MD.cjs} +20 -20
- package/dist/{chunk-22ZK7BA3.cjs → chunk-4V672TEI.cjs} +1127 -1072
- package/dist/{chunk-OI7VCXYU.cjs → chunk-5DDFSGCE.cjs} +40 -40
- package/dist/{chunk-CUF3IYIB.cjs → chunk-5OGT7H2S.cjs} +28 -28
- package/dist/{chunk-C5NERNE6.cjs → chunk-73ZW3265.cjs} +93 -93
- package/dist/{chunk-GID62YEN.cjs → chunk-AAFW4STC.cjs} +3 -3
- package/dist/{chunk-MVZ6XFPK.cjs → chunk-AOTOOGNX.cjs} +8 -8
- package/dist/{chunk-SJRR745G.cjs → chunk-BP6R5WDW.cjs} +44 -44
- package/dist/{chunk-OJ3XU3YZ.cjs → chunk-CMUEFHM3.cjs} +4 -4
- package/dist/{chunk-3BLBWZ6A.cjs → chunk-D34BLEIR.cjs} +7 -7
- package/dist/{chunk-XOQ2UUVS.cjs → chunk-DHIISS4W.cjs} +50 -40
- package/dist/{chunk-RIXGLS5Y.cjs → chunk-DUVOQHQI.cjs} +4 -4
- package/dist/{chunk-E3N24573.cjs → chunk-DUXLZPMJ.cjs} +9 -9
- package/dist/{chunk-6KDGIOLP.cjs → chunk-EMBH2EJO.cjs} +89 -89
- package/dist/{chunk-N466AJGN.cjs → chunk-FA5SMA7L.cjs} +17 -17
- package/dist/{chunk-AEVGCB3Y.cjs → chunk-FCGLSWKR.cjs} +4 -4
- package/dist/{chunk-MANNIJ42.cjs → chunk-FICJS5OA.cjs} +6 -0
- package/dist/{chunk-KLXHCNDC.cjs → chunk-FTTLBMHU.cjs} +3 -3
- package/dist/{chunk-7DUXR4HL.cjs → chunk-GVTDVS5U.cjs} +3 -3
- package/dist/{chunk-ZWMPAFGB.cjs → chunk-HAWQA5FI.cjs} +236 -236
- package/dist/{chunk-BDTX2OEE.cjs → chunk-JRC3KXKV.cjs} +32 -32
- package/dist/{chunk-PRWBVIWW.cjs → chunk-KSXZABGH.cjs} +59 -59
- package/dist/{chunk-G37LT2ID.cjs → chunk-L4ZNR5V7.cjs} +38 -38
- package/dist/{chunk-I46MQ4R5.cjs → chunk-L7WJBJU7.cjs} +73 -73
- package/dist/{chunk-NYY25425.cjs → chunk-MYBTNOS6.cjs} +2 -2
- package/dist/{chunk-HELVKMRG.cjs → chunk-NTJE6SM6.cjs} +2 -2
- package/dist/{chunk-5HSMTSHU.cjs → chunk-OV7QQHLG.cjs} +24 -24
- package/dist/{chunk-6HHUU56Y.cjs → chunk-R65UD6BH.cjs} +14 -14
- package/dist/{chunk-CC3LINHF.cjs → chunk-SA7LDEVJ.cjs} +3 -3
- package/dist/{chunk-TLDCSTTQ.cjs → chunk-TLQQP2EL.cjs} +10 -10
- package/dist/{chunk-QMTC3BK3.cjs → chunk-ZJNYWNCB.cjs} +21 -21
- package/dist/{chunk-HH4BMYDX.cjs → chunk-ZRYKDN2J.cjs} +19 -19
- package/dist/{cloud-tenants-ILRE74JY.cjs → cloud-tenants-HU7YZD33.cjs} +21 -21
- package/dist/components/case-studies/index.cjs +34 -34
- package/dist/components/chat/embeddable-chat.d.ts +16 -0
- package/dist/components/chat/embeddable-chat.d.ts.map +1 -1
- package/dist/components/chat/embeddable-chat.js +5 -2
- package/dist/components/chat/index.cjs +15 -15
- package/dist/components/chat/utils/icon-library.d.ts.map +1 -1
- package/dist/components/chat/utils/icon-library.js +6 -0
- package/dist/components/contact/index.cjs +22 -22
- package/dist/components/docs/index.cjs +25 -25
- package/dist/components/embeds/index.cjs +22 -22
- package/dist/components/faq/index.cjs +22 -22
- package/dist/components/features/index.cjs +21 -21
- package/dist/components/help-center-pages/index.cjs +137 -137
- package/dist/components/index.cjs +76 -76
- package/dist/components/layout/page-heading.d.ts +9 -1
- package/dist/components/layout/page-heading.d.ts.map +1 -1
- package/dist/components/layout/page-heading.js +15 -5
- package/dist/components/meeting-scheduler/index.cjs +63 -63
- package/dist/components/navigation/index.cjs +24 -24
- package/dist/components/onboarding-guides/index.cjs +24 -24
- package/dist/components/product-demo/index.cjs +8 -8
- package/dist/components/related-content/index.cjs +9 -9
- package/dist/components/tickets/index.cjs +25 -25
- package/dist/components/ui/index.cjs +21 -21
- package/dist/components/ui/searchable-select.d.ts +29 -3
- package/dist/components/ui/searchable-select.d.ts.map +1 -1
- package/dist/components/ui/searchable-select.js +101 -45
- package/dist/{devices-A6SFNGE4.cjs → devices-CKLN7BHY.cjs} +22 -22
- package/dist/{embeddable-chat-BKPYNOIM.cjs → embeddable-chat-FTAX4SVV.cjs} +95 -92
- package/dist/hooks/index.cjs +8 -8
- package/dist/index.cjs +27 -27
- package/dist/{knowledge-5ZCVKUYV.cjs → knowledge-NRLHSCC5.cjs} +22 -22
- package/dist/{logs-CL4OJASB.cjs → logs-BR6SLYAF.cjs} +29 -29
- package/dist/{policies-7D44ZVS5.cjs → policies-MQRXBYG2.cjs} +25 -25
- package/dist/{remote-session-QB3CIZRM.cjs → remote-session-Z4YZFG5E.cjs} +9 -9
- package/dist/{software-update-AX6TZL26.cjs → software-update-RUGIQP7N.cjs} +25 -25
- package/dist/{tickets-board-7FAV2YWF.cjs → tickets-board-JOSYLOS7.cjs} +12 -12
- package/package.json +1 -1
- package/src/components/chat/embeddable-chat.tsx +29 -2
- package/src/components/chat/utils/icon-library.tsx +7 -0
- package/src/components/layout/page-heading.tsx +37 -7
- package/src/components/ui/searchable-select.tsx +124 -32
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk4V672TEIcjs = require('./chunk-4V672TEI.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkL4ZNR5V7cjs = require('./chunk-L4ZNR5V7.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkBP6R5WDWcjs = require('./chunk-BP6R5WDW.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkEMBH2EJOcjs = require('./chunk-EMBH2EJO.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var _chunkHAWQA5FIcjs = require('./chunk-HAWQA5FI.cjs');
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _chunkSA7LDEVJcjs = require('./chunk-SA7LDEVJ.cjs');
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
var _chunk7DNL734Scjs = require('./chunk-7DNL734S.cjs');
|
|
@@ -34,10 +34,10 @@ var _chunkEWPR7662cjs = require('./chunk-EWPR7662.cjs');
|
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
|
|
37
|
-
var
|
|
37
|
+
var _chunkTLQQP2ELcjs = require('./chunk-TLQQP2EL.cjs');
|
|
38
38
|
|
|
39
39
|
|
|
40
|
-
var
|
|
40
|
+
var _chunkDHIISS4Wcjs = require('./chunk-DHIISS4W.cjs');
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
var _chunkPX7FY655cjs = require('./chunk-PX7FY655.cjs');
|
|
@@ -69,7 +69,7 @@ function FaqAccordion({ items, defaultOpenIds = [] }) {
|
|
|
69
69
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
70
70
|
"div",
|
|
71
71
|
{
|
|
72
|
-
id:
|
|
72
|
+
id: _chunkHAWQA5FIcjs.faqItemAnchor.call(void 0, item.id),
|
|
73
73
|
className: "scroll-mt-24 transition-colors hover:bg-ods-bg-hover",
|
|
74
74
|
children: [
|
|
75
75
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -122,14 +122,14 @@ function FaqAccordion({ items, defaultOpenIds = [] }) {
|
|
|
122
122
|
|
|
123
123
|
var PICK_ROOT_MARGIN = "600px";
|
|
124
124
|
function faqAskCardShown(assistant) {
|
|
125
|
-
return
|
|
125
|
+
return _chunkEMBH2EJOcjs.assistantAvailable.call(void 0, assistant) && !!assistant.name;
|
|
126
126
|
}
|
|
127
127
|
function FaqAskCard({ topic, exclude, count, title, description, onOpen }) {
|
|
128
|
-
const { ref, inView } =
|
|
128
|
+
const { ref, inView } = _chunkSA7LDEVJcjs.useInView.call(void 0, { rootMargin: PICK_ROOT_MARGIN });
|
|
129
129
|
const [reached, setReached] = _react.useState.call(void 0, false);
|
|
130
130
|
if (inView && !reached) setReached(true);
|
|
131
131
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
132
|
-
|
|
132
|
+
_chunkEMBH2EJOcjs.AssistantAskPrompts,
|
|
133
133
|
{
|
|
134
134
|
variant: "card",
|
|
135
135
|
topic,
|
|
@@ -173,7 +173,7 @@ function buildFaqJsonLdFromFaqs(faqs, opts = {}) {
|
|
|
173
173
|
|
|
174
174
|
var DEFAULT_HEADING_TEXT = "Frequently Asked Questions";
|
|
175
175
|
function buildFaqsUrl(entityType, entityId, minResults, apiBaseUrl = "") {
|
|
176
|
-
return
|
|
176
|
+
return _chunkTLQQP2ELcjs.buildSuggestionUrl.call(void 0, "/api/faqs", { apiBaseUrl, entityType, entityId, count: minResults });
|
|
177
177
|
}
|
|
178
178
|
function groupFaqsBySection(faqs) {
|
|
179
179
|
const byName = /* @__PURE__ */ new Map();
|
|
@@ -188,7 +188,7 @@ function groupFaqsBySection(faqs) {
|
|
|
188
188
|
}
|
|
189
189
|
let group = byName.get(name);
|
|
190
190
|
if (!group) {
|
|
191
|
-
group = { section: name, slug:
|
|
191
|
+
group = { section: name, slug: _chunkHAWQA5FIcjs.faqSectionSlug.call(void 0, name), items: [] };
|
|
192
192
|
byName.set(name, group);
|
|
193
193
|
}
|
|
194
194
|
group.items.push(item);
|
|
@@ -233,7 +233,7 @@ function GroupedFaqList({
|
|
|
233
233
|
}
|
|
234
234
|
if (bestId) setActiveSlug(bestId);
|
|
235
235
|
},
|
|
236
|
-
{ rootMargin: `-${
|
|
236
|
+
{ rootMargin: `-${_chunkSA7LDEVJcjs.STICKY_HEADER_OFFSET_PX}px 0px -55% 0px`, threshold: 0 }
|
|
237
237
|
);
|
|
238
238
|
for (const group of navGroupsRef.current) {
|
|
239
239
|
const el = group.slug ? document.getElementById(group.slug) : null;
|
|
@@ -243,7 +243,7 @@ function GroupedFaqList({
|
|
|
243
243
|
}, [slugKey]);
|
|
244
244
|
const [hashTarget, setHashTarget] = _react.useState.call(void 0, null);
|
|
245
245
|
_react.useEffect.call(void 0, () => {
|
|
246
|
-
const refresh = () => setHashTarget(
|
|
246
|
+
const refresh = () => setHashTarget(_chunkHAWQA5FIcjs.parseFaqHash.call(void 0, window.location.hash));
|
|
247
247
|
refresh();
|
|
248
248
|
window.addEventListener("hashchange", refresh);
|
|
249
249
|
return () => window.removeEventListener("hashchange", refresh);
|
|
@@ -260,7 +260,7 @@ function GroupedFaqList({
|
|
|
260
260
|
}, [groups, hashTarget]);
|
|
261
261
|
const accordionKeySuffix = _optionalChain([hashTarget, 'optionalAccess', _8 => _8.kind]) === "item" ? `item:${hashTarget.rawId}` : "default";
|
|
262
262
|
const scrollDep = `${groups.length}|` + (_optionalChain([hashTarget, 'optionalAccess', _9 => _9.kind]) === "item" ? `item:${hashTarget.rawId}` : _optionalChain([hashTarget, 'optionalAccess', _10 => _10.kind]) === "section" ? `section:${hashTarget.slug}` : "none");
|
|
263
|
-
|
|
263
|
+
_chunkBP6R5WDWcjs.useScrollToHash.call(void 0, scrollDep, { headerOffset: _chunkSA7LDEVJcjs.STICKY_HEADER_OFFSET_PX });
|
|
264
264
|
const [pillSyncedHash, setPillSyncedHash] = _react.useState.call(void 0, hashTarget);
|
|
265
265
|
if (pillSyncedHash !== hashTarget) {
|
|
266
266
|
setPillSyncedHash(hashTarget);
|
|
@@ -268,8 +268,8 @@ function GroupedFaqList({
|
|
|
268
268
|
}
|
|
269
269
|
const handleJump = _react.useCallback.call(void 0, (e, slug) => {
|
|
270
270
|
e.preventDefault();
|
|
271
|
-
|
|
272
|
-
headerOffset:
|
|
271
|
+
_chunkSA7LDEVJcjs.navigateSamePageHash.call(void 0, "#" + slug, {
|
|
272
|
+
headerOffset: _chunkSA7LDEVJcjs.STICKY_HEADER_OFFSET_PX,
|
|
273
273
|
history: "replace"
|
|
274
274
|
});
|
|
275
275
|
}, []);
|
|
@@ -293,7 +293,7 @@ function GroupedFaqList({
|
|
|
293
293
|
const questions = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-10", children: groups.map((group) => {
|
|
294
294
|
const key = groupKey(group);
|
|
295
295
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "section", { id: _nullishCoalesce(group.slug, () => ( void 0)), className: "scroll-mt-24 space-y-4", children: [
|
|
296
|
-
group.section && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CategoryHeading, { className:
|
|
296
|
+
group.section && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CategoryHeading, { className: _chunkDHIISS4Wcjs.SECTION_HEADING_CLASS, children: group.section }),
|
|
297
297
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
298
298
|
FaqAccordion,
|
|
299
299
|
{
|
|
@@ -349,10 +349,10 @@ function FaqSection({
|
|
|
349
349
|
() => initialFaqs ? { faqs: initialFaqs } : void 0,
|
|
350
350
|
[initialFaqs]
|
|
351
351
|
);
|
|
352
|
-
const { data, isLoading, error } =
|
|
352
|
+
const { data, isLoading, error } = _chunkTLQQP2ELcjs.useSelfFetch.call(void 0, url, { initialData });
|
|
353
353
|
const faqs = _react.useMemo.call(void 0, () => _nullishCoalesce(_optionalChain([data, 'optionalAccess', _15 => _15.faqs]), () => ( [])), [_optionalChain([data, 'optionalAccess', _16 => _16.faqs])]);
|
|
354
354
|
const groups = _react.useMemo.call(void 0, () => faqs.length > 0 ? groupFaqsBySection(faqs) : [], [faqs]);
|
|
355
|
-
const headingNode = heading === void 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className:
|
|
355
|
+
const headingNode = heading === void 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: _chunkDHIISS4Wcjs.SECTION_HEADING_CLASS, children: DEFAULT_HEADING_TEXT }) : heading;
|
|
356
356
|
if (error) return null;
|
|
357
357
|
if (!isLoading && faqs.length === 0) return null;
|
|
358
358
|
if (isLoading && faqs.length === 0) {
|
|
@@ -403,7 +403,7 @@ function FaqDocumentPage({
|
|
|
403
403
|
label: _nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _17 => _17.label]), () => ( "Back to home")),
|
|
404
404
|
onClick: () => router.push(_nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _18 => _18.href]), () => ( "/")))
|
|
405
405
|
};
|
|
406
|
-
const inner = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
406
|
+
const inner = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkL4ZNR5V7cjs.PageLayout, { title, subtitle, backButton: backCfg, titleSize: "h1", titleWrap: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
407
407
|
FaqSection,
|
|
408
408
|
{
|
|
409
409
|
initialFaqs,
|
|
@@ -417,7 +417,7 @@ function FaqDocumentPage({
|
|
|
417
417
|
ask
|
|
418
418
|
}
|
|
419
419
|
) });
|
|
420
|
-
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
420
|
+
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4V672TEIcjs.PageShell, { children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: inner });
|
|
421
421
|
}
|
|
422
422
|
|
|
423
423
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk4V672TEIcjs = require('./chunk-4V672TEI.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -10,16 +10,16 @@ var _chunk22ZK7BA3cjs = require('./chunk-22ZK7BA3.cjs');
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkHAWQA5FIcjs = require('./chunk-HAWQA5FI.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkSA7LDEVJcjs = require('./chunk-SA7LDEVJ.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
var _chunk7DNL734Scjs = require('./chunk-7DNL734S.cjs');
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _chunkDHIISS4Wcjs = require('./chunk-DHIISS4W.cjs');
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
var _chunkPX7FY655cjs = require('./chunk-PX7FY655.cjs');
|
|
@@ -40,7 +40,7 @@ var _jsxruntime = require('react/jsx-runtime');
|
|
|
40
40
|
function DocSearchResultRow({ result, isHighlighted }) {
|
|
41
41
|
const docType = _optionalChain([result, 'access', _ => _.metadata, 'optionalAccess', _2 => _2.documentType]) || void 0;
|
|
42
42
|
const sourceRepo = _optionalChain([result, 'access', _3 => _3.metadata, 'optionalAccess', _4 => _4.sourceRepo]) || void 0;
|
|
43
|
-
const { Icon: SourceIcon, label: iconLabel } =
|
|
43
|
+
const { Icon: SourceIcon, label: iconLabel } = _chunkHAWQA5FIcjs.resolveSourceIcon.call(void 0, {
|
|
44
44
|
sourceRepo,
|
|
45
45
|
documentType: docType
|
|
46
46
|
});
|
|
@@ -70,7 +70,7 @@ function DocSearchBar({
|
|
|
70
70
|
renderResult
|
|
71
71
|
}) {
|
|
72
72
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
73
|
-
|
|
73
|
+
_chunk4V672TEIcjs.SearchInput,
|
|
74
74
|
{
|
|
75
75
|
placeholder,
|
|
76
76
|
value: query,
|
|
@@ -120,7 +120,7 @@ function mapDocSearchResults(docs) {
|
|
|
120
120
|
results.push({
|
|
121
121
|
id: `group-${entry.repo}`,
|
|
122
122
|
// Same table label and count as the chat's grouped chip: one owner each.
|
|
123
|
-
title: `${
|
|
123
|
+
title: `${_chunkHAWQA5FIcjs.getSourceLabel.call(void 0, entry.repo)} ${_chunkHAWQA5FIcjs.recordCountLabel.call(void 0, rows.length)}`,
|
|
124
124
|
path: rows[0].path,
|
|
125
125
|
type: "file",
|
|
126
126
|
metadata: {
|
|
@@ -183,7 +183,7 @@ function resolveSearchResultAction(result, source, runtimeMode, composeContentUr
|
|
|
183
183
|
if (composed && !isAbsoluteHref(href)) {
|
|
184
184
|
return { kind: "navigate-same-tab", href };
|
|
185
185
|
}
|
|
186
|
-
const isNewTab =
|
|
186
|
+
const isNewTab = _chunkDHIISS4Wcjs.decideNewTab.call(void 0, {
|
|
187
187
|
href,
|
|
188
188
|
targetPlatform: composed ? composed.targetPlatform : targetPlatform,
|
|
189
189
|
surface: "useUnifiedNav",
|
|
@@ -255,7 +255,7 @@ function useDocSearch(config) {
|
|
|
255
255
|
const [query, setQuery] = _react.useState.call(void 0, "");
|
|
256
256
|
const [results, setResults] = _react.useState.call(void 0, NO_RESULTS);
|
|
257
257
|
const [isFetching, setIsFetching] = _react.useState.call(void 0, false);
|
|
258
|
-
const debouncedQuery =
|
|
258
|
+
const debouncedQuery = _chunkSA7LDEVJcjs.useDebounce.call(void 0, query, 300);
|
|
259
259
|
const searchable = debouncedQuery.trim().length >= 2;
|
|
260
260
|
const [wasSearchable, setWasSearchable] = _react.useState.call(void 0, searchable);
|
|
261
261
|
if (wasSearchable !== searchable) {
|
|
@@ -312,31 +312,31 @@ function useDocSearch(config) {
|
|
|
312
312
|
case "navigate-same-tab": {
|
|
313
313
|
if (wantsNewTab) {
|
|
314
314
|
setKeepOpen(true);
|
|
315
|
-
window.open(action.href, "_blank",
|
|
315
|
+
window.open(action.href, "_blank", _chunkHAWQA5FIcjs.NEW_TAB_FEATURES);
|
|
316
316
|
return;
|
|
317
317
|
}
|
|
318
318
|
setKeepOpen(false);
|
|
319
319
|
const path = baseRoute && action.href.startsWith(`${baseRoute}/`) ? action.href.slice(baseRoute.length + 1) : null;
|
|
320
320
|
if (path && _optionalChain([onInPageSwap, 'optionalCall', _16 => _16(path)])) return;
|
|
321
|
-
router.push(
|
|
321
|
+
router.push(_chunkHAWQA5FIcjs.stripSameOriginToPath.call(void 0, action.href));
|
|
322
322
|
return;
|
|
323
323
|
}
|
|
324
324
|
case "navigate-new-tab":
|
|
325
325
|
setKeepOpen(true);
|
|
326
326
|
if (_optionalChain([runtime, 'optionalAccess', _17 => _17.navigation, 'access', _18 => _18.mode]) === "embed") {
|
|
327
327
|
const targetPlatform = _nullishCoalesce(_optionalChain([result, 'access', _19 => _19.metadata, 'optionalAccess', _20 => _20.targetPlatform]), () => ( null));
|
|
328
|
-
|
|
328
|
+
_chunkHAWQA5FIcjs.resolveExternalNavigation.call(void 0, {
|
|
329
329
|
href: action.href,
|
|
330
330
|
targetPlatform,
|
|
331
331
|
runtime
|
|
332
332
|
}).open();
|
|
333
333
|
return;
|
|
334
334
|
}
|
|
335
|
-
window.open(action.href, "_blank",
|
|
335
|
+
window.open(action.href, "_blank", _chunkHAWQA5FIcjs.NEW_TAB_FEATURES);
|
|
336
336
|
return;
|
|
337
337
|
case "ask-ai":
|
|
338
338
|
setKeepOpen(false);
|
|
339
|
-
window.dispatchEvent(new CustomEvent(
|
|
339
|
+
window.dispatchEvent(new CustomEvent(_chunkHAWQA5FIcjs.ASK_AI_OPEN_WITH_REF_EVENT, { detail: action.detail }));
|
|
340
340
|
return;
|
|
341
341
|
case "route":
|
|
342
342
|
setKeepOpen(false);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkFICJS5OAcjs = require('./chunk-FICJS5OA.cjs');
|
|
5
5
|
|
|
6
6
|
// src/hooks/ui/use-debounce.ts
|
|
7
7
|
var _react = require('react');
|
|
@@ -131,10 +131,10 @@ function useSuppressCloneFocus(active) {
|
|
|
131
131
|
// src/hooks/ui/use-prefers-reduced-motion.ts
|
|
132
132
|
var PREFERS_REDUCED_MOTION_QUERY = "(prefers-reduced-motion: reduce)";
|
|
133
133
|
function usePrefersReducedMotion() {
|
|
134
|
-
return
|
|
134
|
+
return _chunkFICJS5OAcjs.useMediaQuery.call(void 0, PREFERS_REDUCED_MOTION_QUERY) === true;
|
|
135
135
|
}
|
|
136
136
|
function usePrefersReducedMotionState() {
|
|
137
|
-
return
|
|
137
|
+
return _chunkFICJS5OAcjs.useMediaQuery.call(void 0, PREFERS_REDUCED_MOTION_QUERY);
|
|
138
138
|
}
|
|
139
139
|
|
|
140
140
|
// src/hooks/ui/use-in-view.ts
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkDHIISS4Wcjs = require('./chunk-DHIISS4W.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkFTTLBMHUcjs = require('./chunk-FTTLBMHU.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
var _chunkPX7FY655cjs = require('./chunk-PX7FY655.cjs');
|
|
@@ -51,7 +51,7 @@ function pickBadgePaletteColor({
|
|
|
51
51
|
var _jsxruntime = require('react/jsx-runtime');
|
|
52
52
|
function PaletteBadge({ text, color, className, variant = "button" }) {
|
|
53
53
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
54
|
-
|
|
54
|
+
_chunkDHIISS4Wcjs.StatusBadge,
|
|
55
55
|
{
|
|
56
56
|
text,
|
|
57
57
|
colorScheme: isBadgePaletteKey(color) ? color : "default",
|
|
@@ -204,7 +204,7 @@ var STATUS_BADGE_SCHEME = {
|
|
|
204
204
|
abandoned: "default"
|
|
205
205
|
};
|
|
206
206
|
function EmployeeEntryBadge({ children }) {
|
|
207
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
207
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDHIISS4Wcjs.StatusBadge, { text: children, colorScheme: "default", variant: "button", singleLine: true });
|
|
208
208
|
}
|
|
209
209
|
function EmployeeEntryCard({
|
|
210
210
|
entry,
|
|
@@ -217,7 +217,7 @@ function EmployeeEntryCard({
|
|
|
217
217
|
className
|
|
218
218
|
}) {
|
|
219
219
|
const card = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
220
|
-
|
|
220
|
+
_chunkDHIISS4Wcjs.AdminContentCard,
|
|
221
221
|
{
|
|
222
222
|
imageUrl: entry.featured_image || entry.main_video_thumbnail,
|
|
223
223
|
placeholderUrl,
|
|
@@ -225,7 +225,7 @@ function EmployeeEntryCard({
|
|
|
225
225
|
summary: (_nullishCoalesce(entry.summary, () => ( ""))).slice(0, 140) || "No description",
|
|
226
226
|
badges: entry.status || extraBadges ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
227
227
|
entry.status ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
228
|
-
|
|
228
|
+
_chunkDHIISS4Wcjs.StatusBadge,
|
|
229
229
|
{
|
|
230
230
|
text: entry.status,
|
|
231
231
|
colorScheme: _nullishCoalesce(STATUS_BADGE_SCHEME[entry.status], () => ( "default")),
|
|
@@ -240,7 +240,7 @@ function EmployeeEntryCard({
|
|
|
240
240
|
_optionalChain([entry, 'access', _8 => _8.author, 'optionalAccess', _9 => _9.avatar_url]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
241
241
|
_chunkUR4K2NSLcjs.next_image_default,
|
|
242
242
|
{
|
|
243
|
-
src: _nullishCoalesce(
|
|
243
|
+
src: _nullishCoalesce(_chunkDHIISS4Wcjs.getProxiedImageUrl2.call(void 0, entry.author.avatar_url), () => ( entry.author.avatar_url)),
|
|
244
244
|
alt: "",
|
|
245
245
|
className: "h-[1lh] w-[1lh] shrink-0 rounded-full object-cover",
|
|
246
246
|
width: 20,
|
|
@@ -271,7 +271,7 @@ function WhatIShippedCard({ entry, placeholderUrl, actions, anchorProps, classNa
|
|
|
271
271
|
EmployeeEntryCard,
|
|
272
272
|
{
|
|
273
273
|
entry,
|
|
274
|
-
dateLabel:
|
|
274
|
+
dateLabel: _chunkFTTLBMHUcjs.formatEntryMonthUTC.call(void 0, entry.entry_month, "short"),
|
|
275
275
|
placeholderUrl,
|
|
276
276
|
actions,
|
|
277
277
|
anchorProps,
|
|
@@ -291,7 +291,7 @@ function HowIWorkCard({ entry, placeholderUrl, actions, anchorProps, className }
|
|
|
291
291
|
EmployeeEntryCard,
|
|
292
292
|
{
|
|
293
293
|
entry,
|
|
294
|
-
dateLabel: entry.session_date ?
|
|
294
|
+
dateLabel: entry.session_date ? _chunkFTTLBMHUcjs.formatDateUTC.call(void 0, entry.session_date, { fallback: "" }) || null : null,
|
|
295
295
|
extraBadges: entry.discipline ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, EmployeeEntryBadge, { children: disciplineLabel(entry.discipline) }) : null,
|
|
296
296
|
untitledLabel: "Untitled session",
|
|
297
297
|
placeholderUrl,
|
|
@@ -312,7 +312,7 @@ function AiPromptCard({ entry, placeholderUrl, actions, anchorProps, className }
|
|
|
312
312
|
EmployeeEntryCard,
|
|
313
313
|
{
|
|
314
314
|
entry,
|
|
315
|
-
dateLabel: entry.published_at ?
|
|
315
|
+
dateLabel: entry.published_at ? _chunkFTTLBMHUcjs.formatDateUTC.call(void 0, entry.published_at, { fallback: "" }) || null : null,
|
|
316
316
|
extraBadges: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
317
317
|
departmentName ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DepartmentBadge, { department: { name: departmentName, color: _nullishCoalesce(_optionalChain([entry, 'access', _16 => _16.department, 'optionalAccess', _17 => _17.color]), () => ( null)) } }) : null,
|
|
318
318
|
steps > 1 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, EmployeeEntryBadge, { children: `${steps} steps` }) : null
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkAAFW4STCcjs = require('./chunk-AAFW4STC.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -12,7 +12,7 @@ var _chunkGID62YENcjs = require('./chunk-GID62YEN.cjs');
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkZRYKDN2Jcjs = require('./chunk-ZRYKDN2J.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
@@ -69,14 +69,14 @@ var _chunkZ7OPT4PNcjs = require('./chunk-Z7OPT4PN.cjs');
|
|
|
69
69
|
var _chunkSKI6NKOEcjs = require('./chunk-SKI6NKOE.cjs');
|
|
70
70
|
|
|
71
71
|
|
|
72
|
-
var
|
|
72
|
+
var _chunkFCGLSWKRcjs = require('./chunk-FCGLSWKR.cjs');
|
|
73
73
|
|
|
74
74
|
|
|
75
75
|
|
|
76
|
-
var
|
|
76
|
+
var _chunkFTTLBMHUcjs = require('./chunk-FTTLBMHU.cjs');
|
|
77
77
|
|
|
78
78
|
|
|
79
|
-
var
|
|
79
|
+
var _chunkFICJS5OAcjs = require('./chunk-FICJS5OA.cjs');
|
|
80
80
|
|
|
81
81
|
|
|
82
82
|
var _chunkVOX4E6AXcjs = require('./chunk-VOX4E6AX.cjs');
|
|
@@ -177,7 +177,7 @@ function BoardColumnHeader({
|
|
|
177
177
|
}) {
|
|
178
178
|
const count = _nullishCoalesce(column.total, () => ( column.tickets.length));
|
|
179
179
|
const tagStatus = _nullishCoalesce(column.statusKey, () => ( column.id));
|
|
180
|
-
const useStatusVariant =
|
|
180
|
+
const useStatusVariant = _chunkZRYKDN2Jcjs.resolveTicketStatus.call(void 0, tagStatus) !== null;
|
|
181
181
|
const actionClass = "h-8 w-8 p-0 content-md:h-8 content-md:w-8";
|
|
182
182
|
if (collapsed) {
|
|
183
183
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-full flex-col items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
@@ -193,7 +193,7 @@ function BoardColumnHeader({
|
|
|
193
193
|
}
|
|
194
194
|
),
|
|
195
195
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
196
|
-
|
|
196
|
+
_chunkZRYKDN2Jcjs.TicketStatusTag,
|
|
197
197
|
{
|
|
198
198
|
status: tagStatus,
|
|
199
199
|
label: column.label,
|
|
@@ -206,7 +206,7 @@ function BoardColumnHeader({
|
|
|
206
206
|
}
|
|
207
207
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
208
208
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
209
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
209
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZRYKDN2Jcjs.TicketStatusTag, { status: tagStatus, label: column.label, color: useStatusVariant ? void 0 : column.color }),
|
|
210
210
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-h5", style: useStatusVariant ? void 0 : { color: column.color }, children: count })
|
|
211
211
|
] }),
|
|
212
212
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex shrink-0 items-center gap-[var(--spacing-system-xxs)]", children: [
|
|
@@ -264,7 +264,7 @@ function tintOnDark(hex) {
|
|
|
264
264
|
|
|
265
265
|
function BoardTicketApproval({ pendingApproval, onApprove, onReject }) {
|
|
266
266
|
const [expanded, setExpanded] = _react.useState.call(void 0, false);
|
|
267
|
-
const { innerRef, containerStyle } =
|
|
267
|
+
const { innerRef, containerStyle } = _chunkZRYKDN2Jcjs.useCollapsible.call(void 0, { expanded });
|
|
268
268
|
const isAdmin = pendingApproval.approvalType === "ADMIN";
|
|
269
269
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "pointer-events-auto flex flex-col", children: [
|
|
270
270
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -293,7 +293,7 @@ function BoardTicketApproval({ pendingApproval, onApprove, onReject }) {
|
|
|
293
293
|
}
|
|
294
294
|
),
|
|
295
295
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: containerStyle, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: innerRef, className: "pt-[var(--spacing-system-xs)]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
296
|
-
|
|
296
|
+
_chunkZRYKDN2Jcjs.ApprovalBatchMessage,
|
|
297
297
|
{
|
|
298
298
|
className: "mb-0",
|
|
299
299
|
data: {
|
|
@@ -467,7 +467,7 @@ function TicketCardBody({
|
|
|
467
467
|
onLinkClick
|
|
468
468
|
}) {
|
|
469
469
|
const showNewMessage = !!ticket.hasNewMessage && !!columnColor;
|
|
470
|
-
const newMessageTextColor = columnColor ?
|
|
470
|
+
const newMessageTextColor = columnColor ? _chunkFCGLSWKRcjs.getReadableTextColor.call(void 0, columnColor) : void 0;
|
|
471
471
|
const showDeviceRow = !!(_optionalChain([ticket, 'access', _12 => _12.deviceHostnames, 'optionalAccess', _13 => _13.length]) || ticket.organizationName);
|
|
472
472
|
const deviceText = [_optionalChain([ticket, 'access', _14 => _14.deviceHostnames, 'optionalAccess', _15 => _15.join, 'call', _16 => _16(", ")]), ticket.organizationName].filter(Boolean).join(", ");
|
|
473
473
|
const hasRightSection = !!(ticket.priority || ticket.agent || _optionalChain([ticket, 'access', _17 => _17.assignees, 'optionalAccess', _18 => _18.length]) || renderAssignSlot);
|
|
@@ -485,7 +485,7 @@ function TicketCardBody({
|
|
|
485
485
|
role: "img",
|
|
486
486
|
"aria-label": `Owned by ${ticket.agent === "fae" ? "Fae" : "Mingo"}`,
|
|
487
487
|
className: "flex size-8 shrink-0 items-center justify-center overflow-hidden rounded-full border border-ods-border bg-ods-bg",
|
|
488
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
488
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZRYKDN2Jcjs.AgentMark, { agent: ticket.agent, className: ticket.agent === "fae" ? "size-full" : "size-5" })
|
|
489
489
|
}
|
|
490
490
|
),
|
|
491
491
|
renderAssignSlot ? renderAssignSlot(ticket) : _optionalChain([ticket, 'access', _19 => _19.assignees, 'optionalAccess', _20 => _20.length]) ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex -space-x-2", children: [
|
|
@@ -498,7 +498,7 @@ function TicketCardBody({
|
|
|
498
498
|
},
|
|
499
499
|
a.id
|
|
500
500
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
501
|
-
|
|
501
|
+
_chunkFTTLBMHUcjs.SquareAvatar,
|
|
502
502
|
{
|
|
503
503
|
src: a.avatarUrl,
|
|
504
504
|
alt: _nullishCoalesce(_nullishCoalesce(a.name, () => ( a.initials)), () => ( a.id)),
|
|
@@ -515,8 +515,8 @@ function TicketCardBody({
|
|
|
515
515
|
] })
|
|
516
516
|
] }) : null
|
|
517
517
|
] }) : null;
|
|
518
|
-
const timestampLabel = ticket.createdAt ?
|
|
519
|
-
const tooltipLabel = ticket.createdAt ?
|
|
518
|
+
const timestampLabel = ticket.createdAt ? _chunkZRYKDN2Jcjs.formatTicketRelativeTime.call(void 0, ticket.createdAt) : null;
|
|
519
|
+
const tooltipLabel = ticket.createdAt ? _chunkZRYKDN2Jcjs.formatTicketFullTimestamp.call(void 0, ticket.createdAt) : null;
|
|
520
520
|
const metaLabel = [ticket.ticketNumber || null, timestampLabel].filter(Boolean).join(" \u2022 ");
|
|
521
521
|
const metaClass = "truncate text-ods-text-secondary text-h6";
|
|
522
522
|
const meta = href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -565,7 +565,7 @@ function TicketCardBody({
|
|
|
565
565
|
}
|
|
566
566
|
),
|
|
567
567
|
showNewMessage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
568
|
-
|
|
568
|
+
_chunkFTTLBMHUcjs.Tag,
|
|
569
569
|
{
|
|
570
570
|
label: "New Message",
|
|
571
571
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJSIUVERGcjs.MessagesIcon, { size: 16, color: newMessageTextColor }),
|
|
@@ -785,8 +785,8 @@ function TicketTagRow({ tags }) {
|
|
|
785
785
|
const visible = tags.slice(0, MAX_VISIBLE_TAGS);
|
|
786
786
|
const hidden = tags.length - visible.length;
|
|
787
787
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-8 flex-wrap items-start gap-[var(--spacing-system-xxs)] overflow-clip", children: [
|
|
788
|
-
visible.map((tag) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
789
|
-
hidden > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
788
|
+
visible.map((tag) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFTTLBMHUcjs.Tag, { variant: "outline", label: tag }, tag)),
|
|
789
|
+
hidden > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFTTLBMHUcjs.Tag, { variant: "outline", label: `+${hidden}` })
|
|
790
790
|
] });
|
|
791
791
|
}
|
|
792
792
|
|
|
@@ -1077,7 +1077,7 @@ function EmptyState({ columnId, touchMode }) {
|
|
|
1077
1077
|
// src/components/features/board/use-board-collapse.ts
|
|
1078
1078
|
|
|
1079
1079
|
function useBoardCollapse(storageKey, initial) {
|
|
1080
|
-
const [persisted, setPersisted] =
|
|
1080
|
+
const [persisted, setPersisted] = _chunkAAFW4STCcjs.useLocalStorage.call(void 0, _nullishCoalesce(storageKey, () => ( "__board_collapse_unused__")), {});
|
|
1081
1081
|
const [memory, setMemory] = _react.useState.call(void 0, _nullishCoalesce(initial, () => ( {})));
|
|
1082
1082
|
const collapsed = storageKey ? persisted : memory;
|
|
1083
1083
|
const setMap = storageKey ? setPersisted : setMemory;
|
|
@@ -1219,7 +1219,7 @@ var DROP_EASING = "cubic-bezier(0.2, 0, 0, 1)";
|
|
|
1219
1219
|
var DRAG_PREVIEW_Z = 1200;
|
|
1220
1220
|
var ARROW_KEYS = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"];
|
|
1221
1221
|
function Board(props) {
|
|
1222
|
-
const dragAndDropEnabled =
|
|
1222
|
+
const dragAndDropEnabled = _chunkFICJS5OAcjs.useMediaQuery.call(void 0, _chunkAAFW4STCcjs.DRAG_AND_DROP_MEDIA_QUERY);
|
|
1223
1223
|
if (dragAndDropEnabled === void 0) {
|
|
1224
1224
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "aria-hidden": true, className: _chunk3ATAYP36cjs.cn.call(void 0, "flex h-full min-h-0 flex-col", props.className) });
|
|
1225
1225
|
}
|
|
@@ -1253,7 +1253,7 @@ function DragBoard({
|
|
|
1253
1253
|
onThumbPointerMove,
|
|
1254
1254
|
onThumbPointerUp,
|
|
1255
1255
|
onThumbPointerCancel
|
|
1256
|
-
} =
|
|
1256
|
+
} = _chunkAAFW4STCcjs.useHorizontalScrollbar.call(void 0, );
|
|
1257
1257
|
const columnsRef = _react.useRef.call(void 0, columns);
|
|
1258
1258
|
const onChangeRef = _react.useRef.call(void 0, onChange);
|
|
1259
1259
|
const boardRef = _react.useRef.call(void 0, null);
|