Skip to content

Commit

Permalink
[Fix] Add missing exports (#228)
Browse files Browse the repository at this point in the history
  • Loading branch information
pkgacek authored Dec 29, 2022
1 parent 7d9890f commit 36e3fb8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ export {
FlowDirection,
FitMode,
UpdateZIndexMethod,
ImageSourceTypeEnum
} from '../types/FrameTypes';
export { VariableType, ImageVariableSourceType } from '../types/VariableTypes';

Expand All @@ -54,7 +55,7 @@ export type {
LayoutWithFrameProperties,
LayoutListItemType,
} from '../types/LayoutTypes';
export type { FrameLayoutType, FrameType, Frame, TextFrame, ImageFrame, ShapeType } from '../types/FrameTypes';
export type { FrameLayoutType, FrameType, Frame, TextFrame, ImageFrame, ImageFrameSource, ShapeType } from '../types/FrameTypes';
export type {
Variable,
VariableMoves,
Expand Down
9 changes: 5 additions & 4 deletions types/FrameTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,19 @@ export type FrameType = {
};

export type Frame = TextFrame | ImageFrame;

export type ImageUrlVariableSource = {
sourceType: ImageSourceType.urlVariable;
sourceType: ImageSourceTypeEnum.urlVariable;
variableId: string;
}
export type ImageUrlSource = {
sourceType: ImageSourceType.url;
sourceType: ImageSourceTypeEnum.url;
url: string;
}
export type ImageConnectorVariableSource = {
assetId: string;
connectorId: string;
sourceType: ImageSourceType.connectorVariable;
sourceType: ImageSourceTypeEnum.connectorVariable;
url: string;
}
// used by new getter methods
Expand Down Expand Up @@ -72,7 +73,7 @@ export type TextFrame = {
blendMode: BlendMode;
};

export enum ImageSourceType {
export enum ImageSourceTypeEnum {
url = 'url',
urlVariable = 'urlVariable',
connectorVariable = 'connectorVariable',
Expand Down

0 comments on commit 36e3fb8

Please sign in to comment.