@flamingo-stack/openframe-frontend-core 0.0.735 → 0.0.736
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-XKB7YGQM.cjs → chunk-77SD7RXY.cjs} +18 -6
- package/dist/{chunk-T323E2Y6.cjs → chunk-7V2KP2TB.cjs} +4 -4
- package/dist/{chunk-W6E7XCBI.cjs → chunk-BDF3FNOC.cjs} +31 -31
- package/dist/{chunk-EQ7OOK4B.cjs → chunk-BL5GOCHP.cjs} +14 -14
- package/dist/{chunk-RH3AKULV.cjs → chunk-EJOXXJJB.cjs} +56 -4
- package/dist/{chunk-SHQZN5LF.cjs → chunk-EX2GYIGW.cjs} +6 -6
- package/dist/{chunk-3JP2OVH3.cjs → chunk-FTGVG6FW.cjs} +30 -30
- package/dist/{chunk-3X4N3IT7.cjs → chunk-JGGSRCRD.cjs} +16 -16
- package/dist/{chunk-MRVZ56GT.cjs → chunk-JM54CNZZ.cjs} +81 -81
- package/dist/{chunk-HBUUCLQM.cjs → chunk-L535OD7V.cjs} +2 -2
- package/dist/{chunk-6TTAILSV.cjs → chunk-LIH5OQLY.cjs} +3 -3
- package/dist/{chunk-OXJ57643.cjs → chunk-MGW5DO6P.cjs} +76 -17
- package/dist/{chunk-4F7V2MAC.cjs → chunk-NONQUGRP.cjs} +14 -14
- package/dist/{chunk-36CCUJOE.cjs → chunk-OJUMVOMP.cjs} +313 -313
- package/dist/{chunk-JDXQ6T5P.cjs → chunk-OV6BGMEL.cjs} +130 -179
- package/dist/{chunk-TUMUT7CV.cjs → chunk-P6Z3EBPJ.cjs} +11 -11
- package/dist/{chunk-NVCSVGNI.cjs → chunk-SZFA2LQR.cjs} +33 -33
- package/dist/{chunk-F7STMHT7.cjs → chunk-T27CVQBO.cjs} +65 -65
- package/dist/{chunk-EQH7BUNS.cjs → chunk-UBQSOB3X.cjs} +4 -4
- package/dist/{chunk-SZRZBCWC.cjs → chunk-URX2YTCL.cjs} +68 -68
- package/dist/{chunk-HLBFTDUL.cjs → chunk-VRNNIV5Y.cjs} +2 -2
- package/dist/{chunk-3FZZPR76.cjs → chunk-XLSVQJBA.cjs} +44 -44
- package/dist/{chunk-7HT3VHLJ.cjs → chunk-ZEX5WU35.cjs} +15 -15
- package/dist/{cloud-tenants-H5D57P4U.cjs → cloud-tenants-M55HMW6F.cjs} +7 -7
- package/dist/components/case-studies/index.cjs +19 -19
- package/dist/components/chat/index.cjs +9 -9
- package/dist/components/contact/index.cjs +8 -8
- package/dist/components/docs/index.cjs +11 -11
- package/dist/components/embeds/index.cjs +8 -8
- package/dist/components/faq/index.cjs +8 -8
- package/dist/components/features/index.cjs +7 -7
- package/dist/components/help-center-pages/index.cjs +99 -99
- package/dist/components/index.cjs +60 -60
- package/dist/components/meeting-scheduler/index.cjs +29 -29
- package/dist/components/navigation/index.cjs +10 -10
- package/dist/components/onboarding-guides/index.cjs +10 -10
- package/dist/components/pagination.d.ts +9 -1
- package/dist/components/pagination.d.ts.map +1 -1
- package/dist/components/pagination.js +72 -17
- package/dist/components/product-demo/index.cjs +6 -6
- package/dist/components/related-content/index.cjs +5 -5
- package/dist/components/tickets/index.cjs +12 -12
- package/dist/components/ui/index.cjs +11 -11
- package/dist/components/unified-pagination.d.ts.map +1 -1
- package/dist/components/unified-pagination.js +16 -4
- package/dist/{devices-SQTEXY2H.cjs → devices-WWJZFG6E.cjs} +8 -8
- package/dist/{embeddable-chat-S5ODWE3L.cjs → embeddable-chat-76IJ6TQZ.cjs} +72 -72
- package/dist/index.cjs +15 -15
- package/dist/{knowledge-FO3TPLFO.cjs → knowledge-F4YFQT3G.cjs} +8 -8
- package/dist/{logs-Y4WQB2YR.cjs → logs-GAYEGEZM.cjs} +15 -15
- package/dist/{policies-D6VY2ODF.cjs → policies-ZOVJCJWX.cjs} +11 -11
- package/dist/{software-update-7XN6U7HC.cjs → software-update-H4YE5GMJ.cjs} +10 -10
- package/package.json +1 -1
- package/src/components/pagination.tsx +117 -21
- package/src/components/unified-pagination.tsx +23 -7
|
@@ -1,16 +1,70 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
+
var _chunkEJOXXJJBcjs = require('./chunk-EJOXXJJB.cjs');
|
|
5
|
+
|
|
6
|
+
|
|
4
7
|
var _chunkAZL332TKcjs = require('./chunk-AZL332TK.cjs');
|
|
5
8
|
|
|
6
9
|
|
|
10
|
+
var _chunkV45KLJQPcjs = require('./chunk-V45KLJQP.cjs');
|
|
11
|
+
|
|
12
|
+
|
|
7
13
|
var _chunk3ATAYP36cjs = require('./chunk-3ATAYP36.cjs');
|
|
8
14
|
|
|
9
15
|
// src/components/pagination.tsx
|
|
10
16
|
var _lucidereact = require('lucide-react');
|
|
11
17
|
var _react = require('react');
|
|
12
18
|
var _jsxruntime = require('react/jsx-runtime');
|
|
13
|
-
|
|
19
|
+
function PaginationControl({
|
|
20
|
+
page,
|
|
21
|
+
label,
|
|
22
|
+
variant,
|
|
23
|
+
className,
|
|
24
|
+
current,
|
|
25
|
+
disabled,
|
|
26
|
+
rel,
|
|
27
|
+
onPageChange,
|
|
28
|
+
getPageHref,
|
|
29
|
+
children
|
|
30
|
+
}) {
|
|
31
|
+
const ariaCurrent = current ? "page" : void 0;
|
|
32
|
+
if (!getPageHref || disabled) {
|
|
33
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
34
|
+
_chunkAZL332TKcjs.Button,
|
|
35
|
+
{
|
|
36
|
+
variant,
|
|
37
|
+
size: "icon",
|
|
38
|
+
className,
|
|
39
|
+
disabled,
|
|
40
|
+
"aria-label": label,
|
|
41
|
+
"aria-current": ariaCurrent,
|
|
42
|
+
onClick: () => onPageChange(page),
|
|
43
|
+
children
|
|
44
|
+
}
|
|
45
|
+
);
|
|
46
|
+
}
|
|
47
|
+
const handleClick = (event) => {
|
|
48
|
+
if (_chunkEJOXXJJBcjs.isModifierClick.call(void 0, event)) return;
|
|
49
|
+
event.preventDefault();
|
|
50
|
+
onPageChange(page);
|
|
51
|
+
};
|
|
52
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAZL332TKcjs.Button, { variant, size: "icon", className, asChild: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
53
|
+
_chunkV45KLJQPcjs.next_link_default,
|
|
54
|
+
{
|
|
55
|
+
href: getPageHref(page),
|
|
56
|
+
prefetch: false,
|
|
57
|
+
rel,
|
|
58
|
+
"aria-label": label,
|
|
59
|
+
"aria-current": ariaCurrent,
|
|
60
|
+
onClick: handleClick,
|
|
61
|
+
children
|
|
62
|
+
}
|
|
63
|
+
) });
|
|
64
|
+
}
|
|
65
|
+
var NEIGHBOUR_CLASS = "!h-10 !w-10 content-md:!h-10 content-md:!w-10";
|
|
66
|
+
var PAGE_CLASS = "!h-9 !w-9 content-md:!h-9 content-md:!w-9";
|
|
67
|
+
var Pagination = ({ currentPage, totalPages, onPageChange, className, getPageHref }) => {
|
|
14
68
|
const getPageNumbers = () => {
|
|
15
69
|
const pages = [];
|
|
16
70
|
const maxPagesToShow = 5;
|
|
@@ -45,14 +99,16 @@ var Pagination = ({ currentPage, totalPages, onPageChange, className }) => {
|
|
|
45
99
|
const pageNumbers = getPageNumbers();
|
|
46
100
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "nav", { role: "navigation", "aria-label": "pagination", className: _chunk3ATAYP36cjs.cn.call(void 0, "mx-auto flex w-full justify-center", className), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "ul", { className: "flex flex-row items-center gap-1", children: [
|
|
47
101
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "li", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
48
|
-
|
|
102
|
+
PaginationControl,
|
|
49
103
|
{
|
|
104
|
+
page: currentPage - 1,
|
|
105
|
+
label: "Go to previous page",
|
|
50
106
|
variant: "outline",
|
|
51
|
-
|
|
52
|
-
onClick: () => onPageChange(currentPage - 1),
|
|
107
|
+
className: NEIGHBOUR_CLASS,
|
|
53
108
|
disabled: currentPage === 1,
|
|
54
|
-
|
|
55
|
-
|
|
109
|
+
rel: "prev",
|
|
110
|
+
onPageChange,
|
|
111
|
+
getPageHref,
|
|
56
112
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronLeft, { className: "h-4 w-4" })
|
|
57
113
|
}
|
|
58
114
|
) }),
|
|
@@ -64,27 +120,30 @@ var Pagination = ({ currentPage, totalPages, onPageChange, className }) => {
|
|
|
64
120
|
] }) }, `ellipsis-${index}`);
|
|
65
121
|
}
|
|
66
122
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "li", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
67
|
-
|
|
123
|
+
PaginationControl,
|
|
68
124
|
{
|
|
125
|
+
page,
|
|
126
|
+
label: `Page ${page}`,
|
|
69
127
|
variant: currentPage === page ? "accent" : "outline",
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
"aria-current": currentPage === page ? "page" : void 0,
|
|
128
|
+
className: PAGE_CLASS,
|
|
129
|
+
current: currentPage === page,
|
|
130
|
+
onPageChange,
|
|
131
|
+
getPageHref,
|
|
75
132
|
children: page
|
|
76
133
|
}
|
|
77
134
|
) }, page);
|
|
78
135
|
}),
|
|
79
136
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "li", { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
80
|
-
|
|
137
|
+
PaginationControl,
|
|
81
138
|
{
|
|
139
|
+
page: currentPage + 1,
|
|
140
|
+
label: "Go to next page",
|
|
82
141
|
variant: "outline",
|
|
83
|
-
|
|
84
|
-
onClick: () => onPageChange(currentPage + 1),
|
|
142
|
+
className: NEIGHBOUR_CLASS,
|
|
85
143
|
disabled: currentPage === totalPages,
|
|
86
|
-
|
|
87
|
-
|
|
144
|
+
rel: "next",
|
|
145
|
+
onPageChange,
|
|
146
|
+
getPageHref,
|
|
88
147
|
children: [
|
|
89
148
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronRight, { className: "h-4 w-4" }),
|
|
90
149
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "sr-only", children: "Next page" })
|
|
@@ -1,25 +1,25 @@
|
|
|
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 _chunkOJUMVOMPcjs = require('./chunk-OJUMVOMP.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
+
var _chunkOV6BGMELcjs = require('./chunk-OV6BGMEL.cjs');
|
|
10
11
|
|
|
11
12
|
|
|
13
|
+
var _chunkSA7LDEVJcjs = require('./chunk-SA7LDEVJ.cjs');
|
|
12
14
|
|
|
13
|
-
var _chunkJDXQ6T5Pcjs = require('./chunk-JDXQ6T5P.cjs');
|
|
14
15
|
|
|
16
|
+
var _chunk7DNL734Scjs = require('./chunk-7DNL734S.cjs');
|
|
15
17
|
|
|
16
|
-
var _chunkSA7LDEVJcjs = require('./chunk-SA7LDEVJ.cjs');
|
|
17
18
|
|
|
18
19
|
|
|
19
|
-
var _chunk7DNL734Scjs = require('./chunk-7DNL734S.cjs');
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _chunkEJOXXJJBcjs = require('./chunk-EJOXXJJB.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 } = _chunkOV6BGMELcjs.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
|
+
_chunkOJUMVOMPcjs.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: `${_chunkOV6BGMELcjs.getSourceLabel.call(void 0, entry.repo)} ${_chunkOV6BGMELcjs.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 = _chunkEJOXXJJBcjs.decideNewTab.call(void 0, {
|
|
187
187
|
href,
|
|
188
188
|
targetPlatform: composed ? composed.targetPlatform : targetPlatform,
|
|
189
189
|
surface: "useUnifiedNav",
|
|
@@ -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", _chunkEJOXXJJBcjs.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(_chunkEJOXXJJBcjs.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
|
+
_chunkEJOXXJJBcjs.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", _chunkEJOXXJJBcjs.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(_chunkOV6BGMELcjs.ASK_AI_OPEN_WITH_REF_EVENT, { detail: action.detail }));
|
|
340
340
|
return;
|
|
341
341
|
case "route":
|
|
342
342
|
setKeepOpen(false);
|