@factorialco/f0-react 16.7.1 → 16.8.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 (60) hide show
  1. package/dist/{ArchiveThumbnail-DxxGStkI.js → ArchiveThumbnail-BKvu3lcu.js} +3 -3
  2. package/dist/{ArchiveViewer-nuxVYoSA.js → ArchiveViewer-PokpRAw4.js} +5 -5
  3. package/dist/{ChatPostComposerDialog-B-n-Hqds.js → ChatPostComposerDialog-D-5viWxQ.js} +3 -3
  4. package/dist/{CoachmarkProvider-BGx__lPw.js → CoachmarkProvider-C47BcI7u.js} +14355 -14354
  5. package/dist/{CodeThumbnail-DqH5gHZu.js → CodeThumbnail-CroXmUci.js} +1 -1
  6. package/dist/{CodeViewer-T59a8NjB.js → CodeViewer-DVTJp_wA.js} +6 -6
  7. package/dist/{DocumentToolbar-Dylh5Ap4.js → DocumentToolbar-BANw77k3.js} +5 -5
  8. package/dist/{DocxViewer-7n-AYpP4.js → DocxViewer-CevgUJLK.js} +3 -3
  9. package/dist/{F0AiProcessingOverlay-ODrQ_8Bz.js → F0AiProcessingOverlay-DI6jMuCD.js} +339 -339
  10. package/dist/{F0Alert-Ck3zBYdd.js → F0Alert-ieGe_wih.js} +7 -7
  11. package/dist/F0AudioPlayer-uMvUIjPA.js +2 -0
  12. package/dist/{F0Button-K-Tsj-wR.js → F0Button-CfK_6Dfx.js} +3 -3
  13. package/dist/{F0CanvasPanel-8sSInjUf.js → F0CanvasPanel-C4ph6y28.js} +4195 -4195
  14. package/dist/{F0DocumentViewer-BrWkziLK.js → F0DocumentViewer-CB-M5vkX.js} +4 -4
  15. package/dist/{F0DocumentViewer-CAHZnuNS.js → F0DocumentViewer-NYnR9AyB.js} +1 -1
  16. package/dist/{F0Icon-BBCAaVEn.js → F0Icon-BPx-9kOK.js} +1 -1
  17. package/dist/{F0Map-DvLUX9Ft.js → F0Map-CGd46RFu.js} +13 -13
  18. package/dist/{F0Select-FocuIygc.js → F0Select-mxxXMo_K.js} +10 -12
  19. package/dist/{F0Text-40EQGsxS.js → F0Text-1893f70w.js} +2 -2
  20. package/dist/F0VideoPlayer-BA5EvMse.js +1 -0
  21. package/dist/{F0VideoPlayer-7r47FGZM.js → F0VideoPlayer-C0z6zvj3.js} +20 -20
  22. package/dist/{HtmlThumbnail-B9Gz3J8v.js → HtmlThumbnail-BXothSJU.js} +1 -1
  23. package/dist/{HtmlViewer-CCBntGYz.js → HtmlViewer-0nFbOUq8.js} +9 -9
  24. package/dist/{LayoutGroup-B8iuK3D7.js → LayoutGroup-CAwOHvO6.js} +1 -1
  25. package/dist/{Map-D-WSG3i2.js → Map-B08PBTa7.js} +10 -10
  26. package/dist/{PdfThumbnail-etMVzOej.js → PdfThumbnail-D7J4iWRY.js} +1 -1
  27. package/dist/{PdfViewer-N8tnidrx.js → PdfViewer-cW_JCDxU.js} +11 -11
  28. package/dist/{SandboxedHtmlFrame-DYYjEWYn.js → SandboxedHtmlFrame-jclBkupb.js} +2 -2
  29. package/dist/{SheetViewer-DyNij5aV.js → SheetViewer-DqoHh8uJ.js} +5 -5
  30. package/dist/{TextViewer-Cb52tMok.js → TextViewer-Bj4KGv39.js} +4 -4
  31. package/dist/ai.d.ts +3 -3
  32. package/dist/ai.js +4 -4
  33. package/dist/component-status.js +51 -7
  34. package/dist/{dist-jtkUGoUE.js → dist-BWgB2Pxk.js} +2 -2
  35. package/dist/{dist-Bqn2Tvbv.js → dist-CCGn12Jl.js} +1 -1
  36. package/dist/{dist-DQLaXxAV.js → dist-D12pKTJH.js} +1 -1
  37. package/dist/{dist-DT2eYug9.js → dist-DG8KKI8a.js} +1 -1
  38. package/dist/{dist-RnbZP6nJ.js → dist-DjDZq_T-.js} +4 -4
  39. package/dist/experimental.d.ts +122 -3
  40. package/dist/experimental.js +5738 -5299
  41. package/dist/{exports-DyepZL4X.d.ts → exports-DRNFj_kP.d.ts} +1 -1
  42. package/dist/f0.d.ts +4 -4
  43. package/dist/f0.js +177 -177
  44. package/dist/{highlight-BmHT5bVt.js → highlight-CciFQ6gi.js} +1 -1
  45. package/dist/{i18n-provider-B3-P0gAN.js → i18n-provider-C-057er8.js} +1 -1
  46. package/dist/{i18n-provider-defaults-D4jZJwqk.js → i18n-provider-defaults-C660Phfh.js} +4 -0
  47. package/dist/{i18n-provider-defaults-DDg-0uul.d.ts → i18n-provider-defaults-ClM5fIad.d.ts} +4 -0
  48. package/dist/i18n-provider-defaults.d.ts +1 -1
  49. package/dist/i18n-provider-defaults.js +1 -1
  50. package/dist/{index-Bon-AuSX.d.ts → index-Ccf5oVQR.d.ts} +13 -13
  51. package/dist/{maplibre-CBdPIfGt.js → maplibre-DSB7gj3I.js} +1 -1
  52. package/dist/{pdfWorker-GOiDQZal.js → pdfWorker-D4A-2BUo.js} +1 -1
  53. package/dist/{popover-Fe5Kn3Xb.js → popover-BVz3QY-0.js} +1 -1
  54. package/dist/{skeleton-C-H2S5ZI.js → skeleton-C__vPA8D.js} +1 -1
  55. package/dist/{toolbarStyles-BAunJtAw.js → toolbarStyles-umCmRgJJ.js} +1 -1
  56. package/dist/{types-B_RODWSZ.d.ts → types-DBhqq-Lu.d.ts} +2 -2
  57. package/dist/{useData-CKJGQ0mx.js → useData-CaY41foq.js} +20 -14
  58. package/package.json +1 -1
  59. package/dist/F0AudioPlayer-DadfbJQp.js +0 -2
  60. package/dist/F0VideoPlayer-CZ2o-kkq.js +0 -1
@@ -1,4 +1,4 @@
1
- import { an as e, mn as t, pn as n } from "./F0CanvasPanel-8sSInjUf.js";
1
+ import { an as e, mn as t, pn as n } from "./F0CanvasPanel-C4ph6y28.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
@@ -1,4 +1,4 @@
1
- import { t as e } from "./i18n-provider-defaults-D4jZJwqk.js";
1
+ import { t as e } from "./i18n-provider-defaults-C660Phfh.js";
2
2
  import { createContext as t, forwardRef as n, memo as r, useContext as i, useEffect as a, useMemo as o, useState as s } from "react";
3
3
  import { jsx as c } from "react/jsx-runtime";
4
4
  //#region src/elements/providers/user-platafform/user-platform.ts
@@ -400,6 +400,10 @@ var e = {
400
400
  }
401
401
  },
402
402
  personCard: { viewProfile: "View profile" },
403
+ avatar: {
404
+ deactivated: "Deactivated",
405
+ pending: "Open position"
406
+ },
403
407
  coachmark: {
404
408
  next: "Next",
405
409
  done: "Got it"
@@ -421,6 +421,10 @@ declare const defaultTranslations: {
421
421
  readonly personCard: {
422
422
  readonly viewProfile: "View profile";
423
423
  };
424
+ readonly avatar: {
425
+ readonly deactivated: "Deactivated";
426
+ readonly pending: "Open position";
427
+ };
424
428
  readonly coachmark: {
425
429
  readonly next: "Next";
426
430
  readonly done: "Got it";
@@ -1,2 +1,2 @@
1
- import { n as TranslationsType, r as defaultTranslations, t as TranslationKey } from "./i18n-provider-defaults-DDg-0uul.js";
1
+ import { n as TranslationsType, r as defaultTranslations, t as TranslationKey } from "./i18n-provider-defaults-ClM5fIad.js";
2
2
  export { TranslationKey, TranslationsType, defaultTranslations };
@@ -1 +1 @@
1
- export { t as defaultTranslations } from "./i18n-provider-defaults-D4jZJwqk.js";
1
+ export { t as defaultTranslations } from "./i18n-provider-defaults-C660Phfh.js";
@@ -1,4 +1,4 @@
1
- import { n as TranslationsType, t as TranslationKey } from "./i18n-provider-defaults-DDg-0uul.js";
1
+ import { n as TranslationsType, t as TranslationKey } from "./i18n-provider-defaults-ClM5fIad.js";
2
2
  import * as React$2 from "react";
3
3
  import React$1, { AnchorHTMLAttributes, ComponentProps, ComponentType, FC, ForwardRefExoticComponent, ForwardedRef, HTMLAttributeAnchorTarget, HTMLAttributes, KeyboardEvent, PropsWithChildren, ReactElement, ReactNode, Ref, RefAttributes, RefObject, SVGProps } from "react";
4
4
  import { VariantProps } from "cva";
@@ -377,7 +377,11 @@ declare namespace F0AvatarIconBase {
377
377
  declare const F0AvatarIcon: WithDataTestIdReturnType<typeof F0AvatarIconBase>;
378
378
  //#endregion
379
379
  //#region src/elements/avatars/F0AvatarPerson/types.d.ts
380
- type F0AvatarPersonProps = {
380
+ /**
381
+ * Who a person avatar stands for: the fields the avatar and the `person`
382
+ * value display share.
383
+ */
384
+ interface F0AvatarPersonData {
381
385
  /**
382
386
  * The first name of the person.
383
387
  */
@@ -390,10 +394,6 @@ type F0AvatarPersonProps = {
390
394
  * The source of the person's image.
391
395
  */
392
396
  src?: string;
393
- /**
394
- * The size of the avatar.
395
- */
396
- size?: BaseAvatarProps["size"];
397
397
  /**
398
398
  * The badge to display on the avatar. Can be a module badge or a custom badge.
399
399
  */
@@ -414,6 +414,12 @@ type F0AvatarPersonProps = {
414
414
  * Mutually exclusive with `deactivated`.
415
415
  */
416
416
  pending?: boolean;
417
+ }
418
+ type F0AvatarPersonProps = F0AvatarPersonData & {
419
+ /**
420
+ * The size of the avatar.
421
+ */
422
+ size?: BaseAvatarProps["size"];
417
423
  } & Pick<BaseAvatarProps, "aria-label" | "aria-labelledby">;
418
424
  //#endregion
419
425
  //#region src/elements/avatars/F0AvatarTeam/F0AvatarTeam.d.ts
@@ -3484,13 +3490,7 @@ type PercentageCellValue = number | undefined | PercentageValue;
3484
3490
  declare const PercentageCell: (args: PercentageCellValue, meta: ValueDisplayRendererContext) => import("react").JSX.Element | null;
3485
3491
  //#endregion
3486
3492
  //#region src/elements/value-display/types/person/person.d.ts
3487
- interface PersonValue {
3488
- firstName: string;
3489
- lastName: string;
3490
- src?: string;
3491
- deactivated?: boolean;
3492
- }
3493
- type PersonCellValue = WithAvatarBadge<PersonValue>;
3493
+ type PersonCellValue = F0AvatarPersonData;
3494
3494
  declare const PersonCell: (args: PersonCellValue, meta: ValueDisplayRendererContext) => import("react").JSX.Element;
3495
3495
  //#endregion
3496
3496
  //#region src/elements/value-display/types/progressBar/progressBar.d.ts
@@ -1,6 +1,6 @@
1
1
  import { o as e } from "./rolldown-runtime-BItFwnF5.js";
2
2
  import { t } from "./dist-BCNVh6y5.js";
3
- import { s as n } from "./F0Map-DvLUX9Ft.js";
3
+ import { s as n } from "./F0Map-CGd46RFu.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 { La as i } from "./F0CanvasPanel-8sSInjUf.js";
3
+ import { La as i } from "./F0CanvasPanel-C4ph6y28.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";
@@ -1,5 +1,5 @@
1
1
  import { L as e, s as t } from "./tooltip-NXXT56H4.js";
2
- import { n } from "./F0Icon-BBCAaVEn.js";
2
+ import { n } from "./F0Icon-BPx-9kOK.js";
3
3
  import * as r from "react";
4
4
  import i, { createElement as a, forwardRef as o, useEffect as s, useLayoutEffect as c, useState as l } from "react";
5
5
  import { jsx as u, jsxs as d } from "react/jsx-runtime";
@@ -1,4 +1,4 @@
1
- import { u as e } from "./i18n-provider-B3-P0gAN.js";
1
+ import { u as e } from "./i18n-provider-C-057er8.js";
2
2
  import { L as t } from "./tooltip-NXXT56H4.js";
3
3
  import { forwardRef as n, memo as r } from "react";
4
4
  import { jsx as i } from "react/jsx-runtime";
@@ -1,5 +1,5 @@
1
1
  import { L as e } from "./tooltip-NXXT56H4.js";
2
- import { t } from "./F0Button-K-Tsj-wR.js";
2
+ import { t } from "./F0Button-CfK_6Dfx.js";
3
3
  import { jsx as n } from "react/jsx-runtime";
4
4
  //#region src/addons/documents/F0DocumentViewer/pdfActions.ts
5
5
  var r = async (e) => {
@@ -1,5 +1,5 @@
1
- import { $n as StatusVariant, Ba as DataAttributes, Co as NewColor, Eo as DistributiveOmit$1, Fn as ChartColorToken, Gt as CardImageSize, Ha as AvatarAction, No as WithDataTestIdReturnType, Oo as F0IconProps, Qa as TeamAvatarVariant, Ta as F0ButtonProps, Tt as TranscribeFn, Ua as AvatarVariant, Un as CardAvatarVariant, Ut as CardImageAspectRatio, Wn as AlertAvatarProps, Wt as CardImageFit, Xa as IconAvatarVariant, Za as PersonAvatarVariant, _a as DropdownItemObject, ao as CountryCode, en as CardMetadata, er as Variant, f as ButtonDropdownItem, ha as DropdownItem, jo as WithDataTestIdProps, ko as IconType, ma as DropdownInternalProps, nn as ValueDisplayRendererDefinition, on as TagVariant, qa as CompanyAvatarVariant, xo as ModuleId, ya as DropdownItemSeparator } from "./index-Bon-AuSX.js";
2
- import { n as TranslationsType } from "./i18n-provider-defaults-DDg-0uul.js";
1
+ import { $n as StatusVariant, Ba as DataAttributes, Co as NewColor, Eo as DistributiveOmit$1, Fn as ChartColorToken, Gt as CardImageSize, Ha as AvatarAction, No as WithDataTestIdReturnType, Oo as F0IconProps, Qa as TeamAvatarVariant, Ta as F0ButtonProps, Tt as TranscribeFn, Ua as AvatarVariant, Un as CardAvatarVariant, Ut as CardImageAspectRatio, Wn as AlertAvatarProps, Wt as CardImageFit, Xa as IconAvatarVariant, Za as PersonAvatarVariant, _a as DropdownItemObject, ao as CountryCode, en as CardMetadata, er as Variant, f as ButtonDropdownItem, ha as DropdownItem, jo as WithDataTestIdProps, ko as IconType, ma as DropdownInternalProps, nn as ValueDisplayRendererDefinition, on as TagVariant, qa as CompanyAvatarVariant, xo as ModuleId, ya as DropdownItemSeparator } from "./index-Ccf5oVQR.js";
2
+ import { n as TranslationsType } from "./i18n-provider-defaults-ClM5fIad.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";
5
5
  import { VariantProps } from "cva";
@@ -1,11 +1,11 @@
1
1
  import { r as e } from "./rolldown-runtime-BItFwnF5.js";
2
- import { a as t, i as n, r } from "./i18n-provider-B3-P0gAN.js";
3
- import { n as i, t as a } from "./skeleton-C-H2S5ZI.js";
2
+ import { a as t, i as n, r } from "./i18n-provider-C-057er8.js";
3
+ import { n as i, t as a } from "./skeleton-C__vPA8D.js";
4
4
  import { L as o, R as s } from "./tooltip-NXXT56H4.js";
5
- import { C as c, I as l, K as u, f as d, t as f } from "./F0Button-K-Tsj-wR.js";
6
- import { o as p, r as m, t as h } from "./F0Icon-BBCAaVEn.js";
7
- import { a as g, d as _, f as v, i as ee, m as y, t as b, w as x } from "./popover-Fe5Kn3Xb.js";
8
- import { _ as S, d as C, g as w, i as T, r as E, v as te } from "./dist-jtkUGoUE.js";
5
+ import { C as c, I as l, K as u, f as d, t as f } from "./F0Button-CfK_6Dfx.js";
6
+ import { o as p, r as m, t as h } from "./F0Icon-BPx-9kOK.js";
7
+ import { a as g, d as _, f as v, i as ee, m as y, t as b, w as x } from "./popover-BVz3QY-0.js";
8
+ import { _ as S, d as C, g as w, i as T, r as E, v as te } from "./dist-BWgB2Pxk.js";
9
9
  import { t as D } from "./dist-BCNVh6y5.js";
10
10
  import { t as ne } from "./ownValue-D4uSXt0d.js";
11
11
  import * as O from "react";
@@ -17403,19 +17403,25 @@ var Yo = t(Jo), Xo = [
17403
17403
  })
17404
17404
  });
17405
17405
  Qo.displayName = "IconAvatar";
17406
- var $o = t(Qo), es = ({ firstName: e, lastName: t, src: n, size: r, "aria-label": i, "aria-labelledby": a, badge: o, deactivated: s, pending: c }) => {
17407
- let l = s ? U : c ? W : void 0;
17406
+ var $o = t(Qo), es = ({ firstName: e, lastName: t, src: n, size: i, "aria-label": a, "aria-labelledby": o, badge: s, deactivated: c, pending: l }) => {
17407
+ let { avatar: u } = r(), d = c ? {
17408
+ icon: U,
17409
+ label: u.deactivated
17410
+ } : l ? {
17411
+ icon: W,
17412
+ label: u.pending
17413
+ } : void 0;
17408
17414
  return /* @__PURE__ */ z(Z, {
17409
17415
  type: "rounded",
17410
17416
  name: [e, t],
17411
17417
  src: n,
17412
- size: r,
17418
+ size: i,
17413
17419
  color: "random",
17414
- "aria-label": i,
17415
- "aria-labelledby": a,
17416
- badge: o,
17417
- icon: l ? {
17418
- icon: l,
17420
+ "aria-label": a ?? (o ? void 0 : d?.label),
17421
+ "aria-labelledby": o,
17422
+ badge: s,
17423
+ icon: d ? {
17424
+ icon: d.icon,
17419
17425
  color: "secondary"
17420
17426
  } : void 0
17421
17427
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@factorialco/f0-react",
3
- "version": "16.7.1",
3
+ "version": "16.8.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/factorialco/f0.git",
@@ -1,2 +0,0 @@
1
- export { qi as F0AudioPlayer } from "./F0CanvasPanel-8sSInjUf.js";
2
- import "./f0.js";
@@ -1 +0,0 @@
1
- export { t as F0VideoPlayer } from "./F0VideoPlayer-7r47FGZM.js";