Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
5e4107c
Merge branch 'master' into feature/debugger-flag-for-logHandler
nadeem-cs Nov 18, 2022
cb83dbb
Merge branch 'feature/debugger-flag-for-logHandler' of https://github…
nadeem-cs Dec 7, 2022
885ebf3
Merge branch 'feature/debugger-flag-for-logHandler' of https://github…
nadeem-cs Dec 12, 2022
b9ad3bc
SDK plugin support added
nadeem-cs Dec 14, 2022
bdb8e4c
live preview update after plugin support added
nadeem-cs Dec 14, 2022
1710846
updates for live_preview plugin
nadeem-cs Dec 14, 2022
d789f3e
Plugin Definition and Cache issue resolve
uttamukkoji Dec 14, 2022
68c4cd0
Horusec report issue fix
nadeem-cs Dec 20, 2022
a8f2ef4
removed compulsion of implementation of both plugin method
nadeem-cs Jan 5, 2023
1091153
typedef updated for optional plugin method
nadeem-cs Jan 5, 2023
f0a80eb
feat: :recycle: changes for plugin request function for users to acce…
nadeem-cs Feb 2, 2023
626c4a0
Merge branch 'master' into feature/plugin-support
nadeem-cs Feb 2, 2023
33df49f
refactor: :recycle: Types updated
uttamukkoji Feb 3, 2023
1194a34
refactor: :recycle: Code refactor based on PR review
nadeem-cs Feb 3, 2023
8ba5260
refactor: Changes based on PR reviews
nadeem-cs Feb 3, 2023
4dc1d25
chore: :page_facing_up: LICENSE file update
nadeem-cs Feb 7, 2023
df338d3
chore: :arrow_up: json5 package update
nadeem-cs Feb 7, 2023
29c3574
refactor: :recycle: Code refactor based on PR review comments
nadeem-cs Feb 8, 2023
dd2573a
docs: :loud_sound: Changelog modified for new release
nadeem-cs Feb 10, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
## Change log

### Version: 3.16.0
#### Date: February-10-2023
##### New Features:
- Plugin Support Added

### Version: 3.15.3
#### Date: July-26-2022
##### New Features:
- Live preview with reference in entry on SSR web app issue resolved

### Version: 3.15.2
#### Date: May-03-2022
##### New Features:
Expand Down
2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
The MIT License (MIT)


Copyright (c) 2016-2022 Contentstack
Copyright (c) 2016-2023 Contentstack

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
16 changes: 14 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Type definitions for contentstack 3.12.2
// Type definitions for contentstack v3.12.2 and above
// Project: https://www.contentstack.com/
// Definitions by: Contentstack <https://github.com/contentstack>
import { EntryEmbedable, Option, RenderOption } from '@contentstack/utils'
Expand Down Expand Up @@ -52,6 +52,7 @@ export interface Config {
region?: Region;
branch?: string;
live_preview?: LivePreview;
plugins?: ContentstackPlugin[];
fetchOptions?: FetchOptions;
}
// Stack Config
Expand All @@ -63,7 +64,7 @@ export interface StackConfig {
}

// ContentTypeCollection
export interface ContentTypeCollection{
export interface ContentTypeCollection {
content_types: Array<any>
count?: number
}
Expand Down Expand Up @@ -94,6 +95,17 @@ export interface FetchOptions {
retryDelayOptions?: RetryDelayOption
}

//Plugins
export interface ContentstackPlugin {
onRequest?(stack: Stack, request: ContentstackRequest): ContentstackRequest;
onResponse?(stack: Stack, request: ContentstackRequest, response: any, data: any): any;
}

export interface ContentstackRequest {
url: string;
option: object;
}

// Stack
export class Stack {
constructor(config: Config);
Expand Down
Loading