@factorialco/f0-react 16.32.1 → 16.34.0

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 (42) hide show
  1. package/dist/{ArchiveThumbnail-BuNA4UrO.js → ArchiveThumbnail-VRBMnfOQ.js} +4 -4
  2. package/dist/{ArchiveViewer-W103xRky.js → ArchiveViewer-FmO3W9El.js} +12 -12
  3. package/dist/{ChatPostComposerDialog-BCXfHgyD.js → ChatPostComposerDialog-UWNCaU6S.js} +2 -2
  4. package/dist/{CoachmarkProvider-CXRAZo57.js → CoachmarkProvider-NJDyjcbB.js} +17288 -17310
  5. package/dist/{CodeThumbnail-CrMWds9n.js → CodeThumbnail-BLWM5FmO.js} +1 -1
  6. package/dist/{CodeViewer-BYY3y3VG.js → CodeViewer-BjVmQeMm.js} +4 -4
  7. package/dist/{DocumentToolbar-CipRq68O.js → DocumentToolbar-Dq3Lwikl.js} +3 -3
  8. package/dist/{DocxViewer-8dEvcQjH.js → DocxViewer-70VqeeOa.js} +1 -1
  9. package/dist/{F0AiProcessingOverlay-CelAhVN1.js → F0AiProcessingOverlay-DFJNq358.js} +506 -506
  10. package/dist/{F0Alert-CjoArzBk.js → F0Alert-nVgfw7WI.js} +6 -6
  11. package/dist/F0AudioPlayer-CG3RpwqJ.js +2 -0
  12. package/dist/{F0CanvasPanel-B7AXL0XT.js → F0CanvasPanel-Dg-yCd06.js} +9497 -9662
  13. package/dist/{F0DocumentViewer-DcNc-yXR.js → F0DocumentViewer-QvayGtJt.js} +2 -2
  14. package/dist/{F0DocumentViewer-DVByu4vb.js → F0DocumentViewer-s2CNCz31.js} +1 -1
  15. package/dist/{F0Map-BN8BQzMZ.js → F0Map-BPWgG3Br.js} +503 -503
  16. package/dist/{F0Select-CtRlKRnL.js → F0Select-DV2A6yo2.js} +5684 -5684
  17. package/dist/{F0VideoPlayer-THvSQSCu.js → F0VideoPlayer-D7wWuao2.js} +14 -14
  18. package/dist/F0VideoPlayer-Dn8MFW-n.js +1 -0
  19. package/dist/{HtmlViewer-ClgjG-H_.js → HtmlViewer-B79wACEv.js} +4 -4
  20. package/dist/{Map-CdRcz8MV.js → Map-BwNqQnRV.js} +7 -7
  21. package/dist/{PdfThumbnail-CXYyO2sc.js → PdfThumbnail-BiI4wG8G.js} +1 -1
  22. package/dist/{PdfViewer-BNPz0po0.js → PdfViewer-DxW7iBqZ.js} +6 -6
  23. package/dist/{SheetViewer-BV4RjCqC.js → SheetViewer-CDGVktjK.js} +4 -4
  24. package/dist/{TextViewer-B-a77tb9.js → TextViewer-DSWQD1PY.js} +1 -1
  25. package/dist/ai.d.ts +2 -2
  26. package/dist/ai.js +3 -3
  27. package/dist/component-status.js +5 -5
  28. package/dist/experimental.d.ts +2 -2
  29. package/dist/experimental.js +570 -570
  30. package/dist/{exports-DxWkQJMl.d.ts → exports-DjzAyxYh.d.ts} +1 -1
  31. package/dist/f0.d.ts +3 -3
  32. package/dist/f0.js +944 -944
  33. package/dist/{highlight-B3C1rkLK.js → highlight-Ca0-nk5V.js} +6 -6
  34. package/dist/{index-MQOQkW-2.d.ts → index-D-HizTYE.d.ts} +13 -8
  35. package/dist/{index-CZ-TTSgT.d.ts → index-R6m9VGPq.d.ts} +8 -4
  36. package/dist/{maplibre-D5u_EpGf.js → maplibre-CQlQTgFD.js} +1 -1
  37. package/dist/{pdfWorker-allMZ4J8.js → pdfWorker-VXyiKOiL.js} +1 -1
  38. package/dist/styles.css +1 -1
  39. package/dist/{useData-Clrt5l2P.js → useData-BUahpDRq.js} +1 -1
  40. package/package.json +2 -2
  41. package/dist/F0AudioPlayer-_zrcaPAA.js +0 -2
  42. package/dist/F0VideoPlayer-CB52ikkB.js +0 -1
@@ -1,4 +1,4 @@
1
- import { An as e, kn as t, xn as n } from "./F0CanvasPanel-B7AXL0XT.js";
1
+ import { On as e, bn as t, kn as n } from "./F0CanvasPanel-Dg-yCd06.js";
2
2
  import { t as r } from "./purify.es-CJ7gZxxn.js";
3
3
  import { t as i } from "./ownValue-D4uSXt0d.js";
4
4
  //#region src/addons/documents/lib/codeLanguages.ts
@@ -14,12 +14,12 @@ var a = {
14
14
  xhtml: "xml",
15
15
  svg: "xml",
16
16
  env: "bash"
17
- }, o = (t) => e.includes(t), s = (e) => {
18
- let n = e?.trim().toLowerCase();
19
- return n ? o(n) ? n : i(t, n) ?? i(a, n) ?? null : null;
17
+ }, o = (e) => n.includes(e), s = (t) => {
18
+ let n = t?.trim().toLowerCase();
19
+ return n ? o(n) ? n : i(e, n) ?? i(a, n) ?? null : null;
20
20
  }, c = (e) => {
21
- let t = e?.split(/[\\/]/).pop()?.trim();
22
- return t ? n({ name: t }) : null;
21
+ let n = e?.split(/[\\/]/).pop()?.trim();
22
+ return n ? t({ name: n }) : null;
23
23
  }, l = {
24
24
  bash: () => import("./bash-D6uqvgOi.js"),
25
25
  c: () => import("./c-BCnJboA_.js"),
@@ -790,8 +790,10 @@ type F0ButtonProps = {
790
790
  * the promote yellow. Pair it with the `Upsell` icon.
791
791
  *
792
792
  * Deprecated: `"default"`, `"outline"`, `"neutral"` and `"outlinePromote"`
793
- * are aliases of `"hero"`, `"secondary"`, `"tertiary"` and `"promote"`. A
794
- * button with no variant still renders the hero.
793
+ * are aliases of `"hero"`, `"secondary"`, `"tertiary"` and `"promote"`. One
794
+ * exception: while `F0Provider`'s `newButtonStyles` is off, `"promote"` is
795
+ * the filled legacy button and `"outlinePromote"` keeps its outline. A button
796
+ * with no variant still renders the hero.
795
797
  */
796
798
  variant?: ButtonVariant;
797
799
  /**
@@ -7080,9 +7082,9 @@ declare const MobileDropdown: typeof MobileDropdownInternal;
7080
7082
  //#endregion
7081
7083
  //#region src/elements/F0CardHorizontal/components/CardHorizontalActions.d.ts
7082
7084
  /**
7083
- * Container breakpoint at which the horizontal card switches between its inline and its
7084
- * stacked (actions-on-their-own-line) layout. `never` keeps it inline at every
7085
- * width.
7085
+ * Container breakpoint below which the horizontal card stacks its actions on
7086
+ * their own line. With `never`, and at or above the breakpoint, the actions sit
7087
+ * beside the text when they fit and drop below it when they don't.
7086
7088
  */
7087
7089
  type CardHorizontalStackAt = "sm" | "md" | "lg" | "never";
7088
7090
  /** Size of the trailing controls (buttons and the "⋯" menu trigger). */
@@ -7151,7 +7153,7 @@ interface F0CardHorizontalProps {
7151
7153
  */
7152
7154
  actionsSize?: CardHorizontalActionsSize;
7153
7155
  /**
7154
- * Confirm/reject variant: renders an icon-only ✗ (reject) + ✓ (confirm) pair
7156
+ * Confirm/reject variant: renders a labelled reject (✗) + confirm (✓) pair
7155
7157
  * instead of the standard actions. Provide either or both.
7156
7158
  */
7157
7159
  confirmAction?: CardHorizontalConfirmAction;
@@ -7173,8 +7175,11 @@ interface F0CardHorizontalProps {
7173
7175
  */
7174
7176
  inactive?: boolean;
7175
7177
  /**
7176
- * Container width at which the actions drop to their own line (below it) vs.
7177
- * sit inline (at/above it). `never` keeps them inline at every width.
7178
+ * Container width below which the actions drop to their own line, with a
7179
+ * footer hairline, at its start. At or above it (at every width for `never`)
7180
+ * they sit beside the text at the trailing edge when they fit next to its
7181
+ * 12rem minimum, and drop below it, without the hairline, when they don't. A
7182
+ * confirm/reject pair always sits on its own line, whatever `stackAt` says.
7178
7183
  * @default "never"
7179
7184
  */
7180
7185
  stackAt?: CardHorizontalStackAt;
@@ -1,4 +1,4 @@
1
- import { Eo as DataAttributes, Go as CountryCode, Gt as CardImageSize, Hn as AlertAvatarProps, Io as IconAvatarVariant, Lo as PersonAvatarVariant, No as CompanyAvatarVariant, Oo as AvatarAction, Qn as Variant, Ro as TeamAvatarVariant, Tt as TranscribeFn, Ut as CardImageAspectRatio, Vn as CardAvatarVariant, Wt as CardImageFit, Zn as StatusVariant, _s as WithDataTestIdProps, ao as DropdownItemSeparator, do as F0ButtonProps, en as CardMetadata, eo as DropdownInternalProps, f as ButtonDropdownItem, fs as DistributiveOmit$1, hs as IconType, ko as AvatarVariant, ls as NewColor, ms as F0IconProps, nn as ValueDisplayRendererDefinition, on as TagVariant, ro as DropdownItemObject, ss as ModuleId, to as DropdownItem, ys as WithDataTestIdReturnType } from "./index-MQOQkW-2.js";
1
+ import { Eo as DataAttributes, Go as CountryCode, Gt as CardImageSize, Hn as AlertAvatarProps, Io as IconAvatarVariant, Lo as PersonAvatarVariant, No as CompanyAvatarVariant, Oo as AvatarAction, Qn as Variant, Ro as TeamAvatarVariant, Tt as TranscribeFn, Ut as CardImageAspectRatio, Vn as CardAvatarVariant, Wt as CardImageFit, Zn as StatusVariant, _s as WithDataTestIdProps, ao as DropdownItemSeparator, do as F0ButtonProps, en as CardMetadata, eo as DropdownInternalProps, f as ButtonDropdownItem, fs as DistributiveOmit$1, hs as IconType, ko as AvatarVariant, ls as NewColor, ms as F0IconProps, nn as ValueDisplayRendererDefinition, on as TagVariant, ro as DropdownItemObject, ss as ModuleId, to as DropdownItem, ys as WithDataTestIdReturnType } from "./index-D-HizTYE.js";
2
2
  import { n as TranslationsType } from "./i18n-provider-defaults-SQ7US7M7.js";
3
3
  import * as React$2 from "react";
4
4
  import React$1, { AriaAttributes, AutoFill, CSSProperties, ComponentProps, ComponentType, Dispatch, FC, ForwardedRef, HTMLAttributes, HTMLInputTypeAttribute, ReactElement, ReactNode, Ref, RefObject, TextareaHTMLAttributes } from "react";
@@ -3007,7 +3007,11 @@ interface BaseHeaderProps$1 {
3007
3007
  compact?: boolean;
3008
3008
  /** Renders a 1px bottom border at the very bottom of the header. */
3009
3009
  showBottomBorder?: boolean;
3010
- /** When set, renders a close button in the header actions that calls this on click. */
3010
+ /**
3011
+ * When set, renders a close button that calls this on click: after the
3012
+ * actions in a wide header, and in the header's top-right corner in a
3013
+ * narrow one, level with the title, or with the avatar when there is one.
3014
+ */
3011
3015
  onClose?: () => void;
3012
3016
  }
3013
3017
  declare function BaseHeader({ title, avatar, deactivated, description, primaryAction, secondaryActions, otherActions, status, metadata, metadataRowGap, compact, showBottomBorder, onClose }: BaseHeaderProps$1): import("react").JSX.Element;
@@ -5288,8 +5292,8 @@ type DataCollectionSourceDefinition<R extends RecordType = RecordType, Filters e
5288
5292
  currentNavigationFilters?: NavigationFiltersState<NavigationFilters>;
5289
5293
  /** URL for a single item in the collection */
5290
5294
  itemUrl?: (item: R) => string | undefined;
5291
- /** Click handler for a single item in the collection */
5292
- itemOnClick?: (item: R) => () => void;
5295
+ /** Click handler for a single item in the collection. `undefined` keeps the item's `itemUrl` link. */
5296
+ itemOnClick?: (item: R) => (() => void) | undefined;
5293
5297
  /** Available actions that can be performed on records */
5294
5298
  itemActions?: ItemActions;
5295
5299
  /** Available primary actions that can be performed on the collection */
@@ -1,6 +1,6 @@
1
1
  import { o as e } from "./rolldown-runtime-BItFwnF5.js";
2
2
  import { t } from "./dist-DMTFO2gF.js";
3
- import { s as n } from "./F0Map-BN8BQzMZ.js";
3
+ import { s as n } from "./F0Map-BPWgG3Br.js";
4
4
  import './maplibre-gl.css';import './maplibre.css';/* empty css */
5
5
  import { t as r } from "./maplibre-gl-C9VxucUv.js";
6
6
  //#region ../../node_modules/.bun/@mapbox+mapbox-gl-rtl-text@0.2.3+aaf0d59d7a26626d/node_modules/@mapbox/mapbox-gl-rtl-text/mapbox-gl-rtl-text.js?url
@@ -1,6 +1,6 @@
1
1
  import { o as e, r as t, t as n } from "./rolldown-runtime-BItFwnF5.js";
2
2
  import { z as r } from "./tooltip-NXXT56H4.js";
3
- import { to as i } from "./F0CanvasPanel-B7AXL0XT.js";
3
+ import { no as i } from "./F0CanvasPanel-Dg-yCd06.js";
4
4
  import { t as a } from "./dist-ZjZbrLOW.js";
5
5
  import { n as o, r as s } from "./pdfWorkerConfig-BwllKt1K.js";
6
6
  import { createContext as c, forwardRef as l, useCallback as u, useContext as d, useEffect as f, useImperativeHandle as p, useLayoutEffect as m, useMemo as h, useReducer as g, useRef as _ } from "react";