@factorialco/f0-react 16.21.0 → 16.23.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-BePfOv3F.js → ArchiveThumbnail-DVDLD1KO.js} +1 -1
- package/dist/{ArchiveViewer-DvKspMsv.js → ArchiveViewer-DE9_XePM.js} +2 -2
- package/dist/{ChatPostComposerDialog-BhlQzTXz.js → ChatPostComposerDialog-CwwUOsKv.js} +2 -2
- package/dist/{CoachmarkProvider-B0Fs1pf7.js → CoachmarkProvider-DKzIMyWY.js} +20671 -20665
- package/dist/{CodeThumbnail-CZKjZwpZ.js → CodeThumbnail-xdea98O9.js} +1 -1
- package/dist/{CodeViewer-DNLPQ2xO.js → CodeViewer-Btnvqa-X.js} +6 -6
- package/dist/{DocumentToolbar-Dua6PID0.js → DocumentToolbar-B_sygiWe.js} +5 -5
- package/dist/{DocxViewer-D2S3lGOn.js → DocxViewer-BKEv7ORw.js} +1 -1
- package/dist/{F0AiProcessingOverlay-bNWPwuH3.js → F0AiProcessingOverlay-BBvhg8LC.js} +286 -286
- package/dist/{F0Alert-DHPOzhGo.js → F0Alert-DtSyPCxn.js} +4 -4
- package/dist/F0AudioPlayer-CbwGn5bL.js +2 -0
- package/dist/{F0CanvasPanel-DV9kMkUy.js → F0CanvasPanel-CQ7gX7-P.js} +7855 -7746
- package/dist/{F0DocumentViewer-C-e-yjPh.js → F0DocumentViewer-BZsMdNcY.js} +1 -1
- package/dist/{F0DocumentViewer-BSMvv4hU.js → F0DocumentViewer-DWXuPrOG.js} +2 -2
- package/dist/{F0Map-C5GBzJKx.js → F0Map-BuLyNjHC.js} +16 -16
- package/dist/{F0Select-Ef_MkLqL.js → F0Select-DGvIH_Gp.js} +1607 -1601
- package/dist/{F0VideoPlayer-BXD4JMkM.js → F0VideoPlayer-B4JYaa4U.js} +22 -22
- package/dist/F0VideoPlayer-BYTQqwd2.js +1 -0
- package/dist/{HtmlViewer-CX1vkYRx.js → HtmlViewer-OY8T2uX6.js} +4 -4
- package/dist/{Map-BnhKWUJE.js → Map-CuunG2oS.js} +6 -6
- package/dist/{PdfThumbnail-BJi6FkbE.js → PdfThumbnail-DfwDJHEr.js} +1 -1
- package/dist/{PdfViewer-CFn2h9nq.js → PdfViewer-DzbV7lZw.js} +8 -8
- package/dist/{SheetViewer-onMadxsi.js → SheetViewer-DGX6KHnL.js} +11 -11
- package/dist/{TextViewer-BIcgDoH5.js → TextViewer-CLqt6uiQ.js} +1 -1
- package/dist/ai.d.ts +2 -2
- package/dist/ai.js +2 -2
- package/dist/component-status.js +4 -4
- package/dist/{dist-BCNVh6y5.js → dist-DMTFO2gF.js} +46 -0
- package/dist/experimental.d.ts +14 -3
- package/dist/experimental.js +974 -958
- package/dist/{exports-B8qwxvwL.d.ts → exports-BSFis6g6.d.ts} +1 -1
- package/dist/f0.d.ts +3 -3
- package/dist/f0.js +604 -609
- package/dist/{google-CG30Y63J.js → google-DDQ7XfPD.js} +1 -1
- package/dist/{highlight-BeMwpXOl.js → highlight-DpVfX1K9.js} +1 -1
- package/dist/{index-DC_v_uUG.d.ts → index-DR7cCKE6.d.ts} +62 -16
- package/dist/{maplibre-iFKMikCO.js → maplibre-BOwxOCps.js} +2 -2
- package/dist/{pdfWorker-rlBg8XHy.js → pdfWorker-DtUZLMfu.js} +1 -1
- package/dist/styles.css +1 -1
- package/dist/{types-Ia5pcWL6.d.ts → types-ChFboQlr.d.ts} +15 -4
- package/dist/{useData-CVTa0m1L.js → useData-QJRr_47g.js} +1 -1
- package/package.json +2 -2
- package/dist/F0AudioPlayer-BrjgdlIL.js +0 -2
- package/dist/F0VideoPlayer-Bwq_1c7j.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Dn as e, On as t, yn as n } from "./F0CanvasPanel-
|
|
1
|
+
import { Dn as e, On as t, yn as n } from "./F0CanvasPanel-CQ7gX7-P.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
|
|
@@ -2996,7 +2996,16 @@ interface WithPlaceholder {
|
|
|
2996
2996
|
placeholder?: string;
|
|
2997
2997
|
}
|
|
2998
2998
|
//#endregion
|
|
2999
|
-
//#region src/elements/value-display/types/
|
|
2999
|
+
//#region src/elements/value-display/types/number/numberCellText.d.ts
|
|
3000
|
+
interface NumberValue extends WithPlaceholder {
|
|
3001
|
+
number: number | undefined;
|
|
3002
|
+
units?: string;
|
|
3003
|
+
unitsPosition?: "left" | "right";
|
|
3004
|
+
decimalPlaces?: number;
|
|
3005
|
+
}
|
|
3006
|
+
type NumberCellValue = number | undefined | NumberValue;
|
|
3007
|
+
//#endregion
|
|
3008
|
+
//#region src/elements/value-display/types/amount/amountCellText.d.ts
|
|
3000
3009
|
interface CurrencyDef {
|
|
3001
3010
|
symbol: string;
|
|
3002
3011
|
symbolPosition?: "left" | "right";
|
|
@@ -3007,6 +3016,8 @@ interface AmountValue extends WithPlaceholder {
|
|
|
3007
3016
|
currency?: CurrencyDef;
|
|
3008
3017
|
}
|
|
3009
3018
|
type AmountCellValue = number | undefined | AmountValue;
|
|
3019
|
+
//#endregion
|
|
3020
|
+
//#region src/elements/value-display/types/amount/amount.d.ts
|
|
3010
3021
|
declare const AmountCell: (args: AmountCellValue, meta: ValueDisplayRendererContext) => import("react").JSX.Element;
|
|
3011
3022
|
//#endregion
|
|
3012
3023
|
//#region src/elements/avatars/F0AvatarList/types.d.ts
|
|
@@ -3199,7 +3210,7 @@ interface CategoryBarChartCellValue {
|
|
|
3199
3210
|
}
|
|
3200
3211
|
declare const CategoryBarChartCell: (args: CategoryBarChartCellValue, meta: ValueDisplayRendererContext) => import("react").JSX.Element;
|
|
3201
3212
|
//#endregion
|
|
3202
|
-
//#region src/elements/value-display/types/company/
|
|
3213
|
+
//#region src/elements/value-display/types/company/companyCellText.d.ts
|
|
3203
3214
|
interface CompanyValue {
|
|
3204
3215
|
name: string;
|
|
3205
3216
|
src?: string;
|
|
@@ -3207,6 +3218,8 @@ interface CompanyValue {
|
|
|
3207
3218
|
type CompanyCellValue = WithAvatarBadge<CompanyValue & {
|
|
3208
3219
|
lines?: number;
|
|
3209
3220
|
}>;
|
|
3221
|
+
//#endregion
|
|
3222
|
+
//#region src/elements/value-display/types/company/company.d.ts
|
|
3210
3223
|
declare const CompanyCell: (args: CompanyCellValue, meta: ValueDisplayRendererContext) => import("react").JSX.Element;
|
|
3211
3224
|
//#endregion
|
|
3212
3225
|
//#region src/elements/value-display/types/compound/compound.d.ts
|
|
@@ -3479,13 +3492,6 @@ type LongTextCellValue = string | number | undefined | LongTextValue;
|
|
|
3479
3492
|
declare const LongTextCell: (args: LongTextCellValue, meta: ValueDisplayRendererContext) => import("react").JSX.Element;
|
|
3480
3493
|
//#endregion
|
|
3481
3494
|
//#region src/elements/value-display/types/number/number.d.ts
|
|
3482
|
-
interface NumberValue extends WithPlaceholder {
|
|
3483
|
-
number: number | undefined;
|
|
3484
|
-
units?: string;
|
|
3485
|
-
unitsPosition?: "left" | "right";
|
|
3486
|
-
decimalPlaces?: number;
|
|
3487
|
-
}
|
|
3488
|
-
type NumberCellValue = number | undefined | NumberValue;
|
|
3489
3495
|
declare const NumberCell: (args: NumberCellValue, meta: ValueDisplayRendererContext) => import("react").JSX.Element;
|
|
3490
3496
|
//#endregion
|
|
3491
3497
|
//#region src/elements/value-display/types/percentage/percentage.d.ts
|
|
@@ -3613,7 +3619,7 @@ interface SummaryValue {
|
|
|
3613
3619
|
type SummaryCellValue = SummaryValue;
|
|
3614
3620
|
declare const SummaryCell: (args: SummaryCellValue, meta: ValueDisplayRendererContext) => import("react").JSX.Element;
|
|
3615
3621
|
//#endregion
|
|
3616
|
-
//#region src/elements/value-display/types/tag/
|
|
3622
|
+
//#region src/elements/value-display/types/tag/tagCellText.d.ts
|
|
3617
3623
|
declare const tagCellVariants: {
|
|
3618
3624
|
readonly default: undefined;
|
|
3619
3625
|
readonly neutral: "border-none bg-f1-background-secondary text-f1-foreground-secondary";
|
|
@@ -3630,6 +3636,8 @@ interface TagValue {
|
|
|
3630
3636
|
variant?: TagCellVariant;
|
|
3631
3637
|
}
|
|
3632
3638
|
type TagCellValue = TagValue;
|
|
3639
|
+
//#endregion
|
|
3640
|
+
//#region src/elements/value-display/types/tag/tag.d.ts
|
|
3633
3641
|
declare const TagCell: (args: TagCellValue) => import("react").JSX.Element;
|
|
3634
3642
|
//#endregion
|
|
3635
3643
|
//#region src/elements/lib/numeric/types.d.ts
|
|
@@ -3928,7 +3936,7 @@ type TagListValue = { [T in TagType]: Pick<F0TagListProps<T>, "type" | "tags" |
|
|
|
3928
3936
|
type TagListCellValue = TagListValue;
|
|
3929
3937
|
declare const TagListCell: (args: TagListCellValue) => import("react").JSX.Element;
|
|
3930
3938
|
//#endregion
|
|
3931
|
-
//#region src/elements/value-display/types/team/
|
|
3939
|
+
//#region src/elements/value-display/types/team/teamCellText.d.ts
|
|
3932
3940
|
interface TeamValue {
|
|
3933
3941
|
name: string;
|
|
3934
3942
|
src?: string;
|
|
@@ -3936,13 +3944,17 @@ interface TeamValue {
|
|
|
3936
3944
|
type TeamCellValue = WithAvatarBadge<TeamValue & {
|
|
3937
3945
|
lines?: number;
|
|
3938
3946
|
}>;
|
|
3947
|
+
//#endregion
|
|
3948
|
+
//#region src/elements/value-display/types/team/team.d.ts
|
|
3939
3949
|
declare const TeamCell: (args: TeamCellValue, meta: ValueDisplayRendererContext) => import("react").JSX.Element;
|
|
3940
3950
|
//#endregion
|
|
3941
|
-
//#region src/elements/value-display/types/text/
|
|
3951
|
+
//#region src/elements/value-display/types/text/textCellText.d.ts
|
|
3942
3952
|
interface TextValue extends WithPlaceholder {
|
|
3943
3953
|
text: string | number | undefined;
|
|
3944
3954
|
}
|
|
3945
3955
|
type TextCellValue = string | number | undefined | TextValue;
|
|
3956
|
+
//#endregion
|
|
3957
|
+
//#region src/elements/value-display/types/text/text.d.ts
|
|
3946
3958
|
declare const TextCell: (args: TextCellValue, meta: ValueDisplayRendererContext) => import("react").JSX.Element;
|
|
3947
3959
|
//#endregion
|
|
3948
3960
|
//#region src/elements/value-display/renderers.d.ts
|
|
@@ -4079,17 +4091,51 @@ type CardMetadataProperty = { [K in CardPropertyType]: {
|
|
|
4079
4091
|
label: string;
|
|
4080
4092
|
value: Parameters<(typeof valueDisplayRenderers)[K]>[0];
|
|
4081
4093
|
}; }[CardPropertyType];
|
|
4082
|
-
|
|
4083
|
-
|
|
4094
|
+
/**
|
|
4095
|
+
* The values that render as a tag of their own text. `showLabel` can only
|
|
4096
|
+
* write the label in these: a status, dotTag or alertTag draws its own tag.
|
|
4097
|
+
*/
|
|
4098
|
+
declare const cardTextTagTypes: readonly ["text", "number", "date", "amount", "person", "company", "team", "tag"];
|
|
4099
|
+
type CardTextTagType = (typeof cardTextTagTypes)[number];
|
|
4100
|
+
interface CardMetadataWithIcon {
|
|
4101
|
+
/**
|
|
4102
|
+
* Leading icon of the item's row. Values that render as a tag (text,
|
|
4103
|
+
* number, date, amount, person, company, team, status, tag, dotTag and
|
|
4104
|
+
* alertTag) sit inline with no icon, so it only shows on the items that
|
|
4105
|
+
* keep a row of their own (tagList, avatarList, folder, progressBar) and
|
|
4106
|
+
* on kanban cards.
|
|
4107
|
+
*/
|
|
4084
4108
|
icon?: IconType;
|
|
4109
|
+
}
|
|
4110
|
+
interface CardMetadataItem extends CardMetadataWithIcon {
|
|
4111
|
+
/**
|
|
4112
|
+
* Leave it off: the label is read by screen readers before the value, and
|
|
4113
|
+
* shown as a tooltip.
|
|
4114
|
+
*/
|
|
4115
|
+
showLabel?: false;
|
|
4085
4116
|
property: Exclude<CardMetadataProperty, {
|
|
4086
4117
|
type: "file";
|
|
4087
4118
|
}>;
|
|
4088
|
-
}
|
|
4119
|
+
}
|
|
4120
|
+
interface CardMetadataLabelledItem extends CardMetadataWithIcon {
|
|
4121
|
+
/**
|
|
4122
|
+
* Shows the property's `label` in the tag, before the value, for a value
|
|
4123
|
+
* that doesn't say what it is on its own: a `label` of "By" on a company
|
|
4124
|
+
* reads "By Factorial". Only on the values that render as a tag of their
|
|
4125
|
+
* own text (text, number, date, amount, person, company, team and tag).
|
|
4126
|
+
* @default false
|
|
4127
|
+
*/
|
|
4128
|
+
showLabel: true;
|
|
4129
|
+
property: Extract<CardMetadataProperty, {
|
|
4130
|
+
type: CardTextTagType;
|
|
4131
|
+
}>;
|
|
4132
|
+
}
|
|
4133
|
+
interface CardMetadataFile {
|
|
4089
4134
|
property: Extract<CardMetadataProperty, {
|
|
4090
4135
|
type: "file";
|
|
4091
4136
|
}>;
|
|
4092
|
-
}
|
|
4137
|
+
}
|
|
4138
|
+
type CardMetadata = CardMetadataItem | CardMetadataLabelledItem | CardMetadataFile;
|
|
4093
4139
|
/**
|
|
4094
4140
|
* Bookmark (save) toggle rendered as an icon button in the card's options overlay.
|
|
4095
4141
|
* Shows an outline bookmark icon when not bookmarked and a filled one when bookmarked,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { o as e } from "./rolldown-runtime-BItFwnF5.js";
|
|
2
|
-
import { t } from "./dist-
|
|
3
|
-
import { s as n } from "./F0Map-
|
|
2
|
+
import { t } from "./dist-DMTFO2gF.js";
|
|
3
|
+
import { s as n } from "./F0Map-BuLyNjHC.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 { $a as i } from "./F0CanvasPanel-CQ7gX7-P.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";
|