Skip to content

Commit

Permalink
Merge pull request #48 from contentstack/embedded_objects
Browse files Browse the repository at this point in the history
Embedded Items Feature support added
  • Loading branch information
uttamukkoji authored Apr 6, 2021
2 parents b2f89c7 + be0e94f commit 75803b0
Show file tree
Hide file tree
Showing 5 changed files with 1,966 additions and 2,281 deletions.
4 changes: 3 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,6 @@ examples/
mocktest.json
webpack
typescript-html-report
coverage
webpack
jest.config.js
coverage
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@

### Version: 3.13.0
#### Date:

##### Update API:
- [Query]: Added support for method includeEmbeddedItems
- [Entry]: Added support for method includeEmbeddedItems

### Version: 3.12.2
#### Date: Feb-19-2021

Expand Down
13 changes: 12 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
// Type definitions for contentstack 3.12.2
// Project: https://www.contentstack.com/
// Definitions by: Contentstack <https://github.com/contentstack>
import { EntryEmbedable, Option, RenderOption } from '@contentstack/utils'

// Utils
export class Utils {
static render(option: {
entry: EntryEmbedable| EntryEmbedable[],
renderOption?: RenderOption,
paths?: string[]
}): void;
static renderContent(content: (string | string[]), option: Option): (string| string[]);
}

//Enum for Contentstack Region
export enum Region {
Expand Down Expand Up @@ -137,8 +148,8 @@ export class Entry {
includeReference(...val: string[]): this;
language(language_code: string): this;
addQuery(key: string, value: string): this;
includeEmbeddedItems(): this;
includeFallback(): this;

/**
* @deprecated since verion 3.3.0
*/
Expand Down
Loading

0 comments on commit 75803b0

Please sign in to comment.