@flamingo-stack/openframe-frontend-core 0.0.787 → 0.0.789
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/build/export-map.json +1 -1
- package/dist/case-study-card-FDDS5EG3.cjs +23 -0
- package/dist/{chunk-4ZHLORL3.cjs → chunk-3IJDTTOY.cjs} +5 -5
- package/dist/{chunk-W5ANQT3I.cjs → chunk-4ZLLUZQB.cjs} +171 -171
- package/dist/{chunk-2JDK4FWV.cjs → chunk-6TFNJDEQ.cjs} +207 -207
- package/dist/{chunk-NWNC22IZ.cjs → chunk-6YZNUHXT.cjs} +18 -4
- package/dist/{chunk-RU37NNZG.cjs → chunk-75PJ2SAZ.cjs} +2 -2
- package/dist/{chunk-HAAQUV3O.cjs → chunk-7A23WZY7.cjs} +54 -54
- package/dist/{chunk-YXNETOPJ.cjs → chunk-7NUFHVR6.cjs} +31 -31
- package/dist/{chunk-BP7GLDRJ.cjs → chunk-7VEYDE3T.cjs} +63 -63
- package/dist/{chunk-2U4H74KS.cjs → chunk-CWA6J7KC.cjs} +45 -45
- package/dist/{chunk-75IHI7JO.cjs → chunk-DNJVLDCH.cjs} +44 -44
- package/dist/{chunk-3UB47O7L.cjs → chunk-EQNNPLCN.cjs} +22 -22
- package/dist/{chunk-ICVLG6MM.cjs → chunk-F2GRQ2RL.cjs} +4 -4
- package/dist/{chunk-TC2T5Q7M.cjs → chunk-FJBE3WIJ.cjs} +14 -14
- package/dist/{chunk-Y6KZFPZN.cjs → chunk-G33O32RX.cjs} +12 -12
- package/dist/{chunk-DNB5DELQ.cjs → chunk-GD6RPLHX.cjs} +3 -3
- package/dist/{chunk-3SENOTWT.cjs → chunk-GDOJPPOF.cjs} +110 -110
- package/dist/{chunk-XQAKD5QY.cjs → chunk-GMGM3JV3.cjs} +60 -60
- package/dist/{chunk-J4ZNQ55O.cjs → chunk-HBAVHYXO.cjs} +2 -2
- package/dist/{chunk-ZDP5WEFF.cjs → chunk-HDCAH4AT.cjs} +115 -115
- package/dist/{chunk-L4ORB5RP.cjs → chunk-HJBJHQKE.cjs} +16 -16
- package/dist/{chunk-3ZYZOK7Z.cjs → chunk-HOYSVWKQ.cjs} +6 -6
- package/dist/{chunk-HE6UVP6R.cjs → chunk-HYF4LPXF.cjs} +10 -10
- package/dist/{chunk-UY2NXJFL.cjs → chunk-IKCMAIJ7.cjs} +110 -110
- package/dist/{chunk-5Z77NJZF.cjs → chunk-IODLD4VM.cjs} +7 -7
- package/dist/{chunk-Y5RXNEO2.cjs → chunk-JHFSLLQ6.cjs} +8 -8
- package/dist/{chunk-JHY6H2XR.cjs → chunk-JRTDBPJT.cjs} +3 -3
- package/dist/{chunk-5CAQZRVN.cjs → chunk-JXQNECXM.cjs} +7 -7
- package/dist/{chunk-IZXVGIQX.cjs → chunk-K7I3YYYU.cjs} +46 -45
- package/dist/{chunk-RGGV3YOP.cjs → chunk-KB7SPZFI.cjs} +536 -536
- package/dist/{chunk-YNMGACZT.cjs → chunk-KO4IF7R2.cjs} +3 -3
- package/dist/{chunk-HQJ56PDG.cjs → chunk-MFPTTZI5.cjs} +51 -51
- package/dist/{chunk-K2JUZV3X.cjs → chunk-MMC7H7C6.cjs} +37 -37
- package/dist/{chunk-WM6QMQDO.cjs → chunk-N3PYKA3B.cjs} +13 -13
- package/dist/{chunk-PZ5ZMKKB.cjs → chunk-OCTDWSTS.cjs} +46 -46
- package/dist/{chunk-KKD7XV5A.cjs → chunk-ORIXQCPX.cjs} +29 -29
- package/dist/{chunk-U5Z6FOMI.cjs → chunk-PPBNMZC5.cjs} +13 -13
- package/dist/{chunk-LGUHTN46.cjs → chunk-QELEIFHA.cjs} +61 -61
- package/dist/{chunk-QWVVXXFG.cjs → chunk-QVC5CMC5.cjs} +4 -4
- package/dist/{chunk-PCBKE6LA.cjs → chunk-QVF5A6UT.cjs} +4 -4
- package/dist/{chunk-UVPV6TUI.cjs → chunk-QVKWKY4O.cjs} +23 -23
- package/dist/{chunk-CF6IERIA.cjs → chunk-RJIFPWO4.cjs} +42 -42
- package/dist/{chunk-JSNLMPXN.cjs → chunk-RKWEFZ6P.cjs} +3 -3
- package/dist/{chunk-TRV5GGOH.cjs → chunk-SBC7RG7O.cjs} +61 -61
- package/dist/{chunk-WFMLODQ4.cjs → chunk-UB3C22AW.cjs} +197 -197
- package/dist/{chunk-MZOODES3.cjs → chunk-UCHO4BOS.cjs} +5 -5
- package/dist/{chunk-HQY6KYUD.cjs → chunk-W4RRVQZQ.cjs} +320 -320
- package/dist/{chunk-JFYHFBJ7.cjs → chunk-WDUHSGRT.cjs} +10 -10
- package/dist/{chunk-BAM6JT53.cjs → chunk-XI4KB7EF.cjs} +17 -17
- package/dist/{chunk-LCSYTFFO.cjs → chunk-YWPYSQYG.cjs} +14 -14
- package/dist/{chunk-HF35SNRU.cjs → chunk-ZH7SZ46Q.cjs} +2039 -2027
- package/dist/{chunk-NR6YD7BL.cjs → chunk-ZKNEKZS5.cjs} +19 -19
- package/dist/{cloud-tenants-Y2GSQAMJ.cjs → cloud-tenants-3SFM4VJZ.cjs} +32 -32
- package/dist/components/calendar.cjs +10 -10
- package/dist/components/case-studies/index.cjs +52 -52
- package/dist/components/chat/index.cjs +26 -26
- package/dist/components/chat/mingo-info-card.js +1 -1
- package/dist/components/contact/index.cjs +33 -33
- package/dist/components/docs/index.cjs +36 -36
- package/dist/components/embeds/index.cjs +33 -33
- package/dist/components/faq/index.cjs +34 -34
- package/dist/components/features/index.cjs +32 -32
- package/dist/components/help-center-pages/index.cjs +163 -163
- package/dist/components/index.cjs +206 -204
- package/dist/components/meeting-scheduler/index.cjs +187 -187
- package/dist/components/navigation/index.cjs +35 -35
- package/dist/components/onboarding-guides/index.cjs +35 -35
- package/dist/components/product-demo/index.cjs +45 -45
- package/dist/components/related-content/index.cjs +17 -17
- package/dist/components/tickets/index.cjs +39 -39
- package/dist/components/ui/actions-menu.js +1 -1
- package/dist/components/ui/button/button-styles.d.ts +1 -0
- package/dist/components/ui/button/button-styles.d.ts.map +1 -1
- package/dist/components/ui/button/button-styles.js +18 -4
- package/dist/components/ui/button/button.d.ts +1 -1
- package/dist/components/ui/button/button.d.ts.map +1 -1
- package/dist/components/ui/button/button.js +2 -1
- package/dist/components/ui/file-manager/index.cjs +55 -55
- package/dist/components/ui/index.cjs +34 -32
- package/dist/components/ui/index.d.ts +1 -0
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/components/ui/index.js +1 -0
- package/dist/components/ui/page-actions.d.ts +1 -1
- package/dist/components/ui/page-actions.d.ts.map +1 -1
- package/dist/components/ui/snap-carousel.d.ts.map +1 -1
- package/dist/components/ui/snap-carousel.js +17 -19
- package/dist/components/ui/step-arrow-button.d.ts +16 -0
- package/dist/components/ui/step-arrow-button.d.ts.map +1 -0
- package/dist/components/ui/step-arrow-button.js +16 -0
- package/dist/{devices-E3QVSJ3T.cjs → devices-PE57CA5O.cjs} +33 -33
- package/dist/embed-shims/index.cjs +4 -4
- package/dist/embed-shims/next-image.cjs +4 -4
- package/dist/{embeddable-chat-IH6X2KIS.cjs → embeddable-chat-TIUNTOXQ.cjs} +115 -115
- package/dist/hooks/index.cjs +10 -10
- package/dist/index.cjs +50 -48
- package/dist/{knowledge-A6AETFRT.cjs → knowledge-ZFJQMMR2.cjs} +33 -33
- package/dist/{logs-GB6UWTM6.cjs → logs-4GKGMB7A.cjs} +41 -41
- package/dist/{policies-DGFI3VSQ.cjs → policies-TRWFGAEE.cjs} +36 -36
- package/dist/{remote-session-AXKWTU4I.cjs → remote-session-WMAV72M7.cjs} +17 -17
- package/dist/{scripts-OV2PPYGS.cjs → scripts-2SHRGH3L.cjs} +39 -39
- package/dist/{software-update-LUR2BU2D.cjs → software-update-ROHSE2BE.cjs} +36 -36
- package/dist/{tickets-board-SXETISNL.cjs → tickets-board-37LBIQ65.cjs} +17 -17
- package/dist/{video-file-player-XWZIO3YN.cjs → video-file-player-HZPMCCYF.cjs} +14 -14
- package/package.json +1 -1
- package/src/components/chat/mingo-info-card.tsx +1 -1
- package/src/components/ui/actions-menu.tsx +1 -1
- package/src/components/ui/button/button-styles.ts +18 -4
- package/src/components/ui/button/button.tsx +1 -0
- package/src/components/ui/index.ts +1 -0
- package/src/components/ui/page-actions.tsx +1 -0
- package/src/components/ui/snap-carousel.tsx +23 -21
- package/src/components/ui/step-arrow-button.tsx +32 -0
- package/dist/case-study-card-236RTB5D.cjs +0 -23
|
@@ -5,11 +5,9 @@ import { useAutoplay } from '../../hooks/ui/use-autoplay';
|
|
|
5
5
|
import { useInView } from '../../hooks/ui/use-in-view';
|
|
6
6
|
import { useResumableTimeout } from '../../hooks/ui/use-resumable-timeout';
|
|
7
7
|
import { cn } from '../../utils/cn';
|
|
8
|
-
import { Chevron02LeftIcon } from '../icons-v2-generated/arrows/chevron-02-left-icon';
|
|
9
|
-
import { Chevron02RightIcon } from '../icons-v2-generated/arrows/chevron-02-right-icon';
|
|
10
8
|
import { TextLineSkeleton } from '../loading/unified-skeleton';
|
|
11
|
-
import { Button } from './button';
|
|
12
9
|
import { useLoadingScope } from './loading-scope';
|
|
10
|
+
import { StepArrowButton } from './step-arrow-button';
|
|
13
11
|
|
|
14
12
|
/** The row under the track: the dots, the counter, the pause and the two arrows (the arrows set its height). */
|
|
15
13
|
const SNAP_CAROUSEL_CONTROLS_CLASS = 'mt-3 flex items-center gap-2';
|
|
@@ -117,28 +115,18 @@ export function SnapCarouselControls({
|
|
|
117
115
|
{index + 1} / {count}
|
|
118
116
|
</span>
|
|
119
117
|
)}
|
|
120
|
-
<
|
|
121
|
-
|
|
122
|
-
size="icon"
|
|
123
|
-
type="button"
|
|
118
|
+
<StepArrowButton
|
|
119
|
+
direction="previous"
|
|
124
120
|
aria-label={prevLabel}
|
|
125
121
|
disabled={loading || index === 0}
|
|
126
122
|
onClick={onPrevious}
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
</Button>
|
|
131
|
-
<Button
|
|
132
|
-
variant="outline"
|
|
133
|
-
size="icon"
|
|
134
|
-
type="button"
|
|
123
|
+
/>
|
|
124
|
+
<StepArrowButton
|
|
125
|
+
direction="next"
|
|
135
126
|
aria-label={nextLabel}
|
|
136
127
|
disabled={loading || index === count - 1}
|
|
137
128
|
onClick={onNext}
|
|
138
|
-
|
|
139
|
-
>
|
|
140
|
-
<Chevron02RightIcon size={20} />
|
|
141
|
-
</Button>
|
|
129
|
+
/>
|
|
142
130
|
</div>
|
|
143
131
|
);
|
|
144
132
|
}
|
|
@@ -249,13 +237,27 @@ export function SnapCarousel<T>({
|
|
|
249
237
|
if (focusIndex !== undefined && focusIndex >= 0) goToRef.current(focusIndex);
|
|
250
238
|
}, [focusIndex]);
|
|
251
239
|
|
|
240
|
+
// The slide at the track's left edge. At the end of the track, where several slides are in view and the track can
|
|
241
|
+
// scroll no further, the slide is the LAST one: otherwise the index stopped short of it (9 of 11 with three slides
|
|
242
|
+
// in view) and the carousel never reached the end to wrap back to the first.
|
|
252
243
|
const onScroll = useCallback(() => {
|
|
253
244
|
const track = trackRef.current;
|
|
254
245
|
const step = slideStep();
|
|
255
246
|
if (!track || step === 0) return;
|
|
256
|
-
|
|
247
|
+
const maxScroll = track.scrollWidth - track.clientWidth;
|
|
248
|
+
const atEnd = maxScroll > 0 && track.scrollLeft >= maxScroll - 1;
|
|
249
|
+
setIndex(atEnd ? count - 1 : Math.min(count - 1, Math.round(track.scrollLeft / step)));
|
|
257
250
|
}, [count, slideStep]);
|
|
258
251
|
|
|
252
|
+
// Back one slide from where the track stands: at the end the index is the last slide, which sits further right
|
|
253
|
+
// than the track can scroll, so stepping back from the index alone would not move it.
|
|
254
|
+
const goBack = useCallback(() => {
|
|
255
|
+
const track = trackRef.current;
|
|
256
|
+
const step = slideStep();
|
|
257
|
+
if (!track || step === 0) return;
|
|
258
|
+
goTo(Math.min(index, Math.round(track.scrollLeft / step)) - 1);
|
|
259
|
+
}, [goTo, index, slideStep]);
|
|
260
|
+
|
|
259
261
|
const canAutoAdvance = autoAdvanceMs > 0 && count > 1;
|
|
260
262
|
const playing = auto.playing && canAutoAdvance;
|
|
261
263
|
|
|
@@ -308,7 +310,7 @@ export function SnapCarousel<T>({
|
|
|
308
310
|
index={index}
|
|
309
311
|
prevLabel={prevLabel}
|
|
310
312
|
nextLabel={nextLabel}
|
|
311
|
-
onPrevious={
|
|
313
|
+
onPrevious={goBack}
|
|
312
314
|
onNext={() => goTo(index + 1)}
|
|
313
315
|
wait={showsWait ? { durationMs: autoAdvanceMs, ranMs, running: playing } : null}
|
|
314
316
|
announce={!playing}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import { type ButtonHTMLAttributes, forwardRef, type ReactNode } from 'react';
|
|
4
|
+
import { Chevron02LeftIcon } from '../icons-v2-generated/arrows/chevron-02-left-icon';
|
|
5
|
+
import { Chevron02RightIcon } from '../icons-v2-generated/arrows/chevron-02-right-icon';
|
|
6
|
+
import { Button } from './button';
|
|
7
|
+
|
|
8
|
+
export interface StepArrowButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'children'> {
|
|
9
|
+
/** Which way it moves: the chevron points that way. */
|
|
10
|
+
direction: 'previous' | 'next';
|
|
11
|
+
/** Required: the button is a glyph only. */
|
|
12
|
+
'aria-label': string;
|
|
13
|
+
/** A glyph in place of the chevron, for a step that does something else (a deck's "skip to end" at its start). */
|
|
14
|
+
glyph?: ReactNode;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* THE previous / next arrow that steps through slides: a carousel's controls row (`SnapCarouselControls`) and a
|
|
19
|
+
* presentation's navbar draw it, so every step arrow is the same round 36px control (the `stepper` kind). Not the
|
|
20
|
+
* floating arrows of a `CardsStrip`, which are the outline icon button over the cards. `className` is layout only.
|
|
21
|
+
*/
|
|
22
|
+
export const StepArrowButton = forwardRef<HTMLButtonElement, StepArrowButtonProps>(
|
|
23
|
+
({ direction, glyph, type = 'button', ...props }, ref) => {
|
|
24
|
+
const Icon = direction === 'previous' ? Chevron02LeftIcon : Chevron02RightIcon;
|
|
25
|
+
return (
|
|
26
|
+
<Button ref={ref} type={type} variant="stepper" {...props}>
|
|
27
|
+
{glyph ?? <Icon />}
|
|
28
|
+
</Button>
|
|
29
|
+
);
|
|
30
|
+
},
|
|
31
|
+
);
|
|
32
|
+
StepArrowButton.displayName = 'StepArrowButton';
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
|
-
"use client";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var _chunk3SENOTWTcjs = require('./chunk-3SENOTWT.cjs');
|
|
6
|
-
require('./chunk-QWVVXXFG.cjs');
|
|
7
|
-
require('./chunk-5CAQZRVN.cjs');
|
|
8
|
-
require('./chunk-S5C3OZCO.cjs');
|
|
9
|
-
require('./chunk-4IYNDV3G.cjs');
|
|
10
|
-
require('./chunk-PCBKE6LA.cjs');
|
|
11
|
-
require('./chunk-7PNRXJX2.cjs');
|
|
12
|
-
require('./chunk-NTPX5GXI.cjs');
|
|
13
|
-
require('./chunk-RU37NNZG.cjs');
|
|
14
|
-
require('./chunk-5GJM7VRR.cjs');
|
|
15
|
-
require('./chunk-4ZHLORL3.cjs');
|
|
16
|
-
require('./chunk-UJ7AXHRZ.cjs');
|
|
17
|
-
require('./chunk-LCSYTFFO.cjs');
|
|
18
|
-
require('./chunk-IZXVGIQX.cjs');
|
|
19
|
-
require('./chunk-NWNC22IZ.cjs');
|
|
20
|
-
require('./chunk-V45KLJQP.cjs');
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
exports.CaseStudyCard = _chunk3SENOTWTcjs.CaseStudyCard;
|