@contentstack/app-sdk
Advanced tools
Comparing version 1.4.1 to 1.5.0
@@ -7,3 +7,3 @@ import AssetSidebarWidget from "./AssetSidebarWidget"; | ||
import Store from "./store"; | ||
import { IAppConfigInitData, IAppConfigWidget, IAssetSidebarInitData, ICustomField, IDashboardInitData, IDashboardWidget, IEntryFieldLocation, IEntryFieldLocationInitData, IFieldInitData, IFieldModifierLocation, IFieldModifierLocationInitData, IFullPageLocation, IFullPageLocationInitData, ILocation, IPageWidget, IRTEInitData, ISidebarInitData, ISidebarWidget, IUser } from "./types"; | ||
import { IAppConfigInitData, IAppConfigWidget, IAssetSidebarInitData, ICustomField, IDashboardInitData, IDashboardWidget, IEntryFieldLocation, IEntryFieldLocationInitData, IFieldInitData, IFieldModifierLocation, IFieldModifierLocationInitData, IFullPageLocation, IFullPageLocationInitData, ILocation, IPageWidget, IRTEInitData, ISidebarInitData, ISidebarWidget, IUser, Region } from "./types"; | ||
/** Class representing an extension from Contentstack App Framework SDK. */ | ||
@@ -25,2 +25,3 @@ declare class Extension { | ||
modal: Modal; | ||
readonly region: Region; | ||
location: { | ||
@@ -46,2 +47,3 @@ DashboardWidget: IDashboardWidget | null; | ||
getCurrentLocation: () => ILocation; | ||
getCurrentRegion: () => Region; | ||
static initialize(version: string): any; | ||
@@ -48,0 +50,0 @@ setReady(): any; |
@@ -61,2 +61,3 @@ import { AnyObject } from "./types/common.types"; | ||
currentBranch: string; | ||
region: string; | ||
} | ||
@@ -213,3 +214,10 @@ export declare interface IDashboardInitData { | ||
} | ||
export declare enum Region { | ||
UNKNOWN = "UNKNOWN", | ||
NA = "NA", | ||
EU = "EU", | ||
AZURE_NA = "AZURE_NA", | ||
AZURE_EU = "AZURE_EU" | ||
} | ||
export {}; | ||
//# sourceMappingURL=types.d.ts.map |
@@ -0,1 +1,2 @@ | ||
import { Region } from "../types"; | ||
export declare function onData<Data extends Record<string, any>>(data: { | ||
@@ -5,2 +6,3 @@ data: Data; | ||
export declare function onError(error: Error): Promise<never>; | ||
export declare function formatAppRegion(region: string): Region; | ||
//# sourceMappingURL=utils.d.ts.map |
{ | ||
"name": "@contentstack/app-sdk", | ||
"version": "1.4.1", | ||
"version": "1.5.0", | ||
"types": "dist/src/index.d.ts", | ||
@@ -5,0 +5,0 @@ "description": "This SDK helps connect to the development server of the Contentstack and sync the data.", |
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 not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
566309
2119