@factorialco/f0-react 13.7.0 → 13.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.
- package/dist/{ArchiveThumbnail-BI7pgnAC.js → ArchiveThumbnail-BWmaJU-e.js} +3 -3
- package/dist/{ArchiveViewer-mhv-yGtw.js → ArchiveViewer-BCS5O2Lm.js} +5 -5
- package/dist/{ChatPostComposerDialog-DpGmDp-T.js → ChatPostComposerDialog-B70a2ifd.js} +4 -4
- package/dist/{CoachmarkProvider-DEQCQBiS.js → CoachmarkProvider-Yf3g4I7H.js} +9605 -9605
- package/dist/{CodeThumbnail-BTH-wEBR.js → CodeThumbnail-t7uhUafH.js} +1 -1
- package/dist/{CodeViewer-B-WvPLtI.js → CodeViewer-CwhnIZQq.js} +8 -8
- package/dist/{DocumentToolbar-DS3PyBTl.js → DocumentToolbar-BUQCMtP6.js} +5 -5
- package/dist/{DocxViewer-DXlgCicZ.js → DocxViewer-1lNOLaA3.js} +3 -3
- package/dist/{F0AiProcessingOverlay-CJvxxlsA.js → F0AiProcessingOverlay-DrGj9rE0.js} +72 -72
- package/dist/{F0Alert-PwH28ciS.js → F0Alert-13k-qqDG.js} +5 -5
- package/dist/F0AudioPlayer-1a2sNIGA.js +2 -0
- package/dist/{F0Button-xbk-nrvL.js → F0Button-CxSs_bhW.js} +3 -3
- package/dist/{F0CanvasPanel-DxGAla5J.js → F0CanvasPanel-Dh4gV-qY.js} +4255 -4259
- package/dist/{F0DocumentViewer-xr-beeYT.js → F0DocumentViewer-CViOPGOd.js} +1 -1
- package/dist/{F0DocumentViewer-CnkhmQ7D.js → F0DocumentViewer-foMKH9Vp.js} +4 -4
- package/dist/{F0Icon-Dr2xuQq2.js → F0Icon-VifF8rpX.js} +1 -1
- package/dist/{F0Map-h_d1Gu-_.js → F0Map-DK-hI3Ok.js} +7 -7
- package/dist/{F0Select-DD_AdtqV.js → F0Select-BOphvJId.js} +8 -8
- package/dist/{F0Text-DzVOqGyO.js → F0Text-Bpa7KaaM.js} +2 -2
- package/dist/F0VideoPlayer-CVY4ixC5.js +1 -0
- package/dist/{F0VideoPlayer-DU_Cro6a.js → F0VideoPlayer-DnYPLTim.js} +6 -6
- package/dist/{HtmlThumbnail-BNAinxys.js → HtmlThumbnail-Dq-0M596.js} +1 -1
- package/dist/{HtmlViewer-D3wKqOzs.js → HtmlViewer-BHPLaNhE.js} +9 -9
- package/dist/{LayoutGroup-CXsoUZn_.js → LayoutGroup-BWnUhPYF.js} +1 -1
- package/dist/{Map-B1sIoNac.js → Map-DMC3i8yl.js} +10 -10
- package/dist/{PdfThumbnail-kBD_x9E3.js → PdfThumbnail-CKueINHk.js} +1 -1
- package/dist/{PdfViewer-CsIZKhkG.js → PdfViewer-DooVnDas.js} +8 -8
- package/dist/{SandboxedHtmlFrame-Pi5lxvZj.js → SandboxedHtmlFrame-DR9md8QY.js} +2 -2
- package/dist/{SheetViewer-BjMKD7JX.js → SheetViewer-BJ8Mvwkc.js} +5 -5
- package/dist/{TextViewer-DQWC74l9.js → TextViewer-pQIs_OJV.js} +4 -4
- package/dist/ai.d.ts +3 -3
- package/dist/ai.js +4 -4
- package/dist/component-status.js +1 -1
- package/dist/{dist-Bvf79ox7.js → dist-Bp4vM3bZ.js} +4 -4
- package/dist/{dist-CvYOoTs5.js → dist-Cfr_PHiv.js} +1 -1
- package/dist/{dist-BgfZJh24.js → dist-DPcRzPjW.js} +1 -1
- package/dist/experimental.d.ts +70 -6
- package/dist/experimental.js +6622 -6102
- package/dist/{exports-DBaGx_h5.d.ts → exports-v_F99St1.d.ts} +1 -1
- package/dist/f0.d.ts +4 -4
- package/dist/f0.js +182 -182
- package/dist/{highlight-D78L3lJD.js → highlight-BHqxjdF6.js} +1 -1
- package/dist/{i18n-provider-aZCxX7lT.js → i18n-provider-BniRK15h.js} +1 -1
- package/dist/{i18n-provider-defaults-BpglikGz.js → i18n-provider-defaults-BkMw-qG7.js} +30 -0
- package/dist/{i18n-provider-defaults-BUY-YS7I.d.ts → i18n-provider-defaults-Q9twuwTp.d.ts} +30 -0
- package/dist/i18n-provider-defaults.d.ts +1 -1
- package/dist/i18n-provider-defaults.js +1 -1
- package/dist/{index-BHnszH8I.d.ts → index-BOITzsxP.d.ts} +3 -1
- package/dist/{maplibre-DNAzGJNy.js → maplibre-C_u6rvlI.js} +1 -1
- package/dist/{pdfWorker-Bx_18LOR.js → pdfWorker-BAWd_kWz.js} +1 -1
- package/dist/{popover-CT3rox5D.js → popover-CwQ7JDZU.js} +1 -1
- package/dist/{posts-i2uZfohA.js → posts-BBvCiBdi.js} +12 -9
- package/dist/{scrollarea-iuapGs70.js → scrollarea-HcC-Gf8H.js} +3 -3
- package/dist/{skeleton-C5JQM5pK.js → skeleton-DTPG1VHE.js} +1 -1
- package/dist/styles.css +1 -1
- package/dist/{toolbarStyles-DblQOIMP.js → toolbarStyles-TdJVpkJ0.js} +1 -1
- package/dist/{types-BYO_PD6I.d.ts → types-NNoGnjGf.d.ts} +2 -2
- package/dist/{useData-Af3QuQSP.js → useData-IY6E4kFy.js} +6 -6
- package/package.json +1 -1
- package/dist/F0AudioPlayer-BFx1oHaA.js +0 -2
- package/dist/F0VideoPlayer-BFFYbcYS.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Qt as e, Ut as t, Zt as n } from "./F0CanvasPanel-
|
|
1
|
+
import { Qt as e, Ut as t, Zt as n } from "./F0CanvasPanel-Dh4gV-qY.js";
|
|
2
2
|
import { t as r } from "./purify.es-ZpfdAuNV.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-
|
|
1
|
+
import { t as e } from "./i18n-provider-defaults-BkMw-qG7.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
|
|
@@ -844,6 +844,12 @@ var e = {
|
|
|
844
844
|
backToLatest: "Jump to latest",
|
|
845
845
|
readOnly: "You can't send messages in this conversation",
|
|
846
846
|
online: "Online",
|
|
847
|
+
visibility: {
|
|
848
|
+
global: "Global",
|
|
849
|
+
globalHint: "Everyone in the company is in this channel",
|
|
850
|
+
private: "Private",
|
|
851
|
+
privateHint: "Only invited people can find and join this channel"
|
|
852
|
+
},
|
|
847
853
|
muted: "Muted",
|
|
848
854
|
mute: "Mute",
|
|
849
855
|
unmute: "Unmute",
|
|
@@ -929,6 +935,30 @@ var e = {
|
|
|
929
935
|
delivered: "Delivered",
|
|
930
936
|
back: "Back",
|
|
931
937
|
writing: "Writing…",
|
|
938
|
+
remind: {
|
|
939
|
+
menu: "Remind me",
|
|
940
|
+
title: "Remind me",
|
|
941
|
+
in20Minutes: "In 20 minutes",
|
|
942
|
+
in1Hour: "In 1 hour",
|
|
943
|
+
in3Hours: "In 3 hours",
|
|
944
|
+
tomorrow: "Tomorrow",
|
|
945
|
+
nextWeek: "Next week",
|
|
946
|
+
custom: "Pick date and time…",
|
|
947
|
+
current: "Reminder · {{when}}",
|
|
948
|
+
remove: "Remove reminder",
|
|
949
|
+
metaLabel: "Reminder {{when}}",
|
|
950
|
+
dialogTitle: "Remind me about this message",
|
|
951
|
+
date: "Date",
|
|
952
|
+
time: "Time",
|
|
953
|
+
timezone: "{{when}} · {{zone}}",
|
|
954
|
+
confirm: "Set reminder",
|
|
955
|
+
cancel: "Cancel",
|
|
956
|
+
past: "Pick a time in the future"
|
|
957
|
+
},
|
|
958
|
+
preview: {
|
|
959
|
+
empty: "No messages yet",
|
|
960
|
+
failed: "Couldn't load the preview"
|
|
961
|
+
},
|
|
932
962
|
isTyping: "{{name}} is writing…",
|
|
933
963
|
twoTyping: "{{first}} and {{second}} are writing…",
|
|
934
964
|
severalTyping: "Several people are writing…",
|
|
@@ -875,6 +875,12 @@ declare const defaultTranslations: {
|
|
|
875
875
|
readonly backToLatest: "Jump to latest";
|
|
876
876
|
readonly readOnly: "You can't send messages in this conversation";
|
|
877
877
|
readonly online: "Online";
|
|
878
|
+
readonly visibility: {
|
|
879
|
+
readonly global: "Global";
|
|
880
|
+
readonly globalHint: "Everyone in the company is in this channel";
|
|
881
|
+
readonly private: "Private";
|
|
882
|
+
readonly privateHint: "Only invited people can find and join this channel";
|
|
883
|
+
};
|
|
878
884
|
readonly muted: "Muted";
|
|
879
885
|
readonly mute: "Mute";
|
|
880
886
|
readonly unmute: "Unmute";
|
|
@@ -960,6 +966,30 @@ declare const defaultTranslations: {
|
|
|
960
966
|
readonly delivered: "Delivered";
|
|
961
967
|
readonly back: "Back";
|
|
962
968
|
readonly writing: "Writing…";
|
|
969
|
+
readonly remind: {
|
|
970
|
+
readonly menu: "Remind me";
|
|
971
|
+
readonly title: "Remind me";
|
|
972
|
+
readonly in20Minutes: "In 20 minutes";
|
|
973
|
+
readonly in1Hour: "In 1 hour";
|
|
974
|
+
readonly in3Hours: "In 3 hours";
|
|
975
|
+
readonly tomorrow: "Tomorrow";
|
|
976
|
+
readonly nextWeek: "Next week";
|
|
977
|
+
readonly custom: "Pick date and time…";
|
|
978
|
+
readonly current: "Reminder · {{when}}";
|
|
979
|
+
readonly remove: "Remove reminder";
|
|
980
|
+
readonly metaLabel: "Reminder {{when}}";
|
|
981
|
+
readonly dialogTitle: "Remind me about this message";
|
|
982
|
+
readonly date: "Date";
|
|
983
|
+
readonly time: "Time";
|
|
984
|
+
readonly timezone: "{{when}} · {{zone}}";
|
|
985
|
+
readonly confirm: "Set reminder";
|
|
986
|
+
readonly cancel: "Cancel";
|
|
987
|
+
readonly past: "Pick a time in the future";
|
|
988
|
+
};
|
|
989
|
+
readonly preview: {
|
|
990
|
+
readonly empty: "No messages yet";
|
|
991
|
+
readonly failed: "Couldn't load the preview";
|
|
992
|
+
};
|
|
963
993
|
readonly isTyping: "{{name}} is writing…";
|
|
964
994
|
readonly twoTyping: "{{first}} and {{second}} are writing…";
|
|
965
995
|
readonly severalTyping: "Several people are writing…";
|
|
@@ -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-Q9twuwTp.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-BkMw-qG7.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-Q9twuwTp.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";
|
|
@@ -2107,6 +2107,7 @@ declare const F0Link: WithDataTestIdReturnType<import("react").ForwardRefExoticC
|
|
|
2107
2107
|
interface CardPrimaryAction {
|
|
2108
2108
|
label: string;
|
|
2109
2109
|
icon?: IconType;
|
|
2110
|
+
/** Return a promise to show a spinner on the button until it settles. */
|
|
2110
2111
|
onClick: () => void;
|
|
2111
2112
|
/**
|
|
2112
2113
|
* Visual emphasis of the primary action. `"outline"` renders it as an outline
|
|
@@ -2120,6 +2121,7 @@ interface CardPrimaryAction {
|
|
|
2120
2121
|
interface CardSecondaryAction {
|
|
2121
2122
|
label: string;
|
|
2122
2123
|
icon?: IconType;
|
|
2124
|
+
/** Return a promise to show a spinner on the button until it settles. */
|
|
2123
2125
|
onClick: () => void;
|
|
2124
2126
|
}
|
|
2125
2127
|
interface CardSecondaryLink extends Pick<F0LinkProps, "href" | "target" | "disabled"> {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { o as e } from "./rolldown-runtime-BItFwnF5.js";
|
|
2
2
|
import { t } from "./dist-Cuwaibqg.js";
|
|
3
|
-
import { s as n } from "./F0Map-
|
|
3
|
+
import { s as n } from "./F0Map-DK-hI3Ok.js";
|
|
4
4
|
import './maplibre-gl.css';import './maplibre.css';/* empty css */
|
|
5
5
|
import { t as r } from "./maplibre-gl-DVldSYfz.js";
|
|
6
6
|
//#region ../../node_modules/.pnpm/@mapbox+mapbox-gl-rtl-text@0.2.3_mapbox-gl@1.13.3/node_modules/@mapbox/mapbox-gl-rtl-text/mapbox-gl-rtl-text.js?url
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as __require, o as __toESM, t as __commonJSMin } from "./rolldown-runtime-BItFwnF5.js";
|
|
2
2
|
import { z as clsx } from "./tooltip-BX4dSfeL.js";
|
|
3
|
-
import { ya as invariant } from "./F0CanvasPanel-
|
|
3
|
+
import { ya as invariant } from "./F0CanvasPanel-Dh4gV-qY.js";
|
|
4
4
|
import { t as dequal } from "./dist-Dt-cTb6D.js";
|
|
5
5
|
import { n as pdfWorkerOverride, r as registerPdfWorkerApplier } from "./pdfWorkerConfig-BwllKt1K.js";
|
|
6
6
|
import { createContext, forwardRef, useCallback, useContext, useEffect, useImperativeHandle, useLayoutEffect, useMemo, useReducer, useRef } from "react";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { L as e, s as t } from "./tooltip-BX4dSfeL.js";
|
|
2
|
-
import { n } from "./F0Icon-
|
|
2
|
+
import { n } from "./F0Icon-VifF8rpX.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 { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
@@ -90,6 +90,7 @@ var c = (e) => {
|
|
|
90
90
|
removeLinkPreview: (e, t) => void d.current.removeLinkPreview?.(e, t),
|
|
91
91
|
forwardMessage: (e) => void d.current.forwardMessage?.(e),
|
|
92
92
|
pinMessage: (e, t) => void d.current.pinMessage?.(e, t),
|
|
93
|
+
setMessageReminder: (e, t) => void d.current.setMessageReminder?.(e, t),
|
|
93
94
|
translateMessage: (e) => {
|
|
94
95
|
let t = d.current.translateMessage?.(e);
|
|
95
96
|
t && (C((t) => new Set(t).add(e)), t.catch(() => {}).finally(() => C((t) => {
|
|
@@ -152,26 +153,27 @@ var c = (e) => {
|
|
|
152
153
|
onScheduledPostOpened: () => e((e) => e.onScheduledPostOpened?.()),
|
|
153
154
|
onUpsellShown: (t) => e((e) => e.onUpsellShown?.(t))
|
|
154
155
|
};
|
|
155
|
-
}, []), E = _(e.capabilities), D = !!e.editMessage, O = !!e.removeLinkPreview, k = !!e.forwardMessage, A = !!e.pinMessage, j = !!e.
|
|
156
|
+
}, []), E = _(e.capabilities), D = !!e.editMessage, O = !!e.removeLinkPreview, k = !!e.forwardMessage, A = !!e.pinMessage, j = !!e.setMessageReminder, M = !!e.translateMessage, N = !!e.hideMessageTranslation, P = !!e.requestTranslationUpsell, F = !!e.deleteFailedMessage, I = !!e.loadReactionUsers, L = !!e.openPost, R = !!e.openCommunity, z = r(() => ({
|
|
156
157
|
currentUserId: e.currentUserId,
|
|
157
158
|
channelType: e.channel.type,
|
|
158
159
|
channelTitle: e.channel.title,
|
|
159
160
|
capabilities: E,
|
|
160
161
|
editWindowMs: e.editWindowMs,
|
|
161
162
|
toggleReaction: w.toggleReaction,
|
|
162
|
-
loadReactionUsers:
|
|
163
|
+
loadReactionUsers: I ? w.loadReactionUsers : void 0,
|
|
163
164
|
retryMessage: w.retryMessage,
|
|
164
165
|
deleteMessage: w.deleteMessage,
|
|
165
|
-
deleteFailedMessage:
|
|
166
|
+
deleteFailedMessage: F ? w.deleteFailedMessage : void 0,
|
|
166
167
|
editMessage: D ? w.editMessage : void 0,
|
|
167
168
|
removeLinkPreview: O ? w.removeLinkPreview : void 0,
|
|
168
169
|
forwardMessage: k ? w.forwardMessage : void 0,
|
|
169
170
|
pinMessage: A ? w.pinMessage : void 0,
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
171
|
+
setMessageReminder: j ? w.setMessageReminder : void 0,
|
|
172
|
+
translateMessage: M ? w.translateMessage : void 0,
|
|
173
|
+
hideMessageTranslation: N ? w.hideMessageTranslation : void 0,
|
|
174
|
+
requestTranslationUpsell: P ? w.requestTranslationUpsell : void 0,
|
|
175
|
+
openPost: L ? w.openPost : void 0,
|
|
176
|
+
openCommunity: R ? w.openCommunity : void 0,
|
|
175
177
|
postActions: w.postActions
|
|
176
178
|
}), [
|
|
177
179
|
e.currentUserId,
|
|
@@ -190,6 +192,7 @@ var c = (e) => {
|
|
|
190
192
|
F,
|
|
191
193
|
I,
|
|
192
194
|
L,
|
|
195
|
+
R,
|
|
193
196
|
w
|
|
194
197
|
]);
|
|
195
198
|
return /* @__PURE__ */ s(l.Provider, {
|
|
@@ -199,7 +202,7 @@ var c = (e) => {
|
|
|
199
202
|
children: /* @__PURE__ */ s(p.Provider, {
|
|
200
203
|
value: y,
|
|
201
204
|
children: /* @__PURE__ */ s(u.Provider, {
|
|
202
|
-
value:
|
|
205
|
+
value: z,
|
|
203
206
|
children: /* @__PURE__ */ s(m.Provider, {
|
|
204
207
|
value: e.activePostId,
|
|
205
208
|
children: /* @__PURE__ */ s(h.Provider, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { L as e } from "./tooltip-BX4dSfeL.js";
|
|
2
|
-
import { i as t, r as n } from "./F0Button-
|
|
3
|
-
import { o as r } from "./F0Icon-
|
|
4
|
-
import { E as i, O as a, T as o, b as s, p as c, w as l, y as u } from "./popover-
|
|
2
|
+
import { i as t, r as n } from "./F0Button-CxSs_bhW.js";
|
|
3
|
+
import { o as r } from "./F0Icon-VifF8rpX.js";
|
|
4
|
+
import { E as i, O as a, T as o, b as s, p as c, w as l, y as u } from "./popover-CwQ7JDZU.js";
|
|
5
5
|
import * as d from "react";
|
|
6
6
|
import { createElement as f, forwardRef as p, useEffect as m, useRef as h } from "react";
|
|
7
7
|
import { Fragment as g, jsx as _, jsxs as v } from "react/jsx-runtime";
|