@medienreaktor/neos-studio 2.2.0 → 2.6.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 (3) hide show
  1. package/README.md +2 -2
  2. package/index.d.ts +644 -831
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -1,10 +1,32 @@
1
- // Generated by `npm run build:plugin-types` from src/plugin-api/index.ts - do not edit.
1
+ /**
2
+ * The Studio plugin API - the one public surface third-party packages build
3
+ * against. Everything here is deliberate: a plugin sees these registries,
4
+ * hooks and types and nothing else of the shell's internals.
5
+ *
6
+ * How a plugin reaches this at runtime
7
+ * ------------------------------------
8
+ * The shell is one bundle; its registries are module-level singletons living
9
+ * inside it. A plugin ships its own separately-built bundle, so it cannot
10
+ * `import` these directly - it would get a second, empty copy of every
11
+ * singleton (and a second React, whose hooks/context would not line up with
12
+ * the shell's). Instead the shell publishes this surface, plus its own React,
13
+ * on `window` (see `installPluginApiGlobals`), and a plugin is built with
14
+ * `react`, `react-dom`, `react/jsx-runtime` and `@medienreaktor/neos-studio`
15
+ * marked as externals that resolve to those globals. The result: the plugin
16
+ * renders with the shell's React and registers into the shell's registries -
17
+ * the same instances the running app reads.
18
+ *
19
+ * Load order is handled for us. The shell's entry module sets these globals
20
+ * and mounts before any plugin script runs (plugin scripts are injected as
21
+ * deferred `type="module"` tags after the shell's), and the registries are
22
+ * observable, so a plugin that registers after mount simply triggers a
23
+ * re-render. Registration is idempotent (register-replaces-by-id), so HMR and
24
+ * plugin reloads are safe.
25
+ */
2
26
  import * as React$1 from "react";
3
27
  import { ReactNode } from "react";
4
28
  import * as ReactDOM from "react-dom";
5
29
  import * as ReactJSXRuntime from "react/jsx-runtime";
6
- //#endregion
7
- //#region @tanstack/query-core/build/modern/subscribable-D2lAzdDi.d.ts
8
30
  /**
9
31
  * The base class behind everything in Query that you can subscribe to: `QueryCache`, `MutationCache`,
10
32
  * the observers, and the `FocusManager`/`OnlineManager` behind `focusManager` and `onlineManager`.
@@ -45,8 +67,6 @@ declare class Subscribable<TListener extends Function> {
45
67
  */
46
68
  protected onUnsubscribe(): void;
47
69
  }
48
- //#endregion
49
- //#region @tanstack/query-core/build/modern/removable-B1nFbgZm.d.ts
50
70
  /**
51
71
  * The base class for cache entries that are garbage collected once nothing is using them —
52
72
  * `Query` and `Mutation` both extend it. `gcTime` controls how long an unused entry is kept.
@@ -81,8 +101,6 @@ declare abstract class Removable {
81
101
  */
82
102
  protected abstract optionalRemove(): void;
83
103
  }
84
- //#endregion
85
- //#region @tanstack/query-core/build/modern/hydration-gHEs4kLM.d.ts
86
104
  type QueryObserverListener<TData, TError> = (result: QueryObserverResult<TData, TError>) => void;
87
105
  interface ObserverFetchOptions extends FetchOptions {
88
106
  throwOnError?: boolean;
@@ -571,7 +589,7 @@ declare class Query<TQueryFnData = unknown, TError = DefaultError, TData = TQuer
571
589
  */
572
590
  isFetched(): boolean;
573
591
  /**
574
- * Returns `true` if the query has at least one observer configured with
592
+ * Returns `true` if the query has data and at least one observer configured with
575
593
  * `staleTime: 'static'`, meaning it is treated as never stale.
576
594
  * @returns `true` if the query is static.
577
595
  */
@@ -1514,7 +1532,7 @@ declare class QueryClient {
1514
1532
  * }
1515
1533
  * ```
1516
1534
  */
1517
- isMutating<TMutationFilters extends MutationFilters<any, any> = MutationFilters>(filters?: TMutationFilters): number;
1535
+ isMutating<TMutationFilters extends MutationFilters<any, any> = MutationFilters<any, any>>(filters?: NoInfer<Omit<TMutationFilters, 'status'>>): number;
1518
1536
  /**
1519
1537
  * Imperative (non-reactive) way to retrieve data for a QueryKey.
1520
1538
  * Should only be used in callbacks or functions where reading the latest data is necessary, e.g. for optimistic updates.
@@ -1680,13 +1698,17 @@ declare class QueryClient {
1680
1698
  * have observers with a static `staleTime`), are never refetched.
1681
1699
  *
1682
1700
  * By default (`cancelRefetch: true`), a currently running fetch is cancelled before the new
1683
- * one starts. The returned promise resolves once all matching queries have settled; it does
1684
- * not reject on individual query failures unless `throwOnError` is set.
1701
+ * one starts. The returned promise does not reject on individual query failures unless
1702
+ * `throwOnError` is `true`.
1703
+ *
1704
+ * Initially paused fetches do not delay the returned promise. Their later errors are handled
1705
+ * even when `throwOnError` is `true`.
1685
1706
  * @param filters - The filters that select which queries to refetch. Without filters, every query
1686
1707
  * in the cache is included.
1687
1708
  * @param options - Set `cancelRefetch` to `false` to keep a running fetch instead of cancelling
1688
- * it, and `throwOnError` to `true` to reject when a refetch fails.
1689
- * @returns A promise that resolves once every matched query has settled.
1709
+ * it, and `throwOnError` to `true` to reject when a refetch that was not initially paused fails.
1710
+ * @returns A promise that resolves once all matching refetches that were not initially paused
1711
+ * have settled.
1690
1712
  * @example
1691
1713
  * ```ts
1692
1714
  * // refetch all active queries partially matching a query key:
@@ -3803,8 +3825,6 @@ interface HydrateOptions {
3803
3825
  mutations?: MutationOptions<unknown, DefaultError, unknown, unknown>;
3804
3826
  };
3805
3827
  }
3806
- //#endregion
3807
- //#region @tanstack/react-query/build/modern/QueryClientProvider.d.ts
3808
3828
  /**
3809
3829
  * The `useQueryClient` hook returns the current `QueryClient` instance.
3810
3830
  * @param queryClient - Use this to use a custom `QueryClient`. Otherwise, the one from the nearest context will
@@ -3813,9 +3833,7 @@ interface HydrateOptions {
3813
3833
  * @throws {Error} If no `queryClient` argument is passed and no `QueryClientProvider` is found in the
3814
3834
  * component tree.
3815
3835
  */
3816
- declare const useQueryClient: (queryClient?: QueryClient) => QueryClient;
3817
- //#endregion
3818
- //#region @tanstack/react-query/build/modern/types.d.ts
3836
+ export declare const useQueryClient: (queryClient?: QueryClient) => QueryClient;
3819
3837
  /**
3820
3838
  * The options shared by `useQuery` and `useSuspenseQuery`. Extends {@link QueryObserverOptions} from
3821
3839
  * `@tanstack/query-core` with the `react-query`-specific `subscribed` option.
@@ -3957,8 +3975,6 @@ type UseBaseMutationResult<TData = unknown, TError = DefaultError, TVariables =
3957
3975
  * their `onMutateResult` parameter — useful for optimistic-update rollback data.
3958
3976
  */
3959
3977
  type UseMutationResult<TData = unknown, TError = DefaultError, TVariables = unknown, TOnMutateResult = unknown> = UseBaseMutationResult<TData, TError, TVariables, TOnMutateResult>;
3960
- //#endregion
3961
- //#region @tanstack/react-query/build/modern/queryOptions.d.ts
3962
3978
  /**
3963
3979
  * The options accepted by the `queryOptions` overload selected when `initialData` is omitted, may be
3964
3980
  * `undefined`, or is a function that may return `undefined` — `data` may be `undefined` while the query is
@@ -4058,7 +4074,7 @@ type DefinedInitialDataOptions<TQueryFnData = unknown, TError = DefaultError, TD
4058
4074
  * }
4059
4075
  * ```
4060
4076
  */
4061
- declare function queryOptions<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>(options: DefinedInitialDataOptions<TQueryFnData, TError, TData, TQueryKey>): DefinedInitialDataOptions<TQueryFnData, TError, TData, TQueryKey> & QueryKeyWithDataTag<TQueryKey, TQueryFnData, TError>;
4077
+ export declare function queryOptions<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>(options: DefinedInitialDataOptions<TQueryFnData, TError, TData, TQueryKey>): DefinedInitialDataOptions<TQueryFnData, TError, TData, TQueryKey> & QueryKeyWithDataTag<TQueryKey, TQueryFnData, TError>;
4062
4078
  /**
4063
4079
  * You can generally pass everything to `queryOptions` that you can also pass to `useQuery`. These options can
4064
4080
  * be shared across hooks and imperative APIs such as `queryClient.query`. `options.queryKey` is required and
@@ -4088,7 +4104,7 @@ declare function queryOptions<TQueryFnData = unknown, TError = DefaultError, TDa
4088
4104
  * }
4089
4105
  * ```
4090
4106
  */
4091
- declare function queryOptions<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>(options: UnusedSkipTokenOptions<TQueryFnData, TError, TData, TQueryKey>): UnusedSkipTokenOptions<TQueryFnData, TError, TData, TQueryKey> & QueryKeyWithDataTag<TQueryKey, TQueryFnData, TError>;
4107
+ export declare function queryOptions<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>(options: UnusedSkipTokenOptions<TQueryFnData, TError, TData, TQueryKey>): UnusedSkipTokenOptions<TQueryFnData, TError, TData, TQueryKey> & QueryKeyWithDataTag<TQueryKey, TQueryFnData, TError>;
4092
4108
  /**
4093
4109
  * You can generally pass everything to `queryOptions` that you can also pass to `useQuery`. These options can
4094
4110
  * be shared across hooks and imperative APIs such as `queryClient.query`. `options.queryKey` is required and
@@ -4140,9 +4156,7 @@ declare function queryOptions<TQueryFnData = unknown, TError = DefaultError, TDa
4140
4156
  * }
4141
4157
  * ```
4142
4158
  */
4143
- declare function queryOptions<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>(options: UndefinedInitialDataOptions<TQueryFnData, TError, TData, TQueryKey>): UndefinedInitialDataOptions<TQueryFnData, TError, TData, TQueryKey> & QueryKeyWithDataTag<TQueryKey, TQueryFnData, TError>;
4144
- //#endregion
4145
- //#region @tanstack/react-query/build/modern/useQuery.d.ts
4159
+ export declare function queryOptions<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>(options: UndefinedInitialDataOptions<TQueryFnData, TError, TData, TQueryKey>): UndefinedInitialDataOptions<TQueryFnData, TError, TData, TQueryKey> & QueryKeyWithDataTag<TQueryKey, TQueryFnData, TError>;
4146
4160
  /**
4147
4161
  * This overload is selected when `initialData` is known to be defined, so the resulting `data` is never
4148
4162
  * `undefined` (unless a `select` changes `TData` to include `undefined`).
@@ -4177,7 +4191,7 @@ declare function queryOptions<TQueryFnData = unknown, TError = DefaultError, TDa
4177
4191
  * }
4178
4192
  * ```
4179
4193
  */
4180
- declare function useQuery<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>(options: DefinedInitialDataOptions<TQueryFnData, TError, TData, TQueryKey>, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError>;
4194
+ export declare function useQuery<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>(options: DefinedInitialDataOptions<TQueryFnData, TError, TData, TQueryKey>, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError>;
4181
4195
  /**
4182
4196
  * This overload is selected when `initialData` is omitted, may be `undefined`, or is a function that may
4183
4197
  * return `undefined`, so the resulting `data` can be `undefined`.
@@ -4235,7 +4249,7 @@ declare function useQuery<TQueryFnData = unknown, TError = DefaultError, TData =
4235
4249
  * }
4236
4250
  * ```
4237
4251
  */
4238
- declare function useQuery<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>(options: UndefinedInitialDataOptions<TQueryFnData, TError, TData, TQueryKey>, queryClient?: QueryClient): UseQueryResult<TData, TError>;
4252
+ export declare function useQuery<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>(options: UndefinedInitialDataOptions<TQueryFnData, TError, TData, TQueryKey>, queryClient?: QueryClient): UseQueryResult<TData, TError>;
4239
4253
  /**
4240
4254
  * Fallback overload for options whose `initialData` presence isn't statically known — for example, an
4241
4255
  * object typed as {@link UseQueryOptions} rather than an object literal. Prefer one of the other overloads
@@ -4391,9 +4405,7 @@ declare function useQuery<TQueryFnData = unknown, TError = DefaultError, TData =
4391
4405
  * }
4392
4406
  * ```
4393
4407
  */
4394
- declare function useQuery<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>(options: UseQueryOptions<TQueryFnData, TError, TData, TQueryKey>, queryClient?: QueryClient): UseQueryResult<TData, TError>;
4395
- //#endregion
4396
- //#region @tanstack/react-query/build/modern/infiniteQueryOptions.d.ts
4408
+ export declare function useQuery<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>(options: UseQueryOptions<TQueryFnData, TError, TData, TQueryKey>, queryClient?: QueryClient): UseQueryResult<TData, TError>;
4397
4409
  /**
4398
4410
  * The options accepted by the `infiniteQueryOptions` overload selected when `initialData` is omitted, may be
4399
4411
  * `undefined`, or is a function that may return `undefined` — `data` may be `undefined` while the query is
@@ -4435,8 +4447,6 @@ type DefinedInitialDataInfiniteOptions<TQueryFnData, TError = DefaultError, TDat
4435
4447
  */
4436
4448
  initialData: NonUndefinedGuard<InfiniteData<TQueryFnData, TPageParam>> | (() => NonUndefinedGuard<InfiniteData<TQueryFnData, TPageParam>>);
4437
4449
  };
4438
- //#endregion
4439
- //#region @tanstack/react-query/build/modern/useMutation.d.ts
4440
4450
  /**
4441
4451
  * Unlike queries, mutations are typically used to create/update/delete data or perform server side-effects.
4442
4452
  * `useMutation` is the hook for that.
@@ -4605,9 +4615,7 @@ type DefinedInitialDataInfiniteOptions<TQueryFnData, TError = DefaultError, TDat
4605
4615
  * }
4606
4616
  * ```
4607
4617
  */
4608
- declare function useMutation<TData = unknown, TError = DefaultError, TVariables = void, TOnMutateResult = unknown>(options: UseMutationOptions<TData, TError, TVariables, TOnMutateResult>, queryClient?: QueryClient): UseMutationResult<TData, TError, TVariables, TOnMutateResult>;
4609
- //#endregion
4610
- //#region @tanstack/react-query/build/modern/useInfiniteQuery.d.ts
4618
+ export declare function useMutation<TData = unknown, TError = DefaultError, TVariables = void, TOnMutateResult = unknown>(options: UseMutationOptions<TData, TError, TVariables, TOnMutateResult>, queryClient?: QueryClient): UseMutationResult<TData, TError, TVariables, TOnMutateResult>;
4611
4619
  /**
4612
4620
  * The options for `useInfiniteQuery` are identical to `useQuery`, with the addition of
4613
4621
  * `initialPageParam`, `getNextPageParam`, `getPreviousPageParam`, and `maxPages`.
@@ -4650,7 +4658,7 @@ declare function useMutation<TData = unknown, TError = DefaultError, TVariables
4650
4658
  * }
4651
4659
  * ```
4652
4660
  */
4653
- declare function useInfiniteQuery<TQueryFnData, TError = DefaultError, TData = InfiniteData<TQueryFnData>, TQueryKey extends QueryKey = QueryKey, TPageParam = unknown>(options: DefinedInitialDataInfiniteOptions<TQueryFnData, TError, TData, TQueryKey, TPageParam>, queryClient?: QueryClient): DefinedUseInfiniteQueryResult<TData, TError>;
4661
+ export declare function useInfiniteQuery<TQueryFnData, TError = DefaultError, TData = InfiniteData<TQueryFnData>, TQueryKey extends QueryKey = QueryKey, TPageParam = unknown>(options: DefinedInitialDataInfiniteOptions<TQueryFnData, TError, TData, TQueryKey, TPageParam>, queryClient?: QueryClient): DefinedUseInfiniteQueryResult<TData, TError>;
4654
4662
  /**
4655
4663
  * The options for `useInfiniteQuery` are identical to `useQuery`, with the addition of
4656
4664
  * `initialPageParam`, `getNextPageParam`, `getPreviousPageParam`, and `maxPages`.
@@ -4757,7 +4765,7 @@ declare function useInfiniteQuery<TQueryFnData, TError = DefaultError, TData = I
4757
4765
  * }
4758
4766
  * ```
4759
4767
  */
4760
- declare function useInfiniteQuery<TQueryFnData, TError = DefaultError, TData = InfiniteData<TQueryFnData>, TQueryKey extends QueryKey = QueryKey, TPageParam = unknown>(options: UndefinedInitialDataInfiniteOptions<TQueryFnData, TError, TData, TQueryKey, TPageParam>, queryClient?: QueryClient): UseInfiniteQueryResult<TData, TError>;
4768
+ export declare function useInfiniteQuery<TQueryFnData, TError = DefaultError, TData = InfiniteData<TQueryFnData>, TQueryKey extends QueryKey = QueryKey, TPageParam = unknown>(options: UndefinedInitialDataInfiniteOptions<TQueryFnData, TError, TData, TQueryKey, TPageParam>, queryClient?: QueryClient): UseInfiniteQueryResult<TData, TError>;
4761
4769
  /**
4762
4770
  * The options for `useInfiniteQuery` are identical to `useQuery`, with the addition of
4763
4771
  * `initialPageParam`, `getNextPageParam`, `getPreviousPageParam`, and `maxPages`.
@@ -4893,14 +4901,10 @@ declare function useInfiniteQuery<TQueryFnData, TError = DefaultError, TData = I
4893
4901
  * }
4894
4902
  * ```
4895
4903
  */
4896
- declare function useInfiniteQuery<TQueryFnData, TError = DefaultError, TData = InfiniteData<TQueryFnData>, TQueryKey extends QueryKey = QueryKey, TPageParam = unknown>(options: UseInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryKey, TPageParam>, queryClient?: QueryClient): UseInfiniteQueryResult<TData, TError>;
4897
- //#endregion
4898
- //#region clsx/clsx.d.mts
4904
+ export declare function useInfiniteQuery<TQueryFnData, TError = DefaultError, TData = InfiniteData<TQueryFnData>, TQueryKey extends QueryKey = QueryKey, TPageParam = unknown>(options: UseInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryKey, TPageParam>, queryClient?: QueryClient): UseInfiniteQueryResult<TData, TError>;
4899
4905
  type ClassValue$1 = ClassArray | ClassDictionary | string | number | bigint | null | boolean | undefined;
4900
4906
  type ClassDictionary = Record<string, any>;
4901
4907
  type ClassArray = ClassValue$1[];
4902
- //#endregion
4903
- //#region class-variance-authority/dist/types.d.ts
4904
4908
  type ClassValue = ClassValue$1;
4905
4909
  type ClassProp = {
4906
4910
  class: ClassValue;
@@ -4913,17 +4917,11 @@ type ClassProp = {
4913
4917
  className?: never;
4914
4918
  };
4915
4919
  type OmitUndefined<T> = T extends undefined ? never : T;
4916
- //#endregion
4917
- //#region class-variance-authority/dist/index.d.ts
4918
4920
  type VariantProps<Component extends (...args: any) => any> = Omit<OmitUndefined<Parameters<Component>[0]>, "class" | "className">;
4919
- //#endregion
4920
- //#region components/ui/badge.d.ts
4921
4921
  declare const badgeVariants: (props?: ({
4922
4922
  variant?: "link" | "default" | "secondary" | "destructive" | "outline" | "ghost" | null | undefined;
4923
4923
  } & ClassProp) | undefined) => string;
4924
4924
  declare function Badge({ className, variant, ...props }: React$1.ComponentProps<'span'> & VariantProps<typeof badgeVariants>): React$1.JSX.Element;
4925
- //#endregion
4926
- //#region components/ui/button.d.ts
4927
4925
  declare const buttonVariants: (props?: ({
4928
4926
  variant?: "link" | "default" | "secondary" | "destructive" | "outline" | "ghost" | null | undefined;
4929
4927
  size?: "default" | "xs" | "sm" | "lg" | "icon" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
@@ -4931,8 +4929,6 @@ declare const buttonVariants: (props?: ({
4931
4929
  declare function Button({ className, variant, size, asChild, type, ...props }: React$1.ComponentProps<'button'> & VariantProps<typeof buttonVariants> & {
4932
4930
  asChild?: boolean;
4933
4931
  }): React$1.JSX.Element;
4934
- //#endregion
4935
- //#region @base-ui/react/internals/reason-parts.d.mts
4936
4932
  declare const none: 'none';
4937
4933
  declare const triggerPress: 'trigger-press';
4938
4934
  declare const triggerHover: 'trigger-hover';
@@ -4968,8 +4964,6 @@ declare const initial: 'initial';
4968
4964
  declare const imperativeAction: 'imperative-action';
4969
4965
  declare const swipe: 'swipe';
4970
4966
  declare const windowResize: 'window-resize';
4971
- //#endregion
4972
- //#region @base-ui/react/internals/createBaseUIEventDetails.d.mts
4973
4967
  interface ReasonToEventMap {
4974
4968
  [none]: Event;
4975
4969
  [triggerPress]: MouseEvent | PointerEvent | TouchEvent | KeyboardEvent;
@@ -5064,8 +5058,6 @@ type BaseUIHighlightEventDetails<Reason extends string, CustomProperties extends
5064
5058
  reason: Reason;
5065
5059
  event: MouseEvent | PointerEvent;
5066
5060
  } & CustomProperties : BaseUIGenericEventDetails<Reason, CustomProperties>;
5067
- //#endregion
5068
- //#region @base-ui/react/types/index.d.mts
5069
5061
  type HTMLProps<T = any> = React$1.HTMLAttributes<T> & {
5070
5062
  ref?: React$1.Ref<T> | undefined;
5071
5063
  };
@@ -5080,8 +5072,6 @@ type BaseUIEvent<E extends React$1.SyntheticEvent<Element, Event>> = E & {
5080
5072
  preventBaseUIHandler: () => void;
5081
5073
  readonly baseUIHandlerPrevented?: boolean | undefined;
5082
5074
  };
5083
- //#endregion
5084
- //#region @base-ui/react/internals/types.d.mts
5085
5075
  type WithPreventBaseUIHandler<T> = T extends ((event: infer E) => any) ? E extends React$1.SyntheticEvent<Element, Event> ? (event: BaseUIEvent<E>) => ReturnType<T> : T : T extends undefined ? undefined : T;
5086
5076
  /**
5087
5077
  * Adds a `preventBaseUIHandler` method to all event handlers.
@@ -5129,8 +5119,6 @@ interface NonNativeButtonProps {
5129
5119
  nativeButton?: boolean | undefined;
5130
5120
  }
5131
5121
  type Orientation = 'horizontal' | 'vertical';
5132
- //#endregion
5133
- //#region @base-ui/react/field/root/FieldRoot.d.mts
5134
5122
  interface FieldRootState {
5135
5123
  /**
5136
5124
  * Whether the component should ignore user interaction.
@@ -5157,8 +5145,6 @@ interface FieldRootState {
5157
5145
  */
5158
5146
  focused: boolean;
5159
5147
  }
5160
- //#endregion
5161
- //#region @base-ui/react/checkbox/root/CheckboxRoot.d.mts
5162
5148
  /**
5163
5149
  * Represents the checkbox itself.
5164
5150
  * Renders a `<span>` element and a hidden `<input>` beside.
@@ -5271,14 +5257,8 @@ declare namespace CheckboxRoot {
5271
5257
  type ChangeEventReason = CheckboxRootChangeEventReason;
5272
5258
  type ChangeEventDetails = CheckboxRootChangeEventDetails;
5273
5259
  }
5274
- //#endregion
5275
- //#region @base-ui/react/internals/useTransitionStatus.d.mts
5276
5260
  type TransitionStatus = 'starting' | 'ending' | 'idle' | undefined;
5277
- //#endregion
5278
- //#region components/ui/checkbox.d.ts
5279
5261
  declare function Checkbox({ className, ...props }: React$1.ComponentProps<typeof CheckboxRoot>): React$1.JSX.Element;
5280
- //#endregion
5281
- //#region components/ui/collapsible-group.d.ts
5282
5262
  /**
5283
5263
  * The inspector-style collapsible section: an uppercase summary row with a
5284
5264
  * chevron that rotates when open, over a native details element. Shared by
@@ -5291,7 +5271,7 @@ declare function Checkbox({ className, ...props }: React$1.ComponentProps<typeof
5291
5271
  * section manages itself starting from defaultOpen. The summary click is
5292
5272
  * always intercepted, so the DOM never toggles behind React's back.
5293
5273
  */
5294
- declare function CollapsibleGroup({ label, open, defaultOpen, onOpenChange, className, bodyClassName, children }: {
5274
+ export declare function CollapsibleGroup({ label, open, defaultOpen, onOpenChange, className, bodyClassName, children }: {
5295
5275
  /** Summary row content besides the chevron, e.g. an icon plus the label. */
5296
5276
  label: ReactNode;
5297
5277
  open?: boolean;
@@ -5301,14 +5281,10 @@ declare function CollapsibleGroup({ label, open, defaultOpen, onOpenChange, clas
5301
5281
  bodyClassName?: string;
5302
5282
  children: ReactNode;
5303
5283
  }): import("react").JSX.Element;
5304
- //#endregion
5305
- //#region @base-ui/react/internals/resolveValueLabel.d.mts
5306
5284
  interface Group<Item = any> {
5307
5285
  [key: string]: unknown;
5308
5286
  items: ReadonlyArray<Item>;
5309
5287
  }
5310
- //#endregion
5311
- //#region @base-ui/react/combobox/items/itemCollection.d.mts
5312
5288
  /**
5313
5289
  * An opaque collection created by `createItems()`.
5314
5290
  *
@@ -5321,8 +5297,6 @@ declare class ComboboxItemCollection<in out Item, Value = Item> {
5321
5297
  private constructor();
5322
5298
  private readonly __itemCollectionBrand;
5323
5299
  }
5324
- //#endregion
5325
- //#region @base-ui/react/combobox/root/AriaCombobox.d.mts
5326
5300
  type InternalAriaComboboxProps<Value, Mode extends SelectionMode, Item = Value> = AriaComboboxProps<Value, Mode, Item> & {
5327
5301
  filterQuery?: string | undefined;
5328
5302
  };
@@ -5604,120 +5578,6 @@ declare namespace AriaCombobox {
5604
5578
  isItemPress?: boolean | undefined;
5605
5579
  };
5606
5580
  }
5607
- //#endregion
5608
- //#region @base-ui/react/combobox/root/ComboboxRoot.d.mts
5609
- /**
5610
- * Groups all parts of the combobox.
5611
- * Doesn't render its own HTML element.
5612
- *
5613
- * Documentation: [Base UI Combobox](https://base-ui.com/react/components/combobox)
5614
- */
5615
- declare function ComboboxRoot<Value, Multiple extends boolean | undefined = false, Item = Value>(props: ComboboxRoot.Props<Value, Multiple, Item>): React$1.JSX.Element;
5616
- type ModeFromMultiple<Multiple extends boolean | undefined> = Multiple extends true ? 'multiple' : 'single';
5617
- type ComboboxInputValue<Value, Multiple extends boolean | undefined> = Multiple extends true ? readonly Value[] : Value;
5618
- type ComboboxOutputValue<Value, Multiple extends boolean | undefined> = Multiple extends true ? Value[] : Value;
5619
- type ComboboxRootProps<Value, Multiple extends boolean | undefined = false, Item = Value> = Omit<AriaCombobox.Props<Value, ModeFromMultiple<Multiple>, Item>, 'fillInputOnItemPress' | 'autoComplete' | 'formAutoComplete' | 'submitOnItemClick' | 'autoHighlight' | 'keepHighlight' | 'highlightItemOnHover' | 'itemToStringLabel' | 'itemToStringValue' | 'isItemEqualToValue' | 'selectionMode' | 'defaultSelectedValue' | 'selectedValue' | 'onSelectedValueChange' | 'actionsRef' | 'onOpenChange' | 'onInputValueChange' | 'onItemHighlighted'> & {
5620
- /**
5621
- * Whether multiple items can be selected.
5622
- * @default false
5623
- */
5624
- multiple?: Multiple | undefined;
5625
- /**
5626
- * Provides a hint to the browser for autofill.
5627
- * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Attributes/autocomplete
5628
- */
5629
- autoComplete?: string | undefined;
5630
- /**
5631
- * Whether the first matching item is highlighted automatically while filtering.
5632
- * @default false
5633
- */
5634
- autoHighlight?: boolean | undefined;
5635
- /**
5636
- * Whether moving the pointer over items should highlight them.
5637
- * Disabling this prop allows CSS `:hover` to be differentiated from the `:focus` (`data-highlighted`) state.
5638
- * @default true
5639
- */
5640
- highlightItemOnHover?: boolean | undefined;
5641
- /**
5642
- * When the item values are objects (`<Combobox.Item value={object}>`), this function converts the object value to a string representation for display in the input.
5643
- * If the shape of the object is `{ value, label }`, the label will be used automatically without needing to specify this prop.
5644
- * With a `createItems()` collection, this receives the derived value, and the collection's
5645
- * `getLabel` takes precedence for values it can resolve.
5646
- */
5647
- itemToStringLabel?: ((itemValue: Value) => string) | undefined;
5648
- /**
5649
- * When the item values are objects (`<Combobox.Item value={object}>`), this function converts the object value to a string representation for form submission.
5650
- * If the shape of the object is `{ value, label }`, the value will be used automatically without needing to specify this prop.
5651
- * With a `createItems()` collection, this receives the derived value.
5652
- */
5653
- itemToStringValue?: ((itemValue: Value) => string) | undefined;
5654
- /**
5655
- * Custom comparison logic used to determine if a combobox item value matches the current selected value. Useful when item values are objects without matching referentially.
5656
- * With a `createItems()` collection, both arguments are derived values.
5657
- * Defaults to `Object.is` comparison.
5658
- */
5659
- isItemEqualToValue?: ((itemValue: Value, value: Value) => boolean) | undefined;
5660
- /**
5661
- * The uncontrolled selected value of the combobox when it's initially rendered.
5662
- *
5663
- * To render a controlled combobox, use the `value` prop instead.
5664
- */
5665
- defaultValue?: ComboboxInputValue<Value, Multiple> | null | undefined;
5666
- /**
5667
- * A ref to imperative actions.
5668
- * - `unmount`: Ends the closing phase of the combobox after an externally controlled closing animation finishes.
5669
- * Call `preventUnmountOnClose()` in `onOpenChange` first, otherwise the combobox completes closing on its own.
5670
- * Whether it leaves the DOM is decided by `keepMounted` on the portal.
5671
- * - `close`: Closes the combobox imperatively when called.
5672
- */
5673
- actionsRef?: React$1.RefObject<ComboboxRoot.Actions | null> | undefined;
5674
- /**
5675
- * Event handler called when the popup is opened or closed.
5676
- */
5677
- onOpenChange?: ((open: boolean, eventDetails: ComboboxRoot.OpenChangeEventDetails) => void) | undefined;
5678
- /**
5679
- * Event handler called when the input value changes.
5680
- */
5681
- onInputValueChange?: ((inputValue: string, eventDetails: ComboboxRoot.ChangeEventDetails) => void) | undefined;
5682
- /**
5683
- * Callback fired when an item is highlighted or unhighlighted.
5684
- * Receives the highlighted item value (or `undefined` if no item is highlighted) and event details with a `reason` property describing why the highlight changed.
5685
- * The `reason` can be:
5686
- * - `'keyboard'`: the highlight changed due to keyboard navigation.
5687
- * - `'pointer'`: the highlight changed due to pointer hovering. The event may be a `MouseEvent`
5688
- * rather than a `PointerEvent`.
5689
- * - `'none'`: the highlight changed for another reason, such as typing, `autoHighlight`, the
5690
- * item list changing, or the popup opening or closing.
5691
- */
5692
- onItemHighlighted?: ((highlightedValue: Value | undefined, eventDetails: ComboboxRoot.HighlightEventDetails) => void) | undefined;
5693
- /**
5694
- * The selected value of the combobox. Use when controlled.
5695
- */
5696
- value?: ComboboxInputValue<Value, Multiple> | null | undefined;
5697
- /**
5698
- * Event handler called when the selected value of the combobox changes.
5699
- */
5700
- onValueChange?: ((value: ComboboxOutputValue<Value, Multiple> | (Multiple extends true ? never : null), eventDetails: ComboboxRoot.ChangeEventDetails) => void) | undefined;
5701
- };
5702
- interface ComboboxRootState extends AriaComboboxState {}
5703
- type ComboboxRootActions = AriaCombobox.Actions;
5704
- type ComboboxRootOpenChangeEventDetails = AriaCombobox.OpenChangeEventDetails;
5705
- type ComboboxRootChangeEventReason = AriaCombobox.ChangeEventReason;
5706
- type ComboboxRootChangeEventDetails = AriaCombobox.ChangeEventDetails;
5707
- type ComboboxRootHighlightEventReason = AriaCombobox.HighlightEventReason;
5708
- type ComboboxRootHighlightEventDetails = AriaCombobox.HighlightEventDetails;
5709
- declare namespace ComboboxRoot {
5710
- type Props<Value, Multiple extends boolean | undefined = false, Item = Value> = ComboboxRootProps<Value, Multiple, Item>;
5711
- type State = ComboboxRootState;
5712
- type Actions = ComboboxRootActions;
5713
- type ChangeEventReason = ComboboxRootChangeEventReason;
5714
- type ChangeEventDetails = ComboboxRootChangeEventDetails;
5715
- type OpenChangeEventDetails = ComboboxRootOpenChangeEventDetails;
5716
- type HighlightEventReason = ComboboxRootHighlightEventReason;
5717
- type HighlightEventDetails = ComboboxRootHighlightEventDetails;
5718
- }
5719
- //#endregion
5720
- //#region @floating-ui/utils/dist/floating-ui.utils.d.mts
5721
5581
  declare type AlignedPlacement = `${Side$1}-${Alignment}`;
5722
5582
  declare type Alignment = 'start' | 'end';
5723
5583
  declare type Axis = 'x' | 'y';
@@ -5732,19 +5592,17 @@ declare type Rect = Prettify$1<Coords & Dimensions>;
5732
5592
  declare type Side$1 = 'top' | 'right' | 'bottom' | 'left';
5733
5593
  declare type SideObject = { [key in Side$1]: number; };
5734
5594
  declare type Strategy = 'absolute' | 'fixed';
5735
- //#endregion
5736
- //#region @floating-ui/core/dist/floating-ui.core.d.mts
5737
5595
  declare interface ComputePositionReturn extends Coords {
5738
- /**
5739
- * The final chosen placement of the floating element.
5596
+ /**
5597
+ * The final chosen placement of the floating element.
5740
5598
  */
5741
5599
  placement: Placement;
5742
- /**
5743
- * The strategy used to position the floating element.
5600
+ /**
5601
+ * The strategy used to position the floating element.
5744
5602
  */
5745
5603
  strategy: Strategy;
5746
- /**
5747
- * Object containing data returned from all middleware, keyed by their name.
5604
+ /**
5605
+ * Object containing data returned from all middleware, keyed by their name.
5748
5606
  */
5749
5607
  middlewareData: MiddlewareData;
5750
5608
  }
@@ -5781,65 +5639,59 @@ declare interface MiddlewareData {
5781
5639
  enabled: { [key in Axis]: boolean; };
5782
5640
  }) | undefined;
5783
5641
  }
5784
- //#endregion
5785
- //#region @floating-ui/dom/dist/floating-ui.dom.d.mts
5786
- /**
5787
- * Custom positioning reference element.
5788
- * @see https://floating-ui.com/docs/virtual-elements
5642
+ /**
5643
+ * Custom positioning reference element.
5644
+ * @see https://floating-ui.com/docs/virtual-elements
5789
5645
  */
5790
5646
  declare interface VirtualElement {
5791
5647
  getBoundingClientRect(): ClientRectObject;
5792
5648
  getClientRects?: (() => Array<ClientRectObject> | DOMRectList) | undefined;
5793
5649
  contextElement?: Element | undefined;
5794
5650
  }
5795
- //#endregion
5796
- //#region @floating-ui/react-dom/dist/floating-ui.react-dom.d.mts
5797
5651
  declare type Prettify<T> = { [K in keyof T]: T[K]; } & {};
5798
5652
  declare type ReferenceType$1 = Element | VirtualElement;
5799
5653
  declare type UseFloatingData = Prettify<ComputePositionReturn & {
5800
5654
  isPositioned: boolean;
5801
5655
  }>;
5802
5656
  declare type UseFloatingReturn<RT extends ReferenceType$1 = ReferenceType$1> = Prettify<UseFloatingData & {
5803
- /**
5804
- * Update the position of the floating element, re-rendering the component
5805
- * if required.
5657
+ /**
5658
+ * Update the position of the floating element, re-rendering the component
5659
+ * if required.
5806
5660
  */
5807
5661
  update: () => void;
5808
- /**
5809
- * Pre-configured positioning styles to apply to the floating element.
5662
+ /**
5663
+ * Pre-configured positioning styles to apply to the floating element.
5810
5664
  */
5811
5665
  floatingStyles: React$1.CSSProperties;
5812
- /**
5813
- * Object containing the reference and floating refs and reactive setters.
5666
+ /**
5667
+ * Object containing the reference and floating refs and reactive setters.
5814
5668
  */
5815
5669
  refs: {
5816
- /**
5817
- * A React ref to the reference element.
5670
+ /**
5671
+ * A React ref to the reference element.
5818
5672
  */
5819
5673
  reference: React$1.MutableRefObject<RT | null>;
5820
- /**
5821
- * A React ref to the floating element.
5674
+ /**
5675
+ * A React ref to the floating element.
5822
5676
  */
5823
5677
  floating: React$1.MutableRefObject<HTMLElement | null>;
5824
- /**
5825
- * A callback to set the reference element (reactive).
5678
+ /**
5679
+ * A callback to set the reference element (reactive).
5826
5680
  */
5827
5681
  setReference: (node: RT | null) => void;
5828
- /**
5829
- * A callback to set the floating element (reactive).
5682
+ /**
5683
+ * A callback to set the floating element (reactive).
5830
5684
  */
5831
5685
  setFloating: (node: HTMLElement | null) => void;
5832
5686
  };
5833
- /**
5834
- * Object containing the reference and floating elements.
5687
+ /**
5688
+ * Object containing the reference and floating elements.
5835
5689
  */
5836
5690
  elements: {
5837
5691
  reference: RT | null;
5838
5692
  floating: HTMLElement | null;
5839
5693
  };
5840
5694
  }>;
5841
- //#endregion
5842
- //#region @base-ui/utils/store/Store.d.mts
5843
5695
  type Listener<T> = (state: T) => void;
5844
5696
  /**
5845
5697
  * A data store implementation that allows subscribing to state changes and updating the state.
@@ -5902,10 +5754,8 @@ declare class Store<State> {
5902
5754
  notifyAll(): void;
5903
5755
  use<F extends (...args: any) => any>(selector: F, ...args: SelectorArgs$1<F>): ReturnType<F>;
5904
5756
  }
5905
- type SelectorArgs$1<Selector> = Selector extends ((...params: infer Params) => any) ? Tail$1<Params> : never;
5906
- type Tail$1<T extends readonly any[]> = T extends readonly [any, ...infer Rest] ? Rest : [];
5907
- //#endregion
5908
- //#region @base-ui/utils/store/ReactStore.d.mts
5757
+ type SelectorArgs$1<Selector> = Selector extends ((...params: infer Params) => any) ? Tail$2<Params> : never;
5758
+ type Tail$2<T extends readonly any[]> = T extends readonly [any, ...infer Rest] ? Rest : [];
5909
5759
  /**
5910
5760
  * A Store that supports controlled state keys, non-reactive values and provides utility methods for React.
5911
5761
  */
@@ -5997,10 +5847,8 @@ type ContextFunction<Context, Key extends keyof Context> = Extract<Context[Key],
5997
5847
  type KeysAllowingUndefined<State> = { [Key in keyof State]-?: undefined extends State[Key] ? Key : never; }[keyof State];
5998
5848
  type ObserveSelector<State> = (state: State) => any;
5999
5849
  type SelectorFunction<State> = (state: State, ...args: any[]) => any;
6000
- type Tail<T extends readonly any[]> = T extends readonly [any, ...infer Rest] ? Rest : [];
6001
- type SelectorArgs<Selector> = Selector extends ((...params: infer Params) => any) ? Tail<Params> : never;
6002
- //#endregion
6003
- //#region @base-ui/react/utils/popups/popupTriggerMap.d.mts
5850
+ type Tail$1<T extends readonly any[]> = T extends readonly [any, ...infer Rest] ? Rest : [];
5851
+ type SelectorArgs<Selector> = Selector extends ((...params: infer Params) => any) ? Tail$1<Params> : never;
6004
5852
  /**
6005
5853
  * Data structure to keep track of popup trigger elements by their IDs.
6006
5854
  *
@@ -6044,8 +5892,6 @@ declare class PopupTriggerMap {
6044
5892
  */
6045
5893
  get size(): number;
6046
5894
  }
6047
- //#endregion
6048
- //#region @base-ui/react/utils/popups/popupHandle.d.mts
6049
5895
  /**
6050
5896
  * Store shape holding a trigger registry, required by `BasePopupHandle.openByTrigger` to resolve a
6051
5897
  * trigger element by id on both the attached root's store and the fallback store.
@@ -6135,11 +5981,7 @@ declare class BasePopupHandle<HandleStore extends PopupHandleStoreWithTriggers,
6135
5981
  */
6136
5982
  protected closePopup(): void;
6137
5983
  }
6138
- //#endregion
6139
- //#region @base-ui/utils/useEnhancedClickHandler.d.mts
6140
5984
  type InteractionType = 'mouse' | 'touch' | 'pen' | 'keyboard' | '';
6141
- //#endregion
6142
- //#region @base-ui/react/utils/popups/store.d.mts
6143
5985
  /**
6144
5986
  * State common to all popup stores.
6145
5987
  */
@@ -6284,13 +6126,9 @@ type PopupTriggerStoreKeys = 'context' | 'select' | 'set' | 'state' | 'update' |
6284
6126
  * that an inert store can be passed while detached.
6285
6127
  */
6286
6128
  type PopupTriggerDataStore<State extends PopupStoreState<unknown>> = Pick<ReactStore<Readonly<State>, PopupStoreContext<never>, PopupStoreSelectors>, PopupTriggerStoreKeys>;
6287
- //#endregion
6288
- //#region @base-ui/react/utils/popups/popupStoreUtils.d.mts
6289
6129
  type PayloadChildRenderFunction<Payload> = (arg: {
6290
6130
  payload: Payload | undefined;
6291
6131
  }) => React$1.ReactNode;
6292
- //#endregion
6293
- //#region @base-ui/react/floating-ui-react/components/FloatingRootStore.d.mts
6294
6132
  interface FloatingRootState {
6295
6133
  open: boolean;
6296
6134
  transitionStatus: TransitionStatus | undefined;
@@ -6352,8 +6190,6 @@ declare class FloatingRootStore extends ReactStore<Readonly<FloatingRootState>,
6352
6190
  */
6353
6191
  setOpen: (newOpen: boolean, eventDetails: BaseUIChangeEventDetails<string>) => void;
6354
6192
  }
6355
- //#endregion
6356
- //#region @base-ui/react/floating-ui-react/types.d.mts
6357
6193
  type NarrowedElement<T> = T extends Element ? T : Element;
6358
6194
  interface ExtendedRefs {
6359
6195
  reference: React$1.RefObject<ReferenceType | null>;
@@ -6396,8 +6232,6 @@ interface FloatingNodeType {
6396
6232
  context?: FloatingContext | undefined;
6397
6233
  }
6398
6234
  type ReferenceType = Element | VirtualElement;
6399
- //#endregion
6400
- //#region @base-ui/react/floating-ui-react/components/FloatingTreeStore.d.mts
6401
6235
  /**
6402
6236
  * Stores and manages floating elements in a tree structure.
6403
6237
  * This is a backing store for the `FloatingTree` component.
@@ -6408,8 +6242,6 @@ declare class FloatingTreeStore {
6408
6242
  addNode(node: FloatingNodeType): void;
6409
6243
  removeNode(node: FloatingNodeType): void;
6410
6244
  }
6411
- //#endregion
6412
- //#region @base-ui/react/internals/useAnchorPositioning.d.mts
6413
6245
  type Side = 'top' | 'bottom' | 'left' | 'right' | 'inline-end' | 'inline-start';
6414
6246
  type Align = 'start' | 'center' | 'end';
6415
6247
  type Boundary = 'clipping-ancestors' | Element | Element[] | Rect;
@@ -6612,8 +6444,6 @@ interface UseAnchorPositioningSharedParameters {
6612
6444
  */
6613
6445
  collisionAvoidance?: CollisionAvoidance | undefined;
6614
6446
  }
6615
- //#endregion
6616
- //#region @base-ui/react/combobox/input/ComboboxInput.d.mts
6617
6447
  /**
6618
6448
  * A text input to search for items in the list.
6619
6449
  * Renders an `<input>` element.
@@ -6650,54 +6480,6 @@ declare namespace ComboboxInput$1 {
6650
6480
  type State = ComboboxInputState;
6651
6481
  type Props = ComboboxInputProps;
6652
6482
  }
6653
- //#endregion
6654
- //#region @base-ui/react/combobox/trigger/ComboboxTrigger.d.mts
6655
- /**
6656
- * A button that opens the popup.
6657
- * Renders a `<button>` element.
6658
- *
6659
- * Documentation: [Base UI Combobox](https://base-ui.com/react/components/combobox)
6660
- */
6661
- declare const ComboboxTrigger$1: React$1.ForwardRefExoticComponent<Omit<ComboboxTriggerProps, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
6662
- interface ComboboxTriggerState extends FieldRootState {
6663
- /**
6664
- * Whether the popup is open.
6665
- */
6666
- open: boolean;
6667
- /**
6668
- * Whether the component should ignore user interaction.
6669
- */
6670
- disabled: boolean;
6671
- /**
6672
- * Whether the component should ignore user edits.
6673
- */
6674
- readOnly: boolean;
6675
- /**
6676
- * Indicates which side the corresponding popup is positioned relative to its anchor.
6677
- */
6678
- popupSide: Side | null;
6679
- /**
6680
- * Present when the corresponding items list is empty.
6681
- */
6682
- listEmpty: boolean;
6683
- /**
6684
- * Whether the combobox doesn't have a value.
6685
- */
6686
- placeholder: boolean;
6687
- }
6688
- interface ComboboxTriggerProps extends NativeButtonProps, BaseUIComponentProps<'button', ComboboxTriggerState> {
6689
- /**
6690
- * Whether the component should ignore user interaction.
6691
- * @default false
6692
- */
6693
- disabled?: boolean | undefined;
6694
- }
6695
- declare namespace ComboboxTrigger$1 {
6696
- type State = ComboboxTriggerState;
6697
- type Props = ComboboxTriggerProps;
6698
- }
6699
- //#endregion
6700
- //#region @base-ui/react/combobox/list/ComboboxList.d.mts
6701
6483
  /**
6702
6484
  * A list container for the items.
6703
6485
  * Renders a `<div>` element.
@@ -6718,8 +6500,6 @@ declare namespace ComboboxList$1 {
6718
6500
  type State = ComboboxListState;
6719
6501
  type Props = ComboboxListProps;
6720
6502
  }
6721
- //#endregion
6722
- //#region @base-ui/react/combobox/status/ComboboxStatus.d.mts
6723
6503
  /**
6724
6504
  * Displays a status message whose content changes are announced politely to screen readers.
6725
6505
  * Useful for conveying the status of an asynchronously loaded list.
@@ -6738,8 +6518,6 @@ declare namespace ComboboxStatus$1 {
6738
6518
  type State = ComboboxStatusState;
6739
6519
  type Props = ComboboxStatusProps;
6740
6520
  }
6741
- //#endregion
6742
- //#region @base-ui/react/combobox/positioner/ComboboxPositioner.d.mts
6743
6521
  /**
6744
6522
  * Positions the popup against the trigger.
6745
6523
  * Renders a `<div>` element.
@@ -6774,8 +6552,6 @@ declare namespace ComboboxPositioner {
6774
6552
  type State = ComboboxPositionerState;
6775
6553
  type Props = ComboboxPositionerProps;
6776
6554
  }
6777
- //#endregion
6778
- //#region @base-ui/react/combobox/popup/ComboboxPopup.d.mts
6779
6555
  /**
6780
6556
  * A container for the list.
6781
6557
  * Renders a `<div>` element.
@@ -6835,44 +6611,228 @@ declare namespace ComboboxPopup {
6835
6611
  type State = ComboboxPopupState;
6836
6612
  type Props = ComboboxPopupProps;
6837
6613
  }
6838
- //#endregion
6839
- //#region @base-ui/react/combobox/group/ComboboxGroup.d.mts
6840
6614
  /**
6841
6615
  * Groups related items with the corresponding label.
6842
6616
  * Renders a `<div>` element.
6843
6617
  *
6844
6618
  * Documentation: [Base UI Combobox](https://base-ui.com/react/components/combobox)
6845
6619
  */
6846
- declare const ComboboxGroup$1: React$1.ForwardRefExoticComponent<Omit<ComboboxGroupProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
6847
- interface ComboboxGroupState {}
6848
- interface ComboboxGroupProps extends BaseUIComponentProps<'div', ComboboxGroupState> {
6620
+ declare const ComboboxGroup$1: React$1.ForwardRefExoticComponent<Omit<ComboboxGroupProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
6621
+ interface ComboboxGroupState {}
6622
+ interface ComboboxGroupProps extends BaseUIComponentProps<'div', ComboboxGroupState> {
6623
+ /**
6624
+ * Items to be rendered within this group.
6625
+ * When provided, child `Collection` components will use these items.
6626
+ */
6627
+ items?: readonly any[] | undefined;
6628
+ }
6629
+ declare namespace ComboboxGroup$1 {
6630
+ type State = ComboboxGroupState;
6631
+ type Props = ComboboxGroupProps;
6632
+ }
6633
+ /**
6634
+ * An accessible label that is automatically associated with its parent group.
6635
+ * Renders a `<div>` element.
6636
+ *
6637
+ * Documentation: [Base UI Combobox](https://base-ui.com/react/components/combobox)
6638
+ */
6639
+ declare const ComboboxGroupLabel$1: React$1.ForwardRefExoticComponent<Omit<ComboboxGroupLabelProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
6640
+ interface ComboboxGroupLabelState {}
6641
+ interface ComboboxGroupLabelProps extends BaseUIComponentProps<'div', ComboboxGroupLabelState> {}
6642
+ declare namespace ComboboxGroupLabel$1 {
6643
+ type State = ComboboxGroupLabelState;
6644
+ type Props = ComboboxGroupLabelProps;
6645
+ }
6646
+ /**
6647
+ * Renders filtered list items.
6648
+ * Doesn't render its own HTML element.
6649
+ *
6650
+ * If rendering a flat list, pass a function child to the `List` component instead, which implicitly wraps it.
6651
+ *
6652
+ * Documentation: [Base UI Combobox](https://base-ui.com/react/components/combobox)
6653
+ */
6654
+ declare function ComboboxCollection$1(props: ComboboxCollection$1.Props): React$1.JSX.Element;
6655
+ interface ComboboxCollectionState {}
6656
+ interface ComboboxCollectionProps {
6657
+ children: (item: any, index: number) => React$1.ReactNode;
6658
+ }
6659
+ declare namespace ComboboxCollection$1 {
6660
+ type State = ComboboxCollectionState;
6661
+ type Props = ComboboxCollectionProps;
6662
+ }
6663
+ /**
6664
+ * Renders its children only when the list is empty.
6665
+ * Requires the `items` prop on the root component.
6666
+ * Announces changes politely to screen readers.
6667
+ * This component's root element must remain mounted in the DOM to announce
6668
+ * changes consistently across screen readers. Avoid hiding or removing the
6669
+ * component itself with `display: none`, `hidden`, `aria-hidden`, or conditional
6670
+ * rendering. Prefer updating or conditionally rendering its children instead.
6671
+ * Renders a `<div>` element.
6672
+ *
6673
+ * Documentation: [Base UI Combobox](https://base-ui.com/react/components/combobox)
6674
+ */
6675
+ declare const ComboboxEmpty$1: React$1.ForwardRefExoticComponent<Omit<ComboboxEmptyProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
6676
+ interface ComboboxEmptyState {}
6677
+ interface ComboboxEmptyProps extends BaseUIComponentProps<'div', ComboboxEmptyState> {}
6678
+ declare namespace ComboboxEmpty$1 {
6679
+ type State = ComboboxEmptyState;
6680
+ type Props = ComboboxEmptyProps;
6681
+ }
6682
+ /**
6683
+ * Groups all parts of the combobox.
6684
+ * Doesn't render its own HTML element.
6685
+ *
6686
+ * Documentation: [Base UI Combobox](https://base-ui.com/react/components/combobox)
6687
+ */
6688
+ declare function ComboboxRoot<Value, Multiple extends boolean | undefined = false, Item = Value>(props: ComboboxRoot.Props<Value, Multiple, Item>): React$1.JSX.Element;
6689
+ type ModeFromMultiple<Multiple extends boolean | undefined> = Multiple extends true ? 'multiple' : 'single';
6690
+ type ComboboxInputValue<Value, Multiple extends boolean | undefined> = Multiple extends true ? readonly Value[] : Value;
6691
+ type ComboboxOutputValue<Value, Multiple extends boolean | undefined> = Multiple extends true ? Value[] : Value;
6692
+ type ComboboxRootProps<Value, Multiple extends boolean | undefined = false, Item = Value> = Omit<AriaCombobox.Props<Value, ModeFromMultiple<Multiple>, Item>, 'fillInputOnItemPress' | 'autoComplete' | 'formAutoComplete' | 'submitOnItemClick' | 'autoHighlight' | 'keepHighlight' | 'highlightItemOnHover' | 'itemToStringLabel' | 'itemToStringValue' | 'isItemEqualToValue' | 'selectionMode' | 'defaultSelectedValue' | 'selectedValue' | 'onSelectedValueChange' | 'actionsRef' | 'onOpenChange' | 'onInputValueChange' | 'onItemHighlighted'> & {
6693
+ /**
6694
+ * Whether multiple items can be selected.
6695
+ * @default false
6696
+ */
6697
+ multiple?: Multiple | undefined;
6698
+ /**
6699
+ * Provides a hint to the browser for autofill.
6700
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Attributes/autocomplete
6701
+ */
6702
+ autoComplete?: string | undefined;
6703
+ /**
6704
+ * Whether the first matching item is highlighted automatically while filtering.
6705
+ * @default false
6706
+ */
6707
+ autoHighlight?: boolean | undefined;
6708
+ /**
6709
+ * Whether moving the pointer over items should highlight them.
6710
+ * Disabling this prop allows CSS `:hover` to be differentiated from the `:focus` (`data-highlighted`) state.
6711
+ * @default true
6712
+ */
6713
+ highlightItemOnHover?: boolean | undefined;
6714
+ /**
6715
+ * When the item values are objects (`<Combobox.Item value={object}>`), this function converts the object value to a string representation for display in the input.
6716
+ * If the shape of the object is `{ value, label }`, the label will be used automatically without needing to specify this prop.
6717
+ * With a `createItems()` collection, this receives the derived value, and the collection's
6718
+ * `getLabel` takes precedence for values it can resolve.
6719
+ */
6720
+ itemToStringLabel?: ((itemValue: Value) => string) | undefined;
6721
+ /**
6722
+ * When the item values are objects (`<Combobox.Item value={object}>`), this function converts the object value to a string representation for form submission.
6723
+ * If the shape of the object is `{ value, label }`, the value will be used automatically without needing to specify this prop.
6724
+ * With a `createItems()` collection, this receives the derived value.
6725
+ */
6726
+ itemToStringValue?: ((itemValue: Value) => string) | undefined;
6727
+ /**
6728
+ * Custom comparison logic used to determine if a combobox item value matches the current selected value. Useful when item values are objects without matching referentially.
6729
+ * With a `createItems()` collection, both arguments are derived values.
6730
+ * Defaults to `Object.is` comparison.
6731
+ */
6732
+ isItemEqualToValue?: ((itemValue: Value, value: Value) => boolean) | undefined;
6733
+ /**
6734
+ * The uncontrolled selected value of the combobox when it's initially rendered.
6735
+ *
6736
+ * To render a controlled combobox, use the `value` prop instead.
6737
+ */
6738
+ defaultValue?: ComboboxInputValue<Value, Multiple> | null | undefined;
6739
+ /**
6740
+ * A ref to imperative actions.
6741
+ * - `unmount`: Ends the closing phase of the combobox after an externally controlled closing animation finishes.
6742
+ * Call `preventUnmountOnClose()` in `onOpenChange` first, otherwise the combobox completes closing on its own.
6743
+ * Whether it leaves the DOM is decided by `keepMounted` on the portal.
6744
+ * - `close`: Closes the combobox imperatively when called.
6745
+ */
6746
+ actionsRef?: React$1.RefObject<ComboboxRoot.Actions | null> | undefined;
6747
+ /**
6748
+ * Event handler called when the popup is opened or closed.
6749
+ */
6750
+ onOpenChange?: ((open: boolean, eventDetails: ComboboxRoot.OpenChangeEventDetails) => void) | undefined;
6751
+ /**
6752
+ * Event handler called when the input value changes.
6753
+ */
6754
+ onInputValueChange?: ((inputValue: string, eventDetails: ComboboxRoot.ChangeEventDetails) => void) | undefined;
6755
+ /**
6756
+ * Callback fired when an item is highlighted or unhighlighted.
6757
+ * Receives the highlighted item value (or `undefined` if no item is highlighted) and event details with a `reason` property describing why the highlight changed.
6758
+ * The `reason` can be:
6759
+ * - `'keyboard'`: the highlight changed due to keyboard navigation.
6760
+ * - `'pointer'`: the highlight changed due to pointer hovering. The event may be a `MouseEvent`
6761
+ * rather than a `PointerEvent`.
6762
+ * - `'none'`: the highlight changed for another reason, such as typing, `autoHighlight`, the
6763
+ * item list changing, or the popup opening or closing.
6764
+ */
6765
+ onItemHighlighted?: ((highlightedValue: Value | undefined, eventDetails: ComboboxRoot.HighlightEventDetails) => void) | undefined;
6766
+ /**
6767
+ * The selected value of the combobox. Use when controlled.
6768
+ */
6769
+ value?: ComboboxInputValue<Value, Multiple> | null | undefined;
6770
+ /**
6771
+ * Event handler called when the selected value of the combobox changes.
6772
+ */
6773
+ onValueChange?: ((value: ComboboxOutputValue<Value, Multiple> | (Multiple extends true ? never : null), eventDetails: ComboboxRoot.ChangeEventDetails) => void) | undefined;
6774
+ };
6775
+ interface ComboboxRootState extends AriaComboboxState {}
6776
+ type ComboboxRootActions = AriaCombobox.Actions;
6777
+ type ComboboxRootOpenChangeEventDetails = AriaCombobox.OpenChangeEventDetails;
6778
+ type ComboboxRootChangeEventReason = AriaCombobox.ChangeEventReason;
6779
+ type ComboboxRootChangeEventDetails = AriaCombobox.ChangeEventDetails;
6780
+ type ComboboxRootHighlightEventReason = AriaCombobox.HighlightEventReason;
6781
+ type ComboboxRootHighlightEventDetails = AriaCombobox.HighlightEventDetails;
6782
+ declare namespace ComboboxRoot {
6783
+ type Props<Value, Multiple extends boolean | undefined = false, Item = Value> = ComboboxRootProps<Value, Multiple, Item>;
6784
+ type State = ComboboxRootState;
6785
+ type Actions = ComboboxRootActions;
6786
+ type ChangeEventReason = ComboboxRootChangeEventReason;
6787
+ type ChangeEventDetails = ComboboxRootChangeEventDetails;
6788
+ type OpenChangeEventDetails = ComboboxRootOpenChangeEventDetails;
6789
+ type HighlightEventReason = ComboboxRootHighlightEventReason;
6790
+ type HighlightEventDetails = ComboboxRootHighlightEventDetails;
6791
+ }
6792
+ /**
6793
+ * A button that opens the popup.
6794
+ * Renders a `<button>` element.
6795
+ *
6796
+ * Documentation: [Base UI Combobox](https://base-ui.com/react/components/combobox)
6797
+ */
6798
+ declare const ComboboxTrigger$1: React$1.ForwardRefExoticComponent<Omit<ComboboxTriggerProps, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
6799
+ interface ComboboxTriggerState extends FieldRootState {
6849
6800
  /**
6850
- * Items to be rendered within this group.
6851
- * When provided, child `Collection` components will use these items.
6801
+ * Whether the popup is open.
6852
6802
  */
6853
- items?: readonly any[] | undefined;
6803
+ open: boolean;
6804
+ /**
6805
+ * Whether the component should ignore user interaction.
6806
+ */
6807
+ disabled: boolean;
6808
+ /**
6809
+ * Whether the component should ignore user edits.
6810
+ */
6811
+ readOnly: boolean;
6812
+ /**
6813
+ * Indicates which side the corresponding popup is positioned relative to its anchor.
6814
+ */
6815
+ popupSide: Side | null;
6816
+ /**
6817
+ * Present when the corresponding items list is empty.
6818
+ */
6819
+ listEmpty: boolean;
6820
+ /**
6821
+ * Whether the combobox doesn't have a value.
6822
+ */
6823
+ placeholder: boolean;
6854
6824
  }
6855
- declare namespace ComboboxGroup$1 {
6856
- type State = ComboboxGroupState;
6857
- type Props = ComboboxGroupProps;
6825
+ interface ComboboxTriggerProps extends NativeButtonProps, BaseUIComponentProps<'button', ComboboxTriggerState> {
6826
+ /**
6827
+ * Whether the component should ignore user interaction.
6828
+ * @default false
6829
+ */
6830
+ disabled?: boolean | undefined;
6858
6831
  }
6859
- //#endregion
6860
- //#region @base-ui/react/combobox/group-label/ComboboxGroupLabel.d.mts
6861
- /**
6862
- * An accessible label that is automatically associated with its parent group.
6863
- * Renders a `<div>` element.
6864
- *
6865
- * Documentation: [Base UI Combobox](https://base-ui.com/react/components/combobox)
6866
- */
6867
- declare const ComboboxGroupLabel$1: React$1.ForwardRefExoticComponent<Omit<ComboboxGroupLabelProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
6868
- interface ComboboxGroupLabelState {}
6869
- interface ComboboxGroupLabelProps extends BaseUIComponentProps<'div', ComboboxGroupLabelState> {}
6870
- declare namespace ComboboxGroupLabel$1 {
6871
- type State = ComboboxGroupLabelState;
6872
- type Props = ComboboxGroupLabelProps;
6832
+ declare namespace ComboboxTrigger$1 {
6833
+ type State = ComboboxTriggerState;
6834
+ type Props = ComboboxTriggerProps;
6873
6835
  }
6874
- //#endregion
6875
- //#region @base-ui/react/combobox/item/ComboboxItem.d.mts
6876
6836
  /**
6877
6837
  * An individual item in the list.
6878
6838
  * Renders a `<div>` element.
@@ -6920,48 +6880,6 @@ declare namespace ComboboxItem$1 {
6920
6880
  type State = ComboboxItemState;
6921
6881
  type Props = ComboboxItemProps;
6922
6882
  }
6923
- //#endregion
6924
- //#region @base-ui/react/combobox/collection/ComboboxCollection.d.mts
6925
- /**
6926
- * Renders filtered list items.
6927
- * Doesn't render its own HTML element.
6928
- *
6929
- * If rendering a flat list, pass a function child to the `List` component instead, which implicitly wraps it.
6930
- *
6931
- * Documentation: [Base UI Combobox](https://base-ui.com/react/components/combobox)
6932
- */
6933
- declare function ComboboxCollection$1(props: ComboboxCollection$1.Props): React$1.JSX.Element;
6934
- interface ComboboxCollectionState {}
6935
- interface ComboboxCollectionProps {
6936
- children: (item: any, index: number) => React$1.ReactNode;
6937
- }
6938
- declare namespace ComboboxCollection$1 {
6939
- type State = ComboboxCollectionState;
6940
- type Props = ComboboxCollectionProps;
6941
- }
6942
- //#endregion
6943
- //#region @base-ui/react/combobox/empty/ComboboxEmpty.d.mts
6944
- /**
6945
- * Renders its children only when the list is empty.
6946
- * Requires the `items` prop on the root component.
6947
- * Announces changes politely to screen readers.
6948
- * This component's root element must remain mounted in the DOM to announce
6949
- * changes consistently across screen readers. Avoid hiding or removing the
6950
- * component itself with `display: none`, `hidden`, `aria-hidden`, or conditional
6951
- * rendering. Prefer updating or conditionally rendering its children instead.
6952
- * Renders a `<div>` element.
6953
- *
6954
- * Documentation: [Base UI Combobox](https://base-ui.com/react/components/combobox)
6955
- */
6956
- declare const ComboboxEmpty$1: React$1.ForwardRefExoticComponent<Omit<ComboboxEmptyProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
6957
- interface ComboboxEmptyState {}
6958
- interface ComboboxEmptyProps extends BaseUIComponentProps<'div', ComboboxEmptyState> {}
6959
- declare namespace ComboboxEmpty$1 {
6960
- type State = ComboboxEmptyState;
6961
- type Props = ComboboxEmptyProps;
6962
- }
6963
- //#endregion
6964
- //#region components/ui/combobox.d.ts
6965
6883
  /**
6966
6884
  * Base UI's Combobox, styled like the select. Pass `items` (flat, or groups
6967
6885
  * of { value, items }) to the root and render them through ComboboxList's
@@ -6987,8 +6905,6 @@ declare const ComboboxCollection: typeof ComboboxCollection$1;
6987
6905
  declare function ComboboxEmpty({ className, ...props }: React$1.ComponentProps<typeof ComboboxEmpty$1>): React$1.JSX.Element;
6988
6906
  /** A live region for loading and result messages. */
6989
6907
  declare function ComboboxStatus({ className, ...props }: React$1.ComponentProps<typeof ComboboxStatus$1>): React$1.JSX.Element;
6990
- //#endregion
6991
- //#region components/ui/confirm-dialog.d.ts
6992
6908
  interface ConfirmDialogProps {
6993
6909
  open: boolean;
6994
6910
  title: string;
@@ -7007,15 +6923,11 @@ interface ConfirmDialogProps {
7007
6923
  * deliberate confirm. Awaits an async onConfirm and surfaces failures as a
7008
6924
  * toast while staying open.
7009
6925
  */
7010
- declare function ConfirmDialog({ open, title, description, confirmLabel, destructive, onOpenChange, onConfirm }: ConfirmDialogProps): import("react").JSX.Element;
7011
- //#endregion
7012
- //#region @base-ui/react/utils/adaptiveOriginConstants.d.mts
6926
+ export declare function ConfirmDialog({ open, title, description, confirmLabel, destructive, onOpenChange, onConfirm }: ConfirmDialogProps): import("react").JSX.Element;
7013
6927
  type AdaptiveOriginMiddleware = {
7014
6928
  name: string;
7015
6929
  fn: (...args: any[]) => any;
7016
6930
  };
7017
- //#endregion
7018
- //#region @base-ui/react/menu/store/MenuStore.d.mts
7019
6931
  type State$3<Payload> = PopupStoreState<Payload> & {
7020
6932
  disabled: boolean;
7021
6933
  modal: boolean | undefined;
@@ -7483,8 +7395,6 @@ declare class MenuStore<Payload> extends ReactStore<Readonly<State$3<Payload>>,
7483
7395
  setActiveIndex(activeIndex: number | null, reason: MenuRoot.HighlightEventReason, event?: Event | undefined): void;
7484
7396
  highlightItem(element: Element | null, reason: MenuRoot.HighlightEventReason, event?: Event | undefined): void;
7485
7397
  }
7486
- //#endregion
7487
- //#region @base-ui/react/menu/root/MenuRootContext.d.mts
7488
7398
  interface MenuRootContext<Payload = unknown> {
7489
7399
  store: MenuStore<Payload>;
7490
7400
  parent: MenuParent;
@@ -7501,8 +7411,6 @@ interface MenuRootContext<Payload = unknown> {
7501
7411
  syncHighlightedItem: () => void;
7502
7412
  }
7503
7413
  declare const MenuRootContext: React$1.Context<MenuRootContext<unknown> | undefined>;
7504
- //#endregion
7505
- //#region @base-ui/react/menubar/MenubarContext.d.mts
7506
7414
  interface MenubarContext {
7507
7415
  modal: boolean;
7508
7416
  disabled: boolean;
@@ -7515,8 +7423,6 @@ interface MenubarContext {
7515
7423
  rootId: string | undefined;
7516
7424
  }
7517
7425
  declare const MenubarContext: React$1.Context<MenubarContext | null>;
7518
- //#endregion
7519
- //#region @base-ui/react/context-menu/root/ContextMenuRootContext.d.mts
7520
7426
  interface ContextMenuRootContext {
7521
7427
  anchor: {
7522
7428
  getBoundingClientRect: () => DOMRect;
@@ -7536,8 +7442,6 @@ interface ContextMenuRootContext {
7536
7442
  rootId: string | undefined;
7537
7443
  }
7538
7444
  declare const ContextMenuRootContext: React$1.Context<ContextMenuRootContext | undefined>;
7539
- //#endregion
7540
- //#region @base-ui/react/menu/store/MenuHandle.d.mts
7541
7445
  /**
7542
7446
  * Controls a Menu imperatively and associates detached `Menu.Trigger` components with a `Menu.Root`.
7543
7447
  * Create one with `Menu.createHandle()` and pass it to the `handle` prop of the root and of any
@@ -7568,8 +7472,6 @@ declare class MenuHandle<Payload> extends BasePopupHandle<MenuHandleStore<Payloa
7568
7472
  */
7569
7473
  get isOpen(): boolean;
7570
7474
  }
7571
- //#endregion
7572
- //#region @base-ui/react/menu/root/MenuRoot.d.mts
7573
7475
  /**
7574
7476
  * Groups all parts of the menu.
7575
7477
  * Doesn't render its own HTML element.
@@ -7723,8 +7625,6 @@ declare namespace MenuRoot {
7723
7625
  type HighlightEventDetails = MenuRootHighlightEventDetails;
7724
7626
  type Orientation = MenuRootOrientation;
7725
7627
  }
7726
- //#endregion
7727
- //#region @base-ui/react/menu/checkbox-item/MenuCheckboxItem.d.mts
7728
7628
  /**
7729
7629
  * A menu item that toggles a setting on or off.
7730
7630
  * Renders a `<div>` element.
@@ -7796,8 +7696,6 @@ declare namespace MenuCheckboxItem {
7796
7696
  type ChangeEventReason = MenuCheckboxItemChangeEventReason;
7797
7697
  type ChangeEventDetails = MenuCheckboxItemChangeEventDetails;
7798
7698
  }
7799
- //#endregion
7800
- //#region @base-ui/react/menu/group/MenuGroup.d.mts
7801
7699
  /**
7802
7700
  * Groups related menu items with the corresponding label.
7803
7701
  * Renders a `<div>` element.
@@ -7816,8 +7714,6 @@ declare namespace MenuGroup {
7816
7714
  type Props = MenuGroupProps;
7817
7715
  type State = MenuGroupState;
7818
7716
  }
7819
- //#endregion
7820
- //#region @base-ui/react/menu/group-label/MenuGroupLabel.d.mts
7821
7717
  /**
7822
7718
  * An accessible label that is automatically associated with its parent group.
7823
7719
  * Renders a `<div>` element.
@@ -7831,8 +7727,6 @@ declare namespace MenuGroupLabel {
7831
7727
  type Props = MenuGroupLabelProps;
7832
7728
  type State = MenuGroupLabelState;
7833
7729
  }
7834
- //#endregion
7835
- //#region @base-ui/react/menu/item/MenuItem.d.mts
7836
7730
  /**
7837
7731
  * An individual interactive item in the menu.
7838
7732
  * Renders a `<div>` element.
@@ -7880,8 +7774,6 @@ declare namespace MenuItem {
7880
7774
  type State = MenuItemState;
7881
7775
  type Props = MenuItemProps;
7882
7776
  }
7883
- //#endregion
7884
- //#region @base-ui/react/menu/popup/MenuPopup.d.mts
7885
7777
  /**
7886
7778
  * A container for the menu items.
7887
7779
  * Renders a `<div>` element.
@@ -7936,8 +7828,6 @@ declare namespace MenuPopup {
7936
7828
  type Props = MenuPopupProps;
7937
7829
  type State = MenuPopupState;
7938
7830
  }
7939
- //#endregion
7940
- //#region @base-ui/react/menu/positioner/MenuPositioner.d.mts
7941
7831
  /**
7942
7832
  * Positions the menu popup against the trigger.
7943
7833
  * Renders a `<div>` element.
@@ -7992,8 +7882,6 @@ declare namespace MenuPositioner {
7992
7882
  type State = MenuPositionerState;
7993
7883
  type Props = MenuPositionerProps;
7994
7884
  }
7995
- //#endregion
7996
- //#region @base-ui/react/menu/submenu-root/MenuSubmenuRoot.d.mts
7997
7885
  /**
7998
7886
  * Groups all parts of a submenu.
7999
7887
  * Doesn't render its own HTML element.
@@ -8026,8 +7914,6 @@ declare namespace MenuSubmenuRoot {
8026
7914
  type ChangeEventReason = MenuSubmenuRootChangeEventReason;
8027
7915
  type ChangeEventDetails = MenuSubmenuRootChangeEventDetails;
8028
7916
  }
8029
- //#endregion
8030
- //#region @base-ui/react/menu/trigger/MenuTrigger.d.mts
8031
7917
  /**
8032
7918
  * A button that opens the menu.
8033
7919
  * Renders a `<button>` element.
@@ -8087,8 +7973,6 @@ declare namespace MenuTrigger {
8087
7973
  type Props<Payload = unknown> = MenuTriggerProps<Payload>;
8088
7974
  type State = MenuTriggerState;
8089
7975
  }
8090
- //#endregion
8091
- //#region @base-ui/react/separator/Separator.d.mts
8092
7976
  /**
8093
7977
  * A separator element accessible to screen readers.
8094
7978
  * Renders a `<div>` element.
@@ -8113,8 +7997,6 @@ declare namespace Separator$1 {
8113
7997
  type Props = SeparatorProps;
8114
7998
  type State = SeparatorState;
8115
7999
  }
8116
- //#endregion
8117
- //#region @base-ui/react/menu/submenu-trigger/MenuSubmenuTrigger.d.mts
8118
8000
  /**
8119
8001
  * A menu item that opens a submenu.
8120
8002
  * Renders a `<div>` element.
@@ -8177,8 +8059,6 @@ declare namespace MenuSubmenuTrigger {
8177
8059
  type Props = MenuSubmenuTriggerProps;
8178
8060
  type State = MenuSubmenuTriggerState;
8179
8061
  }
8180
- //#endregion
8181
- //#region @base-ui/react/context-menu/root/ContextMenuRoot.d.mts
8182
8062
  /**
8183
8063
  * A component that creates a context menu activated by right clicking or long pressing.
8184
8064
  * Doesn't render its own HTML element.
@@ -8209,8 +8089,6 @@ declare namespace ContextMenuRoot {
8209
8089
  type ChangeEventReason = ContextMenuRootChangeEventReason;
8210
8090
  type ChangeEventDetails = ContextMenuRootChangeEventDetails;
8211
8091
  }
8212
- //#endregion
8213
- //#region @base-ui/react/context-menu/trigger/ContextMenuTrigger.d.mts
8214
8092
  /**
8215
8093
  * An area that opens the menu on right click or long press.
8216
8094
  * Renders a `<div>` element.
@@ -8229,8 +8107,6 @@ declare namespace ContextMenuTrigger$1 {
8229
8107
  type State = ContextMenuTriggerState;
8230
8108
  type Props = ContextMenuTriggerProps;
8231
8109
  }
8232
- //#endregion
8233
- //#region components/ui/context-menu.d.ts
8234
8110
  declare function ContextMenu({ ...props }: React$1.ComponentProps<typeof ContextMenuRoot>): React$1.JSX.Element;
8235
8111
  declare function ContextMenuTrigger({ ...props }: React$1.ComponentProps<typeof ContextMenuTrigger$1>): React$1.JSX.Element;
8236
8112
  declare function ContextMenuContent({ className, ...props }: React$1.ComponentProps<typeof MenuPopup>): React$1.JSX.Element;
@@ -8239,11 +8115,11 @@ declare function ContextMenuItem({ className, variant, ...props }: React$1.Compo
8239
8115
  variant?: 'default' | 'destructive';
8240
8116
  }): React$1.JSX.Element;
8241
8117
  declare function ContextMenuSeparator({ className, ...props }: React$1.ComponentProps<typeof Separator$1>): React$1.JSX.Element;
8242
- //#endregion
8243
- //#region components/ui/count-badge.d.ts
8244
8118
  declare const VARIANTS: {
8245
8119
  /** Red attention bubble, e.g. pending changes pinned to a button corner. */
8246
8120
  alert: string;
8121
+ /** Orange attention bubble: something to look at, not something wrong. */
8122
+ warning: string;
8247
8123
  /**
8248
8124
  * A faint wash of the surrounding text color (currentColor), so the count
8249
8125
  * fits any context - inside a colored button as well as in running text.
@@ -8259,8 +8135,6 @@ declare function CountBadge({ count, variant, className, ...props }: React$1.Com
8259
8135
  count: number;
8260
8136
  variant?: keyof typeof VARIANTS;
8261
8137
  }): React$1.JSX.Element;
8262
- //#endregion
8263
- //#region @base-ui/react/dialog/description/DialogDescription.d.mts
8264
8138
  /**
8265
8139
  * A paragraph with additional information about the dialog.
8266
8140
  * Renders a `<p>` element.
@@ -8274,8 +8148,6 @@ declare namespace DialogDescription$1 {
8274
8148
  type Props = DialogDescriptionProps;
8275
8149
  type State = DialogDescriptionState;
8276
8150
  }
8277
- //#endregion
8278
- //#region @base-ui/react/dialog/popup/DialogPopup.d.mts
8279
8151
  /**
8280
8152
  * A container for the dialog contents.
8281
8153
  * Renders a `<div>` element.
@@ -8329,8 +8201,6 @@ declare namespace DialogPopup {
8329
8201
  type Props = DialogPopupProps;
8330
8202
  type State = DialogPopupState;
8331
8203
  }
8332
- //#endregion
8333
- //#region @base-ui/react/dialog/title/DialogTitle.d.mts
8334
8204
  /**
8335
8205
  * A heading that labels the dialog.
8336
8206
  * Renders an `<h2>` element.
@@ -8344,8 +8214,6 @@ declare namespace DialogTitle$1 {
8344
8214
  type Props = DialogTitleProps;
8345
8215
  type State = DialogTitleState;
8346
8216
  }
8347
- //#endregion
8348
- //#region @base-ui/utils/useTimeout.d.mts
8349
8217
  type TimeoutId = number;
8350
8218
  declare class Timeout {
8351
8219
  static create(): Timeout;
@@ -8358,8 +8226,6 @@ declare class Timeout {
8358
8226
  clear: () => void;
8359
8227
  disposeEffect: () => () => void;
8360
8228
  }
8361
- //#endregion
8362
- //#region @base-ui/react/popover/store/PopoverStore.d.mts
8363
8229
  type State$2<Payload> = PopupStoreState<Payload> & {
8364
8230
  disabled: boolean;
8365
8231
  instantType: 'dismiss' | 'click' | 'focus' | 'trigger-change' | undefined;
@@ -8769,8 +8635,6 @@ declare class PopoverStore<Payload> extends ReactStore<Readonly<State$2<Payload>
8769
8635
  constructor(initialState: Partial<State$2<Payload>>, floatingId: string | undefined, nested: boolean);
8770
8636
  setOpen: (nextOpen: boolean, eventDetails: Omit<PopoverRoot.ChangeEventDetails, 'preventUnmountOnClose'>) => void;
8771
8637
  }
8772
- //#endregion
8773
- //#region @base-ui/react/popover/store/PopoverHandle.d.mts
8774
8638
  /**
8775
8639
  * Controls a Popover imperatively and associates detached `Popover.Trigger` components with a
8776
8640
  * `Popover.Root`. Create one with `Popover.createHandle()` and pass it to the `handle` prop of the
@@ -8801,8 +8665,6 @@ declare class PopoverHandle<Payload> extends BasePopupHandle<PopoverHandleStore<
8801
8665
  */
8802
8666
  get isOpen(): boolean;
8803
8667
  }
8804
- //#endregion
8805
- //#region @base-ui/react/popover/root/PopoverRoot.d.mts
8806
8668
  /**
8807
8669
  * Groups all parts of the popover.
8808
8670
  * Doesn't render its own HTML element.
@@ -8894,8 +8756,6 @@ declare namespace PopoverRoot {
8894
8756
  type ChangeEventReason = PopoverRootChangeEventReason;
8895
8757
  type ChangeEventDetails = PopoverRootChangeEventDetails;
8896
8758
  }
8897
- //#endregion
8898
- //#region @base-ui/react/popover/trigger/PopoverTrigger.d.mts
8899
8759
  /**
8900
8760
  * A button that opens the popover.
8901
8761
  * Renders a `<button>` element.
@@ -8962,8 +8822,6 @@ declare namespace PopoverTrigger$1 {
8962
8822
  type State = PopoverTriggerState;
8963
8823
  type Props<Payload = unknown> = PopoverTriggerProps<Payload>;
8964
8824
  }
8965
- //#endregion
8966
- //#region @base-ui/react/popover/positioner/PopoverPositioner.d.mts
8967
8825
  /**
8968
8826
  * Positions the popover against the trigger.
8969
8827
  * Renders a `<div>` element.
@@ -8998,8 +8856,6 @@ declare namespace PopoverPositioner {
8998
8856
  type State = PopoverPositionerState;
8999
8857
  type Props = PopoverPositionerProps;
9000
8858
  }
9001
- //#endregion
9002
- //#region @base-ui/react/popover/popup/PopoverPopup.d.mts
9003
8859
  /**
9004
8860
  * A container for the popover contents.
9005
8861
  * Renders a `<div>` element.
@@ -9057,8 +8913,6 @@ declare namespace PopoverPopup {
9057
8913
  type State = PopoverPopupState;
9058
8914
  type Props = PopoverPopupProps;
9059
8915
  }
9060
- //#endregion
9061
- //#region @base-ui/react/select/root/SelectRoot.d.mts
9062
8916
  /**
9063
8917
  * Groups all parts of the select.
9064
8918
  * Doesn't render its own HTML element.
@@ -9221,8 +9075,6 @@ declare namespace SelectRoot {
9221
9075
  type ChangeEventDetails = SelectRootChangeEventDetails;
9222
9076
  type OpenChangeEventDetails = SelectRootOpenChangeEventDetails;
9223
9077
  }
9224
- //#endregion
9225
- //#region @base-ui/react/select/trigger/SelectTrigger.d.mts
9226
9078
  /**
9227
9079
  * A button that opens the select popup.
9228
9080
  * Renders a `<button>` element.
@@ -9263,8 +9115,6 @@ declare namespace SelectTrigger$1 {
9263
9115
  type State = SelectTriggerState;
9264
9116
  type Props = SelectTriggerProps;
9265
9117
  }
9266
- //#endregion
9267
- //#region @base-ui/react/select/value/SelectValue.d.mts
9268
9118
  /**
9269
9119
  * A text label of the currently selected item.
9270
9120
  * Renders a `<span>` element.
@@ -9305,8 +9155,6 @@ declare namespace SelectValue$1 {
9305
9155
  type State = SelectValueState;
9306
9156
  type Props = SelectValueProps;
9307
9157
  }
9308
- //#endregion
9309
- //#region @base-ui/react/select/positioner/SelectPositioner.d.mts
9310
9158
  /**
9311
9159
  * Positions the select popup.
9312
9160
  * Renders a `<div>` element.
@@ -9343,8 +9191,6 @@ declare namespace SelectPositioner {
9343
9191
  type State = SelectPositionerState;
9344
9192
  type Props = SelectPositionerProps;
9345
9193
  }
9346
- //#endregion
9347
- //#region @base-ui/react/select/popup/SelectPopup.d.mts
9348
9194
  /**
9349
9195
  * A container for the select list.
9350
9196
  * Renders a `<div>` element.
@@ -9387,8 +9233,6 @@ declare namespace SelectPopup {
9387
9233
  type Props = SelectPopupProps;
9388
9234
  type State = SelectPopupState;
9389
9235
  }
9390
- //#endregion
9391
- //#region @base-ui/react/select/item/SelectItem.d.mts
9392
9236
  /**
9393
9237
  * An individual option in the select popup.
9394
9238
  * Renders a `<div>` element.
@@ -9433,8 +9277,6 @@ declare namespace SelectItem$1 {
9433
9277
  type State = SelectItemState;
9434
9278
  type Props = SelectItemProps;
9435
9279
  }
9436
- //#endregion
9437
- //#region @base-ui/react/select/group/SelectGroup.d.mts
9438
9280
  /**
9439
9281
  * Groups related select items with the corresponding label.
9440
9282
  * Renders a `<div>` element.
@@ -9448,8 +9290,6 @@ declare namespace SelectGroup$1 {
9448
9290
  type State = SelectGroupState;
9449
9291
  type Props = SelectGroupProps;
9450
9292
  }
9451
- //#endregion
9452
- //#region @base-ui/react/select/group-label/SelectGroupLabel.d.mts
9453
9293
  /**
9454
9294
  * An accessible label that is automatically associated with its parent group.
9455
9295
  * Renders a `<div>` element.
@@ -9463,8 +9303,6 @@ declare namespace SelectGroupLabel {
9463
9303
  type State = SelectGroupLabelState;
9464
9304
  type Props = SelectGroupLabelProps;
9465
9305
  }
9466
- //#endregion
9467
- //#region @base-ui/react/slider/root/SliderRoot.d.mts
9468
9306
  /**
9469
9307
  * Groups all parts of the slider.
9470
9308
  * Renders a `<div>` element.
@@ -9652,8 +9490,6 @@ declare namespace SliderRoot {
9652
9490
  type CommitEventReason = SliderRootCommitEventReason;
9653
9491
  type CommitEventDetails = SliderRootCommitEventDetails;
9654
9492
  }
9655
- //#endregion
9656
- //#region @base-ui/react/tabs/tab/TabsTab.d.mts
9657
9493
  /**
9658
9494
  * An individual interactive tab button that toggles the corresponding panel.
9659
9495
  * Renders a `<button>` element.
@@ -9721,8 +9557,6 @@ declare namespace TabsTab {
9721
9557
  type State = TabsTabState;
9722
9558
  type Props = TabsTabProps;
9723
9559
  }
9724
- //#endregion
9725
- //#region @base-ui/react/tabs/root/TabsRoot.d.mts
9726
9560
  /**
9727
9561
  * Groups the tabs and the corresponding panels.
9728
9562
  * Renders a `<div>` element.
@@ -9789,8 +9623,6 @@ declare namespace TabsRoot {
9789
9623
  type ChangeEventReason = TabsRootChangeEventReason;
9790
9624
  type ChangeEventDetails = TabsRootChangeEventDetails;
9791
9625
  }
9792
- //#endregion
9793
- //#region @base-ui/react/tabs/panel/TabsPanel.d.mts
9794
9626
  /**
9795
9627
  * A panel displayed when the corresponding tab is active.
9796
9628
  * Renders a `<div>` element.
@@ -9828,8 +9660,6 @@ declare namespace TabsPanel {
9828
9660
  type State = TabsPanelState;
9829
9661
  type Props = TabsPanelProps;
9830
9662
  }
9831
- //#endregion
9832
- //#region @base-ui/react/tabs/list/TabsList.d.mts
9833
9663
  /**
9834
9664
  * Groups the individual tab buttons.
9835
9665
  * Renders a `<div>` element.
@@ -9856,8 +9686,6 @@ declare namespace TabsList$1 {
9856
9686
  type State = TabsListState;
9857
9687
  type Props = TabsListProps;
9858
9688
  }
9859
- //#endregion
9860
- //#region @base-ui/react/toggle/Toggle.d.mts
9861
9689
  /**
9862
9690
  * A two-state button that can be on or off.
9863
9691
  * Renders a `<button>` element.
@@ -9912,8 +9740,6 @@ declare namespace Toggle$1 {
9912
9740
  type ChangeEventReason = ToggleChangeEventReason;
9913
9741
  type ChangeEventDetails = ToggleChangeEventDetails;
9914
9742
  }
9915
- //#endregion
9916
- //#region @base-ui/react/toggle-group/ToggleGroup.d.mts
9917
9743
  /**
9918
9744
  * Provides a shared state to a series of toggle buttons.
9919
9745
  *
@@ -9987,8 +9813,6 @@ declare namespace ToggleGroup$1 {
9987
9813
  type ChangeEventReason = ToggleGroupChangeEventReason;
9988
9814
  type ChangeEventDetails = ToggleGroupChangeEventDetails;
9989
9815
  }
9990
- //#endregion
9991
- //#region @base-ui/react/tooltip/store/TooltipStore.d.mts
9992
9816
  type State$1<Payload> = PopupStoreState<Payload> & {
9993
9817
  disabled: boolean;
9994
9818
  instantType: 'delay' | 'dismiss' | 'focus' | undefined;
@@ -10390,8 +10214,6 @@ declare class TooltipStore<Payload> extends ReactStore<Readonly<State$1<Payload>
10390
10214
  setOpen: (nextOpen: boolean, eventDetails: Omit<TooltipRoot.ChangeEventDetails, 'preventUnmountOnClose'>) => void;
10391
10215
  cancelPendingOpen(event: MouseEvent | PointerEvent): void;
10392
10216
  }
10393
- //#endregion
10394
- //#region @base-ui/react/tooltip/store/TooltipHandle.d.mts
10395
10217
  /**
10396
10218
  * Controls a Tooltip imperatively and associates detached `Tooltip.Trigger` components with a
10397
10219
  * `Tooltip.Root`. Create one with `Tooltip.createHandle()` and pass it to the `handle` prop of the
@@ -10422,8 +10244,6 @@ declare class TooltipHandle<Payload> extends BasePopupHandle<TooltipHandleStore<
10422
10244
  */
10423
10245
  get isOpen(): boolean;
10424
10246
  }
10425
- //#endregion
10426
- //#region @base-ui/react/tooltip/root/TooltipRoot.d.mts
10427
10247
  /**
10428
10248
  * Groups all parts of the tooltip.
10429
10249
  * Doesn't render its own HTML element.
@@ -10514,8 +10334,6 @@ declare namespace TooltipRoot {
10514
10334
  type ChangeEventReason = TooltipRootChangeEventReason;
10515
10335
  type ChangeEventDetails = TooltipRootChangeEventDetails;
10516
10336
  }
10517
- //#endregion
10518
- //#region @base-ui/react/tooltip/trigger/TooltipTrigger.d.mts
10519
10337
  /**
10520
10338
  * An element to attach the tooltip to.
10521
10339
  * Renders a `<button>` element.
@@ -10568,8 +10386,6 @@ declare namespace TooltipTrigger$1 {
10568
10386
  type State = TooltipTriggerState;
10569
10387
  type Props<Payload = unknown> = TooltipTriggerProps<Payload>;
10570
10388
  }
10571
- //#endregion
10572
- //#region @base-ui/react/tooltip/positioner/TooltipPositioner.d.mts
10573
10389
  /**
10574
10390
  * Positions the tooltip against the trigger.
10575
10391
  * Renders a `<div>` element.
@@ -10611,8 +10427,6 @@ declare namespace TooltipPositioner {
10611
10427
  type State = TooltipPositionerState;
10612
10428
  type Props = TooltipPositionerProps;
10613
10429
  }
10614
- //#endregion
10615
- //#region @base-ui/react/tooltip/popup/TooltipPopup.d.mts
10616
10430
  /**
10617
10431
  * A container for the tooltip contents.
10618
10432
  * Renders a `<div>` element.
@@ -10647,8 +10461,6 @@ declare namespace TooltipPopup {
10647
10461
  type State = TooltipPopupState;
10648
10462
  type Props = TooltipPopupProps;
10649
10463
  }
10650
- //#endregion
10651
- //#region @base-ui/react/tooltip/provider/TooltipProvider.d.mts
10652
10464
  /**
10653
10465
  * Provides a shared delay for multiple tooltips. The grouping logic ensures that
10654
10466
  * once a tooltip becomes visible, the adjacent tooltips will be shown instantly.
@@ -10678,8 +10490,6 @@ declare namespace TooltipProvider$1 {
10678
10490
  type State = TooltipProviderState;
10679
10491
  type Props = TooltipProviderProps;
10680
10492
  }
10681
- //#endregion
10682
- //#region @base-ui/react/dialog/store/DialogStore.d.mts
10683
10493
  type State<Payload> = PopupStoreState<Payload> & {
10684
10494
  modal: boolean | 'trap-focus';
10685
10495
  disablePointerDismissal: boolean;
@@ -11081,8 +10891,6 @@ declare class DialogStore<Payload> extends ReactStore<Readonly<State<Payload>>,
11081
10891
  constructor(initialState: Partial<State<Payload>> | undefined, floatingId: string | undefined, nested: boolean);
11082
10892
  setOpen: (nextOpen: boolean, eventDetails: Omit<DialogRoot.ChangeEventDetails, 'preventUnmountOnClose'>) => void;
11083
10893
  }
11084
- //#endregion
11085
- //#region @base-ui/react/dialog/store/DialogHandle.d.mts
11086
10894
  /**
11087
10895
  * Controls a Dialog imperatively and associates detached `Dialog.Trigger` components with a
11088
10896
  * `Dialog.Root`. Create one with `Dialog.createHandle()` and pass it to the `handle` prop of the
@@ -11091,7 +10899,7 @@ declare class DialogStore<Payload> extends ReactStore<Readonly<State<Payload>>,
11091
10899
  * The imperative methods take effect only while a root using this handle is mounted; calls made
11092
10900
  * before a root attaches (or after it unmounts) are ignored.
11093
10901
  */
11094
- declare class DialogHandle<Payload> extends BasePopupHandle<DialogHandleStore<Payload>, DialogStore<Payload>> {
10902
+ declare class DialogHandle$1<Payload> extends BasePopupHandle<DialogHandleStore<Payload>, DialogStore<Payload>> {
11095
10903
  constructor();
11096
10904
  /**
11097
10905
  * Opens the dialog, optionally associating it with a trigger.
@@ -11121,8 +10929,6 @@ declare class DialogHandle<Payload> extends BasePopupHandle<DialogHandleStore<Pa
11121
10929
  */
11122
10930
  get isOpen(): boolean;
11123
10931
  }
11124
- //#endregion
11125
- //#region @base-ui/react/dialog/root/DialogRoot.d.mts
11126
10932
  /**
11127
10933
  * Groups all parts of the dialog.
11128
10934
  * Doesn't render its own HTML element.
@@ -11181,7 +10987,7 @@ interface DialogRootProps<Payload = unknown> {
11181
10987
  * If specified, allows external triggers to control the dialog's open state.
11182
10988
  * Can be created with the Dialog.createHandle() method.
11183
10989
  */
11184
- handle?: DialogHandle<Payload> | undefined;
10990
+ handle?: DialogHandle$1<Payload> | undefined;
11185
10991
  /**
11186
10992
  * The content of the dialog.
11187
10993
  * This can be a regular React node or a render function that receives the `payload` of the active trigger.
@@ -11215,8 +11021,6 @@ declare namespace DialogRoot {
11215
11021
  type ChangeEventReason = DialogRootChangeEventReason;
11216
11022
  type ChangeEventDetails = DialogRootChangeEventDetails;
11217
11023
  }
11218
- //#endregion
11219
- //#region components/ui/dialog.d.ts
11220
11024
  declare function Dialog({ open, ...props }: React$1.ComponentProps<typeof DialogRoot>): React$1.JSX.Element;
11221
11025
  declare const dialogSizes: {
11222
11026
  /** Compact dialogs: confirmations, renames, short decision prompts */
@@ -11240,8 +11044,6 @@ declare function DialogHeader({ className, ...props }: React$1.ComponentProps<'d
11240
11044
  declare function DialogFooter({ className, ...props }: React$1.ComponentProps<'div'>): React$1.JSX.Element;
11241
11045
  declare function DialogTitle({ className, ...props }: React$1.ComponentProps<typeof DialogTitle$1>): React$1.JSX.Element;
11242
11046
  declare function DialogDescription({ className, ...props }: React$1.ComponentProps<typeof DialogDescription$1>): React$1.JSX.Element;
11243
- //#endregion
11244
- //#region components/ui/dropdown-menu.d.ts
11245
11047
  declare function DropdownMenu({ ...props }: React$1.ComponentProps<typeof MenuRoot>): React$1.JSX.Element;
11246
11048
  declare function DropdownMenuTrigger({ ...props }: React$1.ComponentProps<typeof MenuTrigger>): React$1.JSX.Element;
11247
11049
  declare function DropdownMenuContent({ className, side, align, sideOffset, ...props }: React$1.ComponentProps<typeof MenuPopup> & {
@@ -11259,8 +11061,6 @@ declare function DropdownMenuSub({ ...props }: React$1.ComponentProps<typeof Men
11259
11061
  declare function DropdownMenuSubTrigger({ className, children, ...props }: React$1.ComponentProps<typeof MenuSubmenuTrigger>): React$1.JSX.Element;
11260
11062
  declare function DropdownMenuSubContent({ className, ...props }: React$1.ComponentProps<typeof MenuPopup>): React$1.JSX.Element;
11261
11063
  declare function DropdownMenuSeparator({ className, ...props }: React$1.ComponentProps<typeof Separator$1>): React$1.JSX.Element;
11262
- //#endregion
11263
- //#region components/ui/field.d.ts
11264
11064
  /**
11265
11065
  * Labeled form field: a block label above its control, the shared shape of
11266
11066
  * every settings/dialog form (profile, user administration, ...). Pass
@@ -11273,8 +11073,6 @@ declare function Field({ label, htmlFor, children }: {
11273
11073
  htmlFor?: string;
11274
11074
  children: ReactNode;
11275
11075
  }): import("react").JSX.Element;
11276
- //#endregion
11277
- //#region components/ui/icon.d.ts
11278
11076
  /**
11279
11077
  * Icons are Font Awesome glyphs. Studio ships the free webfonts (solid,
11280
11078
  * regular, brands and the v4 shims, imported in main.tsx) because Neos
@@ -11305,12 +11103,8 @@ interface IconProps extends Omit<React$1.ComponentProps<'i'>, 'children'> {
11305
11103
  label?: string;
11306
11104
  }
11307
11105
  /** A Font Awesome icon, fixed-width and sized like the shell's own. */
11308
- declare function Icon({ name, variant, size, label, className, ...props }: IconProps): React$1.JSX.Element;
11309
- //#endregion
11310
- //#region components/ui/input.d.ts
11106
+ export declare function Icon({ name, variant, size, label, className, ...props }: IconProps): React$1.JSX.Element;
11311
11107
  declare function Input({ className, type, ...props }: React$1.ComponentProps<'input'>): React$1.JSX.Element;
11312
- //#endregion
11313
- //#region components/ui/placeholder.d.ts
11314
11108
  /**
11315
11109
  * An empty-state placeholder centered both axes inside its container. Fills the
11316
11110
  * available space (flex-1) so it drops straight into a panel, an editor slot or
@@ -11321,8 +11115,6 @@ declare function Placeholder({ icon, title, className, children, ...props }: Rea
11321
11115
  icon?: string;
11322
11116
  title: string;
11323
11117
  }): import("react").JSX.Element;
11324
- //#endregion
11325
- //#region components/ui/popover.d.ts
11326
11118
  declare function Popover({ ...props }: React$1.ComponentProps<typeof PopoverRoot>): React$1.JSX.Element;
11327
11119
  declare function PopoverTrigger({ ...props }: React$1.ComponentProps<typeof PopoverTrigger$1>): React$1.JSX.Element;
11328
11120
  declare function PopoverContent({ className, side, align, sideOffset, ...props }: React$1.ComponentProps<typeof PopoverPopup> & {
@@ -11330,8 +11122,6 @@ declare function PopoverContent({ className, side, align, sideOffset, ...props }
11330
11122
  align?: React$1.ComponentProps<typeof PopoverPositioner>['align'];
11331
11123
  sideOffset?: number;
11332
11124
  }): React$1.JSX.Element;
11333
- //#endregion
11334
- //#region components/ui/search-input.d.ts
11335
11125
  /**
11336
11126
  * The panel toolbars' search/filter field: an Input with a leading
11337
11127
  * magnifying-glass icon. Grows inside a flex row by default
@@ -11340,8 +11130,6 @@ declare function PopoverContent({ className, side, align, sideOffset, ...props }
11340
11130
  declare function SearchInput({ className, wrapperClassName, ...props }: React$1.ComponentProps<typeof Input> & {
11341
11131
  wrapperClassName?: string;
11342
11132
  }): React$1.JSX.Element;
11343
- //#endregion
11344
- //#region components/ui/select.d.ts
11345
11133
  /**
11346
11134
  * Pass `items` (array of { value, label }) to the root when item labels
11347
11135
  * differ from their values, so SelectValue can render the label. Generic
@@ -11361,11 +11149,7 @@ declare function SelectContent({ className, children, side, align, sideOffset, .
11361
11149
  }): React$1.JSX.Element;
11362
11150
  declare function SelectLabel({ className, ...props }: React$1.ComponentProps<typeof SelectGroupLabel>): React$1.JSX.Element;
11363
11151
  declare function SelectItem({ className, children, ...props }: React$1.ComponentProps<typeof SelectItem$1>): React$1.JSX.Element;
11364
- //#endregion
11365
- //#region components/ui/separator.d.ts
11366
11152
  declare function Separator({ className, orientation, ...props }: React$1.ComponentProps<typeof Separator$1>): React$1.JSX.Element;
11367
- //#endregion
11368
- //#region components/ui/sheet.d.ts
11369
11153
  declare function Sheet({ ...props }: React$1.ComponentProps<typeof DialogRoot>): React$1.JSX.Element;
11370
11154
  declare function SheetContent({ className, children, side, showCloseButton, ...props }: React$1.ComponentProps<typeof DialogPopup> & {
11371
11155
  side?: 'top' | 'right' | 'bottom' | 'left';
@@ -11374,14 +11158,8 @@ declare function SheetContent({ className, children, side, showCloseButton, ...p
11374
11158
  declare function SheetHeader({ className, ...props }: React$1.ComponentProps<'div'>): React$1.JSX.Element;
11375
11159
  declare function SheetTitle({ className, ...props }: React$1.ComponentProps<typeof DialogTitle$1>): React$1.JSX.Element;
11376
11160
  declare function SheetDescription({ className, ...props }: React$1.ComponentProps<typeof DialogDescription$1>): React$1.JSX.Element;
11377
- //#endregion
11378
- //#region components/ui/skeleton.d.ts
11379
11161
  declare function Skeleton({ className, ...props }: React.ComponentProps<'div'>): import("react").JSX.Element;
11380
- //#endregion
11381
- //#region components/ui/slider.d.ts
11382
11162
  declare function Slider({ className, ...props }: React$1.ComponentProps<typeof SliderRoot>): React$1.JSX.Element;
11383
- //#endregion
11384
- //#region components/ui/spinner.d.ts
11385
11163
  /**
11386
11164
  * A FontAwesome spinner. Inline by default; wrap it in <LoadingState> (below)
11387
11165
  * to fill and center its container.
@@ -11396,36 +11174,24 @@ declare function LoadingState({ label, className, spinnerClassName, ...props }:
11396
11174
  label?: string;
11397
11175
  spinnerClassName?: string;
11398
11176
  }): import("react").JSX.Element;
11399
- //#endregion
11400
- //#region components/ui/table.d.ts
11401
11177
  declare function Table({ className, ...props }: React$1.ComponentProps<'table'>): React$1.JSX.Element;
11402
11178
  declare function TableHeader({ className, ...props }: React$1.ComponentProps<'thead'>): React$1.JSX.Element;
11403
11179
  declare function TableBody({ className, ...props }: React$1.ComponentProps<'tbody'>): React$1.JSX.Element;
11404
11180
  declare function TableRow({ className, ...props }: React$1.ComponentProps<'tr'>): React$1.JSX.Element;
11405
11181
  declare function TableHead({ className, ...props }: React$1.ComponentProps<'th'>): React$1.JSX.Element;
11406
11182
  declare function TableCell({ className, ...props }: React$1.ComponentProps<'td'>): React$1.JSX.Element;
11407
- //#endregion
11408
- //#region components/ui/tabs.d.ts
11409
11183
  declare function Tabs({ className, ...props }: React$1.ComponentProps<typeof TabsRoot>): React$1.JSX.Element;
11410
11184
  declare function TabsList({ className, ...props }: React$1.ComponentProps<typeof TabsList$1>): React$1.JSX.Element;
11411
11185
  declare function TabsTrigger({ className, ...props }: React$1.ComponentProps<typeof TabsTab>): React$1.JSX.Element;
11412
11186
  declare function TabsContent({ className, ...props }: React$1.ComponentProps<typeof TabsPanel>): React$1.JSX.Element;
11413
- //#endregion
11414
- //#region components/ui/textarea.d.ts
11415
11187
  declare function Textarea({ className, ...props }: React$1.ComponentProps<'textarea'>): React$1.JSX.Element;
11416
- //#endregion
11417
- //#region components/ui/toggle.d.ts
11418
11188
  declare const toggleVariants: (props?: ({
11419
11189
  variant?: "default" | "outline" | null | undefined;
11420
11190
  size?: "default" | "sm" | "lg" | null | undefined;
11421
11191
  } & ClassProp) | undefined) => string;
11422
11192
  declare function Toggle({ className, variant, size, ...props }: React$1.ComponentProps<typeof Toggle$1> & VariantProps<typeof toggleVariants>): React$1.JSX.Element;
11423
- //#endregion
11424
- //#region components/ui/toggle-group.d.ts
11425
11193
  declare function ToggleGroup({ className, variant, size, children, ...props }: React$1.ComponentProps<typeof ToggleGroup$1> & VariantProps<typeof toggleVariants>): React$1.JSX.Element;
11426
11194
  declare function ToggleGroupItem({ className, children, variant, size, ...props }: React$1.ComponentProps<typeof Toggle$1> & VariantProps<typeof toggleVariants>): React$1.JSX.Element;
11427
- //#endregion
11428
- //#region components/ui/tooltip.d.ts
11429
11195
  declare function TooltipProvider({ delay, ...props }: React$1.ComponentProps<typeof TooltipProvider$1>): React$1.JSX.Element;
11430
11196
  declare function Tooltip({ ...props }: React$1.ComponentProps<typeof TooltipRoot>): React$1.JSX.Element;
11431
11197
  /** Renders a <button>, so the tooltip is reachable by keyboard; compose onto
@@ -11439,8 +11205,6 @@ declare function TooltipContent({ className, side, align, sideOffset, hidden, ch
11439
11205
  declare namespace components_d_exports {
11440
11206
  export { Badge, Button, Checkbox, CollapsibleGroup, Combobox, ComboboxCollection, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxGroupLabel, ComboboxInput, ComboboxItem, ComboboxList, ComboboxStatus, ComboboxTrigger, ConfirmDialog, ContextMenu, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuSeparator, ContextMenuTrigger, CountBadge, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Field, Icon, IconProps, IconSize, IconVariant, Input, LoadingState, Placeholder, Popover, PopoverContent, PopoverTrigger, SearchInput, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectTrigger, SelectValue, Separator, Sheet, SheetContent, SheetDescription, SheetHeader, SheetTitle, Skeleton, Slider, Spinner, Table, TableBody, TableCell, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger };
11441
11207
  }
11442
- //#endregion
11443
- //#region api/neos/schema/openapi.d.ts
11444
11208
  interface components {
11445
11209
  schemas: {
11446
11210
  /**
@@ -13402,8 +13166,6 @@ interface components {
13402
13166
  headers: never;
13403
13167
  pathItems: never;
13404
13168
  }
13405
- //#endregion
13406
- //#region api/neos/schema/dimensionSpacePoint.d.ts
13407
13169
  /**
13408
13170
  * Dimension space points as Neos.Api reads and writes them: JSON strings with
13409
13171
  * a value for each dimension, e.g. {"language":"de"} ({} without dimensions).
@@ -13415,8 +13177,6 @@ type DimensionCoordinates = Record<string, string>;
13415
13177
  declare function parseDimensionSpacePoint(dimensionSpacePoint: string): DimensionCoordinates;
13416
13178
  /** Whether two dimension space points are the same point, whatever their key order. */
13417
13179
  declare function sameDimensionSpacePoint(a: string, b: string): boolean;
13418
- //#endregion
13419
- //#region api/neos/schema/nodeAddress.d.ts
13420
13180
  /**
13421
13181
  * Helpers for NodeAddress, the four fields that identify a node. Another
13422
13182
  * address of the same node is a spread away, e.g. the node in another
@@ -13439,9 +13199,7 @@ declare function nodeAddressFromKey(key: string): NodeAddress;
13439
13199
  */
13440
13200
  declare function nodeAddressFromContextPath(contextPath: string): NodeAddress;
13441
13201
  /** Whether the node is deleted (soft removed: tagged "removed", itself or by an ancestor). */
13442
- declare function isRemoved(node: Pick<Node, 'tags' | 'inheritedTags'>): boolean;
13443
- //#endregion
13444
- //#region api/neos/schema/nodeTypeConfiguration.d.ts
13202
+ declare function isRemoved(node: Pick<Node$1, 'tags' | 'inheritedTags'>): boolean;
13445
13203
  /**
13446
13204
  * The parts of a node type's configuration (NodeType.configuration, the
13447
13205
  * merged YAML with its super types) the shell reads. Neos.Api passes the
@@ -13572,8 +13330,6 @@ interface NodeTypeConfiguration {
13572
13330
  }
13573
13331
  /** The configuration of a node type read with it (getNodeType), {} without. */
13574
13332
  declare function nodeTypeConfiguration(nodeType: Pick<NodeType, 'configuration'>): NodeTypeConfiguration;
13575
- //#endregion
13576
- //#region api/neos/schema/index.d.ts
13577
13333
  /**
13578
13334
  * The models of Neos.Api, by the names its OpenAPI document gives them.
13579
13335
  * openapi.ts is generated from that document (`npm run api:schema`) and never
@@ -13584,7 +13340,7 @@ type Schemas$1 = components['schemas'];
13584
13340
  type ContentRepository = Schemas$1['ContentRepository'];
13585
13341
  type ContentDimension = Schemas$1['ContentDimension'];
13586
13342
  type ContentDimensionValue = Schemas$1['ContentDimensionValue'];
13587
- type Node = Schemas$1['Node'];
13343
+ type Node$1 = Schemas$1['Node'];
13588
13344
  type NodeClassification = Schemas$1['NodeClassification'];
13589
13345
  type NodeCreate = Schemas$1['NodeCreate'];
13590
13346
  type NodeCopy = Schemas$1['NodeCopy'];
@@ -13673,15 +13429,13 @@ type ProblemDocument = Schemas$1['ProblemDocument'];
13673
13429
  * reads and writes it). Every Node is a NodeAddress, so a node read from the
13674
13430
  * API can be passed wherever one is asked for.
13675
13431
  */
13676
- type NodeAddress = Pick<Node, 'contentRepositoryId' | 'workspaceName' | 'dimensionSpacePoint' | 'nodeAggregateId'>;
13432
+ type NodeAddress = Pick<Node$1, 'contentRepositoryId' | 'workspaceName' | 'dimensionSpacePoint' | 'nodeAggregateId'>;
13677
13433
  /**
13678
13434
  * One reference of a node, as Node.references lists them by name
13679
13435
  * (include=references, or include=references.node for `node`: the referenced
13680
13436
  * node as getNode returns it without include, null if not readable).
13681
13437
  */
13682
- type NodeReference = NonNullable<Node['references']>[string][number];
13683
- //#endregion
13684
- //#region app/events.d.ts
13438
+ type NodeReference = NonNullable<Node$1['references']>[string][number];
13685
13439
  /**
13686
13440
  * Studio's event bus: what happened in the shell, for code that wants to
13687
13441
  * react to it - plugins first of all (a panel refreshing its own data after a
@@ -13772,11 +13526,11 @@ interface StudioEventMap {
13772
13526
  * followed into another workspace or dimension. null: none (any more).
13773
13527
  */
13774
13528
  'document.selected': {
13775
- node: Node | null;
13529
+ node: Node$1 | null;
13776
13530
  };
13777
13531
  /** The inspected node changed (as document.selected; a document or content). */
13778
13532
  'node.inspected': {
13779
- node: Node | null;
13533
+ node: Node$1 | null;
13780
13534
  };
13781
13535
  /**
13782
13536
  * Collaborators changed the shared workspace being edited, as the change
@@ -13804,9 +13558,7 @@ interface StudioEvents {
13804
13558
  * subscription stays put while the handler always sees the latest render's
13805
13559
  * closures (as useKeyboardShortcut does) - an inline arrow function is fine.
13806
13560
  */
13807
- declare function useStudioEvent<Name extends StudioEventName>(name: Name, handler: StudioEventHandler<Name>): void;
13808
- //#endregion
13809
- //#region plugin-api/data.d.ts
13561
+ export declare function useStudioEvent<Name extends StudioEventName>(name: Name, handler: StudioEventHandler<Name>): void;
13810
13562
  /**
13811
13563
  * The shell's cache refreshes, for a plugin's own writes (apiFetch) to
13812
13564
  * Neos content: each marks stale what the write can have changed of the
@@ -13851,9 +13603,7 @@ interface StudioInvalidation {
13851
13603
  */
13852
13604
  afterWorkspacesChanged: () => Promise<void>;
13853
13605
  }
13854
- declare const invalidate: StudioInvalidation;
13855
- //#endregion
13856
- //#region plugin-api/version.d.ts
13606
+ export declare const invalidate: StudioInvalidation;
13857
13607
  /**
13858
13608
  * The API version a plugin can read to feature-detect. Bump on a
13859
13609
  * breaking change to any exported type or registry contract; plugins that
@@ -13866,21 +13616,17 @@ declare const invalidate: StudioInvalidation;
13866
13616
  * text part of the API in the preview frame, carries the same number without
13867
13617
  * pulling in the shell's React surface.
13868
13618
  */
13869
- declare const version: 2;
13870
- //#endregion
13871
- //#region api/http/errors.d.ts
13619
+ export declare const version: 2;
13872
13620
  /**
13873
13621
  * Errors of both APIs the shell talks to (Neos.Api and the Studio API): a
13874
13622
  * failed request rejects with an ApiError carrying the status and the parsed
13875
13623
  * body, an RFC 9457 problem document from either.
13876
13624
  */
13877
- declare class ApiError extends Error {
13625
+ export declare class ApiError extends Error {
13878
13626
  readonly status: number;
13879
13627
  readonly body: unknown;
13880
13628
  constructor(status: number, body: unknown);
13881
13629
  }
13882
- //#endregion
13883
- //#region api/http/request.d.ts
13884
13630
  interface FetchInit {
13885
13631
  method?: string;
13886
13632
  body?: unknown;
@@ -13898,23 +13644,19 @@ interface StreamEvent {
13898
13644
  interface StreamInit extends FetchInit {
13899
13645
  onEvent: (event: StreamEvent) => void;
13900
13646
  }
13901
- //#endregion
13902
- //#region api/neos/client.d.ts
13903
13647
  /**
13904
13648
  * An untyped request against the Neos API, for paths the generated schema
13905
13649
  * does not know - the plugin API hands it to plugins for their own
13906
13650
  * operations. The shell's own code uses {@link api}.
13907
13651
  */
13908
- declare function apiFetch<T>(path: string, init?: FetchInit): Promise<T>;
13652
+ export declare function apiFetch<T>(path: string, init?: FetchInit): Promise<T>;
13909
13653
  /**
13910
13654
  * A request to a Neos API operation that answers with Server-Sent Events
13911
13655
  * (see http/request.ts stream()), e.g. a plugin's long-running job reporting
13912
13656
  * progress - the plugin API hands it to plugins. Same auth and base URL as
13913
13657
  * {@link apiFetch}.
13914
13658
  */
13915
- declare function apiStream(path: string, init: StreamInit): Promise<void>;
13916
- //#endregion
13917
- //#region features/preview/PreviewPane.d.ts
13659
+ export declare function apiStream(path: string, init: StreamInit): Promise<void>;
13918
13660
  /**
13919
13661
  * A request to refresh nodes' rendered elements in place (see
13920
13662
  * PreviewPane's elementUpdate). Bump `token` for every new batch.
@@ -13931,8 +13673,6 @@ type PreviewElementUpdate = {
13931
13673
  */
13932
13674
  remote?: boolean;
13933
13675
  };
13934
- //#endregion
13935
- //#region lib/observableRegistry.d.ts
13936
13676
  /**
13937
13677
  * The shared base of Studio's extension registries (panels, settings
13938
13678
  * sections, shortcuts, property editors, inspector views, validators, link
@@ -14029,8 +13769,6 @@ declare class ObservableRegistry<Def extends RegistryEntry> implements Observabl
14029
13769
  */
14030
13770
  protected onSnapshot(_snapshot: readonly Def[]): void;
14031
13771
  }
14032
- //#endregion
14033
- //#region features/actions/registry.d.ts
14034
13772
  /**
14035
13773
  * The action registries: commands a plugin adds to Studio's own menus and
14036
13774
  * bars, as data - an id, a label, an icon and a function to run. The shell
@@ -14066,7 +13804,7 @@ interface NodeActionContext {
14066
13804
  * just the node. A node whose ancestor is selected too is left out (the
14067
13805
  * ancestor's subtree covers it), as for the built-in bulk actions.
14068
13806
  */
14069
- selection: Node[];
13807
+ selection: Node$1[];
14070
13808
  /**
14071
13809
  * The shell's actions - e.g. `studio.nodeEdited(node)` after changing a
14072
13810
  * node, so trees, inspector and preview refresh (a Node is a NodeAddress).
@@ -14093,25 +13831,33 @@ interface NodeActionDefinition {
14093
13831
  group?: string;
14094
13832
  /** Rendered in the destructive style (red) - for actions that remove or overwrite. */
14095
13833
  destructive?: boolean;
13834
+ /**
13835
+ * Also show the action as an icon button on the handle of a content
13836
+ * element in the preview, left of the "+" (needs an `icon`). It stays in
13837
+ * the element's "..." menu too, which is all that offers it when more than
13838
+ * MAX_HANDLE_ACTIONS handle actions are offered for the element. `when` is
13839
+ * asked with `surface: 'preview'`, as for the menu.
13840
+ */
13841
+ handle?: boolean;
14096
13842
  /**
14097
13843
  * Whether to offer the action for this node. Called while the menu
14098
13844
  * renders, so it must be cheap and synchronous (derive from the node:
14099
13845
  * nodeType, tags, properties). Absent: always offered. A `when` that
14100
13846
  * throws hides the action and logs the error.
14101
13847
  */
14102
- when?: (node: Node, context: NodeActionContext) => boolean;
13848
+ when?: (node: Node$1, context: NodeActionContext) => boolean;
14103
13849
  /**
14104
13850
  * Run the action. A rejected promise or a throw is shown as an error
14105
13851
  * toast (with the message) and logged with the action id; while a
14106
13852
  * returned promise is pending the action shows as busy and cannot be run
14107
13853
  * again for the same node.
14108
13854
  */
14109
- run: (node: Node, context: NodeActionContext) => void | Promise<void>;
13855
+ run: (node: Node$1, context: NodeActionContext) => void | Promise<void>;
14110
13856
  }
14111
13857
  /** What a header action gets to look at. */
14112
13858
  interface HeaderActionContext {
14113
13859
  /** The selected document, or null while none is. */
14114
- document: Node | null;
13860
+ document: Node$1 | null;
14115
13861
  /** The active workspace's name, or null while workspaces load. */
14116
13862
  workspaceName: string | null;
14117
13863
  /** The shell's actions, as for node actions. */
@@ -14146,8 +13892,6 @@ declare class NodeActionRegistry extends ObservableRegistry<NodeActionDefinition
14146
13892
  declare class HeaderActionRegistry extends ObservableRegistry<HeaderActionDefinition> {
14147
13893
  constructor();
14148
13894
  }
14149
- //#endregion
14150
- //#region features/tree/useNodeEditRefresh.d.ts
14151
13895
  /**
14152
13896
  * An edit that happened elsewhere (preview, inspector, context menu); token
14153
13897
  * distinguishes repeats. Usually one address; structural edits (a move)
@@ -14174,8 +13918,6 @@ interface NodeEdit {
14174
13918
  * (publish rebases it, discard resets it) - every tree item is suspect.
14175
13919
  */
14176
13920
  declare const ALL_NODES = "*";
14177
- //#endregion
14178
- //#region app/StudioContext.d.ts
14179
13921
  /**
14180
13922
  * App state and actions exposed to panels. Panels (built-in and third-party
14181
13923
  * alike) render without props and read everything from this context, so a
@@ -14205,9 +13947,9 @@ type StudioState = {
14205
13947
  */
14206
13948
  dimensionSpacePoint: string | null;
14207
13949
  /** The document shown in the preview and selected in the document tree. */
14208
- selectedDocument: Node | null;
13950
+ selectedDocument: Node$1 | null;
14209
13951
  /** The node under inspection - a document or a content node. */
14210
- inspectedNode: Node | null;
13952
+ inspectedNode: Node$1 | null;
14211
13953
  /** The last inline edit from the preview; refreshes outliner labels. */
14212
13954
  lastEdit: NodeEdit | null;
14213
13955
  /** Bumped to reload the preview iframe after edits made outside of it. */
@@ -14224,9 +13966,9 @@ type StudioState = {
14224
13966
  /** The actions - stable functions, safe as effect dependencies. */
14225
13967
  type StudioActions = {
14226
13968
  /** Select a document (also inspects it). */
14227
- selectDocument: (node: Node) => void;
13969
+ selectDocument: (node: Node$1) => void;
14228
13970
  /** Inspect a node without changing the selected document. */
14229
- inspectNode: (node: Node) => void;
13971
+ inspectNode: (node: Node$1) => void;
14230
13972
  /** Fetch and inspect the node at this address (e.g. a preview click). */
14231
13973
  inspectAddress: (address: NodeAddress) => void;
14232
13974
  /**
@@ -14281,18 +14023,38 @@ type StudioActions = {
14281
14023
  */
14282
14024
  workspaceContentChanged: () => void;
14283
14025
  };
14284
- declare function useStudio(): StudioContextValue;
14026
+ export declare function useStudio(): StudioContextValue;
14285
14027
  /** Just the actions: never re-renders the consumer (they are stable). */
14286
- declare function useStudioActions(): StudioActions;
14287
- //#endregion
14288
- //#region features/collaboration/presenceColors.d.ts
14028
+ export declare function useStudioActions(): StudioActions;
14029
+ /** What a component opened with `dialogs.open()` gets besides its own props. */
14030
+ interface DialogControls<Result = unknown> {
14031
+ /**
14032
+ * Close the dialog. `result` resolves the opener's `result` promise;
14033
+ * without one (and on Escape, an outside click or the close button) it
14034
+ * resolves with undefined.
14035
+ */
14036
+ close: (result?: Result) => void;
14037
+ }
14038
+ /** What `dialogs.open()` returns to the opener. */
14039
+ interface DialogHandle<Result = unknown> extends DialogControls<Result> {
14040
+ /**
14041
+ * Settles once the dialog closes: with the value it closed with, or
14042
+ * undefined when it was dismissed. Never rejects.
14043
+ */
14044
+ result: Promise<Result | undefined>;
14045
+ }
14046
+ type DialogComponent = React$1.ComponentType<any>;
14047
+ /** The props `open` takes for a component: its own, without `close`. */
14048
+ type DialogPropsOf<C extends DialogComponent> = Omit<React$1.ComponentProps<C>, 'close'>;
14049
+ /** The value a component's `close` takes. */
14050
+ type DialogResultOf<C extends DialogComponent> = React$1.ComponentProps<C> extends {
14051
+ close: (result?: infer Result) => void;
14052
+ } ? Result : unknown;
14289
14053
  /** Deterministic palette pick per user id - the same user gets the same
14290
14054
  * color on every client without any coordination. */
14291
- declare function presenceColor(userId: string): string;
14055
+ export declare function presenceColor(userId: string): string;
14292
14056
  /** "Jane Doe" -> "JD"; single names give one letter, empty names "?". */
14293
- declare function presenceInitials(name: string): string;
14294
- //#endregion
14295
- //#region features/panels/geometry.d.ts
14057
+ export declare function presenceInitials(name: string): string;
14296
14058
  /**
14297
14059
  * Shared geometry for floating panel groups: viewport clamping and
14298
14060
  * edge/corner resizing.
@@ -14308,16 +14070,12 @@ type PanelRect = {
14308
14070
  width: number;
14309
14071
  height: number;
14310
14072
  };
14311
- //#endregion
14312
- //#region features/panels/panelLayout.d.ts
14313
14073
  /**
14314
14074
  * The docked homes a group can occupy: the left `sidebar`, the big center
14315
14075
  * `main` area, and the optional right `secondary` sidebar. Each is an
14316
14076
  * independent vertical stack of groups.
14317
14077
  */
14318
14078
  type DockRegion = 'sidebar' | 'main' | 'secondary';
14319
- //#endregion
14320
- //#region features/panels/registry.d.ts
14321
14079
  /**
14322
14080
  * The panel registry: every panel - built-in or third-party - registers here
14323
14081
  * and the panel system renders whatever is registered. Panels register at any
@@ -14360,15 +14118,40 @@ type PanelDefinition = {
14360
14118
  component: React$1.ComponentType;
14361
14119
  /** Where the panel appears when absent from the stored layout. */
14362
14120
  defaultPlacement: PanelPlacement;
14121
+ /**
14122
+ * A count on the panel's tab, to draw attention to what the panel has to
14123
+ * say: findings, unread messages, open tasks. Asked whenever the tab
14124
+ * renders - keep it cheap and synchronous - and again after
14125
+ * {@link PanelRegistry.refresh}. Null, or a count of 0, for none.
14126
+ */
14127
+ badge?: () => PanelBadge | null;
14363
14128
  };
14129
+ /** A count bubble on a panel's tab. */
14130
+ interface PanelBadge {
14131
+ count: number;
14132
+ /** alert (red, the default), warning (orange) or neutral. */
14133
+ tone?: 'alert' | 'warning' | 'neutral';
14134
+ /** Tooltip and accessible description, e.g. "3 warnings". */
14135
+ label?: string;
14136
+ }
14364
14137
  /**
14365
14138
  * Panels in registration order. The observable store itself (register-
14366
14139
  * replaces-by-id, stable getAll() snapshot, bound subscribe) lives in
14367
14140
  * {@link ObservableRegistry}.
14368
14141
  */
14369
- declare class PanelRegistry extends ObservableRegistry<PanelDefinition> {}
14370
- //#endregion
14371
- //#region features/inspector/editors/registry.d.ts
14142
+ declare class PanelRegistry extends ObservableRegistry<PanelDefinition> {
14143
+ private badgeListeners;
14144
+ private badgeVersion;
14145
+ /**
14146
+ * Ask every panel for its badge again: a panel's own data changed. Only the
14147
+ * tabs re-render - the layout is left alone.
14148
+ */
14149
+ refresh(): void;
14150
+ /** @internal Subscribes a tab to {@link refresh}. */
14151
+ subscribeBadges: (listener: () => void) => (() => void);
14152
+ /** @internal Changes with every {@link refresh}. */
14153
+ badgesVersion: () => number;
14154
+ }
14372
14155
  /**
14373
14156
  * The node property editor registry: every editor - built-in or third-party -
14374
14157
  * registers here under the editor identifier that node type configuration
@@ -14486,8 +14269,6 @@ declare class PropertyEditorRegistry implements ObservableStore<PropertyEditorDe
14486
14269
  /** The full definition for an editor id (component + metadata), or undefined. */
14487
14270
  getDefinition(id: string | null | undefined): PropertyEditorDefinition | undefined;
14488
14271
  }
14489
- //#endregion
14490
- //#region features/inspector/views/registry.d.ts
14491
14272
  /**
14492
14273
  * The inspector view registry: read-only widgets that node type configuration
14493
14274
  * places between inspector properties (ui.inspector.views), registered under
@@ -14499,7 +14280,7 @@ declare class PropertyEditorRegistry implements ObservableStore<PropertyEditorDe
14499
14280
  */
14500
14281
  interface InspectorViewProps {
14501
14282
  /** The node being inspected. */
14502
- node: Node;
14283
+ node: Node$1;
14503
14284
  /** Resolved, human-readable label of the view. */
14504
14285
  label: string;
14505
14286
  /** The view's configuration - ui.inspector.views.*.viewOptions. */
@@ -14513,8 +14294,6 @@ interface InspectorViewDefinition {
14513
14294
  }
14514
14295
  /** Views in registration order; look one up with getDefinition(id) (or get(id)). */
14515
14296
  declare class InspectorViewRegistry extends ObservableRegistry<InspectorViewDefinition> {}
14516
- //#endregion
14517
- //#region features/inspector/validators/registry.d.ts
14518
14297
  /**
14519
14298
  * The property validator registry: every validator - built-in or third-party -
14520
14299
  * registers here under the validator identifier that node type configuration
@@ -14553,8 +14332,6 @@ interface ValidatorDefinition {
14553
14332
  * validating, see validateValue().
14554
14333
  */
14555
14334
  declare class ValidatorRegistry extends ObservableRegistry<ValidatorDefinition> {}
14556
- //#endregion
14557
- //#region features/links/registry.d.ts
14558
14335
  /**
14559
14336
  * The link type registry: each entry contributes one tab to the Link Editor
14560
14337
  * dialog (see LinkEditorDialog.tsx) - a way of producing an href. The built-in
@@ -14614,8 +14391,6 @@ declare class LinkEditorRegistry extends ObservableRegistry<LinkTypeDefinition>
14614
14391
  */
14615
14392
  match(href: string): LinkTypeDefinition | undefined;
14616
14393
  }
14617
- //#endregion
14618
- //#region features/modals/registry.d.ts
14619
14394
  /**
14620
14395
  * The settings-dialog registry: Studio replaces the classic Neos backend
14621
14396
  * modules with large, near-screen-filling modal dialogs.
@@ -14685,8 +14460,6 @@ interface SettingsDialogDefinition extends RegistryDefinition {
14685
14460
  /** Tooltip shown on the disabled subnav entry, e.g. "Administrators only". */
14686
14461
  disabledReason?: string;
14687
14462
  }
14688
- //#endregion
14689
- //#region features/shortcuts/registry.d.ts
14690
14463
  /**
14691
14464
  * The keyboard-shortcut registry: every shortcut - built-in or third-party -
14692
14465
  * registers here, and one window-level dispatcher (see ShortcutHost) routes
@@ -14787,7 +14560,7 @@ interface KeyboardShortcutDefinition {
14787
14560
  type ResolvedKeyboardShortcut = KeyboardShortcutDefinition & {
14788
14561
  combo: string | string[];
14789
14562
  };
14790
- declare const isMacPlatform: boolean;
14563
+ export declare const isMacPlatform: boolean;
14791
14564
  /**
14792
14565
  * The observable store (stable getAll() snapshot in registration order, bound
14793
14566
  * subscribe, idempotent unregister) comes from {@link ObservableRegistry};
@@ -14817,8 +14590,6 @@ declare class KeyboardShortcutRegistry extends ObservableRegistry<ResolvedKeyboa
14817
14590
  /** Rebuild the dispatch indexes from the fresh snapshot, before subscribers hear of it. */
14818
14591
  protected onSnapshot(snapshot: readonly ResolvedKeyboardShortcut[]): void;
14819
14592
  }
14820
- //#endregion
14821
- //#region features/shortcuts/useKeyboardShortcut.d.ts
14822
14593
  /**
14823
14594
  * Register a keyboard shortcut for the lifetime of the calling component.
14824
14595
  * This is how components tie a shortcut to state they own (the publish
@@ -14826,12 +14597,8 @@ declare class KeyboardShortcutRegistry extends ObservableRegistry<ResolvedKeyboa
14826
14597
  * while handler and guard always see the latest render's closures, and
14827
14598
  * unmounting unregisters - a shortcut only exists while its action does.
14828
14599
  */
14829
- declare function useKeyboardShortcut(definition: KeyboardShortcutDefinition): void;
14830
- //#endregion
14831
- //#region api/neos/endpoints/nodeTypes.d.ts
14600
+ export declare function useKeyboardShortcut(definition: KeyboardShortcutDefinition): void;
14832
14601
  type NodeTypeMap = Map<string, NodeType>;
14833
- //#endregion
14834
- //#region features/tree/decorators.d.ts
14835
14602
  /**
14836
14603
  * The node-decorator registry: how tree rows (document tree, content
14837
14604
  * outliner, search results, document pickers) get their type icon and their
@@ -14894,7 +14661,7 @@ interface NodeDecoratorDefinition {
14894
14661
  * Called during render for every visible row - must be cheap and pure
14895
14662
  * (derive from the node object: tags, properties, nodeType).
14896
14663
  */
14897
- decorate: (node: Node, context: NodeDecorationContext) => NodeDecoration | null;
14664
+ decorate: (node: Node$1, context: NodeDecorationContext) => NodeDecoration | null;
14898
14665
  }
14899
14666
  /**
14900
14667
  * Decorators sorted by `order` then registration order - the getAll()
@@ -14911,8 +14678,49 @@ declare class NodeDecoratorRegistry extends ObservableRegistry<NodeDecoratorDefi
14911
14678
  */
14912
14679
  refresh(): void;
14913
14680
  }
14914
- //#endregion
14915
- //#region orderedmap/dist/index.d.ts
14681
+ /**
14682
+ * The property-hint registry: notes a plugin shows under a property's field in
14683
+ * the inspector - a finding of a content check, a reminder from an editorial
14684
+ * workflow, a value that is about to expire. A hint informs and nothing more:
14685
+ * unlike a validator it neither marks the field invalid nor holds up saving,
14686
+ * and it needs no node type configuration - it is asked about every property
14687
+ * of every node.
14688
+ *
14689
+ * Built on the shared observable store (see lib/registry.ts), like the node
14690
+ * decorators: register-replaces-by-id, a stable snapshot, and refresh() for
14691
+ * providers whose own data changed.
14692
+ */
14693
+ type PropertyHintTone = 'info' | 'warning' | 'error';
14694
+ /** One note under a field. */
14695
+ interface PropertyHint {
14696
+ /** The color and icon: info (neutral), warning (orange), error (red). Not a validation error either way. */
14697
+ tone: PropertyHintTone;
14698
+ /** What to say, one sentence or two. */
14699
+ message: string;
14700
+ /** Who says it, shown before the message when given, e.g. "Content audit". */
14701
+ source?: string;
14702
+ }
14703
+ interface PropertyHintDefinition {
14704
+ /** Unique id. Third-party entries should namespace ('vendor.package:findings'). */
14705
+ id: string;
14706
+ /** Sort weight; lower first. Defaults to 100. */
14707
+ order?: number;
14708
+ /**
14709
+ * The hints for one property of a node, or null for none. Called while the
14710
+ * inspector renders, for every property it shows - must be cheap and
14711
+ * synchronous: answer from data at hand, fetch elsewhere and refresh().
14712
+ */
14713
+ hints: (node: Node$1, propertyName: string) => PropertyHint[] | null;
14714
+ }
14715
+ declare class PropertyHintRegistry extends ObservableRegistry<PropertyHintDefinition> {
14716
+ constructor();
14717
+ /**
14718
+ * Re-emit without a registration change: a provider's own data changed (a
14719
+ * check finished, an edit made a finding go), so its hints did. The
14720
+ * inspector renders them anew.
14721
+ */
14722
+ refresh(): void;
14723
+ }
14916
14724
  declare class OrderedMap<T = any> {
14917
14725
  private constructor(content: Array<string | T>);
14918
14726
  get(key: string): T | undefined;
@@ -14930,8 +14738,6 @@ declare class OrderedMap<T = any> {
14930
14738
  static from<T>(map: MapLike<T>): OrderedMap<T>;
14931
14739
  }
14932
14740
  type MapLike<T = any> = Record<string, T> | OrderedMap<T>;
14933
- //#endregion
14934
- //#region prosemirror-model/dist/index.d.ts
14935
14741
  /**
14936
14742
  A mark is a piece of information that can be attached to a node,
14937
14743
  such as it being emphasized, in code font, or a link. It has a
@@ -15024,7 +14830,7 @@ declare class DOMSerializer {
15024
14830
  The node serialization functions.
15025
14831
  */
15026
14832
  readonly nodes: {
15027
- [node: string]: (node: Node$2) => DOMOutputSpec;
14833
+ [node: string]: (node: Node$3) => DOMOutputSpec;
15028
14834
  };
15029
14835
  /**
15030
14836
  The mark serialization functions.
@@ -15046,7 +14852,7 @@ declare class DOMSerializer {
15046
14852
  The node serialization functions.
15047
14853
  */
15048
14854
  nodes: {
15049
- [node: string]: (node: Node$2) => DOMOutputSpec;
14855
+ [node: string]: (node: Node$3) => DOMOutputSpec;
15050
14856
  },
15051
14857
  /**
15052
14858
  The mark serialization functions.
@@ -15070,7 +14876,7 @@ declare class DOMSerializer {
15070
14876
  [`serializeFragment`](https://prosemirror.net/docs/ref/#model.DOMSerializer.serializeFragment) on
15071
14877
  its [content](https://prosemirror.net/docs/ref/#model.Node.content).
15072
14878
  */
15073
- serializeNode(node: Node$2, options?: {
14879
+ serializeNode(node: Node$3, options?: {
15074
14880
  document?: Document;
15075
14881
  }): HTMLElement | Text;
15076
14882
  /**
@@ -15092,7 +14898,7 @@ declare class DOMSerializer {
15092
14898
  This can be useful as a base to build a custom serializer from.
15093
14899
  */
15094
14900
  static nodesFromSchema(schema: Schema): {
15095
- [node: string]: (node: Node$2) => DOMOutputSpec;
14901
+ [node: string]: (node: Node$3) => DOMOutputSpec;
15096
14902
  };
15097
14903
  /**
15098
14904
  Gather the serializers in a schema's mark specs into an object.
@@ -15131,16 +14937,16 @@ declare class ResolvedPos {
15131
14937
  a position points into a text node, that node is not considered
15132
14938
  the parent—text nodes are ‘flat’ in this model, and have no content.
15133
14939
  */
15134
- get parent(): Node$2;
14940
+ get parent(): Node$3;
15135
14941
  /**
15136
14942
  The root node in which the position was resolved.
15137
14943
  */
15138
- get doc(): Node$2;
14944
+ get doc(): Node$3;
15139
14945
  /**
15140
14946
  The ancestor node at the given level. `p.node(p.depth)` is the
15141
14947
  same as `p.parent`.
15142
14948
  */
15143
- node(depth?: number | null): Node$2;
14949
+ node(depth?: number | null): Node$3;
15144
14950
  /**
15145
14951
  The index into the ancestor at the given level. If this points
15146
14952
  at the 3rd node in the 2nd paragraph on the top level, for
@@ -15184,13 +14990,13 @@ declare class ResolvedPos {
15184
14990
  points into a text node, only the part of that node after the
15185
14991
  position is returned.
15186
14992
  */
15187
- get nodeAfter(): Node$2 | null;
14993
+ get nodeAfter(): Node$3 | null;
15188
14994
  /**
15189
14995
  Get the node directly before the position, if any. If the
15190
14996
  position points into a text node, only the part of that node
15191
14997
  before the position is returned.
15192
14998
  */
15193
- get nodeBefore(): Node$2 | null;
14999
+ get nodeBefore(): Node$3 | null;
15194
15000
  /**
15195
15001
  Get the position at the given index in the parent node at the
15196
15002
  given depth (which defaults to `this.depth`).
@@ -15226,7 +15032,7 @@ declare class ResolvedPos {
15226
15032
  pass in an optional predicate that will be called with a parent
15227
15033
  node to see if a range into that parent is acceptable.
15228
15034
  */
15229
- blockRange(other?: ResolvedPos, pred?: (node: Node$2) => boolean): NodeRange | null;
15035
+ blockRange(other?: ResolvedPos, pred?: (node: Node$3) => boolean): NodeRange | null;
15230
15036
  /**
15231
15037
  Query whether the given position shares the same parent node.
15232
15038
  */
@@ -15294,7 +15100,7 @@ declare class NodeRange {
15294
15100
  /**
15295
15101
  The parent node that the range points into.
15296
15102
  */
15297
- get parent(): Node$2;
15103
+ get parent(): Node$3;
15298
15104
  /**
15299
15105
  The start index of the range in the parent node.
15300
15106
  */
@@ -15413,7 +15219,7 @@ interface ParseOptions {
15413
15219
  option to use the type and attributes from a different node
15414
15220
  as the top container.
15415
15221
  */
15416
- topNode?: Node$2;
15222
+ topNode?: Node$3;
15417
15223
  /**
15418
15224
  Provide the starting content match that content parsed into the
15419
15225
  top node is matched against.
@@ -15606,7 +15412,7 @@ declare class DOMParser {
15606
15412
  /**
15607
15413
  Parse a document from the content of a DOM node.
15608
15414
  */
15609
- parse(dom: DOMNode$1, options?: ParseOptions): Node$2;
15415
+ parse(dom: DOMNode$1, options?: ParseOptions): Node$3;
15610
15416
  /**
15611
15417
  Parses the content of the given DOM node, like
15612
15418
  [`parse`](https://prosemirror.net/docs/ref/#model.DOMParser.parse), and takes the same set of
@@ -15635,7 +15441,7 @@ Node types are objects allocated once per `Schema` and used to
15635
15441
  about the node type, such as its name and what kind of node it
15636
15442
  represents.
15637
15443
  */
15638
- declare class NodeType$2 {
15444
+ declare class NodeType$1 {
15639
15445
  /**
15640
15446
  The name the node type has in this schema.
15641
15447
  */
@@ -15704,7 +15510,7 @@ declare class NodeType$2 {
15704
15510
  Indicates whether this node allows some of the same content as
15705
15511
  the given node type.
15706
15512
  */
15707
- compatibleContent(other: NodeType$2): boolean;
15513
+ compatibleContent(other: NodeType$1): boolean;
15708
15514
  /**
15709
15515
  Create a `Node` of this type. The given attributes are
15710
15516
  checked and defaulted (you can pass `null` to use the type's
@@ -15713,13 +15519,13 @@ declare class NodeType$2 {
15713
15519
  `null`. Similarly `marks` may be `null` to default to the empty
15714
15520
  set of marks.
15715
15521
  */
15716
- create(attrs?: Attrs | null, content?: Fragment | Node$2 | readonly Node$2[] | null, marks?: readonly Mark$1[]): Node$2;
15522
+ create(attrs?: Attrs | null, content?: Fragment | Node$3 | readonly Node$3[] | null, marks?: readonly Mark$1[]): Node$3;
15717
15523
  /**
15718
15524
  Like [`create`](https://prosemirror.net/docs/ref/#model.NodeType.create), but check the given content
15719
15525
  against the node type's content restrictions, and throw an error
15720
15526
  if it doesn't match.
15721
15527
  */
15722
- createChecked(attrs?: Attrs | null, content?: Fragment | Node$2 | readonly Node$2[] | null, marks?: readonly Mark$1[]): Node$2;
15528
+ createChecked(attrs?: Attrs | null, content?: Fragment | Node$3 | readonly Node$3[] | null, marks?: readonly Mark$1[]): Node$3;
15723
15529
  /**
15724
15530
  Like [`create`](https://prosemirror.net/docs/ref/#model.NodeType.create), but see if it is
15725
15531
  necessary to add nodes to the start or end of the given fragment
@@ -15728,7 +15534,7 @@ declare class NodeType$2 {
15728
15534
  always be created, this will always succeed if you pass null or
15729
15535
  `Fragment.empty` as content.
15730
15536
  */
15731
- createAndFill(attrs?: Attrs | null, content?: Fragment | Node$2 | readonly Node$2[] | null, marks?: readonly Mark$1[]): Node$2 | null;
15537
+ createAndFill(attrs?: Attrs | null, content?: Fragment | Node$3 | readonly Node$3[] | null, marks?: readonly Mark$1[]): Node$3 | null;
15732
15538
  /**
15733
15539
  Returns true if the given fragment is valid content for this node
15734
15540
  type.
@@ -15922,7 +15728,7 @@ interface NodeSpec {
15922
15728
  differently, this is not supported inside the editor, so you
15923
15729
  shouldn't override that in your text node spec.
15924
15730
  */
15925
- toDOM?: (node: Node$2) => DOMOutputSpec;
15731
+ toDOM?: (node: Node$3) => DOMOutputSpec;
15926
15732
  /**
15927
15733
  Associates DOM parser information with this node, which can be
15928
15734
  used by [`DOMParser.fromSchema`](https://prosemirror.net/docs/ref/#model.DOMParser^fromSchema) to
@@ -15936,14 +15742,14 @@ interface NodeSpec {
15936
15742
  Defines the default way a node of this type should be serialized
15937
15743
  to a string representation for debugging (e.g. in error messages).
15938
15744
  */
15939
- toDebugString?: (node: Node$2) => string;
15745
+ toDebugString?: (node: Node$3) => string;
15940
15746
  /**
15941
15747
  Defines the default way a [leaf node](https://prosemirror.net/docs/ref/#model.NodeType.isLeaf) of
15942
15748
  this type should be serialized to a string (as used by
15943
15749
  [`Node.textBetween`](https://prosemirror.net/docs/ref/#model.Node.textBetween) and
15944
15750
  [`Node.textContent`](https://prosemirror.net/docs/ref/#model.Node.textContent)).
15945
15751
  */
15946
- leafText?: (node: Node$2) => string;
15752
+ leafText?: (node: Node$3) => string;
15947
15753
  /**
15948
15754
  A single inline node in a schema can be set to be a linebreak
15949
15755
  equivalent. When converting between block types that support the
@@ -16075,8 +15881,8 @@ declare class Schema<Nodes extends string = any, Marks extends string = any> {
16075
15881
  /**
16076
15882
  An object mapping the schema's node names to node type objects.
16077
15883
  */
16078
- nodes: { readonly [name in Nodes]: NodeType$2; } & {
16079
- readonly [key: string]: NodeType$2;
15884
+ nodes: { readonly [name in Nodes]: NodeType$1; } & {
15885
+ readonly [key: string]: NodeType$1;
16080
15886
  };
16081
15887
  /**
16082
15888
  A map from mark names to mark type objects.
@@ -16089,7 +15895,7 @@ declare class Schema<Nodes extends string = any, Marks extends string = any> {
16089
15895
  replacement](https://prosemirror.net/docs/ref/#model.NodeSpec.linebreakReplacement) node defined
16090
15896
  in this schema, if any.
16091
15897
  */
16092
- linebreakReplacement: NodeType$2 | null;
15898
+ linebreakReplacement: NodeType$1 | null;
16093
15899
  /**
16094
15900
  Construct a schema from a schema [specification](https://prosemirror.net/docs/ref/#model.SchemaSpec).
16095
15901
  */
@@ -16098,7 +15904,7 @@ declare class Schema<Nodes extends string = any, Marks extends string = any> {
16098
15904
  The type of the [default top node](https://prosemirror.net/docs/ref/#model.SchemaSpec.topNode)
16099
15905
  for this schema.
16100
15906
  */
16101
- topNodeType: NodeType$2;
15907
+ topNodeType: NodeType$1;
16102
15908
  /**
16103
15909
  An object for storing whatever values modules may want to
16104
15910
  compute and cache per schema. (If you want to store something
@@ -16113,12 +15919,12 @@ declare class Schema<Nodes extends string = any, Marks extends string = any> {
16113
15919
  `content` may be a `Fragment`, `null`, a `Node`, or an array of
16114
15920
  nodes.
16115
15921
  */
16116
- node(type: string | NodeType$2, attrs?: Attrs | null, content?: Fragment | Node$2 | readonly Node$2[], marks?: readonly Mark$1[]): Node$2;
15922
+ node(type: string | NodeType$1, attrs?: Attrs | null, content?: Fragment | Node$3 | readonly Node$3[], marks?: readonly Mark$1[]): Node$3;
16117
15923
  /**
16118
15924
  Create a text node in the schema. Empty text nodes are not
16119
15925
  allowed.
16120
15926
  */
16121
- text(text: string, marks?: readonly Mark$1[] | null): Node$2;
15927
+ text(text: string, marks?: readonly Mark$1[] | null): Node$3;
16122
15928
  /**
16123
15929
  Create a mark with the given type and attributes.
16124
15930
  */
@@ -16127,7 +15933,7 @@ declare class Schema<Nodes extends string = any, Marks extends string = any> {
16127
15933
  Deserialize a node from its JSON representation. This method is
16128
15934
  bound.
16129
15935
  */
16130
- nodeFromJSON: (json: any) => Node$2;
15936
+ nodeFromJSON: (json: any) => Node$3;
16131
15937
  /**
16132
15938
  Deserialize a mark from its JSON representation. This method is
16133
15939
  bound.
@@ -16145,7 +15951,7 @@ declare class Fragment {
16145
15951
  /**
16146
15952
  The child nodes in this fragment.
16147
15953
  */
16148
- readonly content: readonly Node$2[];
15954
+ readonly content: readonly Node$3[];
16149
15955
  /**
16150
15956
  The size of the fragment, which is the total of the size of
16151
15957
  its content nodes.
@@ -16156,18 +15962,18 @@ declare class Fragment {
16156
15962
  positions (relative to start of this fragment). Doesn't descend
16157
15963
  into a node when the callback returns `false`.
16158
15964
  */
16159
- nodesBetween(from: number, to: number, f: (node: Node$2, start: number, parent: Node$2 | null, index: number) => boolean | void, nodeStart?: number, parent?: Node$2): void;
15965
+ nodesBetween(from: number, to: number, f: (node: Node$3, start: number, parent: Node$3 | null, index: number) => boolean | void, nodeStart?: number, parent?: Node$3): void;
16160
15966
  /**
16161
15967
  Call the given callback for every descendant node. `pos` will be
16162
15968
  relative to the start of the fragment. The callback may return
16163
15969
  `false` to prevent traversal of a given node's children.
16164
15970
  */
16165
- descendants(f: (node: Node$2, pos: number, parent: Node$2 | null, index: number) => boolean | void): void;
15971
+ descendants(f: (node: Node$3, pos: number, parent: Node$3 | null, index: number) => boolean | void): void;
16166
15972
  /**
16167
15973
  Extract the text between `from` and `to`. See the same method on
16168
15974
  [`Node`](https://prosemirror.net/docs/ref/#model.Node.textBetween).
16169
15975
  */
16170
- textBetween(from: number, to: number, blockSeparator?: string | null, leafText?: string | null | ((leafNode: Node$2) => string)): string;
15976
+ textBetween(from: number, to: number, blockSeparator?: string | null, leafText?: string | null | ((leafNode: Node$3) => string)): string;
16171
15977
  /**
16172
15978
  Create a new fragment containing the combined content of this
16173
15979
  fragment and the other.
@@ -16181,17 +15987,17 @@ declare class Fragment {
16181
15987
  Create a new fragment in which the node at the given index is
16182
15988
  replaced by the given node.
16183
15989
  */
16184
- replaceChild(index: number, node: Node$2): Fragment;
15990
+ replaceChild(index: number, node: Node$3): Fragment;
16185
15991
  /**
16186
15992
  Create a new fragment by prepending the given node to this
16187
15993
  fragment.
16188
15994
  */
16189
- addToStart(node: Node$2): Fragment;
15995
+ addToStart(node: Node$3): Fragment;
16190
15996
  /**
16191
15997
  Create a new fragment by appending the given node to this
16192
15998
  fragment.
16193
15999
  */
16194
- addToEnd(node: Node$2): Fragment;
16000
+ addToEnd(node: Node$3): Fragment;
16195
16001
  /**
16196
16002
  Compare this fragment to another one.
16197
16003
  */
@@ -16199,11 +16005,11 @@ declare class Fragment {
16199
16005
  /**
16200
16006
  The first child of the fragment, or `null` if it is empty.
16201
16007
  */
16202
- get firstChild(): Node$2 | null;
16008
+ get firstChild(): Node$3 | null;
16203
16009
  /**
16204
16010
  The last child of the fragment, or `null` if it is empty.
16205
16011
  */
16206
- get lastChild(): Node$2 | null;
16012
+ get lastChild(): Node$3 | null;
16207
16013
  /**
16208
16014
  The number of child nodes in this fragment.
16209
16015
  */
@@ -16212,16 +16018,16 @@ declare class Fragment {
16212
16018
  Get the child node at the given index. Raise an error when the
16213
16019
  index is out of range.
16214
16020
  */
16215
- child(index: number): Node$2;
16021
+ child(index: number): Node$3;
16216
16022
  /**
16217
16023
  Get the child node at the given index, if it exists.
16218
16024
  */
16219
- maybeChild(index: number): Node$2 | null;
16025
+ maybeChild(index: number): Node$3 | null;
16220
16026
  /**
16221
16027
  Call `f` for every child node, passing the node, its offset
16222
16028
  into this parent node, and its index.
16223
16029
  */
16224
- forEach(f: (node: Node$2, offset: number, index: number) => void): void;
16030
+ forEach(f: (node: Node$3, offset: number, index: number) => void): void;
16225
16031
  /**
16226
16032
  Find the first position at which this fragment and another
16227
16033
  fragment differ, or `null` if they are the same.
@@ -16253,14 +16059,14 @@ declare class Fragment {
16253
16059
  Build a fragment from an array of nodes. Ensures that adjacent
16254
16060
  text nodes with the same marks are joined together.
16255
16061
  */
16256
- static fromArray(array: readonly Node$2[]): Fragment;
16062
+ static fromArray(array: readonly Node$3[]): Fragment;
16257
16063
  /**
16258
16064
  Create a fragment from something that can be interpreted as a
16259
16065
  set of nodes. For `null`, it returns the empty fragment. For a
16260
16066
  fragment, the fragment itself. For a node or array of nodes, a
16261
16067
  fragment containing those nodes.
16262
16068
  */
16263
- static from(nodes?: Fragment | Node$2 | readonly Node$2[] | null): Fragment;
16069
+ static from(nodes?: Fragment | Node$3 | readonly Node$3[] | null): Fragment;
16264
16070
  /**
16265
16071
  An empty fragment. Intended to be reused whenever a node doesn't
16266
16072
  contain anything (rather than allocating a new empty fragment for
@@ -16269,7 +16075,7 @@ declare class Fragment {
16269
16075
  static empty: Fragment;
16270
16076
  }
16271
16077
  type MatchEdge = {
16272
- type: NodeType$2;
16078
+ type: NodeType$1;
16273
16079
  next: ContentMatch;
16274
16080
  };
16275
16081
  /**
@@ -16287,7 +16093,7 @@ declare class ContentMatch {
16287
16093
  Match a node type, returning a match after that node if
16288
16094
  successful.
16289
16095
  */
16290
- matchType(type: NodeType$2): ContentMatch | null;
16096
+ matchType(type: NodeType$1): ContentMatch | null;
16291
16097
  /**
16292
16098
  Try to match a fragment. Returns the resulting match when
16293
16099
  successful.
@@ -16297,7 +16103,7 @@ declare class ContentMatch {
16297
16103
  Get the first matching node type at this match position that can
16298
16104
  be generated.
16299
16105
  */
16300
- get defaultType(): NodeType$2 | null;
16106
+ get defaultType(): NodeType$1 | null;
16301
16107
  /**
16302
16108
  Try to match the given fragment, and if that fails, see if it can
16303
16109
  be made to match by inserting nodes in front of it. When
@@ -16313,7 +16119,7 @@ declare class ContentMatch {
16313
16119
  (when it fits directly) and will be null when no such wrapping
16314
16120
  exists.
16315
16121
  */
16316
- findWrapping(target: NodeType$2): readonly NodeType$2[] | null;
16122
+ findWrapping(target: NodeType$1): readonly NodeType$1[] | null;
16317
16123
  /**
16318
16124
  The number of outgoing edges this node has in the finite
16319
16125
  automaton that describes the content expression.
@@ -16339,11 +16145,11 @@ tree shape like this (without back pointers) makes easy.
16339
16145
  **Do not** directly mutate the properties of a `Node` object. See
16340
16146
  [the guide](https://prosemirror.net/docs/guide/#doc) for more information.
16341
16147
  */
16342
- declare class Node$2 {
16148
+ declare class Node$3 {
16343
16149
  /**
16344
16150
  The type of node that this is.
16345
16151
  */
16346
- readonly type: NodeType$2;
16152
+ readonly type: NodeType$1;
16347
16153
  /**
16348
16154
  An object mapping attribute names to values. The kind of
16349
16155
  attributes allowed and required are
@@ -16362,7 +16168,7 @@ declare class Node$2 {
16362
16168
  /**
16363
16169
  The array of this node's child nodes.
16364
16170
  */
16365
- get children(): readonly Node$2[];
16171
+ get children(): readonly Node$3[];
16366
16172
  /**
16367
16173
  For text nodes, this contains the node's text content.
16368
16174
  */
@@ -16383,16 +16189,16 @@ declare class Node$2 {
16383
16189
  Get the child node at the given index. Raises an error when the
16384
16190
  index is out of range.
16385
16191
  */
16386
- child(index: number): Node$2;
16192
+ child(index: number): Node$3;
16387
16193
  /**
16388
16194
  Get the child node at the given index, if it exists.
16389
16195
  */
16390
- maybeChild(index: number): Node$2 | null;
16196
+ maybeChild(index: number): Node$3 | null;
16391
16197
  /**
16392
16198
  Call `f` for every child node, passing the node, its offset
16393
16199
  into this parent node, and its index.
16394
16200
  */
16395
- forEach(f: (node: Node$2, offset: number, index: number) => void): void;
16201
+ forEach(f: (node: Node$3, offset: number, index: number) => void): void;
16396
16202
  /**
16397
16203
  Invoke a callback for all descendant nodes recursively overlapping
16398
16204
  the given two positions that are relative to start of this
@@ -16404,12 +16210,12 @@ declare class Node$2 {
16404
16210
  recursed over. The last parameter can be used to specify a
16405
16211
  starting position to count from.
16406
16212
  */
16407
- nodesBetween(from: number, to: number, f: (node: Node$2, pos: number, parent: Node$2 | null, index: number) => void | boolean, startPos?: number): void;
16213
+ nodesBetween(from: number, to: number, f: (node: Node$3, pos: number, parent: Node$3 | null, index: number) => void | boolean, startPos?: number): void;
16408
16214
  /**
16409
16215
  Call the given callback for every descendant node. Doesn't
16410
16216
  descend into a node when the callback returns `false`.
16411
16217
  */
16412
- descendants(f: (node: Node$2, pos: number, parent: Node$2 | null, index: number) => void | boolean): void;
16218
+ descendants(f: (node: Node$3, pos: number, parent: Node$3 | null, index: number) => void | boolean): void;
16413
16219
  /**
16414
16220
  Concatenates all the text nodes found in this fragment and its
16415
16221
  children.
@@ -16422,47 +16228,47 @@ declare class Node$2 {
16422
16228
  inserted for every non-text leaf node encountered, otherwise
16423
16229
  [`leafText`](https://prosemirror.net/docs/ref/#model.NodeSpec.leafText) will be used.
16424
16230
  */
16425
- textBetween(from: number, to: number, blockSeparator?: string | null, leafText?: null | string | ((leafNode: Node$2) => string)): string;
16231
+ textBetween(from: number, to: number, blockSeparator?: string | null, leafText?: null | string | ((leafNode: Node$3) => string)): string;
16426
16232
  /**
16427
16233
  Returns this node's first child, or `null` if there are no
16428
16234
  children.
16429
16235
  */
16430
- get firstChild(): Node$2 | null;
16236
+ get firstChild(): Node$3 | null;
16431
16237
  /**
16432
16238
  Returns this node's last child, or `null` if there are no
16433
16239
  children.
16434
16240
  */
16435
- get lastChild(): Node$2 | null;
16241
+ get lastChild(): Node$3 | null;
16436
16242
  /**
16437
16243
  Test whether two nodes represent the same piece of document.
16438
16244
  */
16439
- eq(other: Node$2): boolean;
16245
+ eq(other: Node$3): boolean;
16440
16246
  /**
16441
16247
  Compare the markup (type, attributes, and marks) of this node to
16442
16248
  those of another. Returns `true` if both have the same markup.
16443
16249
  */
16444
- sameMarkup(other: Node$2): boolean;
16250
+ sameMarkup(other: Node$3): boolean;
16445
16251
  /**
16446
16252
  Check whether this node's markup correspond to the given type,
16447
16253
  attributes, and marks.
16448
16254
  */
16449
- hasMarkup(type: NodeType$2, attrs?: Attrs | null, marks?: readonly Mark$1[]): boolean;
16255
+ hasMarkup(type: NodeType$1, attrs?: Attrs | null, marks?: readonly Mark$1[]): boolean;
16450
16256
  /**
16451
16257
  Create a new node with the same markup as this node, containing
16452
16258
  the given content (or empty, if no content is given).
16453
16259
  */
16454
- copy(content?: Fragment | null): Node$2;
16260
+ copy(content?: Fragment | null): Node$3;
16455
16261
  /**
16456
16262
  Create a copy of this node, with the given set of marks instead
16457
16263
  of the node's own marks.
16458
16264
  */
16459
- mark(marks: readonly Mark$1[]): Node$2;
16265
+ mark(marks: readonly Mark$1[]): Node$3;
16460
16266
  /**
16461
16267
  Create a copy of this node with only the content between the
16462
16268
  given positions. If `to` is not given, it defaults to the end of
16463
16269
  the node.
16464
16270
  */
16465
- cut(from: number, to?: number): Node$2;
16271
+ cut(from: number, to?: number): Node$3;
16466
16272
  /**
16467
16273
  Cut out the part of the document between the given positions, and
16468
16274
  return it as a `Slice` object.
@@ -16476,18 +16282,18 @@ declare class Node$2 {
16476
16282
  into. If any of this is violated, an error of type
16477
16283
  [`ReplaceError`](https://prosemirror.net/docs/ref/#model.ReplaceError) is thrown.
16478
16284
  */
16479
- replace(from: number, to: number, slice: Slice): Node$2;
16285
+ replace(from: number, to: number, slice: Slice): Node$3;
16480
16286
  /**
16481
16287
  Find the node directly after the given position.
16482
16288
  */
16483
- nodeAt(pos: number): Node$2 | null;
16289
+ nodeAt(pos: number): Node$3 | null;
16484
16290
  /**
16485
16291
  Find the (direct) child node after the given offset, if any,
16486
16292
  and return it along with its index and offset relative to this
16487
16293
  node.
16488
16294
  */
16489
16295
  childAfter(pos: number): {
16490
- node: Node$2 | null;
16296
+ node: Node$3 | null;
16491
16297
  index: number;
16492
16298
  offset: number;
16493
16299
  };
@@ -16497,7 +16303,7 @@ declare class Node$2 {
16497
16303
  node.
16498
16304
  */
16499
16305
  childBefore(pos: number): {
16500
- node: Node$2 | null;
16306
+ node: Node$3 | null;
16501
16307
  index: number;
16502
16308
  offset: number;
16503
16309
  };
@@ -16566,14 +16372,14 @@ declare class Node$2 {
16566
16372
  Test whether replacing the range `from` to `to` (by index) with
16567
16373
  a node of the given type would leave the node's content valid.
16568
16374
  */
16569
- canReplaceWith(from: number, to: number, type: NodeType$2, marks?: readonly Mark$1[]): boolean;
16375
+ canReplaceWith(from: number, to: number, type: NodeType$1, marks?: readonly Mark$1[]): boolean;
16570
16376
  /**
16571
16377
  Test whether the given node's content could be appended to this
16572
16378
  node. If that node is empty, this will only return true if there
16573
16379
  is at least one node type that can appear in both nodes (to avoid
16574
16380
  merging completely incompatible nodes).
16575
16381
  */
16576
- canAppend(other: Node$2): boolean;
16382
+ canAppend(other: Node$3): boolean;
16577
16383
  /**
16578
16384
  Check whether this node and its descendants conform to the
16579
16385
  schema, and raise an exception when they do not.
@@ -16586,10 +16392,8 @@ declare class Node$2 {
16586
16392
  /**
16587
16393
  Deserialize a node from its JSON representation.
16588
16394
  */
16589
- static fromJSON(schema: Schema, json: any): Node$2;
16395
+ static fromJSON(schema: Schema, json: any): Node$3;
16590
16396
  }
16591
- //#endregion
16592
- //#region prosemirror-transform/dist/index.d.ts
16593
16397
  /**
16594
16398
  There are several things that positions can be mapped through.
16595
16399
  Such objects conform to this interface.
@@ -16784,7 +16588,7 @@ declare abstract class Step {
16784
16588
  applied to this document, or indicates success by containing a
16785
16589
  transformed document.
16786
16590
  */
16787
- abstract apply(doc: Node$2): StepResult;
16591
+ abstract apply(doc: Node$3): StepResult;
16788
16592
  /**
16789
16593
  Get the step map that represents the changes made by this step,
16790
16594
  and which can be used to transform between positions in the old
@@ -16795,7 +16599,7 @@ declare abstract class Step {
16795
16599
  Create an inverted version of this step. Needs the document as it
16796
16600
  was before the step as argument.
16797
16601
  */
16798
- abstract invert(doc: Node$2): Step;
16602
+ abstract invert(doc: Node$3): Step;
16799
16603
  /**
16800
16604
  Map this step through a mappable thing, returning either a
16801
16605
  version of that step with its positions adjusted, or `null` if
@@ -16840,7 +16644,7 @@ declare class StepResult {
16840
16644
  /**
16841
16645
  The transformed document, if successful.
16842
16646
  */
16843
- readonly doc: Node$2 | null;
16647
+ readonly doc: Node$3 | null;
16844
16648
  /**
16845
16649
  The failure message, if unsuccessful.
16846
16650
  */
@@ -16848,7 +16652,7 @@ declare class StepResult {
16848
16652
  /**
16849
16653
  Create a successful step result.
16850
16654
  */
16851
- static ok(doc: Node$2): StepResult;
16655
+ static ok(doc: Node$3): StepResult;
16852
16656
  /**
16853
16657
  Create a failed step result.
16854
16658
  */
@@ -16858,7 +16662,7 @@ declare class StepResult {
16858
16662
  arguments. Create a successful result if it succeeds, and a
16859
16663
  failed one if it throws a `ReplaceError`.
16860
16664
  */
16861
- static fromReplace(doc: Node$2, from: number, to: number, slice: Slice): StepResult;
16665
+ static fromReplace(doc: Node$3, from: number, to: number, slice: Slice): StepResult;
16862
16666
  }
16863
16667
  /**
16864
16668
  Abstraction to build up and track an array of
@@ -16872,7 +16676,7 @@ declare class Transform {
16872
16676
  The current document (the result of applying the steps in the
16873
16677
  transform).
16874
16678
  */
16875
- doc: Node$2;
16679
+ doc: Node$3;
16876
16680
  /**
16877
16681
  The steps in this transform.
16878
16682
  */
@@ -16880,7 +16684,7 @@ declare class Transform {
16880
16684
  /**
16881
16685
  The documents before each of the steps.
16882
16686
  */
16883
- readonly docs: Node$2[];
16687
+ readonly docs: Node$3[];
16884
16688
  /**
16885
16689
  A mapping with the maps for each of the steps in this transform.
16886
16690
  */
@@ -16893,11 +16697,11 @@ declare class Transform {
16893
16697
  The current document (the result of applying the steps in the
16894
16698
  transform).
16895
16699
  */
16896
- doc: Node$2);
16700
+ doc: Node$3);
16897
16701
  /**
16898
16702
  The starting document.
16899
16703
  */
16900
- get before(): Node$2;
16704
+ get before(): Node$3;
16901
16705
  /**
16902
16706
  Apply a new step in this transform, saving the result. Throws an
16903
16707
  error when the step fails.
@@ -16932,7 +16736,7 @@ declare class Transform {
16932
16736
  Replace the given range with the given content, which may be a
16933
16737
  fragment, node, or array of nodes.
16934
16738
  */
16935
- replaceWith(from: number, to: number, content: Fragment | Node$2 | readonly Node$2[]): this;
16739
+ replaceWith(from: number, to: number, content: Fragment | Node$3 | readonly Node$3[]): this;
16936
16740
  /**
16937
16741
  Delete the content between the given positions.
16938
16742
  */
@@ -16940,7 +16744,7 @@ declare class Transform {
16940
16744
  /**
16941
16745
  Insert the given content at the given position.
16942
16746
  */
16943
- insert(pos: number, content: Fragment | Node$2 | readonly Node$2[]): this;
16747
+ insert(pos: number, content: Fragment | Node$3 | readonly Node$3[]): this;
16944
16748
  /**
16945
16749
  Replace a range of the document with a given slice, using
16946
16750
  `from`, `to`, and the slice's
@@ -16970,7 +16774,7 @@ declare class Transform {
16970
16774
  completely covers a parent node, this method may completely replace
16971
16775
  that parent node.
16972
16776
  */
16973
- replaceRangeWith(from: number, to: number, node: Node$2): this;
16777
+ replaceRangeWith(from: number, to: number, node: Node$3): this;
16974
16778
  /**
16975
16779
  Delete the given range, expanding it to cover fully covered
16976
16780
  parent nodes until a valid replace is found.
@@ -16995,19 +16799,19 @@ declare class Transform {
16995
16799
  probably be computed with [`findWrapping`](https://prosemirror.net/docs/ref/#transform.findWrapping).
16996
16800
  */
16997
16801
  wrap(range: NodeRange, wrappers: readonly {
16998
- type: NodeType$2;
16802
+ type: NodeType$1;
16999
16803
  attrs?: Attrs | null;
17000
16804
  }[]): this;
17001
16805
  /**
17002
16806
  Set the type of all textblocks (partly) between `from` and `to` to
17003
16807
  the given node type with the given attributes.
17004
16808
  */
17005
- setBlockType(from: number, to: number | undefined, type: NodeType$2, attrs?: Attrs | null | ((oldNode: Node$2) => Attrs)): this;
16809
+ setBlockType(from: number, to: number | undefined, type: NodeType$1, attrs?: Attrs | null | ((oldNode: Node$3) => Attrs)): this;
17006
16810
  /**
17007
16811
  Change the type, attributes, and/or marks of the node at `pos`.
17008
16812
  When `type` isn't given, the existing node type is preserved,
17009
16813
  */
17010
- setNodeMarkup(pos: number, type?: NodeType$2 | null, attrs?: Attrs | null, marks?: readonly Mark$1[]): this;
16814
+ setNodeMarkup(pos: number, type?: NodeType$1 | null, attrs?: Attrs | null, marks?: readonly Mark$1[]): this;
17011
16815
  /**
17012
16816
  Set a single attribute on a given node to a new value.
17013
16817
  The `pos` addresses the document content. Use `setDocAttribute`
@@ -17035,7 +16839,7 @@ declare class Transform {
17035
16839
  use after the split (with the outermost nodes coming first).
17036
16840
  */
17037
16841
  split(pos: number, depth?: number, typesAfter?: (null | {
17038
- type: NodeType$2;
16842
+ type: NodeType$1;
17039
16843
  attrs?: Attrs | null;
17040
16844
  })[]): this;
17041
16845
  /**
@@ -17055,10 +16859,8 @@ declare class Transform {
17055
16859
  an optional starting [content match](https://prosemirror.net/docs/ref/#model.ContentMatch) as
17056
16860
  third argument.
17057
16861
  */
17058
- clearIncompatible(pos: number, parentType: NodeType$2, match?: ContentMatch): this;
16862
+ clearIncompatible(pos: number, parentType: NodeType$1, match?: ContentMatch): this;
17059
16863
  }
17060
- //#endregion
17061
- //#region prosemirror-view/dist/index.d.ts
17062
16864
  type DOMNode = InstanceType<typeof window.Node>;
17063
16865
  type WidgetConstructor = ((view: EditorView, getPos: () => number | undefined) => DOMNode) | DOMNode;
17064
16866
  /**
@@ -17225,11 +17027,11 @@ interface DecorationSource {
17225
17027
  Map the set of decorations in response to a change in the
17226
17028
  document.
17227
17029
  */
17228
- map: (mapping: Mapping, node: Node$2) => DecorationSource;
17030
+ map: (mapping: Mapping, node: Node$3) => DecorationSource;
17229
17031
  /**
17230
17032
  Extract a DecorationSource containing decorations for the given child node at the given offset.
17231
17033
  */
17232
- forChild(offset: number, child: Node$2): DecorationSource;
17034
+ forChild(offset: number, child: Node$3): DecorationSource;
17233
17035
  /**
17234
17036
  Call the given function for each decoration set in the group.
17235
17037
  */
@@ -17247,7 +17049,7 @@ declare class DecorationSet implements DecorationSource {
17247
17049
  document. This will consume (modify) the `decorations` array, so
17248
17050
  you must make a copy if you want need to preserve that.
17249
17051
  */
17250
- static create(doc: Node$2, decorations: Decoration$1[]): DecorationSet;
17052
+ static create(doc: Node$3, decorations: Decoration$1[]): DecorationSet;
17251
17053
  /**
17252
17054
  Find all decorations in this set which touch the given range
17253
17055
  (including decorations that start or end directly at the
@@ -17262,7 +17064,7 @@ declare class DecorationSet implements DecorationSource {
17262
17064
  Map the set of decorations in response to a change in the
17263
17065
  document.
17264
17066
  */
17265
- map(mapping: Mapping, doc: Node$2, options?: {
17067
+ map(mapping: Mapping, doc: Node$3, options?: {
17266
17068
  /**
17267
17069
  When given, this function will be called for each decoration
17268
17070
  that gets dropped as a result of the mapping, passing the
@@ -17276,7 +17078,7 @@ declare class DecorationSet implements DecorationSource {
17276
17078
  access to the current document to create the appropriate tree
17277
17079
  structure.
17278
17080
  */
17279
- add(doc: Node$2, decorations: Decoration$1[]): DecorationSet;
17081
+ add(doc: Node$3, decorations: Decoration$1[]): DecorationSet;
17280
17082
  private addInner;
17281
17083
  /**
17282
17084
  Create a new set that contains the decorations in this set, minus
@@ -17284,7 +17086,7 @@ declare class DecorationSet implements DecorationSource {
17284
17086
  */
17285
17087
  remove(decorations: Decoration$1[]): DecorationSet;
17286
17088
  private removeInner;
17287
- forChild(offset: number, node: Node$2): DecorationSet | DecorationGroup;
17089
+ forChild(offset: number, node: Node$3): DecorationSet | DecorationGroup;
17288
17090
  /**
17289
17091
  The empty set of decorations.
17290
17092
  */
@@ -17294,10 +17096,10 @@ declare class DecorationSet implements DecorationSource {
17294
17096
  declare class DecorationGroup implements DecorationSource {
17295
17097
  readonly members: readonly DecorationSet[];
17296
17098
  constructor(members: readonly DecorationSet[]);
17297
- map(mapping: Mapping, doc: Node$2): DecorationSource;
17298
- forChild(offset: number, child: Node$2): DecorationSource | DecorationSet;
17099
+ map(mapping: Mapping, doc: Node$3): DecorationSource;
17100
+ forChild(offset: number, child: Node$3): DecorationSource | DecorationSet;
17299
17101
  eq(other: DecorationGroup): boolean;
17300
- locals(node: Node$2): readonly any[];
17102
+ locals(node: Node$3): readonly any[];
17301
17103
  static from(members: readonly DecorationSource[]): DecorationSource;
17302
17104
  forEachSet(f: (set: DecorationSet) => void): void;
17303
17105
  }
@@ -17351,7 +17153,7 @@ interface NodeView {
17351
17153
  `contentDOM` property (or no `dom` property), updating its child
17352
17154
  nodes will be handled by ProseMirror.
17353
17155
  */
17354
- update?: (node: Node$2, decorations: readonly Decoration$1[], innerDecorations: DecorationSource) => boolean;
17156
+ update?: (node: Node$3, decorations: readonly Decoration$1[], innerDecorations: DecorationSource) => boolean;
17355
17157
  /**
17356
17158
  By default, `update` will only be called when a node of the same
17357
17159
  node type appears in this view's position. When you set this to
@@ -17667,7 +17469,7 @@ declare class EditorView {
17667
17469
  The type of function [provided](https://prosemirror.net/docs/ref/#view.EditorProps.nodeViews) to
17668
17470
  create [node views](https://prosemirror.net/docs/ref/#view.NodeView).
17669
17471
  */
17670
- type NodeViewConstructor = (node: Node$2, view: EditorView, getPos: () => number | undefined, decorations: readonly Decoration$1[], innerDecorations: DecorationSource) => NodeView;
17472
+ type NodeViewConstructor = (node: Node$3, view: EditorView, getPos: () => number | undefined, decorations: readonly Decoration$1[], innerDecorations: DecorationSource) => NodeView;
17671
17473
  /**
17672
17474
  The function types [used](https://prosemirror.net/docs/ref/#view.EditorProps.markViews) to create
17673
17475
  mark views.
@@ -17729,7 +17531,7 @@ interface EditorProps<P = any> {
17729
17531
  Called for each node around a click, from the inside out. The
17730
17532
  `direct` flag will be true for the inner node.
17731
17533
  */
17732
- handleClickOn?: (this: P, view: EditorView, pos: number, node: Node$2, nodePos: number, event: MouseEvent, direct: boolean) => boolean | void;
17534
+ handleClickOn?: (this: P, view: EditorView, pos: number, node: Node$3, nodePos: number, event: MouseEvent, direct: boolean) => boolean | void;
17733
17535
  /**
17734
17536
  Called when the editor is clicked, after `handleClickOn` handlers
17735
17537
  have been called.
@@ -17738,7 +17540,7 @@ interface EditorProps<P = any> {
17738
17540
  /**
17739
17541
  Called for each node around a double click.
17740
17542
  */
17741
- handleDoubleClickOn?: (this: P, view: EditorView, pos: number, node: Node$2, nodePos: number, event: MouseEvent, direct: boolean) => boolean | void;
17543
+ handleDoubleClickOn?: (this: P, view: EditorView, pos: number, node: Node$3, nodePos: number, event: MouseEvent, direct: boolean) => boolean | void;
17742
17544
  /**
17743
17545
  Called when the editor is double-clicked, after `handleDoubleClickOn`.
17744
17546
  */
@@ -17746,7 +17548,7 @@ interface EditorProps<P = any> {
17746
17548
  /**
17747
17549
  Called for each node around a triple click.
17748
17550
  */
17749
- handleTripleClickOn?: (this: P, view: EditorView, pos: number, node: Node$2, nodePos: number, event: MouseEvent, direct: boolean) => boolean | void;
17551
+ handleTripleClickOn?: (this: P, view: EditorView, pos: number, node: Node$3, nodePos: number, event: MouseEvent, direct: boolean) => boolean | void;
17750
17552
  /**
17751
17553
  Called when the editor is triple-clicked, after `handleTripleClickOn`.
17752
17554
  */
@@ -17959,8 +17761,6 @@ interface DirectEditorProps extends EditorProps {
17959
17761
  */
17960
17762
  dispatchTransaction?: (tr: Transaction) => void;
17961
17763
  }
17962
- //#endregion
17963
- //#region prosemirror-state/dist/index.d.ts
17964
17764
  /**
17965
17765
  The type of object passed to
17966
17766
  [`EditorState.create`](https://prosemirror.net/docs/ref/#state.EditorState^create).
@@ -17974,7 +17774,7 @@ interface EditorStateConfig {
17974
17774
  The starting document. Either this or `schema` _must_ be
17975
17775
  provided.
17976
17776
  */
17977
- doc?: Node$2;
17777
+ doc?: Node$3;
17978
17778
  /**
17979
17779
  A valid selection in the document.
17980
17780
  */
@@ -18001,7 +17801,7 @@ declare class EditorState {
18001
17801
  /**
18002
17802
  The current document.
18003
17803
  */
18004
- doc: Node$2;
17804
+ doc: Node$3;
18005
17805
  /**
18006
17806
  The selection.
18007
17807
  */
@@ -18319,7 +18119,7 @@ declare class Transaction extends Transform {
18319
18119
  true and the content is inline, it inherits the marks from the
18320
18120
  place where it is inserted.
18321
18121
  */
18322
- replaceSelectionWith(node: Node$2, inheritMarks?: boolean): this;
18122
+ replaceSelectionWith(node: Node$3, inheritMarks?: boolean): this;
18323
18123
  /**
18324
18124
  Delete the selection.
18325
18125
  */
@@ -18424,7 +18224,7 @@ declare abstract class Selection {
18424
18224
  Map this selection through a [mappable](https://prosemirror.net/docs/ref/#transform.Mappable)
18425
18225
  thing. `doc` should be the new document to which we are mapping.
18426
18226
  */
18427
- abstract map(doc: Node$2, mapping: Mappable): Selection;
18227
+ abstract map(doc: Node$3, mapping: Mappable): Selection;
18428
18228
  /**
18429
18229
  Get the content of this selection as a slice.
18430
18230
  */
@@ -18438,7 +18238,7 @@ declare abstract class Selection {
18438
18238
  Replace the selection with the given node, appending the changes
18439
18239
  to the given transaction.
18440
18240
  */
18441
- replaceWith(tr: Transaction, node: Node$2): void;
18241
+ replaceWith(tr: Transaction, node: Node$3): void;
18442
18242
  /**
18443
18243
  Convert the selection to a JSON representation. When implementing
18444
18244
  this for a custom selection class, make sure to give the object a
@@ -18466,17 +18266,17 @@ declare abstract class Selection {
18466
18266
  [`AllSelection`](https://prosemirror.net/docs/ref/#state.AllSelection) if no valid position
18467
18267
  exists.
18468
18268
  */
18469
- static atStart(doc: Node$2): Selection;
18269
+ static atStart(doc: Node$3): Selection;
18470
18270
  /**
18471
18271
  Find the cursor or leaf node selection closest to the end of the
18472
18272
  given document.
18473
18273
  */
18474
- static atEnd(doc: Node$2): Selection;
18274
+ static atEnd(doc: Node$3): Selection;
18475
18275
  /**
18476
18276
  Deserialize the JSON representation of a selection. Must be
18477
18277
  implemented for custom classes (as a static class method).
18478
18278
  */
18479
- static fromJSON(doc: Node$2, json: any): Selection;
18279
+ static fromJSON(doc: Node$3, json: any): Selection;
18480
18280
  /**
18481
18281
  To be able to deserialize selections from JSON, custom selection
18482
18282
  classes must register themselves with an ID string, so that they
@@ -18484,9 +18284,9 @@ declare abstract class Selection {
18484
18284
  clash with classes from other modules.
18485
18285
  */
18486
18286
  static jsonID(id: string, selectionClass: {
18487
- fromJSON: (doc: Node$2, json: any) => Selection;
18287
+ fromJSON: (doc: Node$3, json: any) => Selection;
18488
18288
  }): {
18489
- fromJSON: (doc: Node$2, json: any) => Selection;
18289
+ fromJSON: (doc: Node$3, json: any) => Selection;
18490
18290
  };
18491
18291
  /**
18492
18292
  Get a [bookmark](https://prosemirror.net/docs/ref/#state.SelectionBookmark) for this selection,
@@ -18521,7 +18321,7 @@ interface SelectionBookmark {
18521
18321
  [`TextSelection.between`](https://prosemirror.net/docs/ref/#state.TextSelection^between)) if
18522
18322
  mapping made the bookmark invalid.
18523
18323
  */
18524
- resolve: (doc: Node$2) => Selection;
18324
+ resolve: (doc: Node$3) => Selection;
18525
18325
  }
18526
18326
  /**
18527
18327
  Represents a selected range in a document.
@@ -18548,8 +18348,6 @@ declare class SelectionRange {
18548
18348
  */
18549
18349
  $to: ResolvedPos);
18550
18350
  }
18551
- //#endregion
18552
- //#region @tiptap/core/dist/index.d.ts
18553
18351
  //#region src/EventEmitter.d.ts
18554
18352
  type StringKeyOf<T> = Extract<keyof T, string>;
18555
18353
  type CallbackType<T extends Record<string, any>, EventName extends StringKeyOf<T>> = T[EventName] extends any[] ? T[EventName] : [T[EventName]];
@@ -18985,7 +18783,7 @@ declare class Mark<Options = any, Storage = any> extends Extendable<Options, Sto
18985
18783
  }
18986
18784
  //#endregion
18987
18785
  //#region src/Node.d.ts
18988
- interface NodeConfig<Options = any, Storage = any> extends ExtendableConfig<Options, Storage, NodeConfig<Options, Storage>, NodeType$2> {
18786
+ interface NodeConfig<Options = any, Storage = any> extends ExtendableConfig<Options, Storage, NodeConfig<Options, Storage>, NodeType$1> {
18989
18787
  /**
18990
18788
  * Node View
18991
18789
  */
@@ -18994,7 +18792,7 @@ interface NodeConfig<Options = any, Storage = any> extends ExtendableConfig<Opti
18994
18792
  options: Options;
18995
18793
  storage: Storage;
18996
18794
  editor: Editor;
18997
- type: NodeType$2;
18795
+ type: NodeType$1;
18998
18796
  parent: ParentConfig<NodeConfig<Options, Storage>>['addNodeView'];
18999
18797
  }) => NodeViewRenderer | null) | null;
19000
18798
  /**
@@ -19226,7 +19024,7 @@ interface NodeConfig<Options = any, Storage = any> extends ExtendableConfig<Opti
19226
19024
  parent: ParentConfig<NodeConfig<Options, Storage>>['renderHTML'];
19227
19025
  editor?: Editor;
19228
19026
  }, props: {
19229
- node: Node$2;
19027
+ node: Node$3;
19230
19028
  HTMLAttributes: Record<string, any>;
19231
19029
  }) => DOMOutputSpec) | null;
19232
19030
  /**
@@ -19240,9 +19038,9 @@ interface NodeConfig<Options = any, Storage = any> extends ExtendableConfig<Opti
19240
19038
  parent: ParentConfig<NodeConfig<Options, Storage>>['renderText'];
19241
19039
  editor?: Editor;
19242
19040
  }, props: {
19243
- node: Node$2;
19041
+ node: Node$3;
19244
19042
  pos: number;
19245
- parent: Node$2;
19043
+ parent: Node$3;
19246
19044
  index: number;
19247
19045
  }) => string) | null;
19248
19046
  /**
@@ -19261,21 +19059,21 @@ interface NodeConfig<Options = any, Storage = any> extends ExtendableConfig<Opti
19261
19059
  * The Node class is used to create custom node extensions.
19262
19060
  * @see https://tiptap.dev/api/extensions#create-a-new-extension
19263
19061
  */
19264
- declare class Node$1<Options = any, Storage = any> extends Extendable<Options, Storage, NodeConfig<Options, Storage>> {
19062
+ declare class Node$2<Options = any, Storage = any> extends Extendable<Options, Storage, NodeConfig<Options, Storage>> {
19265
19063
  type: string;
19266
19064
  /**
19267
19065
  * Create a new Node instance
19268
19066
  * @param config - Node configuration object or a function that returns a configuration object
19269
19067
  */
19270
- static create<O = any, S = any>(config?: Partial<NodeConfig<O, S>> | (() => Partial<NodeConfig<O, S>>)): Node$1<O, S>;
19271
- configure(options?: Partial<Options>): Node$1<Options, Storage>;
19068
+ static create<O = any, S = any>(config?: Partial<NodeConfig<O, S>> | (() => Partial<NodeConfig<O, S>>)): Node$2<O, S>;
19069
+ configure(options?: Partial<Options>): Node$2<Options, Storage>;
19272
19070
  extend<ExtendedOptions = Options, ExtendedStorage = Storage, ExtendedConfig extends NodeConfig<ExtendedOptions, ExtendedStorage> = NodeConfig<ExtendedOptions, ExtendedStorage>>(extendedConfig?: (() => Partial<ExtendedConfig>) | (Partial<ExtendedConfig> & ThisType<{
19273
19071
  name: string;
19274
19072
  options: ExtendedOptions;
19275
19073
  storage: ExtendedStorage;
19276
19074
  editor: Editor;
19277
- type: NodeType$2;
19278
- }>)): Node$1<ExtendedOptions, ExtendedStorage>;
19075
+ type: NodeType$1;
19076
+ }>)): Node$2<ExtendedOptions, ExtendedStorage>;
19279
19077
  }
19280
19078
  //#endregion
19281
19079
  //#region src/PasteRule.d.ts
@@ -19392,7 +19190,7 @@ interface ExtendableConfig<Options = any, Storage = any, Config extends Extensio
19392
19190
  name: string;
19393
19191
  options: Options;
19394
19192
  storage: Storage;
19395
- extensions: (Node$1 | Mark)[];
19193
+ extensions: (Node$2 | Mark)[];
19396
19194
  parent: ParentConfig<Config>['addGlobalAttributes'];
19397
19195
  }) => GlobalAttributes;
19398
19196
  /**
@@ -19645,7 +19443,7 @@ interface ExtendableConfig<Options = any, Storage = any, Config extends Extensio
19645
19443
  options: Options;
19646
19444
  storage: Storage;
19647
19445
  parent: ParentConfig<Config>['extendNodeSchema'];
19648
- }, extension: Node$1) => Record<string, any>) | null;
19446
+ }, extension: Node$2) => Record<string, any>) | null;
19649
19447
  /**
19650
19448
  * This function extends the schema of the mark.
19651
19449
  * @example
@@ -20034,7 +19832,7 @@ interface EditorEvents {
20034
19832
  * The node which the deletion occurred in
20035
19833
  * @note This can be a parent node of the deleted content
20036
19834
  */
20037
- node: Node$2;
19835
+ node: Node$3;
20038
19836
  /**
20039
19837
  * The new start position of the node in the document (after the deletion)
20040
19838
  */
@@ -20355,9 +20153,9 @@ type MarkType<Type extends string | {
20355
20153
  /**
20356
20154
  * A node type is either a JSON representation of a node or a Prosemirror node instance
20357
20155
  */
20358
- type NodeType$1<Type extends string | {
20156
+ type NodeType$2<Type extends string | {
20359
20157
  name: string;
20360
- } = any, TAttributes extends undefined | Record<string, any> = any, NodeMarkType extends MarkType = any, TContent extends (NodeType$1 | TextType)[] = any> = {
20158
+ } = any, TAttributes extends undefined | Record<string, any> = any, NodeMarkType extends MarkType = any, TContent extends (NodeType$2 | TextType)[] = any> = {
20361
20159
  type: Type;
20362
20160
  attrs: TAttributes;
20363
20161
  content?: TContent;
@@ -20366,7 +20164,7 @@ type NodeType$1<Type extends string | {
20366
20164
  /**
20367
20165
  * A node type is either a JSON representation of a doc node or a Prosemirror doc node instance
20368
20166
  */
20369
- type DocumentType<TDocAttributes extends Record<string, any> | undefined = Record<string, any>, TContentType extends NodeType$1[] = NodeType$1[]> = Omit<NodeType$1<'doc', TDocAttributes, never, TContentType>, 'marks' | 'content'> & {
20167
+ type DocumentType<TDocAttributes extends Record<string, any> | undefined = Record<string, any>, TContentType extends NodeType$2[] = NodeType$2[]> = Omit<NodeType$2<'doc', TDocAttributes, never, TContentType>, 'marks' | 'content'> & {
20370
20168
  content: TContentType;
20371
20169
  };
20372
20170
  /**
@@ -20462,7 +20260,7 @@ interface NodeViewRendererProps {
20462
20260
  /**
20463
20261
  * The extension that is responsible for the node.
20464
20262
  */
20465
- extension: Node$1;
20263
+ extension: Node$2;
20466
20264
  /**
20467
20265
  * The HTML attributes that should be added to the node's DOM element.
20468
20266
  */
@@ -20512,9 +20310,9 @@ type Range = {
20512
20310
  to: number;
20513
20311
  };
20514
20312
  type TextSerializer = (props: {
20515
- node: Node$2;
20313
+ node: Node$3;
20516
20314
  pos: number;
20517
- parent: Node$2;
20315
+ parent: Node$3;
20518
20316
  index: number;
20519
20317
  range: Range;
20520
20318
  }) => string;
@@ -20794,9 +20592,9 @@ declare class NodePos {
20794
20592
  private isBlock;
20795
20593
  private editor;
20796
20594
  private get name();
20797
- constructor(pos: ResolvedPos, editor: Editor, isBlock?: boolean, node?: Node$2 | null);
20595
+ constructor(pos: ResolvedPos, editor: Editor, isBlock?: boolean, node?: Node$3 | null);
20798
20596
  private currentNode;
20799
- get node(): Node$2;
20597
+ get node(): Node$3;
20800
20598
  get element(): HTMLElement;
20801
20599
  actualDepth: number | null;
20802
20600
  get depth(): number;
@@ -20933,7 +20731,7 @@ interface Commands<ReturnType = any> {
20933
20731
  * @param typeOrName The type or name of the node.
20934
20732
  * @example editor.commands.deleteNode('paragraph')
20935
20733
  */
20936
- deleteNode: (typeOrName: string | NodeType$2) => ReturnType;
20734
+ deleteNode: (typeOrName: string | NodeType$1) => ReturnType;
20937
20735
  };
20938
20736
  }
20939
20737
  //#endregion
@@ -21078,7 +20876,7 @@ interface Commands<ReturnType = any> {
21078
20876
  /**
21079
20877
  * The ProseMirror content to insert.
21080
20878
  */
21081
- value: Content | Node$2 | Fragment,
20879
+ value: Content | Node$3 | Fragment,
21082
20880
  /**
21083
20881
  * Optional options
21084
20882
  */
@@ -21123,7 +20921,7 @@ interface Commands<ReturnType = any> {
21123
20921
  /**
21124
20922
  * The ProseMirror content to insert.
21125
20923
  */
21126
- value: Content | Node$2 | Fragment,
20924
+ value: Content | Node$3 | Fragment,
21127
20925
  /**
21128
20926
  * Optional options
21129
20927
  */
@@ -21148,7 +20946,7 @@ interface InsertDefaultBlockOptions {
21148
20946
  * Content to insert into the block.
21149
20947
  * Accepts string (plain text or HTML), ProseMirror node, or Fragment.
21150
20948
  */
21151
- content?: Content | Node$2 | Fragment;
20949
+ content?: Content | Node$3 | Fragment;
21152
20950
  /**
21153
20951
  * Whether to update the selection after inserting the content.
21154
20952
  * @default true
@@ -21267,7 +21065,7 @@ interface Commands<ReturnType = any> {
21267
21065
  * @example editor.commands.lift('paragraph')
21268
21066
  * @example editor.commands.lift('heading', { level: 1 })
21269
21067
  */
21270
- lift: (typeOrName: string | NodeType$2, attributes?: Record<string, any>) => ReturnType;
21068
+ lift: (typeOrName: string | NodeType$1, attributes?: Record<string, any>) => ReturnType;
21271
21069
  };
21272
21070
  }
21273
21071
  //#endregion
@@ -21290,7 +21088,7 @@ interface Commands<ReturnType = any> {
21290
21088
  * @param typeOrName The type or name of the node.
21291
21089
  * @example editor.commands.liftListItem('listItem')
21292
21090
  */
21293
- liftListItem: (typeOrName: string | NodeType$2) => ReturnType;
21091
+ liftListItem: (typeOrName: string | NodeType$1) => ReturnType;
21294
21092
  };
21295
21093
  }
21296
21094
  //#endregion
@@ -21314,7 +21112,7 @@ interface Commands<ReturnType = any> {
21314
21112
  * @param attributes The attributes of the node to reset.
21315
21113
  * @example editor.commands.resetAttributes('heading', 'level')
21316
21114
  */
21317
- resetAttributes: (typeOrName: string | NodeType$2 | MarkType$1, attributes: string | string[]) => ReturnType;
21115
+ resetAttributes: (typeOrName: string | NodeType$1 | MarkType$1, attributes: string | string[]) => ReturnType;
21318
21116
  };
21319
21117
  }
21320
21118
  //#endregion
@@ -21425,7 +21223,7 @@ interface Commands<ReturnType = any> {
21425
21223
  /**
21426
21224
  * The new content.
21427
21225
  */
21428
- content: Content | Fragment | Node$2,
21226
+ content: Content | Fragment | Node$3,
21429
21227
  /**
21430
21228
  * Options for `setContent`.
21431
21229
  */
@@ -21467,7 +21265,7 @@ interface Commands<ReturnType = any> {
21467
21265
  * @param attributes The attributes of the node
21468
21266
  * @example editor.commands.setNode('paragraph')
21469
21267
  */
21470
- setNode: (typeOrName: string | NodeType$2, attributes?: Record<string, any>) => ReturnType;
21268
+ setNode: (typeOrName: string | NodeType$1, attributes?: Record<string, any>) => ReturnType;
21471
21269
  };
21472
21270
  }
21473
21271
  //#endregion
@@ -21518,7 +21316,7 @@ interface Commands<ReturnType = any> {
21518
21316
  * @param typeOrName The type or name of the node.
21519
21317
  * @example editor.commands.sinkListItem('listItem')
21520
21318
  */
21521
- sinkListItem: (typeOrName: string | NodeType$2) => ReturnType;
21319
+ sinkListItem: (typeOrName: string | NodeType$1) => ReturnType;
21522
21320
  };
21523
21321
  }
21524
21322
  //#endregion
@@ -21546,7 +21344,7 @@ interface Commands<ReturnType = any> {
21546
21344
  * @param overrideAttrs The attributes to ensure on the new node.
21547
21345
  * @example editor.commands.splitListItem('listItem')
21548
21346
  */
21549
- splitListItem: (typeOrName: string | NodeType$2, overrideAttrs?: Record<string, any>) => ReturnType;
21347
+ splitListItem: (typeOrName: string | NodeType$1, overrideAttrs?: Record<string, any>) => ReturnType;
21550
21348
  };
21551
21349
  }
21552
21350
  //#endregion
@@ -21561,7 +21359,7 @@ interface Commands<ReturnType = any> {
21561
21359
  * @param attributes Attributes for the new list.
21562
21360
  * @example editor.commands.toggleList('bulletList', 'listItem')
21563
21361
  */
21564
- toggleList: (listTypeOrName: string | NodeType$2, itemTypeOrName: string | NodeType$2, keepMarks?: boolean, attributes?: Record<string, any>) => ReturnType;
21362
+ toggleList: (listTypeOrName: string | NodeType$1, itemTypeOrName: string | NodeType$1, keepMarks?: boolean, attributes?: Record<string, any>) => ReturnType;
21565
21363
  };
21566
21364
  }
21567
21365
  //#endregion
@@ -21602,7 +21400,7 @@ interface Commands<ReturnType = any> {
21602
21400
  * @param attributes The attributes of the node.
21603
21401
  * @example editor.commands.toggleNode('heading', 'paragraph')
21604
21402
  */
21605
- toggleNode: (typeOrName: string | NodeType$2, toggleTypeOrName: string | NodeType$2, attributes?: Record<string, any>) => ReturnType;
21403
+ toggleNode: (typeOrName: string | NodeType$1, toggleTypeOrName: string | NodeType$1, attributes?: Record<string, any>) => ReturnType;
21606
21404
  };
21607
21405
  }
21608
21406
  //#endregion
@@ -21615,7 +21413,7 @@ interface Commands<ReturnType = any> {
21615
21413
  * @param attributes The attributes of the node.
21616
21414
  * @example editor.commands.toggleWrap('blockquote')
21617
21415
  */
21618
- toggleWrap: (typeOrName: string | NodeType$2, attributes?: Record<string, any>) => ReturnType;
21416
+ toggleWrap: (typeOrName: string | NodeType$1, attributes?: Record<string, any>) => ReturnType;
21619
21417
  };
21620
21418
  }
21621
21419
  //#endregion
@@ -21695,7 +21493,7 @@ interface Commands<ReturnType = any> {
21695
21493
  /**
21696
21494
  * The type or name of the node or mark.
21697
21495
  */
21698
- typeOrName: string | NodeType$2 | MarkType$1,
21496
+ typeOrName: string | NodeType$1 | MarkType$1,
21699
21497
  /**
21700
21498
  * The attributes of the node or mark.
21701
21499
  */
@@ -21727,7 +21525,7 @@ interface Commands<ReturnType = any> {
21727
21525
  * @param attributes The attributes of the node.
21728
21526
  * @example editor.commands.wrapIn('blockquote')
21729
21527
  */
21730
- wrapIn: (typeOrName: string | NodeType$2, attributes?: Record<string, any>) => ReturnType;
21528
+ wrapIn: (typeOrName: string | NodeType$1, attributes?: Record<string, any>) => ReturnType;
21731
21529
  };
21732
21530
  }
21733
21531
  //#endregion
@@ -21740,7 +21538,7 @@ interface Commands<ReturnType = any> {
21740
21538
  * @param attributes The attributes of the node.
21741
21539
  * @example editor.commands.wrapInList('bulletList')
21742
21540
  */
21743
- wrapInList: (typeOrName: string | NodeType$2, attributes?: Record<string, any>) => ReturnType;
21541
+ wrapInList: (typeOrName: string | NodeType$1, attributes?: Record<string, any>) => ReturnType;
21744
21542
  };
21745
21543
  }
21746
21544
  declare class Editor extends EventEmitter<EditorEvents> {
@@ -21876,7 +21674,7 @@ declare class Editor extends EventEmitter<EditorEvents> {
21876
21674
  /**
21877
21675
  * Get attributes of the currently selected node or mark.
21878
21676
  */
21879
- getAttributes(nameOrType: string | NodeType$2 | MarkType$1): Record<string, any>;
21677
+ getAttributes(nameOrType: string | NodeType$1 | MarkType$1): Record<string, any>;
21880
21678
  /**
21881
21679
  * Returns if the currently selected node or mark is active.
21882
21680
  *
@@ -21888,7 +21686,7 @@ declare class Editor extends EventEmitter<EditorEvents> {
21888
21686
  /**
21889
21687
  * Get the document as JSON.
21890
21688
  */
21891
- getJSON(): DocumentType<Record<string, any> | undefined, NodeType$1<string, undefined | Record<string, any>, any, (NodeType$1 | TextType)[]>[]>;
21689
+ getJSON(): DocumentType<Record<string, any> | undefined, NodeType$2<string, undefined | Record<string, any>, any, (NodeType$2 | TextType)[]>[]>;
21892
21690
  /**
21893
21691
  * Get the document as HTML.
21894
21692
  */
@@ -21953,7 +21751,7 @@ declare function nodeInputRule(config: {
21953
21751
  /**
21954
21752
  * The node type to add.
21955
21753
  */
21956
- type: NodeType$2;
21754
+ type: NodeType$1;
21957
21755
  /**
21958
21756
  * Whether the input rule should be undoable
21959
21757
  * when the user presses backspace.
@@ -21976,7 +21774,7 @@ declare function nodeInputRule(config: {
21976
21774
  */
21977
21775
  declare function textblockTypeInputRule(config: {
21978
21776
  find: InputRuleFinder;
21979
- type: NodeType$2;
21777
+ type: NodeType$1;
21980
21778
  undoable?: boolean;
21981
21779
  getAttributes?: Record<string, any> | ((match: ExtendedRegExpMatchArray) => Record<string, any>) | false | null;
21982
21780
  }): InputRule;
@@ -22011,13 +21809,13 @@ declare function textInputRule(config: {
22011
21809
  */
22012
21810
  declare function wrappingInputRule(config: {
22013
21811
  find: InputRuleFinder;
22014
- type: NodeType$2;
21812
+ type: NodeType$1;
22015
21813
  keepMarks?: boolean;
22016
21814
  keepAttributes?: boolean;
22017
21815
  editor?: Editor;
22018
21816
  undoable?: boolean;
22019
21817
  getAttributes?: Record<string, any> | ((match: ExtendedRegExpMatchArray) => Record<string, any>) | false | null;
22020
- joinPredicate?: (match: ExtendedRegExpMatchArray, node: Node$2) => boolean;
21818
+ joinPredicate?: (match: ExtendedRegExpMatchArray, node: Node$3) => boolean;
22021
21819
  }): InputRule;
22022
21820
  //#endregion
22023
21821
  //#region src/pasteRules/markPasteRule.d.ts
@@ -22040,7 +21838,7 @@ declare function markPasteRule(config: {
22040
21838
  */
22041
21839
  declare function nodePasteRule(config: {
22042
21840
  find: PasteRuleFinder;
22043
- type: NodeType$2;
21841
+ type: NodeType$1;
22044
21842
  getAttributes?: Record<string, any> | ((match: ExtendedRegExpMatchArray, event: ClipboardEvent) => Record<string, any>) | false | null;
22045
21843
  getContent?: JSONContent[] | ((attrs: Record<string, any>) => JSONContent[]) | false | null;
22046
21844
  }): PasteRule;
@@ -22068,8 +21866,6 @@ declare function callOrReturn<T>(value: T, context?: any, ...props: any[]): Mayb
22068
21866
  //#endregion
22069
21867
  //#region src/utilities/mergeAttributes.d.ts
22070
21868
  declare function mergeAttributes(...objects: Record<string, any>[]): Record<string, any>;
22071
- //#endregion
22072
- //#region guest/richTextExtensions.d.ts
22073
21869
  /** Which editor an extension is built for. */
22074
21870
  type RichTextSurface = 'inspector' | 'inline';
22075
21871
  /** What an extension factory knows about the editor it builds for. */
@@ -22152,12 +21948,10 @@ declare class RichTextExtensionRegistry extends ObservableRegistry<RichTextExten
22152
21948
  constructor();
22153
21949
  }
22154
21950
  declare const richTextExtensionRegistry: RichTextExtensionRegistry;
22155
- //#endregion
22156
- //#region guest/tiptap.d.ts
22157
21951
  declare const tiptap$1: {
22158
21952
  Extension: typeof Extension;
22159
21953
  Mark: typeof Mark;
22160
- Node: typeof Node$1;
21954
+ Node: typeof Node$2;
22161
21955
  mergeAttributes: typeof mergeAttributes;
22162
21956
  callOrReturn: typeof callOrReturn;
22163
21957
  getMarkAttributes: typeof getMarkAttributes;
@@ -22177,8 +21971,6 @@ declare const tiptap$1: {
22177
21971
  };
22178
21972
  /** The TipTap building blocks published on the plugin API. */
22179
21973
  type TiptapBuildingBlocks = typeof tiptap$1;
22180
- //#endregion
22181
- //#region features/workspaces/decorators.d.ts
22182
21974
  /**
22183
21975
  * The workspace-decorator registry: plugins visually mark workspaces the shell
22184
21976
  * knows nothing about - a task-workflow package badges its "TASK" branches,
@@ -22276,8 +22068,6 @@ declare class WorkspaceDecoratorRegistry extends ObservableRegistry<WorkspaceDec
22276
22068
  */
22277
22069
  refresh(): void;
22278
22070
  }
22279
- //#endregion
22280
- //#region features/media/AssetPicker.d.ts
22281
22071
  /**
22282
22072
  * Whether a pick is in progress - the Media Library has taken over the main
22283
22073
  * area. A modal hosting an asset or image editor (the node creation dialog, a
@@ -22285,26 +22075,24 @@ declare class WorkspaceDecoratorRegistry extends ObservableRegistry<WorkspaceDec
22285
22075
  * state has to live outside the dialog content to survive. False without a
22286
22076
  * provider, so it is safe anywhere.
22287
22077
  */
22288
- declare function useAssetPickerActive(): boolean;
22289
- //#endregion
22290
- //#region lib/i18n.d.ts
22078
+ export declare function useAssetPickerActive(): boolean;
22291
22079
  /**
22292
22080
  * Resolves once the bundle has loaded (or failed to - labels then stay on
22293
22081
  * their fallbacks). Plugin scripts run before that: a label resolved at
22294
22082
  * registration time (a settings section's title, a shortcut's) is the
22295
22083
  * fallback unless the registration waits for this.
22296
22084
  */
22297
- declare function translationsLoaded(): Promise<void>;
22085
+ export declare function translationsLoaded(): Promise<void>;
22298
22086
  /**
22299
22087
  * The backend user's interface language as Neos names it ("de", "pt_BR"),
22300
22088
  * fixed for the page load - a changed language applies after a reload.
22301
22089
  */
22302
- declare const interfaceLanguage: string;
22090
+ export declare const interfaceLanguage: string;
22303
22091
  /**
22304
22092
  * The interface language as a BCP 47 tag ("de", "pt-BR") - what Intl
22305
22093
  * formatters and `lang` attributes take.
22306
22094
  */
22307
- declare const interfaceLocale: string;
22095
+ export declare const interfaceLocale: string;
22308
22096
  /** Positional ({0}, {1}, ...) or named ({name}) interpolation arguments. */
22309
22097
  type TranslateArgs = Array<string | number> | Record<string, string | number>;
22310
22098
  /**
@@ -22317,7 +22105,7 @@ type TranslateArgs = Array<string | number> | Record<string, string | number>;
22317
22105
  * (also the value used before the bundle finishes loading).
22318
22106
  * @param args Optional placeholder values.
22319
22107
  */
22320
- declare function translate(id: string, fallback?: string, args?: TranslateArgs): string;
22108
+ export declare function translate(id: string, fallback?: string, args?: TranslateArgs): string;
22321
22109
  /**
22322
22110
  * Translate a Studio UI string that depends on a count - "1 site" vs "3
22323
22111
  * sites".
@@ -22334,16 +22122,12 @@ declare function translate(id: string, fallback?: string, args?: TranslateArgs):
22334
22122
  *
22335
22123
  * @param fallback English [singular, plural], used without a bundle entry.
22336
22124
  */
22337
- declare function translatePlural(id: string, count: number, fallback: [singular: string, plural: string], args?: Array<string | number>): string;
22338
- //#endregion
22339
- //#region guest/pluginApi.d.ts
22125
+ export declare function translatePlural(id: string, count: number, fallback: [singular: string, plural: string], args?: Array<string | number>): string;
22340
22126
  interface NeosStudioGuestPluginApi {
22341
22127
  version: typeof version;
22342
22128
  richTextExtensions: typeof richTextExtensionRegistry;
22343
22129
  tiptap: typeof tiptap$1;
22344
22130
  }
22345
- //#endregion
22346
- //#region api/studio/schema/index.d.ts
22347
22131
  /**
22348
22132
  * The models of the Studio's operations of the Neos API, by the names its
22349
22133
  * OpenAPI document gives them - generated with Neos.Api's into
@@ -22353,30 +22137,28 @@ interface NeosStudioGuestPluginApi {
22353
22137
  type Schemas = components['schemas'];
22354
22138
  type Task = Schemas['Task'];
22355
22139
  type TaskStatus = Schemas['TaskStatus'];
22356
- //#endregion
22357
- //#region plugin-api/index.d.ts
22358
22140
  /** Register/unregister panels. See {@link PanelDefinition}. */
22359
- declare const panels: PanelRegistry;
22141
+ export declare const panels: PanelRegistry;
22360
22142
  /** Register/unregister inspector + creation-dialog property editors. See {@link PropertyEditorDefinition}. */
22361
- declare const editors: PropertyEditorRegistry;
22143
+ export declare const editors: PropertyEditorRegistry;
22362
22144
  /** Register/unregister inspector views (read-only property visualisations). */
22363
- declare const views: InspectorViewRegistry;
22145
+ export declare const views: InspectorViewRegistry;
22364
22146
  /** Register/unregister named property validators. */
22365
- declare const validators: ValidatorRegistry;
22147
+ export declare const validators: ValidatorRegistry;
22366
22148
  /** Register/unregister link-editor type tabs. */
22367
- declare const links: LinkEditorRegistry;
22149
+ export declare const links: LinkEditorRegistry;
22368
22150
  /**
22369
22151
  * Register/unregister settings sections - the screens listed in the shared
22370
22152
  * Settings modal's subnavigation (users, sites, workspaces, ...). See
22371
22153
  * {@link SettingsDialogDefinition}.
22372
22154
  */
22373
- declare const settingsSections: ModalRegistry<SettingsDialogDefinition>;
22155
+ export declare const settingsSections: ModalRegistry<SettingsDialogDefinition>;
22374
22156
  /**
22375
22157
  * @deprecated The registry only ever held settings sections - use
22376
22158
  * {@link settingsSections}. Kept as an alias of the very same registry for
22377
22159
  * plugins built against API version 1.
22378
22160
  */
22379
- declare const modals: ModalRegistry<SettingsDialogDefinition>;
22161
+ export declare const modals: ModalRegistry<SettingsDialogDefinition>;
22380
22162
  /**
22381
22163
  * Register/unregister keyboard shortcuts. See {@link KeyboardShortcutDefinition}.
22382
22164
  * Module-level `shortcuts.register(...)` suits always-available actions;
@@ -22385,13 +22167,13 @@ declare const modals: ModalRegistry<SettingsDialogDefinition>;
22385
22167
  * the latest render's handler. Registered shortcuts appear automatically in
22386
22168
  * the shortcut overview (Shift+?).
22387
22169
  */
22388
- declare const shortcuts: KeyboardShortcutRegistry;
22170
+ export declare const shortcuts: KeyboardShortcutRegistry;
22389
22171
  /**
22390
22172
  * Register/unregister workspace decorators - visual marks (badges) on
22391
22173
  * workspaces in the switcher and administration, derived from the workspace
22392
22174
  * and the decorator's own data about it. See {@link WorkspaceDecoratorDefinition}.
22393
22175
  */
22394
- declare const workspaceDecorators: WorkspaceDecoratorRegistry;
22176
+ export declare const workspaceDecorators: WorkspaceDecoratorRegistry;
22395
22177
  /**
22396
22178
  * Register/unregister node decorators - per-node visuals on every tree row
22397
22179
  * (document tree, content outliner, search results, pickers): replace the
@@ -22399,19 +22181,27 @@ declare const workspaceDecorators: WorkspaceDecoratorRegistry;
22399
22181
  * shell's own type icon and hidden/deleted marks run through this registry
22400
22182
  * too. See {@link NodeDecoratorDefinition}.
22401
22183
  */
22402
- declare const nodeDecorators: NodeDecoratorRegistry;
22184
+ export declare const nodeDecorators: NodeDecoratorRegistry;
22185
+ /**
22186
+ * Register/unregister property hints - notes under a property's field in the
22187
+ * inspector, from a plugin's own data: a finding of a content check, a
22188
+ * workflow reminder. They inform only: no invalid field, no blocked save, no
22189
+ * node type configuration. See {@link PropertyHintDefinition}.
22190
+ */
22191
+ export declare const propertyHints: PropertyHintRegistry;
22403
22192
  /**
22404
22193
  * Register/unregister node actions - commands on a node, offered in the
22405
22194
  * context menus of the document tree, the content outliner and the
22406
22195
  * preview's content elements, and in the documents toolbar's "..." menu for
22407
- * the selected document. See {@link NodeActionDefinition}.
22196
+ * the selected document; with `handle: true` also as an icon button on the
22197
+ * handle of a content element in the preview. See {@link NodeActionDefinition}.
22408
22198
  */
22409
- declare const nodeActions: NodeActionRegistry;
22199
+ export declare const nodeActions: NodeActionRegistry;
22410
22200
  /**
22411
22201
  * Register/unregister header actions - icon buttons in the shell header for
22412
22202
  * commands about no node in particular. See {@link HeaderActionDefinition}.
22413
22203
  */
22414
- declare const headerActions: HeaderActionRegistry;
22204
+ export declare const headerActions: HeaderActionRegistry;
22415
22205
  /**
22416
22206
  * Register/unregister rich text extensions - custom marks, nodes and editor
22417
22207
  * behaviour with their toolbar buttons, enabled per property by a key of its
@@ -22421,14 +22211,14 @@ declare const headerActions: HeaderActionRegistry;
22421
22211
  * `guestJavascript` bundle (README "Rich text extensions"). See
22422
22212
  * {@link RichTextExtensionDefinition}.
22423
22213
  */
22424
- declare const richTextExtensions: RichTextExtensionRegistry;
22214
+ export declare const richTextExtensions: RichTextExtensionRegistry;
22425
22215
  /**
22426
22216
  * The editor's TipTap building blocks (Extension, Mark, Node,
22427
22217
  * mergeAttributes, the input/paste rule helpers, ProseMirror's Plugin and
22428
22218
  * PluginKey) - build rich text extensions with these, never with a bundled
22429
22219
  * TipTap: a second copy breaks schema and plugin identity.
22430
22220
  */
22431
- declare const tiptap: typeof tiptap$1;
22221
+ export declare const tiptap: typeof tiptap$1;
22432
22222
  /**
22433
22223
  * Typed requests sharing the shell's OAuth session (bearer token,
22434
22224
  * single-flighted refresh). Resolve with the parsed JSON body on 2xx and
@@ -22473,9 +22263,9 @@ declare const queryClient: QueryClient;
22473
22263
  * calls the latest render's handler. Handlers run after the shell's own
22474
22264
  * flow (never awaited); one that throws is logged and skipped.
22475
22265
  */
22476
- declare const events: StudioEvents;
22266
+ export declare const events: StudioEvents;
22477
22267
  /** Options accepted by the toast helpers. */
22478
- interface ToastOptions {
22268
+ export interface ToastOptions {
22479
22269
  /** Bold heading; defaults to a per-kind label ("Success", "Error", …). */
22480
22270
  title?: React$1.ReactNode;
22481
22271
  /** Auto-dismiss delay in ms. `0` keeps the toast until dismissed. */
@@ -22487,7 +22277,7 @@ interface ToastOptions {
22487
22277
  * The app-wide toast API. Always prefer these over inline error/success
22488
22278
  * messages. This is the intentional public subset of the shell's toast helper.
22489
22279
  */
22490
- interface ToastApi {
22280
+ export interface ToastApi {
22491
22281
  success: (message: React$1.ReactNode, options?: ToastOptions) => string;
22492
22282
  info: (message: React$1.ReactNode, options?: ToastOptions) => string;
22493
22283
  loading: (message: React$1.ReactNode, options?: ToastOptions) => string;
@@ -22495,13 +22285,35 @@ interface ToastApi {
22495
22285
  error: (message: unknown, options?: ToastOptions) => string;
22496
22286
  dismiss: (id?: string) => void;
22497
22287
  }
22498
- declare const toast: ToastApi;
22288
+ export declare const toast: ToastApi;
22289
+ /**
22290
+ * Open a plugin's own dialog from anywhere - a node or header action, a
22291
+ * shortcut, an event handler - without a panel to render it in. The shell
22292
+ * mounts the component inside its providers, so `useStudio()`, the query
22293
+ * hooks and `translate` work in it as in a panel. See {@link DialogApi.open}.
22294
+ */
22295
+ export interface DialogApi {
22296
+ /**
22297
+ * Show `component` as a dialog, with `props` and `close`. The shell owns
22298
+ * the dialog's root (open state, Escape, outside clicks, stacking on
22299
+ * dialogs already open); the component renders `DialogContent` - title,
22300
+ * body, footer, `size` - and calls `close(result)` when done. A crash
22301
+ * shows a fallback in the dialog and is logged with the component's name
22302
+ * (`displayName` or function name).
22303
+ *
22304
+ * The returned `result` settles when the dialog closes, with the value
22305
+ * passed to `close` (undefined when dismissed). Return it from an
22306
+ * action's `run` to keep the action busy while the dialog is open.
22307
+ */
22308
+ open<C extends DialogComponent>(component: C, ...props: object extends DialogPropsOf<C> ? [props?: DialogPropsOf<C>] : [props: DialogPropsOf<C>]): DialogHandle<DialogResultOf<C>>;
22309
+ }
22310
+ export declare const dialogs: DialogApi;
22499
22311
  /**
22500
22312
  * The shape published at `window.NeosStudio` for plugin bundles to consume:
22501
22313
  * the registries, hooks and helpers below plus every UI primitive of
22502
22314
  * ./components.ts.
22503
22315
  */
22504
- interface NeosStudioPluginApi extends PluginComponents {
22316
+ export interface NeosStudioPluginApi extends PluginComponents {
22505
22317
  version: typeof version;
22506
22318
  panels: typeof panels;
22507
22319
  editors: typeof editors;
@@ -22514,6 +22326,7 @@ interface NeosStudioPluginApi extends PluginComponents {
22514
22326
  shortcuts: typeof shortcuts;
22515
22327
  workspaceDecorators: typeof workspaceDecorators;
22516
22328
  nodeDecorators: typeof nodeDecorators;
22329
+ propertyHints: typeof propertyHints;
22517
22330
  nodeActions: typeof nodeActions;
22518
22331
  headerActions: typeof headerActions;
22519
22332
  richTextExtensions: typeof richTextExtensions;
@@ -22523,6 +22336,7 @@ interface NeosStudioPluginApi extends PluginComponents {
22523
22336
  useStudioActions: typeof useStudioActions;
22524
22337
  useKeyboardShortcut: typeof useKeyboardShortcut;
22525
22338
  toast: typeof toast;
22339
+ dialogs: typeof dialogs;
22526
22340
  apiFetch: typeof apiFetch;
22527
22341
  studioFetch: typeof studioFetch;
22528
22342
  apiStream: typeof apiStream;
@@ -22548,7 +22362,7 @@ interface NeosStudioPluginApi extends PluginComponents {
22548
22362
  useStudioEvent: typeof useStudioEvent;
22549
22363
  }
22550
22364
  /** The UI primitives of ./components.ts, as published on `window.NeosStudio`. */
22551
- type PluginComponents = typeof components_d_exports;
22365
+ export type PluginComponents = typeof components_d_exports;
22552
22366
  declare global {
22553
22367
  interface Window {
22554
22368
  React?: typeof React$1;
@@ -22562,6 +22376,5 @@ declare global {
22562
22376
  * resolve them at runtime. Called once by the shell's entry module, before it
22563
22377
  * mounts and before any plugin script executes. Idempotent.
22564
22378
  */
22565
- declare function installPluginApiGlobals(): void;
22566
- //#endregion
22567
- export { type Account, type AccountRole, type AnyExtension, ApiError, type Asset, type AssetCollection, type AssetCollectionCreate, type AssetCollectionReference, type AssetCollectionUpdate, type AssetIptc, type AssetSource, type AssetTag, type AssetTagCreate, type AssetTagReference, type AssetTagUpdate, type AssetType, type AssetUpdate, type AssetUsage, type AssetUsageListing, type AssetVariantCreate, Badge, type BaseWorkspaceChange, Button, type Change, type ChangeDiff, Checkbox, CollapsibleGroup, Combobox, ComboboxCollection, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxGroupLabel, ComboboxInput, ComboboxItem, ComboboxList, ComboboxStatus, ComboboxTrigger, ConfirmDialog, type ConflictingChange, type ContentDimension, type ContentDimensionValue, type ContentRepository, ContextMenu, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuSeparator, ContextMenuTrigger, CountBadge, type CreationDialogElementConfig, type CropRectangle, type CurrentAccount, type DataSourceData, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, type DimensionCoordinates, type DiscardingResult, type DockRegion, type Domain, type DomainCreate, type DomainUpdate, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, type Event$1 as Event, type EventDiff, type ExtensionConfig, Field, type HeaderActionContext, type HeaderActionDefinition, Icon, type IconProps, type IconSize, type IconVariant, type InfiniteData, Input, type InspectorGroupConfig, type InspectorTabConfig, type InspectorViewComponent, type InspectorViewConfig, type InspectorViewDefinition, type InspectorViewProps, type KeyboardShortcutDefinition, type LazyLabel, type LinkTypeDefinition, type LinkTypeTabProps, type ListingLinks, type ListingMeta, LoadingState, type MarkConfig, type ModalIcon, type NeosStudioGuestPluginApi, NeosStudioPluginApi, type Node, type NodeActionContext, type NodeActionDefinition, type NodeActionSurface, type NodeAddress, type NodeClassification, type NodeConfig, type NodeCopy, type NodeCreate, type NodeDecoration, type NodeDecorationContext, type NodeDecorationOverlay, type NodeDecoratorDefinition, type NodeMove, type NodePropertiesUpdate, type NodeReference, type NodeReferencesUpdate, type NodeType, type NodeTypeChange, type NodeTypeConfiguration, type NodeTypeGroup, type NodeTypeListing, type NodeTypeMap, type NodeVariantCreate, type NodeVariantListing, type PaginatedAssetListing, type PaginatedChangeListing, type PaginatedEventListing, type PaginatedNodeListing, type PaginatedUserListing, type PanelDefinition, type PanelPlacement, type PanelRect, type PasswordChange, Placeholder, PluginComponents, Popover, PopoverContent, PopoverTrigger, type ProblemDocument, type Profile, type ProfileUpdate, type PropertyConfig, type PropertyEditorComponent, type PropertyEditorDefinition, type PropertyEditorProps, type PropertyEditorSubject, type PropertyInspectorConfig, type PropertyScope, type PublishingResult, type QueryClient, type QueryFunctionContext, type QueryKey, type ResolvedKeyboardShortcut, type RichTextExtensionContext, type RichTextExtensionDefinition, type RichTextSurface, type RichTextToolbarItem, SearchInput, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectTrigger, SelectValue, Separator, type SettingsDialogDefinition, Sheet, SheetContent, SheetDescription, SheetHeader, SheetTitle, type Site, type SiteCreate, type SiteCreationOptions, type SiteListing, type SiteNodeType, type SiteUpdate, Skeleton, Slider, Spinner, type StreamEvent, type StructureChange, type StudioActions, type StudioContextValue, type StudioEventHandler, type StudioEventMap, type StudioEventName, type StudioEvents, type StudioInvalidation, type StudioState, Table, TableBody, TableCell, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, type Task, type TaskStatus, Textarea, type TiptapBuildingBlocks, type Editor as TiptapEditor, ToastApi, ToastOptions, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type TranslateArgs, type UriPathSegment, type UseInfiniteQueryOptions, type UseInfiniteQueryResult, type UseMutationOptions, type UseMutationResult, type UseQueryOptions, type UseQueryResult, type User, type UserCreate, type UserOptions, type UserPasswordSet, type UserUpdate, type ValidatorDefinition, type ValidatorFunction, type ViewData, type Workspace, type WorkspaceClassification, type WorkspaceConflictProblem, type WorkspaceCreate, type WorkspaceDecoration, type WorkspaceDecoratorDefinition, type WorkspaceDiscard, type WorkspaceListing, type WorkspacePublish, type WorkspaceRebase, type WorkspaceRef, type WorkspaceRole, type WorkspaceRoleAssign, type WorkspaceRoleAssignment, type WorkspaceRoleAssignmentListing, type WorkspaceRoleSubject, type WorkspaceUpdate, apiFetch, apiStream, editors, events, headerActions, installPluginApiGlobals, interfaceLanguage, interfaceLocale, invalidate, isMacPlatform, type isRemoved, keepPreviousData, links, modals, nodeActions, type nodeAddressFromContextPath, type nodeAddressFromKey, type nodeAddressKey, type nodeAddressOf, nodeDecorators, type nodeTypeConfiguration, panels, type parseDimensionSpacePoint, presenceColor, presenceInitials, queryClient, queryOptions, richTextExtensions, type sameDimensionSpacePoint, type sameNodeAddress, settingsSections, shortcuts, skipToken, studioFetch, tiptap, toast, translate, translatePlural, translationsLoaded, useAssetPickerActive, useInfiniteQuery, useKeyboardShortcut, useMutation, useQuery, useQueryClient, useStudio, useStudioActions, useStudioEvent, validators, version, views, workspaceDecorators };
22379
+ export declare function installPluginApiGlobals(): void;
22380
+ export { type Account, type AccountRole, type AnyExtension, type Asset, type AssetCollection, type AssetCollectionCreate, type AssetCollectionReference, type AssetCollectionUpdate, type AssetIptc, type AssetSource, type AssetTag, type AssetTagCreate, type AssetTagReference, type AssetTagUpdate, type AssetType, type AssetUpdate, type AssetUsage, type AssetUsageListing, type AssetVariantCreate, Badge, type BaseWorkspaceChange, Button, type Change, type ChangeDiff, Checkbox, Combobox, ComboboxCollection, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxGroupLabel, ComboboxInput, ComboboxItem, ComboboxList, ComboboxStatus, ComboboxTrigger, type ConflictingChange, type ContentDimension, type ContentDimensionValue, type ContentRepository, ContextMenu, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuSeparator, ContextMenuTrigger, CountBadge, type CreationDialogElementConfig, type CropRectangle, type CurrentAccount, type DataSourceData, Dialog, DialogContent, type DialogControls, DialogDescription, DialogFooter, type DialogHandle, DialogHeader, DialogTitle, type DimensionCoordinates, type DiscardingResult, type DockRegion, type Domain, type DomainCreate, type DomainUpdate, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, type Event$1 as Event, type EventDiff, type ExtensionConfig, Field, type HeaderActionContext, type HeaderActionDefinition, type IconProps, type IconSize, type IconVariant, type InfiniteData, Input, type InspectorGroupConfig, type InspectorTabConfig, type InspectorViewComponent, type InspectorViewConfig, type InspectorViewDefinition, type InspectorViewProps, type KeyboardShortcutDefinition, type LazyLabel, type LinkTypeDefinition, type LinkTypeTabProps, type ListingLinks, type ListingMeta, LoadingState, type MarkConfig, type ModalIcon, type NeosStudioGuestPluginApi, type Node$1 as Node, type NodeActionContext, type NodeActionDefinition, type NodeActionSurface, type NodeAddress, type NodeClassification, type NodeConfig, type NodeCopy, type NodeCreate, type NodeDecoration, type NodeDecorationContext, type NodeDecorationOverlay, type NodeDecoratorDefinition, type NodeMove, type NodePropertiesUpdate, type NodeReference, type NodeReferencesUpdate, type NodeType, type NodeTypeChange, type NodeTypeConfiguration, type NodeTypeGroup, type NodeTypeListing, type NodeTypeMap, type NodeVariantCreate, type NodeVariantListing, type PaginatedAssetListing, type PaginatedChangeListing, type PaginatedEventListing, type PaginatedNodeListing, type PaginatedUserListing, type PanelBadge, type PanelDefinition, type PanelPlacement, type PanelRect, type PasswordChange, Placeholder, Popover, PopoverContent, PopoverTrigger, type ProblemDocument, type Profile, type ProfileUpdate, type PropertyConfig, type PropertyEditorComponent, type PropertyEditorDefinition, type PropertyEditorProps, type PropertyEditorSubject, type PropertyHint, type PropertyHintDefinition, type PropertyHintTone, type PropertyInspectorConfig, type PropertyScope, type PublishingResult, type QueryClient, type QueryFunctionContext, type QueryKey, type ResolvedKeyboardShortcut, type RichTextExtensionContext, type RichTextExtensionDefinition, type RichTextSurface, type RichTextToolbarItem, SearchInput, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectTrigger, SelectValue, Separator, type SettingsDialogDefinition, Sheet, SheetContent, SheetDescription, SheetHeader, SheetTitle, type Site, type SiteCreate, type SiteCreationOptions, type SiteListing, type SiteNodeType, type SiteUpdate, Skeleton, Slider, Spinner, type StreamEvent, type StructureChange, type StudioActions, type StudioContextValue, type StudioEventHandler, type StudioEventMap, type StudioEventName, type StudioEvents, type StudioInvalidation, type StudioState, Table, TableBody, TableCell, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, type Task, type TaskStatus, Textarea, type TiptapBuildingBlocks, type Editor as TiptapEditor, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type TranslateArgs, type UriPathSegment, type UseInfiniteQueryOptions, type UseInfiniteQueryResult, type UseMutationOptions, type UseMutationResult, type UseQueryOptions, type UseQueryResult, type User, type UserCreate, type UserOptions, type UserPasswordSet, type UserUpdate, type ValidatorDefinition, type ValidatorFunction, type ViewData, type Workspace, type WorkspaceClassification, type WorkspaceConflictProblem, type WorkspaceCreate, type WorkspaceDecoration, type WorkspaceDecoratorDefinition, type WorkspaceDiscard, type WorkspaceListing, type WorkspacePublish, type WorkspaceRebase, type WorkspaceRef, type WorkspaceRole, type WorkspaceRoleAssign, type WorkspaceRoleAssignment, type WorkspaceRoleAssignmentListing, type WorkspaceRoleSubject, type WorkspaceUpdate, type isRemoved, keepPreviousData, type nodeAddressFromContextPath, type nodeAddressFromKey, type nodeAddressKey, type nodeAddressOf, type nodeTypeConfiguration, type parseDimensionSpacePoint, queryClient, type sameDimensionSpacePoint, type sameNodeAddress, skipToken, studioFetch };