@factorialco/f0-react 6.13.0 → 6.15.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/{ChatPdfThumbnail-Cv2HBldJ.js → ChatPdfThumbnail-DTVyLrGB.js} +1 -1
- package/dist/{index-BL5Q4g1m.js → CoachmarkProvider-BZOYmPtf.js} +13527 -13259
- package/dist/{DocumentToolbar-CHKn_RIO.js → DocumentToolbar-D23ws6Ah.js} +2 -2
- package/dist/{DocxViewer-BnPRHNk0.js → DocxViewer-StraMvwi.js} +2 -2
- package/dist/{F0AiProcessingOverlay-BmoShXls.js → F0AiProcessingOverlay-LUNmxmv6.js} +1 -1
- package/dist/{F0CanvasPanel-B6yrVWWP.js → F0CanvasPanel-BaVziWGi.js} +12541 -12540
- package/dist/{F0VideoPlayer-BYiRyqkd.js → F0VideoPlayer-D0FM9YSS.js} +1 -1
- package/dist/{SheetViewer-wVzW2PUO.js → SheetViewer-CWYHmzco.js} +2 -2
- package/dist/{TextViewer-D1LGz4uY.js → TextViewer-DOJ-tzi2.js} +2 -2
- package/dist/ai.d.ts +12 -8
- package/dist/ai.js +2 -2
- package/dist/component-status.d.ts +8 -8
- package/dist/component-status.js +3 -3
- package/dist/experimental.d.ts +259 -11
- package/dist/experimental.js +2430 -2260
- package/dist/f0.d.ts +12 -8
- package/dist/f0.js +3185 -3185
- package/dist/i18n-provider-defaults.d.ts +12 -8
- package/dist/i18n-provider-defaults.js +4 -0
- package/dist/index-BfTe3kmv.js +4 -0
- package/dist/{index-KCgfgFEP.js → index-Db0jOPZS.js} +3 -3
- package/dist/{pdfWorker-y12AkSda.js → pdfWorker-NANwCJGE.js} +2 -2
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/dist/index-B_Rutc80.js +0 -4
- /package/dist/{index2.css → CoachmarkProvider.css} +0 -0
package/dist/experimental.d.ts
CHANGED
|
@@ -78,6 +78,7 @@ import { PersonCellValue } from './types/person';
|
|
|
78
78
|
import { PersonCellValue as PersonCellValue_2 } from './experimental';
|
|
79
79
|
import { PieChartProps } from './PieChart';
|
|
80
80
|
import { PieChartProps as PieChartProps_2 } from './experimental';
|
|
81
|
+
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
81
82
|
import { PopoverProps } from '@radix-ui/react-popover';
|
|
82
83
|
import { ProgressBarCellValue } from './types/progressBar';
|
|
83
84
|
import { ProgressBarCellValue as ProgressBarCellValue_2 } from './experimental';
|
|
@@ -2399,6 +2400,169 @@ declare interface ClockInGraphProps {
|
|
|
2399
2400
|
|
|
2400
2401
|
declare type ClockInStatus = "clocked-in" | "break" | "clocked-out";
|
|
2401
2402
|
|
|
2403
|
+
/**
|
|
2404
|
+
* The single call to action at the bottom of the panel. Both fields are
|
|
2405
|
+
* optional: the coachmark always advances to the next step (or closes on the
|
|
2406
|
+
* last one) when the button is pressed, so `onClick` is only for side effects
|
|
2407
|
+
* and `label` only for overriding the default wording.
|
|
2408
|
+
*/
|
|
2409
|
+
export declare type CoachmarkAction = {
|
|
2410
|
+
/** Defaults to `Next` on every step but the last, `Got it` on the last. */
|
|
2411
|
+
label?: string;
|
|
2412
|
+
/** Extra side effect. Advancing and closing happen either way. */
|
|
2413
|
+
onClick?: () => void;
|
|
2414
|
+
};
|
|
2415
|
+
|
|
2416
|
+
declare type CoachmarkBase = CoachmarkPlacement & {
|
|
2417
|
+
/**
|
|
2418
|
+
* Stable identity. Opening again with the same id replaces that coachmark
|
|
2419
|
+
* instead of queueing a second one, so an effect that runs twice shows one
|
|
2420
|
+
* coachmark. Defaults to a generated id.
|
|
2421
|
+
*/
|
|
2422
|
+
id?: CoachmarkId;
|
|
2423
|
+
/**
|
|
2424
|
+
* Called when the user closes the coachmark with the close button or Escape,
|
|
2425
|
+
* before the last step is reached. For tracking only — the coachmark closes
|
|
2426
|
+
* itself either way.
|
|
2427
|
+
*/
|
|
2428
|
+
onDismiss?: () => void;
|
|
2429
|
+
/**
|
|
2430
|
+
* Called when the user presses the action on the last step. For tracking only
|
|
2431
|
+
* — the coachmark closes itself either way.
|
|
2432
|
+
*/
|
|
2433
|
+
onComplete?: () => void;
|
|
2434
|
+
};
|
|
2435
|
+
|
|
2436
|
+
declare type CoachmarkContent = {
|
|
2437
|
+
/** Headline. Also the accessible name of the panel. */
|
|
2438
|
+
title: string;
|
|
2439
|
+
/** Supporting copy under the title. */
|
|
2440
|
+
description?: string;
|
|
2441
|
+
/** The single call to action, rendered at the bottom right. */
|
|
2442
|
+
action?: CoachmarkAction;
|
|
2443
|
+
};
|
|
2444
|
+
|
|
2445
|
+
export declare type CoachmarkId = string;
|
|
2446
|
+
|
|
2447
|
+
/**
|
|
2448
|
+
* What `coachmarks.open` accepts: either one coachmark, or a sequence of steps
|
|
2449
|
+
* shown one at a time. The two shapes are mutually exclusive.
|
|
2450
|
+
*/
|
|
2451
|
+
export declare type CoachmarkOptions = CoachmarkSingleOptions | CoachmarkSequenceOptions;
|
|
2452
|
+
|
|
2453
|
+
/**
|
|
2454
|
+
* Where the panel sits relative to its target. `side` is a preference: the
|
|
2455
|
+
* panel flips and shifts on its own when it would overflow the viewport.
|
|
2456
|
+
*/
|
|
2457
|
+
declare type CoachmarkPlacement = {
|
|
2458
|
+
/** Renders a triangle pointing at the target. Defaults to `true`. */
|
|
2459
|
+
arrow?: boolean;
|
|
2460
|
+
/** Preferred side of the target. Defaults to `"bottom"`. */
|
|
2461
|
+
side?: PopoverContentProps["side"];
|
|
2462
|
+
/** Alignment along the target's edge. Defaults to `"center"`. */
|
|
2463
|
+
align?: PopoverContentProps["align"];
|
|
2464
|
+
/** Distance in pixels between the target and the panel. */
|
|
2465
|
+
sideOffset?: number;
|
|
2466
|
+
};
|
|
2467
|
+
|
|
2468
|
+
/**
|
|
2469
|
+
* Renders the coachmark at the head of the queue. Mounted by `F0Provider`, so
|
|
2470
|
+
* `coachmarks.open` works from anywhere without a hook or a wrapper component.
|
|
2471
|
+
*/
|
|
2472
|
+
export declare const CoachmarkProvider: ({ children, portalTarget, }: CoachmarkProviderProps) => JSX_2.Element;
|
|
2473
|
+
|
|
2474
|
+
declare type CoachmarkProviderProps = {
|
|
2475
|
+
children: React.ReactNode;
|
|
2476
|
+
/**
|
|
2477
|
+
* Selector for the element the panel is portalled into. Defaults to the
|
|
2478
|
+
* top-level overlay root, which keeps the coachmark above app content (the
|
|
2479
|
+
* ApplicationFrame's `isolate`, the fullscreen AI chat) while staying inside
|
|
2480
|
+
* `#f0-layout` so design tokens and the theme class still apply. Falls back to
|
|
2481
|
+
* `document.body` when the element is absent.
|
|
2482
|
+
*/
|
|
2483
|
+
portalTarget?: string;
|
|
2484
|
+
};
|
|
2485
|
+
|
|
2486
|
+
/**
|
|
2487
|
+
* Imperative API for coachmarks: a panel anchored to an element, pointing out a
|
|
2488
|
+
* feature the user has not discovered yet. Can be called from anywhere — no hook
|
|
2489
|
+
* required — as long as `<F0Provider>` (which mounts `CoachmarkProvider`) is in
|
|
2490
|
+
* the tree.
|
|
2491
|
+
*
|
|
2492
|
+
* There is no `open` prop and no component to render: the coachmark closes
|
|
2493
|
+
* itself when the user acknowledges it, and only one is ever on screen — a
|
|
2494
|
+
* second `open` waits its turn.
|
|
2495
|
+
*
|
|
2496
|
+
* @example
|
|
2497
|
+
* import { coachmarks } from "@factorialco/f0-react/experimental"
|
|
2498
|
+
*
|
|
2499
|
+
* coachmarks.open({
|
|
2500
|
+
* id: "smart-filters",
|
|
2501
|
+
* targetElement: "#filters-button",
|
|
2502
|
+
* title: "Filters got smarter",
|
|
2503
|
+
* description: "Stack filters, then save the combination as a view.",
|
|
2504
|
+
* action: { label: "Learn more", onClick: () => openDocs() },
|
|
2505
|
+
* })
|
|
2506
|
+
*
|
|
2507
|
+
* @example A walkthrough, one step at a time
|
|
2508
|
+
* coachmarks.open({
|
|
2509
|
+
* steps: [
|
|
2510
|
+
* { targetElement: "#filters-button", title: "Start with a filter" },
|
|
2511
|
+
* { targetElement: "#save-view", title: "Then save it as a view" },
|
|
2512
|
+
* ],
|
|
2513
|
+
* onComplete: () => track("tour-finished"),
|
|
2514
|
+
* })
|
|
2515
|
+
*/
|
|
2516
|
+
export declare const coachmarks: {
|
|
2517
|
+
/**
|
|
2518
|
+
* Show a coachmark, or queue it behind the one already on screen.
|
|
2519
|
+
* @param options One coachmark, or a sequence of `steps`
|
|
2520
|
+
* @returns The id of the coachmark (pass it to `coachmarks.close`)
|
|
2521
|
+
*/
|
|
2522
|
+
open: (options: CoachmarkOptions) => CoachmarkId;
|
|
2523
|
+
/**
|
|
2524
|
+
* Remove a coachmark by id, whether it is on screen or still queued. For
|
|
2525
|
+
* closing it programmatically — the user does not need this.
|
|
2526
|
+
* @param id The id returned by `coachmarks.open`
|
|
2527
|
+
*/
|
|
2528
|
+
close: (id: CoachmarkId) => void;
|
|
2529
|
+
/** Remove every coachmark, on screen and queued. */
|
|
2530
|
+
closeAll: () => void;
|
|
2531
|
+
};
|
|
2532
|
+
|
|
2533
|
+
/** A walkthrough: several steps, shown one at a time in order. */
|
|
2534
|
+
export declare type CoachmarkSequenceOptions = CoachmarkBase & {
|
|
2535
|
+
/** Shared fallback target for steps that do not name their own. */
|
|
2536
|
+
targetElement?: CoachmarkTarget;
|
|
2537
|
+
steps: CoachmarkStep[];
|
|
2538
|
+
title?: never;
|
|
2539
|
+
description?: never;
|
|
2540
|
+
action?: never;
|
|
2541
|
+
};
|
|
2542
|
+
|
|
2543
|
+
/** One coachmark: its own copy, anchored to one element. */
|
|
2544
|
+
export declare type CoachmarkSingleOptions = CoachmarkBase & CoachmarkContent & {
|
|
2545
|
+
targetElement: CoachmarkTarget;
|
|
2546
|
+
steps?: never;
|
|
2547
|
+
};
|
|
2548
|
+
|
|
2549
|
+
/**
|
|
2550
|
+
* One step of a walkthrough. Each step can point at its own element and carry
|
|
2551
|
+
* its own placement; anything it leaves out falls back to the value passed
|
|
2552
|
+
* alongside `steps`.
|
|
2553
|
+
*/
|
|
2554
|
+
export declare type CoachmarkStep = CoachmarkContent & CoachmarkPlacement & {
|
|
2555
|
+
/** Falls back to the `targetElement` passed alongside `steps`. */
|
|
2556
|
+
targetElement?: CoachmarkTarget;
|
|
2557
|
+
};
|
|
2558
|
+
|
|
2559
|
+
/**
|
|
2560
|
+
* What the coachmark points at: a CSS selector that must match exactly one
|
|
2561
|
+
* element, or the element itself. A selector is re-resolved while the coachmark
|
|
2562
|
+
* is queued, so it may point at something that mounts later.
|
|
2563
|
+
*/
|
|
2564
|
+
export declare type CoachmarkTarget = string | HTMLElement;
|
|
2565
|
+
|
|
2402
2566
|
declare type ColId = string;
|
|
2403
2567
|
|
|
2404
2568
|
declare interface CollectionComputation {
|
|
@@ -3186,15 +3350,32 @@ declare const daytimePageVariants: (props?: ({
|
|
|
3186
3350
|
className?: ClassValue;
|
|
3187
3351
|
})) | undefined) => string;
|
|
3188
3352
|
|
|
3353
|
+
/**
|
|
3354
|
+
* How many placeholder items a slot draws when it doesn't say (its
|
|
3355
|
+
* `expectedItemsCount`). Three: enough to read as a list, short enough that a
|
|
3356
|
+
* widget which turns out to hold one item barely jumps.
|
|
3357
|
+
*/
|
|
3358
|
+
export declare const DEFAULT_EXPECTED_ITEMS_COUNT = 3;
|
|
3359
|
+
|
|
3189
3360
|
/**
|
|
3190
3361
|
* Built-in renderers for the standard visualizations. `list` covers every
|
|
3191
3362
|
* row-based slot through its schema; `event-list` and `indicators` spread
|
|
3192
3363
|
* their params onto the matching f0 content component. Bespoke visualizations
|
|
3193
3364
|
* (e.g. `clock-in`, `carousel`) are intentionally absent — supply them via
|
|
3194
3365
|
* `slotRenderers`.
|
|
3366
|
+
*
|
|
3367
|
+
* Each ships its own `skeleton` beside its `render`, so a widget's loading
|
|
3368
|
+
* state is drawn by the same thing that draws its content.
|
|
3195
3369
|
*/
|
|
3196
3370
|
export declare const defaultSlotRenderers: SlotRenderers;
|
|
3197
3371
|
|
|
3372
|
+
/**
|
|
3373
|
+
* What a slot draws while loading when its visualization brings no skeleton of
|
|
3374
|
+
* its own — an unregistered one, or a bespoke renderer passed as a bare
|
|
3375
|
+
* function. Deliberately shapeless: one bar per expected item.
|
|
3376
|
+
*/
|
|
3377
|
+
export declare const defaultSlotSkeleton: SlotSkeletonRenderer;
|
|
3378
|
+
|
|
3198
3379
|
declare const defaultTranslations: {
|
|
3199
3380
|
readonly common: {
|
|
3200
3381
|
readonly selectPlaceholder: "Select";
|
|
@@ -3542,6 +3723,10 @@ declare const defaultTranslations: {
|
|
|
3542
3723
|
readonly join: "Join";
|
|
3543
3724
|
readonly summary: "Summary";
|
|
3544
3725
|
};
|
|
3726
|
+
readonly coachmark: {
|
|
3727
|
+
readonly next: "Next";
|
|
3728
|
+
readonly done: "Got it";
|
|
3729
|
+
};
|
|
3545
3730
|
readonly actions: {
|
|
3546
3731
|
readonly add: "Add";
|
|
3547
3732
|
readonly edit: "Edit";
|
|
@@ -7754,6 +7939,14 @@ export declare interface HomeRenderCtx {
|
|
|
7754
7939
|
isLastSlot?: boolean;
|
|
7755
7940
|
}
|
|
7756
7941
|
|
|
7942
|
+
/**
|
|
7943
|
+
* The ctx a SKELETON is drawn with: the render ctx plus how many placeholder
|
|
7944
|
+
* items to draw — the slot's `expectedItemsCount`, already defaulted.
|
|
7945
|
+
*/
|
|
7946
|
+
export declare type HomeSkeletonCtx = HomeRenderCtx & {
|
|
7947
|
+
expectedItemsCount: number;
|
|
7948
|
+
};
|
|
7949
|
+
|
|
7757
7950
|
/**
|
|
7758
7951
|
* Builds a slot with its params CHECKED against its visualization.
|
|
7759
7952
|
* `HomeWidgetSlot`'s `params` is `unknown` (bespoke slots need it to be), so a
|
|
@@ -7761,7 +7954,7 @@ export declare interface HomeRenderCtx {
|
|
|
7761
7954
|
* the built-in vocabulary (and {@link listSlot} for `list` slots), keeping
|
|
7762
7955
|
* literals for bespoke visualizations.
|
|
7763
7956
|
*/
|
|
7764
|
-
export declare const homeSlot: <V extends keyof HomeSlotParamsMap>(visualization: V, params: HomeSlotParamsMap[V]) => HomeWidgetSlot;
|
|
7957
|
+
export declare const homeSlot: <V extends keyof HomeSlotParamsMap>(visualization: V, params: HomeSlotParamsMap[V], options?: SlotOptions) => HomeWidgetSlot;
|
|
7765
7958
|
|
|
7766
7959
|
/** The built-in slot vocabulary: each visualization and its params shape. */
|
|
7767
7960
|
export declare interface HomeSlotParamsMap {
|
|
@@ -7806,12 +7999,24 @@ export declare type HomeWidgetItem = HomeWidgetChrome & {
|
|
|
7806
7999
|
*/
|
|
7807
8000
|
hasUpdates?: boolean;
|
|
7808
8001
|
slots: HomeWidgetSlot[];
|
|
8002
|
+
/**
|
|
8003
|
+
* The widget is waiting on its data: every slot draws its skeleton instead of
|
|
8004
|
+
* its content (see `SlotWidget`'s `loading`).
|
|
8005
|
+
*/
|
|
8006
|
+
loading?: boolean;
|
|
7809
8007
|
};
|
|
7810
8008
|
|
|
7811
8009
|
/** One slot of a widget: a visualization tag + its params (opaque to the layout). */
|
|
7812
8010
|
export declare interface HomeWidgetSlot {
|
|
7813
8011
|
visualization: string;
|
|
7814
8012
|
params: unknown;
|
|
8013
|
+
/**
|
|
8014
|
+
* How many items this slot expects to hold — the number of PLACEHOLDER items
|
|
8015
|
+
* its skeleton draws while the widget is `loading`, so the loading card is
|
|
8016
|
+
* about as tall as the one that replaces it. Defaults to
|
|
8017
|
+
* {@link DEFAULT_EXPECTED_ITEMS_COUNT}.
|
|
8018
|
+
*/
|
|
8019
|
+
expectedItemsCount?: number;
|
|
7815
8020
|
}
|
|
7816
8021
|
|
|
7817
8022
|
declare type HTMLString = string;
|
|
@@ -8367,7 +8572,7 @@ export declare interface ListSchema {
|
|
|
8367
8572
|
* CHECKED against it — a `left: "person"` slot only takes person data, a
|
|
8368
8573
|
* `clickBehavior: "link"` slot demands an `href` on every row.
|
|
8369
8574
|
*/
|
|
8370
|
-
export declare const listSlot: <const S extends ListSchema>(schema: S, items: Array<ListItem<S
|
|
8575
|
+
export declare const listSlot: <const S extends ListSchema>(schema: S, items: Array<ListItem<S>>, options?: SlotOptions) => HomeWidgetSlot;
|
|
8371
8576
|
|
|
8372
8577
|
declare type ListTextData<S extends ListSchema> = {
|
|
8373
8578
|
title: string;
|
|
@@ -9727,6 +9932,10 @@ declare interface PieComputation {
|
|
|
9727
9932
|
limit?: number;
|
|
9728
9933
|
}
|
|
9729
9934
|
|
|
9935
|
+
declare type PopoverContentProps = React_2.ComponentPropsWithoutRef<typeof PopoverPrimitive.Content> & {
|
|
9936
|
+
container?: HTMLElement | null;
|
|
9937
|
+
};
|
|
9938
|
+
|
|
9730
9939
|
declare type PostDescriptionProps = {
|
|
9731
9940
|
content: HTMLString;
|
|
9732
9941
|
collapsed?: boolean;
|
|
@@ -10167,6 +10376,12 @@ declare type RequisitionProfile = {
|
|
|
10167
10376
|
|
|
10168
10377
|
export declare type ResolvedRecordType<R> = R extends RecordType ? R : RecordType;
|
|
10169
10378
|
|
|
10379
|
+
/** A renderer entry in its full form — a bare function is just its `render`. */
|
|
10380
|
+
export declare const resolveSlotRenderer: (entry: SlotRendererEntry | undefined) => {
|
|
10381
|
+
render: SlotRenderer;
|
|
10382
|
+
skeleton?: SlotSkeletonRenderer;
|
|
10383
|
+
} | undefined;
|
|
10384
|
+
|
|
10170
10385
|
/**
|
|
10171
10386
|
* Header for a resource detail page: avatar, title, description, status,
|
|
10172
10387
|
* metadata and its primary, secondary and overflow actions.
|
|
@@ -10883,10 +11098,28 @@ declare const skeletonVariants: (props?: ({
|
|
|
10883
11098
|
*/
|
|
10884
11099
|
export declare const SLOT_ROW_BLEED = "-m-2";
|
|
10885
11100
|
|
|
11101
|
+
/**
|
|
11102
|
+
* Marks ONE placeholder item, whatever the visualization draws as an item — a
|
|
11103
|
+
* list row, an event, an indicator. `expectedItemsCount` of these appear.
|
|
11104
|
+
*/
|
|
11105
|
+
export declare const SLOT_SKELETON_ITEM_TESTID = "slot-skeleton-item";
|
|
11106
|
+
|
|
11107
|
+
/** What a slot carries beyond its params. Taken by both slot builders. */
|
|
11108
|
+
export declare type SlotOptions = Pick<HomeWidgetSlot, "expectedItemsCount">;
|
|
11109
|
+
|
|
10886
11110
|
/** Draws ONE slot from its params. Keyed by `visualization` in a renderer map. */
|
|
10887
11111
|
export declare type SlotRenderer<P = unknown> = (params: P, ctx: HomeRenderCtx) => ReactNode;
|
|
10888
11112
|
|
|
10889
|
-
|
|
11113
|
+
/**
|
|
11114
|
+
* How a visualization is drawn: the render function on its own, or that
|
|
11115
|
+
* function PAIRED with the skeleton to draw while the slot loads.
|
|
11116
|
+
*/
|
|
11117
|
+
export declare type SlotRendererEntry<P = unknown> = SlotRenderer<P> | {
|
|
11118
|
+
render: SlotRenderer<P>;
|
|
11119
|
+
skeleton?: SlotSkeletonRenderer<P>;
|
|
11120
|
+
};
|
|
11121
|
+
|
|
11122
|
+
export declare type SlotRenderers = Record<string, SlotRendererEntry>;
|
|
10890
11123
|
|
|
10891
11124
|
/**
|
|
10892
11125
|
* The bleed a row-based slot applies to itself: `SLOT_ROW_BLEED` with its
|
|
@@ -10896,6 +11129,14 @@ export declare type SlotRenderers = Record<string, SlotRenderer>;
|
|
|
10896
11129
|
*/
|
|
10897
11130
|
export declare const slotRowBleed: (ctx: HomeRenderCtx) => string;
|
|
10898
11131
|
|
|
11132
|
+
/**
|
|
11133
|
+
* Draws the slot's PLACEHOLDER, before its data lands. It gets the same params
|
|
11134
|
+
* the renderer will get — a loading slot still carries its static config (a
|
|
11135
|
+
* `list`'s schema, say), just no items — so the placeholder can be shaped like
|
|
11136
|
+
* what is coming.
|
|
11137
|
+
*/
|
|
11138
|
+
export declare type SlotSkeletonRenderer<P = unknown> = (params: P, ctx: HomeSkeletonCtx) => ReactNode;
|
|
11139
|
+
|
|
10899
11140
|
/**
|
|
10900
11141
|
* Type helper to extract keys from a SortingsDefinition
|
|
10901
11142
|
*/
|
|
@@ -12449,9 +12690,16 @@ export declare interface WidgetProps {
|
|
|
12449
12690
|
info?: string;
|
|
12450
12691
|
canBeBlurred?: boolean;
|
|
12451
12692
|
link?: {
|
|
12693
|
+
/**
|
|
12694
|
+
* What following the link DOES, in words — "Go to Communities". The
|
|
12695
|
+
* control is icon-only, so this is the only thing that says where it
|
|
12696
|
+
* goes: it is its tooltip and its accessible name, and it is required
|
|
12697
|
+
* for exactly that reason.
|
|
12698
|
+
*/
|
|
12452
12699
|
title: string;
|
|
12453
12700
|
url?: string;
|
|
12454
12701
|
onClick?: () => void;
|
|
12702
|
+
/** Defaults to the external-link glyph. */
|
|
12455
12703
|
icon?: IconType;
|
|
12456
12704
|
};
|
|
12457
12705
|
count?: number;
|
|
@@ -12667,11 +12915,9 @@ declare namespace Calendar {
|
|
|
12667
12915
|
|
|
12668
12916
|
declare module "@tiptap/core" {
|
|
12669
12917
|
interface Commands<ReturnType> {
|
|
12670
|
-
|
|
12671
|
-
|
|
12672
|
-
|
|
12673
|
-
}) => ReturnType;
|
|
12674
|
-
clearEnhanceHighlight: () => ReturnType;
|
|
12918
|
+
aiBlock: {
|
|
12919
|
+
insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
|
|
12920
|
+
executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
|
|
12675
12921
|
};
|
|
12676
12922
|
}
|
|
12677
12923
|
}
|
|
@@ -12679,9 +12925,11 @@ declare module "@tiptap/core" {
|
|
|
12679
12925
|
|
|
12680
12926
|
declare module "@tiptap/core" {
|
|
12681
12927
|
interface Commands<ReturnType> {
|
|
12682
|
-
|
|
12683
|
-
|
|
12684
|
-
|
|
12928
|
+
enhanceHighlight: {
|
|
12929
|
+
setEnhanceHighlight: (from: number, to: number, options?: {
|
|
12930
|
+
placeholder?: string;
|
|
12931
|
+
}) => ReturnType;
|
|
12932
|
+
clearEnhanceHighlight: () => ReturnType;
|
|
12685
12933
|
};
|
|
12686
12934
|
}
|
|
12687
12935
|
}
|