unlayer-types 1.186.0 → 1.187.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 +10 -6
- package/package.json +1 -1
package/embed.d.ts
CHANGED
@@ -1505,6 +1505,11 @@ declare module "state/types/types" {
|
|
1505
1505
|
};
|
1506
1506
|
}
|
1507
1507
|
}
|
1508
|
+
declare module "engine/utils/pruneObj" {
|
1509
|
+
export function pruneObj<T extends Record<string, any>>(obj: T, options?: {
|
1510
|
+
deep?: boolean;
|
1511
|
+
}): Partial<T>;
|
1512
|
+
}
|
1508
1513
|
declare module "engine/config/features" {
|
1509
1514
|
import { Language } from "state/types/types";
|
1510
1515
|
export interface TextEditorCustomButton {
|
@@ -1517,7 +1522,7 @@ declare module "engine/config/features" {
|
|
1517
1522
|
}, callback: (text: string) => void) => void;
|
1518
1523
|
}
|
1519
1524
|
export type ColorGroup = {} & ({
|
1520
|
-
id: 'brand_colors' | 'common_colors' | 'template_colors';
|
1525
|
+
id: 'brand_colors' | 'common_colors' | 'recent_colors' | 'template_colors';
|
1521
1526
|
label?: string;
|
1522
1527
|
colors?: string[];
|
1523
1528
|
default?: boolean;
|
@@ -1534,6 +1539,7 @@ declare module "engine/config/features" {
|
|
1534
1539
|
brandColors?: string[];
|
1535
1540
|
colors?: string[] | ColorGroup[];
|
1536
1541
|
limit?: number;
|
1542
|
+
recentColors?: boolean | null;
|
1537
1543
|
}
|
1538
1544
|
export interface Features {
|
1539
1545
|
audit?: boolean;
|
@@ -1563,6 +1569,7 @@ declare module "engine/config/features" {
|
|
1563
1569
|
cleanPaste?: boolean | 'basic' | 'confirm';
|
1564
1570
|
emojis?: boolean;
|
1565
1571
|
textDirection?: boolean | null;
|
1572
|
+
inlineColorGroups?: string[];
|
1566
1573
|
inlineFontControls?: boolean;
|
1567
1574
|
defaultFontSize?: string;
|
1568
1575
|
customButtons?: TextEditorCustomButton[];
|
@@ -1590,10 +1597,10 @@ declare module "engine/config/features" {
|
|
1590
1597
|
sendTestEmail?: boolean;
|
1591
1598
|
}
|
1592
1599
|
export function setFeatures(newFeatures: Features): void;
|
1593
|
-
export function
|
1600
|
+
export function getFeatureOverrides(): Features;
|
1601
|
+
export function setOverrideFeatures(newOverrideFeatures: Features, options?: {
|
1594
1602
|
deepmerge?: boolean;
|
1595
1603
|
}): void;
|
1596
|
-
export function overrideFeatures(newOverrideFeatures: Features): void;
|
1597
1604
|
export function getFeatures(): Features;
|
1598
1605
|
export function getFeature(path: string | string[]): any;
|
1599
1606
|
export function hasFeature(path: string | string[], checkEntitlement?: boolean): boolean;
|
@@ -2344,9 +2351,6 @@ declare module "editor/helpers/image" {
|
|
2344
2351
|
}>;
|
2345
2352
|
export function imageHasTransparency(imageSrcOrBlob: string | Blob): Promise<boolean | null>;
|
2346
2353
|
}
|
2347
|
-
declare module "engine/utils/pruneObj" {
|
2348
|
-
export function pruneObj<T extends Record<string, any>>(obj: T): Partial<T>;
|
2349
|
-
}
|
2350
2354
|
declare module "editor/hooks/useImageUploader" {
|
2351
2355
|
import { useStore } from 'react-redux';
|
2352
2356
|
import { ImageSource } from "state/types/types";
|
package/package.json
CHANGED