@factorialco/f0-react 12.17.0 → 12.19.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 (41) hide show
  1. package/dist/{ArchiveThumbnail-dGuKclaw.js → ArchiveThumbnail-C6VAmA8m.js} +1 -1
  2. package/dist/{ArchiveViewer-D4fZ2Zko.js → ArchiveViewer-BazW1aiB.js} +2 -2
  3. package/dist/{ChatPostComposerDialog-ZUy4oL4n.js → ChatPostComposerDialog-B0y-__Ze.js} +2 -2
  4. package/dist/{CoachmarkProvider-Bui0J43V.js → CoachmarkProvider-DLRXLziQ.js} +19466 -19413
  5. package/dist/{CodeThumbnail-BN74kiZ4.js → CodeThumbnail-CWieoY1L.js} +1 -1
  6. package/dist/{CodeViewer-DAISBEVU.js → CodeViewer-TxnjmBpq.js} +4 -4
  7. package/dist/{DocumentToolbar-DY0Zl0N_.js → DocumentToolbar-DahGBwqk.js} +2 -2
  8. package/dist/{DocxViewer-CU-h8JZo.js → DocxViewer-D0Y18q6_.js} +1 -1
  9. package/dist/{F0AiProcessingOverlay-1sgWr47b.js → F0AiProcessingOverlay-ohDfa0Py.js} +2 -2
  10. package/dist/{F0Alert--45qrdm9.js → F0Alert-jXXSuKRF.js} +1 -1
  11. package/dist/F0AudioPlayer-CH1sHdho.js +2 -0
  12. package/dist/{F0CanvasPanel-B07KPl9L.js → F0CanvasPanel-CnonRuvY.js} +99 -75
  13. package/dist/{F0DocumentViewer-gfD2E9-m.js → F0DocumentViewer-D7haXuNZ.js} +1 -1
  14. package/dist/{F0DocumentViewer-CPu9X2o1.js → F0DocumentViewer-Dg4NWXCa.js} +2 -2
  15. package/dist/{F0Map-CpggFT94.js → F0Map-BDieutRV.js} +17 -17
  16. package/dist/{F0Select-DmSUsNZ8.js → F0Select-CvMv06GW.js} +6 -5
  17. package/dist/F0VideoPlayer-BOMjuJ6J.js +1 -0
  18. package/dist/{F0VideoPlayer-C1JRJ63P.js → F0VideoPlayer-qlCZpqK5.js} +1 -1
  19. package/dist/{HtmlViewer-D6_vKugG.js → HtmlViewer-CcIgTEz4.js} +4 -4
  20. package/dist/{Map-BSvthUb7.js → Map-Bcgnkg1N.js} +3 -3
  21. package/dist/{PdfThumbnail-CXumcn98.js → PdfThumbnail-Bb_lyqOG.js} +1 -1
  22. package/dist/{PdfViewer-Pdk37Dts.js → PdfViewer-D6cxjRu6.js} +3 -3
  23. package/dist/{SheetViewer-BvAA9h38.js → SheetViewer-BYBFxR76.js} +2 -2
  24. package/dist/{TextViewer-D9CCbblP.js → TextViewer-BnG61rah.js} +1 -1
  25. package/dist/ai.d.ts +2 -2
  26. package/dist/ai.js +2 -2
  27. package/dist/component-status.js +1 -1
  28. package/dist/experimental.d.ts +27 -2
  29. package/dist/experimental.js +4539 -4464
  30. package/dist/{exports-4R3tYgiD.d.ts → exports-C7jMRUms.d.ts} +1 -1
  31. package/dist/f0.d.ts +3 -3
  32. package/dist/f0.js +158 -158
  33. package/dist/{highlight-cuPZlWw_.js → highlight-pN8V_hHA.js} +1 -1
  34. package/dist/{index-MOV0Rv_v.d.ts → index-DhHqqZvu.d.ts} +2 -0
  35. package/dist/{maplibre-D0TBtDi0.js → maplibre-BpImIhom.js} +1 -1
  36. package/dist/{pdfWorker-B3PnBrSO.js → pdfWorker-BnuMhHAU.js} +1 -1
  37. package/dist/styles.css +1 -1
  38. package/dist/{types-BdObZULx.d.ts → types-zDD6DPqU.d.ts} +24 -3
  39. package/package.json +1 -1
  40. package/dist/F0AudioPlayer-ZqghWPaS.js +0 -2
  41. package/dist/F0VideoPlayer-BqAcQLm4.js +0 -1
@@ -1,4 +1,4 @@
1
- import { Aa as WithDataTestIdProps, Da as F0IconProps, Dn as ChartColorToken, Fn as CardAvatarVariant, Hi as AvatarVariant, Hn as DropdownContentVariant, In as AlertAvatarProps, Jn as DropdownItemSeparator, Jt as ValueDisplayRendererDefinition, Ki as CompanyAvatarVariant, Kn as DropdownItemObject, Kt as CardMetadata, Lt as CardImageAspectRatio, Ma as WithDataTestIdReturnType, Oa as IconType, Qt as TagVariant, Ri as DataAttributes, Rt as CardImageFit, Sa as NewColor, Ta as DistributiveOmit$1, Un as DropdownInternalProps, Vi as AvatarAction, Wn as DropdownItem, Xi as PersonAvatarVariant, Yi as IconAvatarVariant, Zi as TeamAvatarVariant, _r as Variant, ba as ModuleId, er as F0ButtonProps, gr as StatusVariant, ia as CountryCode, yt as TranscribeFn, zt as CardImageSize } from "./index-MOV0Rv_v.js";
1
+ import { Aa as WithDataTestIdProps, Da as F0IconProps, Dn as ChartColorToken, Fn as CardAvatarVariant, Hi as AvatarVariant, Hn as DropdownContentVariant, In as AlertAvatarProps, Jn as DropdownItemSeparator, Jt as ValueDisplayRendererDefinition, Ki as CompanyAvatarVariant, Kn as DropdownItemObject, Kt as CardMetadata, Lt as CardImageAspectRatio, Ma as WithDataTestIdReturnType, Oa as IconType, Qt as TagVariant, Ri as DataAttributes, Rt as CardImageFit, Sa as NewColor, Ta as DistributiveOmit$1, Un as DropdownInternalProps, Vi as AvatarAction, Wn as DropdownItem, Xi as PersonAvatarVariant, Yi as IconAvatarVariant, Zi as TeamAvatarVariant, _r as Variant, ba as ModuleId, er as F0ButtonProps, gr as StatusVariant, ia as CountryCode, yt as TranscribeFn, zt as CardImageSize } from "./index-DhHqqZvu.js";
2
2
  import { n as TranslationsType } from "./i18n-provider-defaults-DyPn8R7T.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, RefAttributes, RefObject, TextareaHTMLAttributes } from "react";
@@ -3031,6 +3031,8 @@ declare const dialogPositions: readonly ["center", "left", "right", "fullscreen"
3031
3031
  type DialogPosition = (typeof dialogPositions)[number];
3032
3032
  declare const dialogWidths: readonly ["sm", "md", "lg", "xl"];
3033
3033
  type DialogWidth = (typeof dialogWidths)[number];
3034
+ declare const dialogMaxHeights: readonly ["sm", "md", "lg"];
3035
+ type DialogMaxHeight = (typeof dialogMaxHeights)[number];
3034
3036
  interface F0DialogPrimaryAction {
3035
3037
  label: string;
3036
3038
  icon?: IconType;
@@ -3185,6 +3187,13 @@ type F0DialogInternalProps = {
3185
3187
  asBottomSheetInMobile?: boolean;
3186
3188
  position?: DialogPosition;
3187
3189
  width?: DialogWidth;
3190
+ /**
3191
+ * The most a centred dialog grows to before its content scrolls under the
3192
+ * header, for one that would otherwise stretch to the window's height: a
3193
+ * long list reads better in a steady box than in one as tall as the screen.
3194
+ * Never taller than the window. Unset, it grows to the window's height.
3195
+ */
3196
+ maxHeight?: DialogMaxHeight;
3188
3197
  primaryAction?: F0DialogPrimaryAction | F0DialogPrimaryActionItem[];
3189
3198
  secondaryAction?: F0DialogSecondaryAction | F0DialogSecondaryActionItem[];
3190
3199
  title?: string;
@@ -5158,6 +5167,12 @@ interface TableHeadProps {
5158
5167
  * while never shrinking below this value.
5159
5168
  */
5160
5169
  minWidth?: ColumnWidth;
5170
+ /**
5171
+ * Optional maximum width for the header cell, in pixels. Lets a column
5172
+ * without a fixed `width` size to its content up to this value; a longer
5173
+ * label truncates with an ellipsis. Ignored when `width` is a number.
5174
+ */
5175
+ maxWidth?: number;
5161
5176
  /**
5162
5177
  * When true, the header cell will stick in the specified position when scrolling horizontally
5163
5178
  * @default undefined
@@ -5222,7 +5237,7 @@ interface TableHeadProps {
5222
5237
  */
5223
5238
  colSpan?: number;
5224
5239
  }
5225
- declare function TableHead({ children, width, minWidth, sortState, onSortClick, onClick, info, infoIcon, sticky, hidden, highlighted, align, className, colSpan }: TableHeadProps): import("react").JSX.Element;
5240
+ declare function TableHead({ children, width, minWidth, maxWidth, sortState, onSortClick, onClick, info, infoIcon, sticky, hidden, highlighted, align, className, colSpan }: TableHeadProps): import("react").JSX.Element;
5226
5241
  //#endregion
5227
5242
  //#region src/addons/data-collection/OneDataCollection/propertyTypes.d.ts
5228
5243
  type RendererDefinition = ValueDisplayRendererDefinition;
@@ -5920,9 +5935,15 @@ type WithOptionalSorting<R extends RecordType, Sortings extends SortingsDefiniti
5920
5935
  * `width` that should not shrink below a given size.
5921
5936
  */
5922
5937
  minWidth?: number;
5938
+ /**
5939
+ * Optional maximum width for the column in pixels. Without a fixed `width`,
5940
+ * the column sizes to its content between `minWidth` and this value, and
5941
+ * text past it truncates with an ellipsis. Ignored when `width` is set.
5942
+ */
5943
+ maxWidth?: number;
5923
5944
  };
5924
5945
  type ColId = string;
5925
- type TableColumnDefinition<R extends RecordType, Sortings extends SortingsDefinition, Summaries extends SummariesDefinition> = WithOptionalSorting<R, Sortings> & Pick<ComponentProps<typeof TableHead>, "hidden" | "info" | "infoIcon" | "sticky" | "width" | "minWidth"> & {
5946
+ type TableColumnDefinition<R extends RecordType, Sortings extends SortingsDefinition, Summaries extends SummariesDefinition> = WithOptionalSorting<R, Sortings> & Pick<ComponentProps<typeof TableHead>, "hidden" | "info" | "infoIcon" | "sticky" | "width" | "minWidth" | "maxWidth"> & {
5926
5947
  /**
5927
5948
  * Optional summary configuration for this column
5928
5949
  * References a key in the Summaries definition, similar to how sorting works
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@factorialco/f0-react",
3
- "version": "12.17.0",
3
+ "version": "12.19.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/factorialco/f0.git",
@@ -1,2 +0,0 @@
1
- export { vi as F0AudioPlayer } from "./F0CanvasPanel-B07KPl9L.js";
2
- import "./f0.js";
@@ -1 +0,0 @@
1
- export { t as F0VideoPlayer } from "./F0VideoPlayer-C1JRJ63P.js";