@flamingo-stack/openframe-frontend-core 0.0.734 → 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.
Files changed (95) hide show
  1. package/dist/build/export-map.json +1 -1
  2. package/dist/{chunk-XKB7YGQM.cjs → chunk-77SD7RXY.cjs} +18 -6
  3. package/dist/{chunk-FA5SMA7L.cjs → chunk-7V2KP2TB.cjs} +4 -4
  4. package/dist/{chunk-KSXZABGH.cjs → chunk-BDF3FNOC.cjs} +38 -38
  5. package/dist/{chunk-3NANWZO3.cjs → chunk-BL5GOCHP.cjs} +14 -14
  6. package/dist/{chunk-DHIISS4W.cjs → chunk-EJOXXJJB.cjs} +62 -10
  7. package/dist/{chunk-TLQQP2EL.cjs → chunk-EX2GYIGW.cjs} +6 -6
  8. package/dist/{chunk-JRC3KXKV.cjs → chunk-FTGVG6FW.cjs} +30 -30
  9. package/dist/{chunk-4Q34V7MD.cjs → chunk-JGGSRCRD.cjs} +18 -18
  10. package/dist/{chunk-73ZW3265.cjs → chunk-JM54CNZZ.cjs} +85 -85
  11. package/dist/{chunk-HBUUCLQM.cjs → chunk-L535OD7V.cjs} +2 -2
  12. package/dist/{chunk-AOTOOGNX.cjs → chunk-LIH5OQLY.cjs} +3 -3
  13. package/dist/{chunk-OXJ57643.cjs → chunk-MGW5DO6P.cjs} +76 -17
  14. package/dist/{chunk-R65UD6BH.cjs → chunk-NONQUGRP.cjs} +14 -14
  15. package/dist/{chunk-4V672TEI.cjs → chunk-OJUMVOMP.cjs} +408 -355
  16. package/dist/{chunk-HAWQA5FI.cjs → chunk-OV6BGMEL.cjs} +151 -184
  17. package/dist/{chunk-5OGT7H2S.cjs → chunk-P6Z3EBPJ.cjs} +15 -15
  18. package/dist/{chunk-5DDFSGCE.cjs → chunk-SZFA2LQR.cjs} +33 -33
  19. package/dist/{chunk-EMBH2EJO.cjs → chunk-T27CVQBO.cjs} +65 -65
  20. package/dist/{chunk-CMUEFHM3.cjs → chunk-UBQSOB3X.cjs} +4 -4
  21. package/dist/{chunk-L7WJBJU7.cjs → chunk-URX2YTCL.cjs} +72 -72
  22. package/dist/{chunk-BP6R5WDW.cjs → chunk-VA7OMDZO.cjs} +41 -23
  23. package/dist/{chunk-D34BLEIR.cjs → chunk-VRNNIV5Y.cjs} +2 -2
  24. package/dist/{chunk-2OHBH6PS.cjs → chunk-XLSVQJBA.cjs} +44 -44
  25. package/dist/{chunk-OV7QQHLG.cjs → chunk-ZEX5WU35.cjs} +17 -17
  26. package/dist/{cloud-tenants-HU7YZD33.cjs → cloud-tenants-M55HMW6F.cjs} +8 -8
  27. package/dist/components/case-studies/index.cjs +20 -20
  28. package/dist/components/chat/entity-cards/program-card.d.ts.map +1 -1
  29. package/dist/components/chat/entity-cards/program-card.js +6 -6
  30. package/dist/components/chat/index.cjs +9 -9
  31. package/dist/components/contact/index.cjs +9 -9
  32. package/dist/components/docs/index.cjs +12 -12
  33. package/dist/components/embeds/index.cjs +9 -9
  34. package/dist/components/faq/index.cjs +9 -9
  35. package/dist/components/features/cards-strip.d.ts.map +1 -1
  36. package/dist/components/features/cards-strip.js +6 -2
  37. package/dist/components/features/index.cjs +8 -8
  38. package/dist/components/features/video-bites-strip.d.ts +6 -1
  39. package/dist/components/features/video-bites-strip.d.ts.map +1 -1
  40. package/dist/components/features/video-bites-strip.js +15 -3
  41. package/dist/components/help-center-pages/index.cjs +109 -109
  42. package/dist/components/index.cjs +68 -62
  43. package/dist/components/meeting-scheduler/index.cjs +35 -35
  44. package/dist/components/navigation/index.cjs +11 -11
  45. package/dist/components/onboarding-guides/index.cjs +11 -11
  46. package/dist/components/pagination.d.ts +9 -1
  47. package/dist/components/pagination.d.ts.map +1 -1
  48. package/dist/components/pagination.js +72 -17
  49. package/dist/components/product-demo/index.cjs +6 -6
  50. package/dist/components/related-content/index.cjs +5 -5
  51. package/dist/components/tickets/index.cjs +13 -13
  52. package/dist/components/ui/fade-preview.d.ts +5 -1
  53. package/dist/components/ui/fade-preview.d.ts.map +1 -1
  54. package/dist/components/ui/fade-preview.js +18 -1
  55. package/dist/components/ui/index.cjs +18 -12
  56. package/dist/components/ui/index.d.ts +1 -0
  57. package/dist/components/ui/index.d.ts.map +1 -1
  58. package/dist/components/ui/index.js +1 -0
  59. package/dist/components/ui/layout-hold.d.ts +31 -0
  60. package/dist/components/ui/layout-hold.d.ts.map +1 -0
  61. package/dist/components/ui/layout-hold.js +25 -0
  62. package/dist/components/ui/snap-carousel.d.ts.map +1 -1
  63. package/dist/components/ui/snap-carousel.js +28 -15
  64. package/dist/components/unified-pagination.d.ts.map +1 -1
  65. package/dist/components/unified-pagination.js +16 -4
  66. package/dist/{devices-CKLN7BHY.cjs → devices-WWJZFG6E.cjs} +9 -9
  67. package/dist/{embeddable-chat-FTAX4SVV.cjs → embeddable-chat-76IJ6TQZ.cjs} +72 -72
  68. package/dist/hooks/index.cjs +4 -2
  69. package/dist/hooks/ui/index.d.ts +1 -0
  70. package/dist/hooks/ui/index.d.ts.map +1 -1
  71. package/dist/hooks/ui/index.js +1 -0
  72. package/dist/hooks/ui/use-resumable-timeout.d.ts +22 -0
  73. package/dist/hooks/ui/use-resumable-timeout.d.ts.map +1 -0
  74. package/dist/hooks/ui/use-resumable-timeout.js +26 -0
  75. package/dist/hooks/use-scenario-player.d.ts +4 -3
  76. package/dist/hooks/use-scenario-player.d.ts.map +1 -1
  77. package/dist/hooks/use-scenario-player.js +17 -23
  78. package/dist/index.cjs +24 -16
  79. package/dist/{knowledge-NRLHSCC5.cjs → knowledge-F4YFQT3G.cjs} +9 -9
  80. package/dist/{logs-BR6SLYAF.cjs → logs-GAYEGEZM.cjs} +16 -16
  81. package/dist/{policies-MQRXBYG2.cjs → policies-ZOVJCJWX.cjs} +12 -12
  82. package/dist/{software-update-RUGIQP7N.cjs → software-update-H4YE5GMJ.cjs} +11 -11
  83. package/package.json +1 -1
  84. package/src/components/chat/entity-cards/program-card.tsx +9 -8
  85. package/src/components/features/cards-strip.tsx +11 -2
  86. package/src/components/features/video-bites-strip.tsx +22 -3
  87. package/src/components/pagination.tsx +117 -21
  88. package/src/components/ui/fade-preview.tsx +30 -1
  89. package/src/components/ui/index.ts +1 -0
  90. package/src/components/ui/layout-hold.tsx +55 -0
  91. package/src/components/ui/snap-carousel.tsx +36 -20
  92. package/src/components/unified-pagination.tsx +23 -7
  93. package/src/hooks/ui/index.ts +1 -0
  94. package/src/hooks/ui/use-resumable-timeout.ts +55 -0
  95. package/src/hooks/use-scenario-player.ts +28 -32
@@ -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
- var Pagination = ({ currentPage, totalPages, onPageChange, className }) => {
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
- _chunkAZL332TKcjs.Button,
102
+ PaginationControl,
49
103
  {
104
+ page: currentPage - 1,
105
+ label: "Go to previous page",
50
106
  variant: "outline",
51
- size: "icon",
52
- onClick: () => onPageChange(currentPage - 1),
107
+ className: NEIGHBOUR_CLASS,
53
108
  disabled: currentPage === 1,
54
- "aria-label": "Go to previous page",
55
- className: "!h-10 !w-10 content-md:!h-10 content-md:!w-10",
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
- _chunkAZL332TKcjs.Button,
123
+ PaginationControl,
68
124
  {
125
+ page,
126
+ label: `Page ${page}`,
69
127
  variant: currentPage === page ? "accent" : "outline",
70
- size: "icon",
71
- onClick: () => onPageChange(page),
72
- className: "!h-9 !w-9 content-md:!h-9 content-md:!w-9",
73
- "aria-label": `Page ${page}`,
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
- _chunkAZL332TKcjs.Button,
137
+ PaginationControl,
81
138
  {
139
+ page: currentPage + 1,
140
+ label: "Go to next page",
82
141
  variant: "outline",
83
- size: "icon",
84
- onClick: () => onPageChange(currentPage + 1),
142
+ className: NEIGHBOUR_CLASS,
85
143
  disabled: currentPage === totalPages,
86
- "aria-label": "Go to next page",
87
- className: "!h-10 !w-10 content-md:!h-10 content-md:!w-10",
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 _chunk4V672TEIcjs = require('./chunk-4V672TEI.cjs');
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 _chunkHAWQA5FIcjs = require('./chunk-HAWQA5FI.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 _chunkDHIISS4Wcjs = require('./chunk-DHIISS4W.cjs');
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 } = _chunkHAWQA5FIcjs.resolveSourceIcon.call(void 0, {
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
- _chunk4V672TEIcjs.SearchInput,
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: `${_chunkHAWQA5FIcjs.getSourceLabel.call(void 0, entry.repo)} ${_chunkHAWQA5FIcjs.recordCountLabel.call(void 0, rows.length)}`,
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 = _chunkDHIISS4Wcjs.decideNewTab.call(void 0, {
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", _chunkHAWQA5FIcjs.NEW_TAB_FEATURES);
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(_chunkHAWQA5FIcjs.stripSameOriginToPath.call(void 0, action.href));
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
- _chunkHAWQA5FIcjs.resolveExternalNavigation.call(void 0, {
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", _chunkHAWQA5FIcjs.NEW_TAB_FEATURES);
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(_chunkHAWQA5FIcjs.ASK_AI_OPEN_WITH_REF_EVENT, { detail: action.detail }));
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);