unlayer-types 1.232.0 → 1.235.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 +13 -5
- package/package.json +1 -1
package/embed.d.ts
CHANGED
@@ -1358,6 +1358,9 @@ declare module "state/types/types" {
|
|
1358
1358
|
limitMessage?: string;
|
1359
1359
|
validationRegex?: string;
|
1360
1360
|
options?: LinkTypeFieldOption[];
|
1361
|
+
sortOptions?: boolean | (<Option extends {
|
1362
|
+
label: string;
|
1363
|
+
}>(options: Option[]) => Option[]);
|
1361
1364
|
onCreateOption?: (inputValue: string, meta: object, done: (newOption: LinkTypeFieldOption) => void) => void;
|
1362
1365
|
}
|
1363
1366
|
export interface LinkType {
|
@@ -2177,8 +2180,10 @@ declare module "editor/design-system/components/Tooltip" {
|
|
2177
2180
|
export function Tooltip(props: TooltipProps): React.JSX.Element;
|
2178
2181
|
}
|
2179
2182
|
declare module "editor/helpers/intl" {
|
2183
|
+
import _ from 'lodash';
|
2180
2184
|
import { IntlShape } from 'react-intl';
|
2181
|
-
|
2185
|
+
function _getIntlLabel<Label extends any>(intl: IntlShape, label: string | Label): string | Label;
|
2186
|
+
export const getIntlLabel: typeof _getIntlLabel & _.MemoizedFunction;
|
2182
2187
|
}
|
2183
2188
|
declare module "editor/design-system/components/Dropdown" {
|
2184
2189
|
import React from 'react';
|
@@ -2696,11 +2701,14 @@ declare module "editor/components/editors/AutoWidthEditor" {
|
|
2696
2701
|
}
|
2697
2702
|
export const AutoWidthEditorBase: (props: AutoWidthEditorBaseProps) => React.JSX.Element;
|
2698
2703
|
}
|
2699
|
-
declare module "engine/
|
2700
|
-
export
|
2704
|
+
declare module "engine/utils/isUrl" {
|
2705
|
+
export function isUrl(value: any): boolean;
|
2701
2706
|
}
|
2702
|
-
declare module "
|
2707
|
+
declare module "editor/helpers/placeholders" {
|
2703
2708
|
export const DEFAULT_IMAGE_PLACEHOLDER = "https://cdn.tools.unlayer.com/image/placeholder.png";
|
2709
|
+
export const DEFAULT_CAROUSEL_PLACEHOLDER = "https://cdn.tools.unlayer.com/carousel/placeholder.png";
|
2710
|
+
type ToolType = 'image' | 'carousel';
|
2711
|
+
export function getPlaceholderUrl(type: ToolType): string;
|
2704
2712
|
}
|
2705
2713
|
declare module "editor/components/editors/pixie/pixie.umd" {
|
2706
2714
|
const _exports: {
|
@@ -2893,7 +2901,7 @@ declare module "editor/components/editors/ImageEditor" {
|
|
2893
2901
|
widgetParams: any;
|
2894
2902
|
};
|
2895
2903
|
export type ImageEditorProps = EditorPropsFromZodSchemas<typeof zodSchemas>;
|
2896
|
-
export function isDefaultImage(imageUrl: string | undefined): boolean;
|
2904
|
+
export function isDefaultImage(imageUrl: string | undefined, widgetParamsUrl?: string): boolean;
|
2897
2905
|
}
|
2898
2906
|
declare module "editor/components/common/Dropzone" {
|
2899
2907
|
import React from 'react';
|
package/package.json
CHANGED