@factorialco/f0-react 6.104.0 → 6.106.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 (27) hide show
  1. package/dist/{ChatPdfThumbnail-CV6YlrJT.js → ChatPdfThumbnail-BkhAKV0r.js} +1 -1
  2. package/dist/ChatPostComposerDialog-D2b_bvdN.js +142 -0
  3. package/dist/{CoachmarkProvider-DPVNJLZU.js → CoachmarkProvider-DDU2DOmn.js} +75 -78
  4. package/dist/{DocumentToolbar-BrZ13rVL.js → DocumentToolbar-BwV5Q0rV.js} +2 -2
  5. package/dist/{DocxViewer-CF3W_zjV.js → DocxViewer-BP1HAgxW.js} +2 -2
  6. package/dist/{F0AiProcessingOverlay-B-MR6cMY.js → F0AiProcessingOverlay-jkio5JGp.js} +728 -766
  7. package/dist/{F0CanvasPanel-DT64c3E-.js → F0CanvasPanel-C8sTxHKI.js} +30476 -30171
  8. package/dist/{F0VideoPlayer-CFHQr9KH.js → F0VideoPlayer-C_ibK2BV.js} +1 -1
  9. package/dist/{LocationMap-96J4YbOy.js → LocationMap-CGP3eGZK.js} +1 -1
  10. package/dist/{SheetViewer-BMj7kc1c.js → SheetViewer-D5BRnR0I.js} +2 -2
  11. package/dist/{TextViewer-CgLPN38a.js → TextViewer-CIIk5GoS.js} +2 -2
  12. package/dist/ai.d.ts +183 -8
  13. package/dist/ai.js +2 -2
  14. package/dist/component-status.js +1 -1
  15. package/dist/{experimental-DjvvLdnE.js → experimental-Ds-2DStT.js} +18468 -17455
  16. package/dist/experimental.d.ts +915 -6
  17. package/dist/experimental.js +161 -159
  18. package/dist/f0.d.ts +190 -8
  19. package/dist/f0.js +205 -205
  20. package/dist/i18n-provider-defaults.d.ts +172 -0
  21. package/dist/i18n-provider-defaults.js +210 -3
  22. package/dist/{index-CLLyZsKL.js → index-BER_ZOwy.js} +3 -3
  23. package/dist/index-BcRGcyyC.js +4 -0
  24. package/dist/{pdfWorker-BgsVA819.js → pdfWorker-KK_gurE8.js} +2 -2
  25. package/dist/styles.css +1 -1
  26. package/package.json +1 -1
  27. package/dist/index-B1S8Pxtc.js +0 -4
@@ -1,4 +1,4 @@
1
- import { u as W, t as je, v as Ge, m as $, x as Xe, y as Ze, z as qe, A as Ye, B as Je, E as Qe, G as et, H as tt, J as nt, K as rt, L as at, M as ot, N as ye, O as st, Q as Ce, l as it, R as ct, U as lt, V as ut, w as dt, r as ft } from "./F0CanvasPanel-DT64c3E-.js";
1
+ import { u as W, v as je, x as Ge, n as $, y as Xe, z as Ze, A as qe, B as Ye, E as Je, G as Qe, H as et, J as tt, K as nt, L as rt, M as at, N as ot, O as ye, Q as st, R as Ce, l as it, U as ct, V as lt, W as ut, w as dt, s as ft } from "./F0CanvasPanel-C8sTxHKI.js";
2
2
  import { jsxs as S, jsx as c } from "react/jsx-runtime";
3
3
  import { forwardRef as re, useId as mt, useState as x, useRef as F, useEffect as N, useMemo as J, useCallback as T } from "react";
4
4
  import { d as H, f as ue } from "./tooltip-CMBdJvJA.js";
@@ -1,5 +1,5 @@
1
1
  import { jsx as p } from "react/jsx-runtime";
2
- import { m } from "./experimental-DjvvLdnE.js";
2
+ import { m } from "./experimental-Ds-2DStT.js";
3
3
  import { useRef as l, useEffect as i, useState as b } from "react";
4
4
  const k = "https://tiles.openfreemap.org/styles/positron", y = "https://tiles.openfreemap.org/styles/dark", R = 15, d = (n) => {
5
5
  const [c, s] = b(!1);
@@ -1,8 +1,8 @@
1
1
  import { jsxs as a, jsx as r, Fragment as N } from "react/jsx-runtime";
2
2
  import { useState as i, useEffect as k } from "react";
3
- import { u as v, T as S, h as V, S as R } from "./F0CanvasPanel-DT64c3E-.js";
3
+ import { u as v, T as S, h as V, S as R } from "./F0CanvasPanel-C8sTxHKI.js";
4
4
  import { f as z, c as E } from "./sheetPreview-Djc-YyVs.js";
5
- import { u as _, D as j } from "./DocumentToolbar-BrZ13rVL.js";
5
+ import { u as _, D as j } from "./DocumentToolbar-BwV5Q0rV.js";
6
6
  const g = 1e3, F = 100, G = ({
7
7
  url: n,
8
8
  filename: y,
@@ -1,7 +1,7 @@
1
1
  import { jsxs as b, jsx as e } from "react/jsx-runtime";
2
2
  import { useState as _, useEffect as h } from "react";
3
- import { u as x, S as p, p as w } from "./F0CanvasPanel-DT64c3E-.js";
4
- import { u as y, D as g } from "./DocumentToolbar-BrZ13rVL.js";
3
+ import { u as x, S as p, p as w } from "./F0CanvasPanel-C8sTxHKI.js";
4
+ import { u as y, D as g } from "./DocumentToolbar-BwV5Q0rV.js";
5
5
  const k = 2 * 1024 * 1024, v = [
6
6
  "[&_h1]:mb-3 [&_h1]:mt-6 [&_h1]:text-2xl [&_h1]:font-semibold",
7
7
  "[&_h2]:mb-2 [&_h2]:mt-5 [&_h2]:text-xl [&_h2]:font-semibold",
package/dist/ai.d.ts CHANGED
@@ -2263,6 +2263,10 @@ export declare const defaultTranslations: {
2263
2263
  readonly placeholder: "Select a company";
2264
2264
  };
2265
2265
  };
2266
+ readonly sidePanel: {
2267
+ readonly resize: "Resize side panel";
2268
+ readonly width: "{{width}} pixels";
2269
+ };
2266
2270
  readonly previous: "Previous";
2267
2271
  readonly next: "Next";
2268
2272
  };
@@ -2928,6 +2932,174 @@ export declare const defaultTranslations: {
2928
2932
  readonly emptyConversationDescription: "Send a message to start the conversation.";
2929
2933
  readonly error: "Couldn't load this conversation";
2930
2934
  readonly loadingOlder: "Loading earlier messages…";
2935
+ readonly newPosts: "New posts";
2936
+ readonly newPostsCount: {
2937
+ readonly one: "{{count}} new post";
2938
+ readonly other: "{{count}} new posts";
2939
+ };
2940
+ readonly unreadMentionCount: {
2941
+ readonly one: "{{count}} unread, mentions you";
2942
+ readonly other: "{{count}} unread, mentions you";
2943
+ };
2944
+ readonly post: {
2945
+ readonly in: "in";
2946
+ readonly comment: "Comment";
2947
+ readonly views: {
2948
+ readonly one: "{{count}} view";
2949
+ readonly other: "{{count}} views";
2950
+ };
2951
+ readonly comments: {
2952
+ readonly one: "{{count}} comment";
2953
+ readonly other: "{{count}} comments";
2954
+ };
2955
+ };
2956
+ readonly community: {
2957
+ readonly readOnly: "You can't post in this community";
2958
+ readonly writePost: "Write a post…";
2959
+ readonly newPost: "New post";
2960
+ readonly postTitle: "Title";
2961
+ readonly postTitlePlaceholder: "Add a title";
2962
+ readonly postBodyPlaceholder: "Share something with the community…";
2963
+ readonly publish: "Publish";
2964
+ readonly cancel: "Cancel";
2965
+ readonly discardTitle: "Discard this post?";
2966
+ readonly discardDescription: "What you've written won't be saved.";
2967
+ readonly discard: "Discard";
2968
+ readonly keepEditing: "Keep editing";
2969
+ readonly publishError: "Couldn't publish this post";
2970
+ readonly emptyTitle: "No posts yet";
2971
+ readonly emptyDescription: "Posts shared in this community will appear here.";
2972
+ readonly emptyDescriptionCanPost: "Be the first to post here.";
2973
+ readonly pinnedPost: "Pinned post";
2974
+ readonly pinnedPosts: "Pinned";
2975
+ readonly pinnedPostsCount: {
2976
+ readonly one: "{{count}} pinned post";
2977
+ readonly other: "{{count}} pinned posts";
2978
+ };
2979
+ readonly pinPost: "Pin post";
2980
+ readonly unpinPost: "Unpin post";
2981
+ readonly goToPost: "Go to post";
2982
+ readonly noPinnedPosts: "No pinned posts";
2983
+ readonly noPinnedPostsDescription: "Pin a post and it stays at the top of this community.";
2984
+ readonly scheduledPosts: "Scheduled";
2985
+ readonly scheduledPostsCount: {
2986
+ readonly one: "{{count}} scheduled post";
2987
+ readonly other: "{{count}} scheduled posts";
2988
+ };
2989
+ readonly scheduledEvent: "Event";
2990
+ /** The preview's bar, e.g. "Publishes 4 Jun at 09:00". */
2991
+ readonly publishesAt: "Publishes {{when}}";
2992
+ readonly noScheduledPosts: "Nothing scheduled";
2993
+ readonly noScheduledPostsDescription: "Posts you schedule will wait here until their time.";
2994
+ readonly scheduledActions: "Scheduled post actions";
2995
+ readonly publishNow: "Publish now";
2996
+ readonly cancelScheduled: "Cancel";
2997
+ readonly draftPosts: "Drafts";
2998
+ readonly draftPostsCount: {
2999
+ readonly one: "{{count}} draft";
3000
+ readonly other: "{{count}} drafts";
3001
+ };
3002
+ /** Where a scheduled row prints its date, a draft prints this. */
3003
+ readonly draftUntitled: "Untitled post";
3004
+ readonly draftSavedAt: "Saved {{when}}";
3005
+ readonly publishDraft: "Publish";
3006
+ readonly deleteDraft: "Delete draft";
3007
+ readonly shelfLabel: "Pinned, scheduled and draft posts";
3008
+ };
3009
+ };
3010
+ readonly communities: {
3011
+ readonly composer: {
3012
+ readonly createPost: "Create post";
3013
+ readonly createEvent: "Create event";
3014
+ readonly editPost: "Edit post";
3015
+ readonly basicInformation: "Basic information";
3016
+ readonly postSettings: "Post settings";
3017
+ readonly postCover: "Post cover";
3018
+ readonly addMedia: "Drag and drop or click here";
3019
+ readonly addMediaSubtitle: "any image, video or GIF";
3020
+ readonly addMediaSize: "1200x600px";
3021
+ readonly deletePhoto: "Delete photo";
3022
+ readonly deleteVideo: "Delete video";
3023
+ readonly coverActions: "Cover options";
3024
+ readonly title: "Title";
3025
+ readonly titlePlaceholder: "e.g. World Mental Health Day";
3026
+ readonly description: "Description";
3027
+ readonly descriptionPlaceholder: "Share what's special about it";
3028
+ readonly attachmentsSizePerPost: "Up to 150 MB in attachments per post";
3029
+ readonly previousAttachments: "Previously added attachments";
3030
+ readonly isEventLabel: "This is an event";
3031
+ readonly isEventDescription: "Select this to include a date, time, and location for this event.";
3032
+ readonly eventStartDate: "Event start date";
3033
+ readonly eventStartTime: "Start time";
3034
+ readonly eventLocation: "Event location";
3035
+ readonly eventLocationPlaceholder: "Where will this take place?";
3036
+ readonly requireAction: "Require action";
3037
+ readonly requireActionDescription: "Select how you want to track that users have taken the required action";
3038
+ readonly actionType: "Action type";
3039
+ readonly actionTypePlaceholder: "Select action type";
3040
+ readonly actionTypeAcknowledge: "Acknowledge post";
3041
+ readonly actionTypeAcknowledgeDescription: "Employees read and acknowledge the post";
3042
+ readonly actionTypeWatchVideo: "Watch video";
3043
+ readonly actionTypeWatchVideoDescription: "Employees watch the entire video";
3044
+ readonly actionTypeClickedLink: "Clicked a link";
3045
+ readonly actionTypeClickedLinkDescription: "Employees click the first link in the post";
3046
+ readonly actionTypeComingSoon: "Coming soon";
3047
+ readonly continue: "Continue";
3048
+ readonly publishTitle: "Publish";
3049
+ readonly publishDescription: "When publishing the post, it will be visible in the dashboard of each employee.";
3050
+ readonly publish: "Publish";
3051
+ readonly selectCommunity: "Select community";
3052
+ readonly allowCommentsAndReactions: "Allow comments and reactions.";
3053
+ readonly sendEmailNotification: "Send email notification";
3054
+ readonly schedulePost: "Schedule post";
3055
+ readonly scheduleDate: "Date";
3056
+ readonly scheduleTime: "Time";
3057
+ readonly confirm: "Confirm";
3058
+ readonly cancel: "Cancel";
3059
+ readonly saveAsDraft: "Save as draft";
3060
+ readonly save: "Save";
3061
+ readonly cantBeEmpty: "can't be empty";
3062
+ readonly invalidInput: "Invalid input. Only alphanumeric characters are allowed";
3063
+ readonly publishedSuccess: "The post has been published";
3064
+ readonly scheduledSuccess: "The post has been scheduled";
3065
+ readonly draftSuccess: "The post has been saved as draft";
3066
+ readonly publishError: "There was an error creating the post, please try again.";
3067
+ };
3068
+ readonly detail: {
3069
+ readonly postActions: "Post actions";
3070
+ readonly edit: "Edit post";
3071
+ readonly delete: "Delete post";
3072
+ readonly deleteDescription: "Are you sure you want to delete this post? This action cannot be undone.";
3073
+ readonly proceed: "Proceed";
3074
+ readonly turnInteractionsOff: "Turn comments and reactions off";
3075
+ readonly turnInteractionsOn: "Turn comments and reactions on";
3076
+ readonly insights: "Insights";
3077
+ readonly visits: {
3078
+ readonly one: "Visit";
3079
+ readonly other: "Visits";
3080
+ };
3081
+ readonly postViews: "Post views";
3082
+ readonly anonymous: "Anonymous";
3083
+ readonly comments: {
3084
+ readonly one: "{{count}} comment";
3085
+ readonly other: "{{count}} comments";
3086
+ };
3087
+ readonly commentPlaceholder: "Click here to write a comment...";
3088
+ readonly submit: "Submit";
3089
+ readonly deleteComment: "Delete comment";
3090
+ readonly deleteCommentDescription: "Are you sure you want to delete this comment? This action cannot be undone.";
3091
+ readonly editComment: "Edit";
3092
+ readonly acknowledgeRequired: "Post acknowledgement required";
3093
+ readonly acknowledge: "I acknowledge";
3094
+ readonly acknowledgeLater: "Acknowledge later";
3095
+ readonly acknowledgedOn: "Acknowledged on {{date}}, at {{time}}";
3096
+ readonly closePostTitle: "Close post?";
3097
+ readonly closePostDescription: "You haven't acknowledged this post yet. You can acknowledge it later.";
3098
+ readonly closePost: "Close post";
3099
+ readonly continueReading: "Continue reading";
3100
+ readonly close: "Close";
3101
+ readonly home: "Home";
3102
+ };
2931
3103
  };
2932
3104
  readonly dataChart: {
2933
3105
  readonly heatmapNotSupported: "Heatmap not supported at this size";
@@ -5549,10 +5721,10 @@ export declare interface ScatterComputation {
5549
5721
  declare type SetFormCardValueFormatter = <T = unknown>(entry: FormCardValueFormatterEntry<T>) => void;
5550
5722
 
5551
5723
  /**
5552
- * A single piece of content hosted in the side panel — the same resizable +
5553
- * fullscreen space the F0.ai chat lives in. Only one is mounted at a time:
5554
- * the `id` keys the content so switching conversations unmounts the previous
5555
- * one and mounts the new. `panelContent === null` falls back to the AI chat.
5724
+ * A single piece of content hosted in the side panel — the resizable,
5725
+ * fullscreen-able space beside the page. Only one is mounted at a time: the
5726
+ * `id` keys the content, so switching views unmounts the previous one and
5727
+ * mounts the next.
5556
5728
  */
5557
5729
  export declare type SidePanelContent = {
5558
5730
  id: string;
@@ -5723,10 +5895,13 @@ export declare type UsageLimitsPopoverSide = (typeof usageLimitsPopoverSides)[nu
5723
5895
  export declare const usageLimitsPopoverSides: readonly ["top", "bottom"];
5724
5896
 
5725
5897
  /**
5726
- * Read the AiChat context. Returns an inert fallback when no provider
5727
- * is mounted — that case is intentional in `ApplicationFrame`, which
5728
- * renders chat-aware components in both the AI-enabled tree and the
5729
- * promotion-chat tree.
5898
+ * Read the AiChat context.
5899
+ *
5900
+ * Composed from two providers: the chat's own state, and the side panel it
5901
+ * lives in. Returns an inert fallback for the chat half when no provider is
5902
+ * mounted — that case is intentional in `ApplicationFrame`, which renders
5903
+ * chat-aware components in both the AI-enabled tree and the promotion-chat
5904
+ * tree.
5730
5905
  */
5731
5906
  export declare function useAiChat(): AiChatProviderReturnValue;
5732
5907
 
package/dist/ai.js CHANGED
@@ -1,6 +1,6 @@
1
- import { C as e, D as r, c as t, F as i, a as o, f as n, g as F, d as C, e as l, I as A, P as d, b as u, u as m } from "./F0CanvasPanel-DT64c3E-.js";
1
+ import { C as e, D as r, c as t, F as i, a as o, f as n, g as F, d as C, e as l, I as A, P as d, b as u, u as m } from "./F0CanvasPanel-C8sTxHKI.js";
2
2
  import { defaultTranslations as c } from "./i18n-provider-defaults.js";
3
- import { A as g, C as p, t as v, s as I, v as T, y as f, z as y, l as S, i as x, q as b, D as k, E as B, p as H, r as L, j as O, e as V, g as w, k as D, F as M, T as z, w as E, h as j, a as q, n as G, m as R, o as U, B as J, b as K, f as N, x as Q, c as W, d as X, u as Y } from "./F0AiProcessingOverlay-B-MR6cMY.js";
3
+ import { A as g, C as p, t as v, s as I, v as T, y as f, z as y, l as S, i as x, q as b, D as k, E as B, p as H, r as L, j as O, e as V, g as w, k as D, F as M, T as z, w as E, h as j, a as q, n as G, m as R, o as U, B as J, b as K, f as N, x as Q, c as W, d as X, u as Y } from "./F0AiProcessingOverlay-jkio5JGp.js";
4
4
  export {
5
5
  g as AiChatTranslationsProvider,
6
6
  e as ChatSpinner,