unlayer-types 1.250.0 → 1.252.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/embed.d.ts +19 -2
- package/package.json +1 -1
package/embed.d.ts
CHANGED
@@ -160,6 +160,18 @@ declare module "editor/themes/types" {
|
|
160
160
|
colors: Record<ThemeColor, string>;
|
161
161
|
};
|
162
162
|
components: {
|
163
|
+
textEditor: {
|
164
|
+
toolbar: {
|
165
|
+
backgroundColor: ColorValue;
|
166
|
+
borderColor: ColorValue;
|
167
|
+
button: {
|
168
|
+
color: ColorValue;
|
169
|
+
':active': {
|
170
|
+
backgroundColor: ColorValue;
|
171
|
+
};
|
172
|
+
};
|
173
|
+
};
|
174
|
+
};
|
163
175
|
actionBar?: (Partial<Theme['components']['bar']> & {
|
164
176
|
compact?: boolean;
|
165
177
|
defaultPlacement: NonNullable<AppearanceConfig['actionBar']>['placement'];
|
@@ -2233,6 +2245,7 @@ declare module "editor/design-system/components/Dropdown" {
|
|
2233
2245
|
style?: React.CSSProperties;
|
2234
2246
|
customPopoverStyles?: React.CSSProperties;
|
2235
2247
|
tooltip?: string;
|
2248
|
+
title?: string;
|
2236
2249
|
tooltipPlacement?: TooltipProps['placement'];
|
2237
2250
|
} & ({
|
2238
2251
|
renderOption?: (option: SelectOption) => React.ReactNode;
|
@@ -2416,11 +2429,12 @@ declare module "engine/utils/generateMergeTagHtml" {
|
|
2416
2429
|
import { Icon, MergeTag } from "state/types/types";
|
2417
2430
|
export function generateMergeTagHtml(mergeTag: Pick<MergeTag, 'name' | 'value' | 'sample'> & {
|
2418
2431
|
icon?: Icon | string;
|
2419
|
-
}): string;
|
2432
|
+
}, tool?: 'paragraph' | 'text'): string;
|
2420
2433
|
}
|
2421
2434
|
declare module "engine/utils/applyMergeTagPreviewHtmlToText" {
|
2422
|
-
function _applyMergeTagPreviewHtmlToText(text: string | undefined, { type }?: {
|
2435
|
+
function _applyMergeTagPreviewHtmlToText(text: string | undefined, { type, tool, }?: {
|
2423
2436
|
type?: 'smart' | 'raw';
|
2437
|
+
tool?: 'paragraph' | 'text';
|
2424
2438
|
}): string;
|
2425
2439
|
export const applyMergeTagPreviewHtmlToText: typeof _applyMergeTagPreviewHtmlToText & import("lodash").MemoizedFunction;
|
2426
2440
|
}
|
@@ -2463,6 +2477,7 @@ declare module "engine/config/env" {
|
|
2463
2477
|
Cypress?: unknown;
|
2464
2478
|
}
|
2465
2479
|
}
|
2480
|
+
export const TEMP_HIDE_LEXICAL: boolean;
|
2466
2481
|
}
|
2467
2482
|
declare module "editor/helpers/image" {
|
2468
2483
|
import _ from 'lodash';
|
@@ -2757,6 +2772,8 @@ declare module "editor/design-system/components/Popover" {
|
|
2757
2772
|
placement: Ariakit.PopoverStoreProps['placement'];
|
2758
2773
|
popoverWrapper?: Ariakit.PopoverAnchorProps['render'];
|
2759
2774
|
style?: React.CSSProperties;
|
2775
|
+
isOpen?: boolean;
|
2776
|
+
setIsOpen?: (open: boolean) => void;
|
2760
2777
|
}
|
2761
2778
|
export interface PopoverInstance {
|
2762
2779
|
isOpen: boolean;
|
package/package.json
CHANGED