@factorialco/f0-react 16.13.0 → 16.16.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-kVvnmcNP.js → ArchiveThumbnail-BGrUEFW6.js} +3 -3
- package/dist/{ArchiveViewer-LoDtTFPw.js → ArchiveViewer-DLj2GP7S.js} +5 -5
- package/dist/{ChatPostComposerDialog-CWuAwaxT.js → ChatPostComposerDialog-rrK3A0-M.js} +4 -4
- package/dist/{CoachmarkProvider-CXX2hils.js → CoachmarkProvider-CFD6rQHM.js} +19532 -19223
- package/dist/{CodeThumbnail-BPzGrqCR.js → CodeThumbnail-CX5BJQ0p.js} +1 -1
- package/dist/{CodeViewer-BJHe81-h.js → CodeViewer-DAJFjwLS.js} +6 -6
- package/dist/{DocumentToolbar-B4woad-i.js → DocumentToolbar-D4Auk27r.js} +5 -5
- package/dist/{DocxViewer-DCM40Mo0.js → DocxViewer-Bdf-VLsp.js} +3 -3
- package/dist/{F0AiProcessingOverlay-y2w5s8R8.js → F0AiProcessingOverlay-Bl3wsErS.js} +1505 -1500
- package/dist/{F0Alert-9-f6emAt.js → F0Alert-gumBhGUI.js} +15 -15
- package/dist/F0AudioPlayer-CGelgsq6.js +2 -0
- package/dist/{F0Button-C-4GtvuG.js → F0Button-BPjCHo83.js} +51 -51
- package/dist/{F0CanvasPanel-B2kfi_Sm.js → F0CanvasPanel-DZDN_8N-.js} +8463 -8428
- package/dist/{F0DocumentViewer-Bf3k6qWH.js → F0DocumentViewer-CXedsRTN.js} +4 -4
- package/dist/{F0DocumentViewer-Bm9HGUKj.js → F0DocumentViewer-HzA7GnQg.js} +1 -1
- package/dist/{F0Icon-Chy6izoc.js → F0Icon-BWIoBqUz.js} +1 -1
- package/dist/{F0Map-BHqjk1cE.js → F0Map-CV43Bw0H.js} +571 -571
- package/dist/{F0Select-C0ksBfvC.js → F0Select-CaRfMBA3.js} +8005 -7994
- package/dist/{F0Text-V9FzeqE-.js → F0Text-D9BR3ipr.js} +2 -2
- package/dist/F0VideoPlayer-BDY4HZ5r.js +1 -0
- package/dist/{F0VideoPlayer-5cbAf-1r.js → F0VideoPlayer-BSI5JL0i.js} +25 -25
- package/dist/{HtmlThumbnail-D5snVcPj.js → HtmlThumbnail-Cj27H9QK.js} +1 -1
- package/dist/{HtmlViewer-BDxnRGDb.js → HtmlViewer-BNS3kuVG.js} +9 -9
- package/dist/{LayoutGroup-CBGqcfs4.js → LayoutGroup-Clgr-vB9.js} +1 -1
- package/dist/{Map-C57R5gqo.js → Map-C6YOZxRE.js} +10 -10
- package/dist/{PdfThumbnail-BpT_494N.js → PdfThumbnail-B3xLjRLZ.js} +1 -1
- package/dist/{PdfViewer-0xGXvrPx.js → PdfViewer-BgMp7MCk.js} +12 -12
- package/dist/{SandboxedHtmlFrame-_jfAieV4.js → SandboxedHtmlFrame-DQqfMeCl.js} +2 -2
- package/dist/{SheetThumbnail-BkHpWfUx.js → SheetThumbnail-Ck3MvhTw.js} +2 -1
- package/dist/{SheetViewer-BQmd8Rls.js → SheetViewer-6EaMzQRl.js} +15 -15
- package/dist/{TextViewer-Dxt47cYf.js → TextViewer-BX79baRv.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/{dist-Dujo_bNI.js → dist-CAmWmLKl.js} +4 -4
- package/dist/{dist-DkzaaPXh.js → dist-DYydiVIh.js} +1 -1
- package/dist/{dist-DcAiVQvo.js → dist-qs-4_N_R.js} +1 -1
- package/dist/{dist-BHvGslVW.js → dist-tiM2lERI.js} +1 -1
- package/dist/{dist-COSPKSNt.js → dist-tqa6n0_D.js} +2 -2
- package/dist/experimental.d.ts +159 -6
- package/dist/experimental.js +6581 -5961
- package/dist/{exports-BUUgzFDC.d.ts → exports-CLYkiCcv.d.ts} +3 -2
- package/dist/f0.d.ts +20 -6
- package/dist/f0.js +1623 -1619
- package/dist/{highlight-IM63cmnl.js → highlight-DO8gPTSC.js} +6 -6
- package/dist/{i18n-provider-BgNnKMpC.js → i18n-provider-B3-kjPXK.js} +1 -1
- package/dist/{i18n-provider-defaults-Dcj1i76L.js → i18n-provider-defaults-BlGnW4EH.js} +46 -1
- package/dist/{i18n-provider-defaults-C72SovYy.d.ts → i18n-provider-defaults-Csxr33dy.d.ts} +45 -0
- package/dist/i18n-provider-defaults.d.ts +1 -1
- package/dist/i18n-provider-defaults.js +1 -1
- package/dist/{index-CuvcGvuW.d.ts → index-B01mneLV.d.ts} +31 -7
- package/dist/{maplibre-BzEyrX8G.js → maplibre-ifBRwrCX.js} +1 -1
- package/dist/{pdfWorker-DMK6xCNQ.js → pdfWorker-DdSJgmMr.js} +1 -1
- package/dist/{popover-yM7qbdIU.js → popover-CBQ6ifku.js} +1 -1
- package/dist/{posts-CIRw6PMn.js → posts-riN1RZ23.js} +30 -5
- package/dist/{skeleton-CGa-nqkR.js → skeleton-Dl-alAMY.js} +1 -1
- package/dist/styles.css +1 -1
- package/dist/{toolbarStyles-DKuq0fnt.js → toolbarStyles-Dx_088Js.js} +1 -1
- package/dist/{types-B3TzvLpB.d.ts → types-QOTzx6bl.d.ts} +203 -45
- package/dist/{useData-DGDWXNUn.js → useData-0FR__MaY.js} +4847 -4618
- package/package.json +1 -1
- package/dist/F0AudioPlayer-CRA_PbpO.js +0 -2
- package/dist/F0VideoPlayer-VlXUzX6c.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Dn as e, En as t, vn as n } from "./F0CanvasPanel-DZDN_8N-.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 = (t) => e.includes(t), s = (e) => {
|
|
18
|
+
let n = e?.trim().toLowerCase();
|
|
19
|
+
return n ? o(n) ? n : i(t, n) ?? i(a, n) ?? null : null;
|
|
20
20
|
}, c = (e) => {
|
|
21
|
-
let
|
|
22
|
-
return
|
|
21
|
+
let t = e?.split(/[\\/]/).pop()?.trim();
|
|
22
|
+
return t ? n({ name: t }) : 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-BlGnW4EH.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
|
|
@@ -518,7 +518,14 @@ var e = {
|
|
|
518
518
|
grouping: {
|
|
519
519
|
noGrouping: "No grouping",
|
|
520
520
|
groupBy: "Group by",
|
|
521
|
-
toggleDirection: "Toggle direction"
|
|
521
|
+
toggleDirection: "Toggle direction",
|
|
522
|
+
loadMore: "Load more",
|
|
523
|
+
loadAll: "Load all",
|
|
524
|
+
loadMoreError: "Couldn't load more records",
|
|
525
|
+
shownRecords: {
|
|
526
|
+
one: "1 record shown",
|
|
527
|
+
other: "{{count}} records shown"
|
|
528
|
+
}
|
|
522
529
|
},
|
|
523
530
|
actions: { actions: "Actions" },
|
|
524
531
|
presets: {
|
|
@@ -1056,6 +1063,44 @@ var e = {
|
|
|
1056
1063
|
editing: "Editing",
|
|
1057
1064
|
edited: "edited",
|
|
1058
1065
|
aiAssisted: "by One",
|
|
1066
|
+
one: {
|
|
1067
|
+
answerLabel: "One's answer for {{name}}",
|
|
1068
|
+
thinking: "Thinking…",
|
|
1069
|
+
copy: "Copy answer",
|
|
1070
|
+
askAgain: "Ask again",
|
|
1071
|
+
showMore: "Show more",
|
|
1072
|
+
showLess: "Show less",
|
|
1073
|
+
failed: "One couldn't answer this time.",
|
|
1074
|
+
tryAgain: "Try again",
|
|
1075
|
+
notEnabled: "One isn't enabled for you.",
|
|
1076
|
+
busy: "One was busy with an earlier question.",
|
|
1077
|
+
unavailable: "One isn't available.",
|
|
1078
|
+
noLongerAvailable: "This answer is no longer available.",
|
|
1079
|
+
loadingAnswer: "Loading the answer…",
|
|
1080
|
+
answerNotLoaded: "The answer couldn't be loaded. Try again later.",
|
|
1081
|
+
openFullAnswer: "Open One to read the full answer",
|
|
1082
|
+
openInOne: "Open in One",
|
|
1083
|
+
continueInOne: "Continue in One",
|
|
1084
|
+
fileUnavailable: "No longer available",
|
|
1085
|
+
noCredits: "You've used all your One credits.",
|
|
1086
|
+
timeout: "One took too long to answer.",
|
|
1087
|
+
interrupted: "One was interrupted before it could answer.",
|
|
1088
|
+
onlyYou: "Only you",
|
|
1089
|
+
confirmBody: "May include sensitive data.",
|
|
1090
|
+
shareShort: "Share",
|
|
1091
|
+
share: "Share with {{audience}}",
|
|
1092
|
+
dontShare: "Don't share",
|
|
1093
|
+
onlyAsker: "Only {{name}} can see One's reply.",
|
|
1094
|
+
notShared: "You didn't share this answer.",
|
|
1095
|
+
mentionDescription: "Ask anything · answers in your message",
|
|
1096
|
+
askButton: "Ask One",
|
|
1097
|
+
emptyQuestion: "Ask One something after the mention.",
|
|
1098
|
+
attachmentsUnsupported: "One can't watch videos. It will read the rest of the message.",
|
|
1099
|
+
readingFiles: {
|
|
1100
|
+
one: "Reading 1 file…",
|
|
1101
|
+
other: "Reading {{count}} files…"
|
|
1102
|
+
}
|
|
1103
|
+
},
|
|
1059
1104
|
pinned: "Pinned",
|
|
1060
1105
|
pinnedBy: "Pinned by {{name}}",
|
|
1061
1106
|
pinnedByYou: "Pinned by you",
|
|
@@ -540,6 +540,13 @@ declare const defaultTranslations: {
|
|
|
540
540
|
readonly noGrouping: "No grouping";
|
|
541
541
|
readonly groupBy: "Group by";
|
|
542
542
|
readonly toggleDirection: "Toggle direction";
|
|
543
|
+
readonly loadMore: "Load more";
|
|
544
|
+
readonly loadAll: "Load all";
|
|
545
|
+
readonly loadMoreError: "Couldn't load more records";
|
|
546
|
+
readonly shownRecords: {
|
|
547
|
+
readonly one: "1 record shown";
|
|
548
|
+
readonly other: "{{count}} records shown";
|
|
549
|
+
};
|
|
543
550
|
};
|
|
544
551
|
readonly actions: {
|
|
545
552
|
readonly actions: "Actions";
|
|
@@ -1096,6 +1103,44 @@ declare const defaultTranslations: {
|
|
|
1096
1103
|
readonly editing: "Editing";
|
|
1097
1104
|
readonly edited: "edited";
|
|
1098
1105
|
readonly aiAssisted: "by One";
|
|
1106
|
+
readonly one: {
|
|
1107
|
+
readonly answerLabel: "One's answer for {{name}}";
|
|
1108
|
+
readonly thinking: "Thinking…";
|
|
1109
|
+
readonly copy: "Copy answer";
|
|
1110
|
+
readonly askAgain: "Ask again";
|
|
1111
|
+
readonly showMore: "Show more";
|
|
1112
|
+
readonly showLess: "Show less";
|
|
1113
|
+
readonly failed: "One couldn't answer this time.";
|
|
1114
|
+
readonly tryAgain: "Try again";
|
|
1115
|
+
readonly notEnabled: "One isn't enabled for you.";
|
|
1116
|
+
readonly busy: "One was busy with an earlier question.";
|
|
1117
|
+
readonly unavailable: "One isn't available.";
|
|
1118
|
+
readonly noLongerAvailable: "This answer is no longer available.";
|
|
1119
|
+
readonly loadingAnswer: "Loading the answer…";
|
|
1120
|
+
readonly answerNotLoaded: "The answer couldn't be loaded. Try again later.";
|
|
1121
|
+
readonly openFullAnswer: "Open One to read the full answer";
|
|
1122
|
+
readonly openInOne: "Open in One";
|
|
1123
|
+
readonly continueInOne: "Continue in One";
|
|
1124
|
+
readonly fileUnavailable: "No longer available";
|
|
1125
|
+
readonly noCredits: "You've used all your One credits.";
|
|
1126
|
+
readonly timeout: "One took too long to answer.";
|
|
1127
|
+
readonly interrupted: "One was interrupted before it could answer.";
|
|
1128
|
+
readonly onlyYou: "Only you";
|
|
1129
|
+
readonly confirmBody: "May include sensitive data.";
|
|
1130
|
+
readonly shareShort: "Share";
|
|
1131
|
+
readonly share: "Share with {{audience}}";
|
|
1132
|
+
readonly dontShare: "Don't share";
|
|
1133
|
+
readonly onlyAsker: "Only {{name}} can see One's reply.";
|
|
1134
|
+
readonly notShared: "You didn't share this answer.";
|
|
1135
|
+
readonly mentionDescription: "Ask anything · answers in your message";
|
|
1136
|
+
readonly askButton: "Ask One";
|
|
1137
|
+
readonly emptyQuestion: "Ask One something after the mention.";
|
|
1138
|
+
readonly attachmentsUnsupported: "One can't watch videos. It will read the rest of the message.";
|
|
1139
|
+
readonly readingFiles: {
|
|
1140
|
+
readonly one: "Reading 1 file…";
|
|
1141
|
+
readonly other: "Reading {{count}} files…";
|
|
1142
|
+
};
|
|
1143
|
+
};
|
|
1099
1144
|
readonly pinned: "Pinned";
|
|
1100
1145
|
readonly pinnedBy: "Pinned by {{name}}";
|
|
1101
1146
|
readonly pinnedByYou: "Pinned by you";
|
|
@@ -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-Csxr33dy.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-BlGnW4EH.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-Csxr33dy.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";
|
|
@@ -1229,6 +1229,11 @@ interface F0ComposerSendDetails {
|
|
|
1229
1229
|
serialised: string;
|
|
1230
1230
|
/** The uploaded files going with it (`attachments`); empty otherwise. */
|
|
1231
1231
|
files: F0ComposerUploadedFile[];
|
|
1232
|
+
/** It waited in the queue (`queueWhileInProgress`) and goes now that the
|
|
1233
|
+
* response ended: what the host has pending now (a quote) was not there
|
|
1234
|
+
* when it was written. Always set by the composer; optional so a host that
|
|
1235
|
+
* builds the details itself (a test) needs no change. */
|
|
1236
|
+
queued?: boolean;
|
|
1232
1237
|
}
|
|
1233
1238
|
interface F0ComposerLabels {
|
|
1234
1239
|
/** The field's accessible name, and its placeholder when no `placeholders`. */
|
|
@@ -1526,6 +1531,9 @@ interface F0ComposerBaseProps {
|
|
|
1526
1531
|
placeholders?: string[];
|
|
1527
1532
|
/** Stop typing the placeholders out (a response streams). */
|
|
1528
1533
|
placeholdersPaused?: boolean;
|
|
1534
|
+
/** Shown in place of the placeholders, e.g. a prompt the host previews on
|
|
1535
|
+
* hover. Ignored while recording. */
|
|
1536
|
+
placeholderPreview?: string;
|
|
1529
1537
|
/** `combobox` (the chat) or `textbox`. @default "combobox" */
|
|
1530
1538
|
role?: "combobox" | "textbox";
|
|
1531
1539
|
/** The textarea's `name`. */
|
|
@@ -1586,11 +1594,12 @@ interface F0ComposerBaseProps {
|
|
|
1586
1594
|
* only animates when this is defined, and `undefined` means it never swaps. */
|
|
1587
1595
|
replacement?: ReactNode;
|
|
1588
1596
|
/** Above the composer; picking one calls `onSelect`, hovering previews it
|
|
1589
|
-
* in the placeholder.
|
|
1597
|
+
* in the placeholder. `null` while there are none keeps the field mounted
|
|
1598
|
+
* when they come and go. */
|
|
1590
1599
|
suggestions?: {
|
|
1591
1600
|
groups: F0ComposerSuggestionGroup[];
|
|
1592
1601
|
onSelect: (item: F0ComposerSuggestion, group: F0ComposerSuggestionGroup) => void;
|
|
1593
|
-
};
|
|
1602
|
+
} | null;
|
|
1594
1603
|
notice?: F0ComposerNotice | null;
|
|
1595
1604
|
disclaimer?: F0ComposerDisclaimer | null;
|
|
1596
1605
|
/** Under a `replacement`: the keys that answer it (↑↓, Enter, Esc). */
|
|
@@ -4246,7 +4255,11 @@ interface CardInternalProps {
|
|
|
4246
4255
|
*/
|
|
4247
4256
|
forceVerticalMetadata?: boolean;
|
|
4248
4257
|
/**
|
|
4249
|
-
* Whether the card should have a full height
|
|
4258
|
+
* Whether the card should have a full height. The metadata then sits at the
|
|
4259
|
+
* bottom of the card, right above the actions, so it lines up across the
|
|
4260
|
+
* cards of a row whatever the length of their title and description. A card
|
|
4261
|
+
* with children keeps them filling the card, with the metadata under the
|
|
4262
|
+
* description.
|
|
4250
4263
|
*/
|
|
4251
4264
|
fullHeight?: boolean;
|
|
4252
4265
|
/**
|
|
@@ -4340,7 +4353,13 @@ interface F0CardProps {
|
|
|
4340
4353
|
onSelect?: (selected: boolean) => void;
|
|
4341
4354
|
/** The callback to handle the click of the card */
|
|
4342
4355
|
onClick?: () => void;
|
|
4343
|
-
/**
|
|
4356
|
+
/**
|
|
4357
|
+
* Whether the card should have a full height. The metadata then sits at the
|
|
4358
|
+
* bottom of the card, right above the actions, so it lines up across the
|
|
4359
|
+
* cards of a row whatever the length of their title and description. A card
|
|
4360
|
+
* with children keeps them filling the card, with the metadata under the
|
|
4361
|
+
* description.
|
|
4362
|
+
*/
|
|
4344
4363
|
fullHeight?: boolean;
|
|
4345
4364
|
/**
|
|
4346
4365
|
* Use a softer/lighter border (`border-f1-border-secondary`) instead of the
|
|
@@ -4807,8 +4826,8 @@ interface AiChatProviderProps {
|
|
|
4807
4826
|
*/
|
|
4808
4827
|
resizable?: boolean;
|
|
4809
4828
|
/**
|
|
4810
|
-
* Optional footer content
|
|
4811
|
-
* docked, under it on the fullscreen welcome screen.
|
|
4829
|
+
* Optional footer content, shown only before the first message: above the
|
|
4830
|
+
* field while docked, under it on the fullscreen welcome screen.
|
|
4812
4831
|
*/
|
|
4813
4832
|
footer?: React.ReactNode;
|
|
4814
4833
|
/**
|
|
@@ -5280,6 +5299,11 @@ interface WelcomePromptsReady {
|
|
|
5280
5299
|
suggestions: WelcomeScreenSuggestion[];
|
|
5281
5300
|
/** Fired with the picked prompt and its group, which the host sends. */
|
|
5282
5301
|
onItemClick: (item: WelcomeScreenSuggestionItem, group: WelcomeScreenSuggestion) => void;
|
|
5302
|
+
/**
|
|
5303
|
+
* Fired with the prompt under the pointer or focus, and `null` when it
|
|
5304
|
+
* leaves or is picked, so a host with its own composer can preview it there.
|
|
5305
|
+
*/
|
|
5306
|
+
onItemHover?: (item: WelcomeScreenSuggestionItem | null) => void;
|
|
5283
5307
|
}
|
|
5284
5308
|
/** They could not be fetched: the room stays empty. */
|
|
5285
5309
|
interface WelcomePromptsError {
|
|
@@ -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-
|
|
3
|
+
import { s as n } from "./F0Map-CV43Bw0H.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 { Xa as i } from "./F0CanvasPanel-DZDN_8N-.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-
|
|
2
|
+
import { n } from "./F0Icon-BWIoBqUz.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";
|
|
@@ -55,7 +55,7 @@ var c = (e) => {
|
|
|
55
55
|
}), p = e({
|
|
56
56
|
hasReported: () => !1,
|
|
57
57
|
markReported: () => {}
|
|
58
|
-
}), m = e(void 0), h = e(c(/* @__PURE__ */ new Set())), g = (e, t) => e === t || e != null && t != null && e.canSend === t.canSend && e.canReply === t.canReply && e.canReact === t.canReact && e.canUpload === t.canUpload && e.canCopy === t.canCopy && e.canViewInfo === t.canViewInfo && e.canEditMessage === t.canEditMessage && e.canDeleteMessage === t.canDeleteMessage && e.canTranslateMessage === t.canTranslateMessage, _ = (e) => {
|
|
58
|
+
}), m = e(void 0), h = e(c(/* @__PURE__ */ new Set())), g = (e, t) => e === t || e != null && t != null && e.canSend === t.canSend && e.canReply === t.canReply && e.canReact === t.canReact && e.canUpload === t.canUpload && e.canCopy === t.canCopy && e.canViewInfo === t.canViewInfo && e.canEditMessage === t.canEditMessage && e.canDeleteMessage === t.canDeleteMessage && e.canTranslateMessage === t.canTranslateMessage && e.canAskOne === t.canAskOne, _ = (e) => {
|
|
59
59
|
let t = i(e), n = t.current, r = g(n, e);
|
|
60
60
|
return r || (t.current = e), r ? n : e;
|
|
61
61
|
}, v = ({ runtime: e, events: t, children: o }) => {
|
|
@@ -107,7 +107,13 @@ var c = (e) => {
|
|
|
107
107
|
},
|
|
108
108
|
openPost: (e, t) => d.current.openPost?.(e, t),
|
|
109
109
|
openCommunity: (e) => d.current.openCommunity?.(e),
|
|
110
|
-
postActions: (e) => d.current.postActions?.(e) ?? []
|
|
110
|
+
postActions: (e) => d.current.postActions?.(e) ?? [],
|
|
111
|
+
retryOneAnswer: (e) => void d.current.retryOneAnswer?.(e),
|
|
112
|
+
shareOneAnswer: (e) => d.current.shareOneAnswer?.(e),
|
|
113
|
+
dontShareOneAnswer: (e) => d.current.dontShareOneAnswer?.(e),
|
|
114
|
+
openOneConversation: (e) => d.current.openOneConversation?.(e),
|
|
115
|
+
continueInOne: (e) => d.current.continueInOne?.(e),
|
|
116
|
+
renderOneAnswerMarkdown: (e) => d.current.renderOneAnswerMarkdown?.(e) ?? null
|
|
111
117
|
}), [C]), T = r(() => {
|
|
112
118
|
let e = (e) => {
|
|
113
119
|
let t = g.current;
|
|
@@ -154,7 +160,24 @@ var c = (e) => {
|
|
|
154
160
|
onScheduledPostOpened: () => e((e) => e.onScheduledPostOpened?.()),
|
|
155
161
|
onUpsellShown: (t) => e((e) => e.onUpsellShown?.(t))
|
|
156
162
|
};
|
|
157
|
-
}, []), E = _(e.capabilities), D = !!e.editMessage, O = !!e.removeLinkPreview, k = !!e.forwardMessage, A = !!e.pinMessage, j = !!e.setMessageReminder, M = !!e.votePoll, N = !!e.translateMessage, P = !!e.hideMessageTranslation, F = !!e.requestTranslationUpsell, I = !!e.deleteFailedMessage, L = !!e.loadReactionUsers, R = !!e.openPost, z = !!e.openCommunity, B = r(()
|
|
163
|
+
}, []), E = _(e.capabilities), D = !!e.editMessage, O = !!e.removeLinkPreview, k = !!e.forwardMessage, A = !!e.pinMessage, j = !!e.setMessageReminder, M = !!e.votePoll, N = !!e.translateMessage, P = !!e.hideMessageTranslation, F = !!e.requestTranslationUpsell, I = !!e.deleteFailedMessage, L = !!e.loadReactionUsers, R = !!e.openPost, z = !!e.openCommunity, B = !!e.retryOneAnswer, V = !!e.shareOneAnswer, H = !!e.dontShareOneAnswer, U = !!e.openOneConversation, W = !!e.continueInOne, G = !!e.renderOneAnswerMarkdown, K = r(function() {
|
|
164
|
+
return {
|
|
165
|
+
retry: B ? w.retryOneAnswer : void 0,
|
|
166
|
+
share: V ? w.shareOneAnswer : void 0,
|
|
167
|
+
dontShare: H ? w.dontShareOneAnswer : void 0,
|
|
168
|
+
open: U ? w.openOneConversation : void 0,
|
|
169
|
+
continueInOne: W ? w.continueInOne : void 0,
|
|
170
|
+
renderMarkdown: G ? w.renderOneAnswerMarkdown : void 0
|
|
171
|
+
};
|
|
172
|
+
}, [
|
|
173
|
+
B,
|
|
174
|
+
V,
|
|
175
|
+
H,
|
|
176
|
+
U,
|
|
177
|
+
W,
|
|
178
|
+
G,
|
|
179
|
+
w
|
|
180
|
+
]), q = r(() => ({
|
|
158
181
|
currentUserId: e.currentUserId,
|
|
159
182
|
channelType: e.channel.type,
|
|
160
183
|
channelTitle: e.channel.title,
|
|
@@ -176,7 +199,8 @@ var c = (e) => {
|
|
|
176
199
|
requestTranslationUpsell: F ? w.requestTranslationUpsell : void 0,
|
|
177
200
|
openPost: R ? w.openPost : void 0,
|
|
178
201
|
openCommunity: z ? w.openCommunity : void 0,
|
|
179
|
-
postActions: w.postActions
|
|
202
|
+
postActions: w.postActions,
|
|
203
|
+
one: K
|
|
180
204
|
}), [
|
|
181
205
|
e.currentUserId,
|
|
182
206
|
e.channel.type,
|
|
@@ -196,6 +220,7 @@ var c = (e) => {
|
|
|
196
220
|
L,
|
|
197
221
|
R,
|
|
198
222
|
z,
|
|
223
|
+
K,
|
|
199
224
|
w
|
|
200
225
|
]);
|
|
201
226
|
return /* @__PURE__ */ s(l.Provider, {
|
|
@@ -205,7 +230,7 @@ var c = (e) => {
|
|
|
205
230
|
children: /* @__PURE__ */ s(p.Provider, {
|
|
206
231
|
value: y,
|
|
207
232
|
children: /* @__PURE__ */ s(u.Provider, {
|
|
208
|
-
value:
|
|
233
|
+
value: q,
|
|
209
234
|
children: /* @__PURE__ */ s(m.Provider, {
|
|
210
235
|
value: e.activePostId,
|
|
211
236
|
children: /* @__PURE__ */ s(h.Provider, {
|