Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@teko-builder/types

Package Overview
Dependencies
Maintainers
3
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@teko-builder/types - npm Package Compare versions

Comparing version 1.0.1-beta.19 to 1.0.1-beta.20

12

dist/pb/components/ecommerce/banner-list.d.ts
import { CommonAttributesInterface } from '../../interfaces';
import { IEcommerceBannerWithTime } from './common';
import { IEcommerceBannerWithTime, ResponsiveBlock } from './common';
export declare type BannerItemInterface = CommonAttributesInterface & IEcommerceBannerWithTime;
export interface BannerListDesktopInterface extends CommonAttributesInterface {
export interface BannerListBaseInterface extends CommonAttributesInterface {
items?: BannerItemInterface[];
}
export interface BannerListMobileInterface extends CommonAttributesInterface {
items?: BannerItemInterface[];
}
export interface BannerListInterface extends CommonAttributesInterface {
desktop?: BannerListDesktopInterface;
mobile?: BannerListMobileInterface;
}
export declare type BannerListInterface = CommonAttributesInterface & ResponsiveBlock<BannerListBaseInterface>;
//# sourceMappingURL=banner-list.d.ts.map
import { CommonAttributesInterface, Style } from '../../interfaces';
import { ResponsiveBlock } from './common';
export interface CarouselSkuListBaseInterface extends CommonAttributesInterface {

@@ -9,6 +10,3 @@ title?: string;

}
export interface CarouselSkuListInterface extends CommonAttributesInterface {
desktop?: CarouselSkuListBaseInterface;
mobile?: CarouselSkuListBaseInterface;
}
export declare type CarouselSkuListInterface = CommonAttributesInterface & ResponsiveBlock<CarouselSkuListBaseInterface>;
//# sourceMappingURL=carousel-sku-list.d.ts.map
import { CommonAttributesInterface, Style } from '../../interfaces';
import { IEcommerceBanner } from './common';
import { IEcommerceBanner, ResponsiveBlock } from './common';
export declare type CategoryMenuItems = CommonAttributesInterface & IEcommerceBanner;

@@ -10,6 +10,3 @@ export interface CategoryMenuBaseInterface extends CommonAttributesInterface {

}
export interface CategoryMenuInterface {
desktop?: CategoryMenuBaseInterface;
mobile?: CategoryMenuBaseInterface;
}
export declare type CategoryMenuInterface = CommonAttributesInterface & ResponsiveBlock<CategoryMenuBaseInterface>;
//# sourceMappingURL=category-menu.d.ts.map

@@ -1,2 +0,2 @@

import { Image } from '../../interfaces';
import { Image, TimeVisibility } from '../../interfaces';
export interface IEcommerceBanner extends Pick<Image, 'id' | 'src' | 'alt' | 'googleImageParams' | 'event'> {

@@ -10,3 +10,9 @@ title?: string;

}
export declare type IEcommerceBannerWithTime = IEcommerceBanner & TimeBase;
export declare type IEcommerceBannerWithTime = IEcommerceBanner & {
timeVisibility?: TimeVisibility;
};
export interface ResponsiveBlock<T, S = T> {
desktop?: T;
mobile?: S;
}
//# sourceMappingURL=common.d.ts.map
import { CommonAttributesInterface } from '../../interfaces';
import { IEcommerceBannerWithTime } from './common';
import { IEcommerceBannerWithTime, ResponsiveBlock } from './common';
export interface CountdownSkuListBaseInterface extends CommonAttributesInterface {
items: CountdownSkuTabInterface[];
items?: CountdownSkuTabInterface[];
}

@@ -10,6 +10,3 @@ export interface CountdownSkuTabInterface extends IEcommerceBannerWithTime {

}
export interface CountdownSkuListInterface extends CommonAttributesInterface {
desktop?: CountdownSkuListBaseInterface;
mobile?: CountdownSkuListBaseInterface;
}
export declare type CountdownSkuListInterface = CommonAttributesInterface & ResponsiveBlock<CountdownSkuListBaseInterface>;
//# sourceMappingURL=countdown-sku-list.d.ts.map
import { CommonAttributesInterface } from '../../interfaces';
import { ResponsiveBlock } from './common';
export interface FlashSaleBaseInterface extends CommonAttributesInterface {

@@ -6,6 +7,3 @@ title?: string;

}
export interface FlashSaleInterface extends CommonAttributesInterface {
desktop?: FlashSaleBaseInterface;
mobile?: FlashSaleBaseInterface;
}
export declare type FlashSaleInterface = CommonAttributesInterface & ResponsiveBlock<FlashSaleBaseInterface>;
//# sourceMappingURL=flash-sale.d.ts.map
import { CommonAttributesInterface } from '../../interfaces';
import { IEcommerceBannerWithTime } from './common';
import { IEcommerceBannerWithTime, ResponsiveBlock } from './common';
export declare type HeroBannerItemInterface = CommonAttributesInterface & IEcommerceBannerWithTime;
export interface HeroBannerInterface extends CommonAttributesInterface {
export interface HeroBannerBaseInterface extends CommonAttributesInterface {
autoSwipeTimeMilliseconds?: number;

@@ -11,2 +11,3 @@ items?: HeroBannerItemInterface[];

}
export declare type HeroBannerInterface = CommonAttributesInterface & ResponsiveBlock<HeroBannerBaseInterface>;
//# sourceMappingURL=hero-banner.d.ts.map
import { CommonAttributesInterface } from '../../interfaces';
import { ResponsiveBlock } from './common';
export interface ListingTabItemInterface {

@@ -6,6 +7,7 @@ title?: string;

}
export interface ListingTabInterface extends CommonAttributesInterface {
export interface ListingTabBaseInterface extends CommonAttributesInterface {
title?: string;
items?: ListingTabItemInterface[];
}
export declare type ListingTabInterface = CommonAttributesInterface & ResponsiveBlock<ListingTabBaseInterface>;
//# sourceMappingURL=listing-tab.d.ts.map
import { CommonAttributesInterface, Style } from '../../interfaces';
import { IEcommerceBanner } from './common';
export interface MixBannerBaseInterface extends CommonAttributesInterface {
import { IEcommerceBanner, IEcommerceBannerWithTime, ResponsiveBlock } from './common';
export interface MixBannerItemInterface extends CommonAttributesInterface {
title?: string;
redirectUrl?: string;
mainBanner?: IEcommerceBanner;
rightBanners?: IEcommerceBanner[];
bottomBanners?: IEcommerceBanner[];
titleStyle?: Style;
viewMoreStyle?: Style;
rightBanners?: IEcommerceBannerWithTime[];
bottomBanners?: IEcommerceBannerWithTime[];
}
export interface MixBannerInterface extends CommonAttributesInterface {
left?: MixBannerBaseInterface;
right?: MixBannerBaseInterface;
export interface MixBannerBaseInterface extends CommonAttributesInterface {
left?: MixBannerItemInterface;
right?: MixBannerItemInterface;
titleStyle?: Style;
viewMoreStyle?: Style;
}
export declare type MixBannerInterface = CommonAttributesInterface & ResponsiveBlock<MixBannerBaseInterface>;
//# sourceMappingURL=mix-banner.d.ts.map
import { CommonAttributesInterface, Style } from '../../interfaces';
interface ProductList extends CommonAttributesInterface {
import { ResponsiveBlock } from './common';
export interface ProductListBaseInterface extends CommonAttributesInterface {
title?: string;

@@ -9,7 +10,3 @@ collectionSlug?: string;

}
export interface ProductListEcommerceInterface {
desktop?: ProductList;
mobile?: ProductList;
}
export {};
export declare type ProductListEcommerceInterface = CommonAttributesInterface & ResponsiveBlock<ProductListBaseInterface>;
//# sourceMappingURL=product-list.d.ts.map
import { CommonAttributesInterface, Style } from '../../interfaces';
import { IEcommerceBanner } from './common';
export interface RecommendBrandInterface extends CommonAttributesInterface {
desktop?: RecommendBrandListInterface;
mobile?: RecommendBrandListInterface;
}
export declare type RecommendBrandItemInterface = CommonAttributesInterface & IEcommerceBanner;
export interface RecommendBrandListInterface extends CommonAttributesInterface {
import { IEcommerceBannerWithTime, ResponsiveBlock } from './common';
export declare type RecommendBrandItemInterface = CommonAttributesInterface & IEcommerceBannerWithTime;
export interface RecommendBrandBaseInterface extends CommonAttributesInterface {
title?: string;

@@ -15,2 +11,3 @@ items?: RecommendBrandItemInterface[];

}
export declare type RecommendBrandInterface = CommonAttributesInterface & ResponsiveBlock<RecommendBrandBaseInterface>;
//# sourceMappingURL=recommend-brand.d.ts.map

@@ -1,8 +0,11 @@

import { CommonAttributesInterface } from '../../interfaces';
import { IEcommerceBannerWithTime } from './common';
import { CommonAttributesInterface, Style } from '../../interfaces';
import { IEcommerceBannerWithTime, ResponsiveBlock } from './common';
export declare type RecommendCategoryItemInterface = CommonAttributesInterface & IEcommerceBannerWithTime;
export interface RecommendCategoryInterface extends CommonAttributesInterface {
export interface RecommendCategoryBaseInterface extends CommonAttributesInterface {
title?: string;
altStyle?: Style;
titleStyle?: Style;
items?: RecommendCategoryItemInterface[];
}
export declare type RecommendCategoryInterface = CommonAttributesInterface & ResponsiveBlock<RecommendCategoryBaseInterface>;
//# sourceMappingURL=recommend-category.d.ts.map
import { CommonAttributesInterface } from '../../interfaces';
import { IEcommerceBannerWithTime } from './common';
import { IEcommerceBannerWithTime, ResponsiveBlock } from './common';
export declare type SlideBannerItemInterface = CommonAttributesInterface & IEcommerceBannerWithTime;
export interface SlideBannerInterface extends CommonAttributesInterface {
export interface SlideBannerBaseInterface extends CommonAttributesInterface {
autoSwipeTimeMilliseconds?: number;
items?: SlideBannerItemInterface[];
}
export declare type SlideBannerInterface = CommonAttributesInterface & ResponsiveBlock<SlideBannerBaseInterface>;
//# sourceMappingURL=slide-banner.d.ts.map

@@ -111,2 +111,3 @@ /// <reference types="node" />

responsive?: Responsive;
timeVisibility?: TimeVisibility;
}

@@ -730,2 +731,9 @@ export interface UnitSizeInterface {

}
export interface TimeVisibility {
startTime?: string;
endTime?: string;
ruleRepeat?: string;
date?: string;
duration?: Array<number>;
}
export declare enum BuilderType {

@@ -745,3 +753,4 @@ BASIC = "Basic",

MONTH = "MONTH",
YEAR = "YEAR"
YEAR = "YEAR",
DURATION = "DURATION"
}

@@ -748,0 +757,0 @@ export declare enum RuleRepeatEnum {

{
"name": "@teko-builder/types",
"version": "1.0.1-beta.19",
"version": "1.0.1-beta.20",
"description": "Utility types",

@@ -5,0 +5,0 @@ "license": "MIT",

import { CommonAttributesInterface } from '../../interfaces';
import { IEcommerceBannerWithTime } from './common';
import { IEcommerceBannerWithTime, ResponsiveBlock } from './common';

@@ -7,13 +7,7 @@ export type BannerItemInterface = CommonAttributesInterface &

export interface BannerListDesktopInterface extends CommonAttributesInterface {
export interface BannerListBaseInterface extends CommonAttributesInterface {
items?: BannerItemInterface[];
}
export interface BannerListMobileInterface extends CommonAttributesInterface {
items?: BannerItemInterface[];
}
export interface BannerListInterface extends CommonAttributesInterface {
desktop?: BannerListDesktopInterface;
mobile?: BannerListMobileInterface;
}
export type BannerListInterface = CommonAttributesInterface &
ResponsiveBlock<BannerListBaseInterface>;
import { CommonAttributesInterface, Style } from '../../interfaces';
import { ResponsiveBlock } from './common';

@@ -12,5 +13,3 @@ export interface CarouselSkuListBaseInterface

export interface CarouselSkuListInterface extends CommonAttributesInterface {
desktop?: CarouselSkuListBaseInterface;
mobile?: CarouselSkuListBaseInterface;
}
export type CarouselSkuListInterface = CommonAttributesInterface &
ResponsiveBlock<CarouselSkuListBaseInterface>;
import { CommonAttributesInterface, Style } from '../../interfaces';
import { IEcommerceBanner } from './common';
import { IEcommerceBanner, ResponsiveBlock } from './common';

@@ -13,5 +13,3 @@ export type CategoryMenuItems = CommonAttributesInterface & IEcommerceBanner;

export interface CategoryMenuInterface {
desktop?: CategoryMenuBaseInterface;
mobile?: CategoryMenuBaseInterface;
}
export type CategoryMenuInterface = CommonAttributesInterface &
ResponsiveBlock<CategoryMenuBaseInterface>;

@@ -1,2 +0,2 @@

import { Image } from '../../interfaces';
import { Image, TimeVisibility } from '../../interfaces';

@@ -6,7 +6,7 @@ export interface IEcommerceBanner

/**
* @deprecate use alt instead
* @deprecated use alt instead
*/
title?: string;
/**
* @deprecate use event instead
* @deprecated use event instead
*/

@@ -21,2 +21,9 @@ redirectUrl?: string;

export type IEcommerceBannerWithTime = IEcommerceBanner & TimeBase;
export type IEcommerceBannerWithTime = IEcommerceBanner & {
timeVisibility?: TimeVisibility;
};
export interface ResponsiveBlock<T, S = T> {
desktop?: T;
mobile?: S;
}
import { CommonAttributesInterface } from '../../interfaces';
import { IEcommerceBannerWithTime } from './common';
import { IEcommerceBannerWithTime, ResponsiveBlock } from './common';
export interface CountdownSkuListBaseInterface
extends CommonAttributesInterface {
items: CountdownSkuTabInterface[];
items?: CountdownSkuTabInterface[];
}

@@ -14,5 +14,3 @@

export interface CountdownSkuListInterface extends CommonAttributesInterface {
desktop?: CountdownSkuListBaseInterface;
mobile?: CountdownSkuListBaseInterface;
}
export type CountdownSkuListInterface = CommonAttributesInterface &
ResponsiveBlock<CountdownSkuListBaseInterface>;
import { CommonAttributesInterface } from '../../interfaces';
import { ResponsiveBlock } from './common';

@@ -8,5 +9,3 @@ export interface FlashSaleBaseInterface extends CommonAttributesInterface {

export interface FlashSaleInterface extends CommonAttributesInterface {
desktop?: FlashSaleBaseInterface;
mobile?: FlashSaleBaseInterface;
}
export type FlashSaleInterface = CommonAttributesInterface &
ResponsiveBlock<FlashSaleBaseInterface>;
import { CommonAttributesInterface } from '../../interfaces';
import { IEcommerceBannerWithTime } from './common';
import { IEcommerceBannerWithTime, ResponsiveBlock } from './common';

@@ -7,3 +7,3 @@ export type HeroBannerItemInterface = CommonAttributesInterface &

export interface HeroBannerInterface extends CommonAttributesInterface {
export interface HeroBannerBaseInterface extends CommonAttributesInterface {
autoSwipeTimeMilliseconds?: number;

@@ -16,1 +16,4 @@ items?: HeroBannerItemInterface[];

}
export type HeroBannerInterface = CommonAttributesInterface &
ResponsiveBlock<HeroBannerBaseInterface>;
import { CommonAttributesInterface } from '../../interfaces';
import { ResponsiveBlock } from './common';

@@ -8,5 +9,8 @@ export interface ListingTabItemInterface {

export interface ListingTabInterface extends CommonAttributesInterface {
export interface ListingTabBaseInterface extends CommonAttributesInterface {
title?: string;
items?: ListingTabItemInterface[];
}
export type ListingTabInterface = CommonAttributesInterface &
ResponsiveBlock<ListingTabBaseInterface>;
import { CommonAttributesInterface, Style } from '../../interfaces';
import { IEcommerceBanner } from './common';
import {
IEcommerceBanner,
IEcommerceBannerWithTime,
ResponsiveBlock,
} from './common';
export interface MixBannerBaseInterface extends CommonAttributesInterface {
export interface MixBannerItemInterface extends CommonAttributesInterface {
title?: string;
redirectUrl?: string;
mainBanner?: IEcommerceBanner;
rightBanners?: IEcommerceBanner[];
bottomBanners?: IEcommerceBanner[];
titleStyle?: Style;
viewMoreStyle?: Style;
rightBanners?: IEcommerceBannerWithTime[];
bottomBanners?: IEcommerceBannerWithTime[];
}
export interface MixBannerInterface extends CommonAttributesInterface {
left?: MixBannerBaseInterface;
right?: MixBannerBaseInterface;
export interface MixBannerBaseInterface extends CommonAttributesInterface {
left?: MixBannerItemInterface;
right?: MixBannerItemInterface;
titleStyle?: Style;
viewMoreStyle?: Style;
}
export type MixBannerInterface = CommonAttributesInterface &
ResponsiveBlock<MixBannerBaseInterface>;
import { CommonAttributesInterface, Style } from '../../interfaces';
import { ResponsiveBlock } from './common';
interface ProductList extends CommonAttributesInterface {
export interface ProductListBaseInterface extends CommonAttributesInterface {
title?: string;

@@ -11,5 +12,3 @@ collectionSlug?: string;

export interface ProductListEcommerceInterface {
desktop?: ProductList;
mobile?: ProductList;
}
export type ProductListEcommerceInterface = CommonAttributesInterface &
ResponsiveBlock<ProductListBaseInterface>;
import { CommonAttributesInterface, Style } from '../../interfaces';
import { IEcommerceBanner } from './common';
export interface RecommendBrandInterface extends CommonAttributesInterface {
desktop?: RecommendBrandListInterface;
mobile?: RecommendBrandListInterface;
}
import { IEcommerceBannerWithTime, ResponsiveBlock } from './common';
export type RecommendBrandItemInterface = CommonAttributesInterface &
IEcommerceBanner;
IEcommerceBannerWithTime;
export interface RecommendBrandListInterface extends CommonAttributesInterface {
export interface RecommendBrandBaseInterface extends CommonAttributesInterface {
title?: string;

@@ -18,1 +14,4 @@ items?: RecommendBrandItemInterface[];

}
export type RecommendBrandInterface = CommonAttributesInterface &
ResponsiveBlock<RecommendBrandBaseInterface>;

@@ -1,3 +0,3 @@

import { CommonAttributesInterface } from '../../interfaces';
import { IEcommerceBannerWithTime } from './common';
import { CommonAttributesInterface, Style } from '../../interfaces';
import { IEcommerceBannerWithTime, ResponsiveBlock } from './common';

@@ -7,5 +7,11 @@ export type RecommendCategoryItemInterface = CommonAttributesInterface &

export interface RecommendCategoryInterface extends CommonAttributesInterface {
export interface RecommendCategoryBaseInterface
extends CommonAttributesInterface {
title?: string;
altStyle?: Style;
titleStyle?: Style;
items?: RecommendCategoryItemInterface[];
}
export type RecommendCategoryInterface = CommonAttributesInterface &
ResponsiveBlock<RecommendCategoryBaseInterface>;
import { CommonAttributesInterface } from '../../interfaces';
import { IEcommerceBannerWithTime } from './common';
import { IEcommerceBannerWithTime, ResponsiveBlock } from './common';

@@ -7,5 +7,8 @@ export type SlideBannerItemInterface = CommonAttributesInterface &

export interface SlideBannerInterface extends CommonAttributesInterface {
export interface SlideBannerBaseInterface extends CommonAttributesInterface {
autoSwipeTimeMilliseconds?: number;
items?: SlideBannerItemInterface[];
}
export type SlideBannerInterface = CommonAttributesInterface &
ResponsiveBlock<SlideBannerBaseInterface>;

@@ -183,2 +183,3 @@ import { CountdownSkuListInterface } from './components/ecommerce/countdown-sku-list';

responsive?: Responsive;
timeVisibility?: TimeVisibility;
}

@@ -951,2 +952,10 @@

export interface TimeVisibility {
startTime?: string;
endTime?: string;
ruleRepeat?: string;
date?: string;
duration?: Array<number>;
}
export enum BuilderType {

@@ -969,2 +978,3 @@ BASIC = 'Basic',

YEAR = 'YEAR',
DURATION = 'DURATION',
}

@@ -971,0 +981,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc