@factorialco/f0-react 16.32.0 → 16.33.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.
- package/dist/{ArchiveThumbnail-Dl2HnB--.js → ArchiveThumbnail-VRBMnfOQ.js} +7 -7
- package/dist/{ArchiveViewer-B_xB6xit.js → ArchiveViewer-FmO3W9El.js} +16 -16
- package/dist/{ChatPostComposerDialog-Bu0rlYyV.js → ChatPostComposerDialog-UWNCaU6S.js} +3 -3
- package/dist/{Check-B2Oii9hT.js → Check-DSKdy4lh.js} +1 -1
- package/dist/{CoachmarkProvider-VSAdFpIQ.js → CoachmarkProvider-NJDyjcbB.js} +17299 -17321
- package/dist/{CodeThumbnail-B5ghtujo.js → CodeThumbnail-BLWM5FmO.js} +1 -1
- package/dist/{CodeViewer-mu98BNUV.js → CodeViewer-BjVmQeMm.js} +6 -6
- package/dist/{DocumentToolbar-BoQH-Q42.js → DocumentToolbar-Dq3Lwikl.js} +5 -5
- package/dist/{DocxViewer-1twidm1_.js → DocxViewer-70VqeeOa.js} +3 -3
- package/dist/{Ellipsis-C36nOldJ.js → Ellipsis-D5UwpzSY.js} +1 -1
- package/dist/{ExternalLink-oako7DEE.js → ExternalLink-DOVErzVl.js} +1 -1
- package/dist/{F0AiProcessingOverlay-CDZ1EktV.js → F0AiProcessingOverlay-DFJNq358.js} +516 -516
- package/dist/{F0Alert-C0Bx7kYw.js → F0Alert-nVgfw7WI.js} +9 -9
- package/dist/F0AudioPlayer-CG3RpwqJ.js +2 -0
- package/dist/{F0Button-C_37FsAL.js → F0Button-B9tE57M3.js} +3 -3
- package/dist/{F0CanvasPanel-DqxUtxQb.js → F0CanvasPanel-Dg-yCd06.js} +9501 -9675
- package/dist/{F0DocumentViewer-BW9obU0m.js → F0DocumentViewer-QvayGtJt.js} +4 -4
- package/dist/{F0DocumentViewer-CA9SpbfT.js → F0DocumentViewer-s2CNCz31.js} +1 -1
- package/dist/{F0Map-tifx52Ux.js → F0Map-BPWgG3Br.js} +505 -505
- package/dist/{F0Select-99Jj4NGi.js → F0Select-DV2A6yo2.js} +5688 -5688
- package/dist/{F0Text-BSFZeGZS.js → F0Text-BDmNaecR.js} +2 -2
- package/dist/{F0VideoPlayer-CbUQbiYX.js → F0VideoPlayer-D7wWuao2.js} +21 -21
- package/dist/F0VideoPlayer-Dn8MFW-n.js +1 -0
- package/dist/{HtmlThumbnail-D_orDk32.js → HtmlThumbnail-BakLalKI.js} +1 -1
- package/dist/{HtmlViewer-wSUWTmvf.js → HtmlViewer-B79wACEv.js} +9 -9
- package/dist/{LayoutGroup-BdScbu1I.js → LayoutGroup-CuWgJO_W.js} +1 -1
- package/dist/{LockLocked-B3KX44wv.js → LockLocked-FmZAbVxB.js} +1 -1
- package/dist/{Map-D45L0VOw.js → Map-BwNqQnRV.js} +13 -13
- package/dist/{PdfThumbnail-D2hdT0Ni.js → PdfThumbnail-BiI4wG8G.js} +1 -1
- package/dist/{PdfViewer-CxDAtQp6.js → PdfViewer-DxW7iBqZ.js} +10 -10
- package/dist/{SandboxedHtmlFrame-BwWonsbG.js → SandboxedHtmlFrame-SKujax-U.js} +3 -3
- package/dist/{SheetViewer-CSGL7Qk0.js → SheetViewer-CDGVktjK.js} +7 -7
- package/dist/{TextViewer-CTe6dP0c.js → TextViewer-DSWQD1PY.js} +4 -4
- package/dist/ai.d.ts +3 -3
- package/dist/ai.js +5 -5
- package/dist/component-status.js +5 -5
- package/dist/{createIcon-B-z7hPQg.js → createIcon-l_kbsdJi.js} +1 -1
- package/dist/{dist-Ch_QnvD2.js → dist-BjlY6-o5.js} +4 -4
- package/dist/{dist--IVD9h9m.js → dist-C1RZo6kP.js} +2 -2
- package/dist/{dist-C3Fj2coq.js → dist-CiU6Cp6n.js} +1 -1
- package/dist/{dist-DEKBA6AC.js → dist-D0tUIJ0v.js} +2 -2
- package/dist/{dist-C0QdR0fU.js → dist-MPgX6tx_.js} +1 -1
- package/dist/experimental.d.ts +2 -2
- package/dist/experimental.js +3055 -3032
- package/dist/{exports-D-3BWR9h.d.ts → exports-DjzAyxYh.d.ts} +1 -1
- package/dist/f0.d.ts +4 -4
- package/dist/f0.js +954 -958
- package/dist/{highlight-C6TmYLa5.js → highlight-Ca0-nk5V.js} +6 -6
- package/dist/{i18n-provider-kdMqj3iD.js → i18n-provider-DEmElb7u.js} +1 -1
- package/dist/{i18n-provider-defaults-BRl6Z_VM.js → i18n-provider-defaults-CTH1Ugiz.js} +2 -1
- package/dist/{i18n-provider-defaults-BuHela-5.d.ts → i18n-provider-defaults-SQ7US7M7.d.ts} +2 -0
- package/dist/i18n-provider-defaults.d.ts +1 -1
- package/dist/i18n-provider-defaults.js +1 -1
- package/dist/{index-BYvzhQWm.d.ts → index-D-HizTYE.d.ts} +21 -10
- package/dist/{index-BACLk6eB.d.ts → index-g72aneMP.d.ts} +7 -3
- package/dist/{localized-D19oXKkk.js → localized-D86_eL7B.js} +1 -1
- package/dist/{maplibre-4SBUjOB1.js → maplibre-CQlQTgFD.js} +1 -1
- package/dist/{pdfWorker-Bl3lAQhv.js → pdfWorker-VXyiKOiL.js} +1 -1
- package/dist/{popover-BgQJIZoe.js → popover-B7-MjlA_.js} +1 -1
- package/dist/{skeleton-9cd4VWq0.js → skeleton-cJaQYsv6.js} +1 -1
- package/dist/styles.css +1 -1
- package/dist/{toolbarStyles-CIUnK4l1.js → toolbarStyles-DKWFaPuE.js} +1 -1
- package/dist/{useData-BurcbcjV.js → useData-BUahpDRq.js} +7 -7
- package/package.json +2 -2
- package/dist/F0AudioPlayer-DpisVDEA.js +0 -2
- package/dist/F0VideoPlayer-D4cOELIl.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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 = (
|
|
18
|
-
let n =
|
|
19
|
-
return n ? o(n) ? n : i(
|
|
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
|
|
22
|
-
return
|
|
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"),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./i18n-provider-defaults-
|
|
1
|
+
import { t as e } from "./i18n-provider-defaults-CTH1Ugiz.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
|
|
@@ -720,6 +720,8 @@ declare const defaultTranslations: {
|
|
|
720
720
|
readonly favorites: {
|
|
721
721
|
readonly favorites: "Favorites";
|
|
722
722
|
readonly remove: "Remove favorite";
|
|
723
|
+
/** The menu button on a favorite's row, for screen readers. */
|
|
724
|
+
readonly otherActions: "Other actions for {{label}}";
|
|
723
725
|
};
|
|
724
726
|
readonly notifications: "Notifications";
|
|
725
727
|
readonly toasts: {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as TranslationsType, r as defaultTranslations, t as TranslationKey } from "./i18n-provider-defaults-
|
|
1
|
+
import { n as TranslationsType, r as defaultTranslations, t as TranslationKey } from "./i18n-provider-defaults-SQ7US7M7.js";
|
|
2
2
|
export { TranslationKey, TranslationsType, defaultTranslations };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as defaultTranslations } from "./i18n-provider-defaults-
|
|
1
|
+
export { t as defaultTranslations } from "./i18n-provider-defaults-CTH1Ugiz.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as TranslationsType, t as TranslationKey } from "./i18n-provider-defaults-
|
|
1
|
+
import { n as TranslationsType, t as TranslationKey } from "./i18n-provider-defaults-SQ7US7M7.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";
|
|
@@ -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"`.
|
|
794
|
-
*
|
|
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
|
/**
|
|
@@ -974,6 +976,7 @@ type DropdownItemSwitch = DropdownItemVisuals & {
|
|
|
974
976
|
};
|
|
975
977
|
type DropdownInternalProps = {
|
|
976
978
|
items: DropdownItem[];
|
|
979
|
+
/** @default Ellipsis */
|
|
977
980
|
icon?: IconType;
|
|
978
981
|
size?: F0ButtonProps["size"];
|
|
979
982
|
children?: React$1.ReactNode;
|
|
@@ -7015,6 +7018,11 @@ declare const F0ButtonDropdown: WithDataTestIdReturnType<typeof _F0ButtonDropdow
|
|
|
7015
7018
|
interface DropdownProps extends DataAttributes, WithDataTestIdProps {
|
|
7016
7019
|
items: DropdownItem[];
|
|
7017
7020
|
children?: React.ReactNode;
|
|
7021
|
+
/**
|
|
7022
|
+
* Icon of the trigger the dropdown draws when no `children` are passed.
|
|
7023
|
+
* Action menus leave it unset so they all show the same vertical ellipsis.
|
|
7024
|
+
* @default Ellipsis
|
|
7025
|
+
*/
|
|
7018
7026
|
icon?: DropdownInternalProps["icon"];
|
|
7019
7027
|
size?: DropdownInternalProps["size"];
|
|
7020
7028
|
label?: string;
|
|
@@ -7066,7 +7074,7 @@ declare const DropdownWrapperInternal: (props: DropdownProps) => import("react")
|
|
|
7066
7074
|
* @experimental This is an experimental component use it at your own risk
|
|
7067
7075
|
*/
|
|
7068
7076
|
declare const Dropdown: typeof DropdownWrapperInternal;
|
|
7069
|
-
declare const MobileDropdownInternal: ({ items, children, dataTestId }: DropdownProps) => import("react").JSX.Element;
|
|
7077
|
+
declare const MobileDropdownInternal: ({ items, children, icon, dataTestId }: DropdownProps) => import("react").JSX.Element;
|
|
7070
7078
|
/**
|
|
7071
7079
|
* @experimental This is an experimental component use it at your own risk
|
|
7072
7080
|
*/
|
|
@@ -7074,9 +7082,9 @@ declare const MobileDropdown: typeof MobileDropdownInternal;
|
|
|
7074
7082
|
//#endregion
|
|
7075
7083
|
//#region src/elements/F0CardHorizontal/components/CardHorizontalActions.d.ts
|
|
7076
7084
|
/**
|
|
7077
|
-
* Container breakpoint
|
|
7078
|
-
*
|
|
7079
|
-
*
|
|
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.
|
|
7080
7088
|
*/
|
|
7081
7089
|
type CardHorizontalStackAt = "sm" | "md" | "lg" | "never";
|
|
7082
7090
|
/** Size of the trailing controls (buttons and the "⋯" menu trigger). */
|
|
@@ -7145,7 +7153,7 @@ interface F0CardHorizontalProps {
|
|
|
7145
7153
|
*/
|
|
7146
7154
|
actionsSize?: CardHorizontalActionsSize;
|
|
7147
7155
|
/**
|
|
7148
|
-
* Confirm/reject variant: renders
|
|
7156
|
+
* Confirm/reject variant: renders a labelled reject (✗) + confirm (✓) pair
|
|
7149
7157
|
* instead of the standard actions. Provide either or both.
|
|
7150
7158
|
*/
|
|
7151
7159
|
confirmAction?: CardHorizontalConfirmAction;
|
|
@@ -7167,8 +7175,11 @@ interface F0CardHorizontalProps {
|
|
|
7167
7175
|
*/
|
|
7168
7176
|
inactive?: boolean;
|
|
7169
7177
|
/**
|
|
7170
|
-
* Container width
|
|
7171
|
-
*
|
|
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.
|
|
7172
7183
|
* @default "never"
|
|
7173
7184
|
*/
|
|
7174
7185
|
stackAt?: CardHorizontalStackAt;
|
|
@@ -1,5 +1,5 @@
|
|
|
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-
|
|
2
|
-
import { n as TranslationsType } from "./i18n-provider-defaults-
|
|
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
|
+
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";
|
|
5
5
|
import { VariantProps } from "cva";
|
|
@@ -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
|
-
/**
|
|
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;
|
|
@@ -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-
|
|
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 {
|
|
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";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { L as e, s as t } from "./tooltip-NXXT56H4.js";
|
|
2
|
-
import { o as n } from "./createIcon-
|
|
2
|
+
import { o as n } from "./createIcon-l_kbsdJi.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";
|