Skip to content

Commit 90ba3d7

Browse files
committed
add: getPublishes and getReleases support
1 parent 9021f00 commit 90ba3d7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+1342
-1
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ storybook-static
128128
tmp/
129129
temp/
130130

131-
dist/
131+
# dist/
132132

133133
### vscode ###
134134
.vscode/*

dist/index.js

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.LICENSE.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/*!
2+
* EventEmitter v5.2.4 - git.io/ee
3+
* Unlicense - http://unlicense.org/
4+
* Oliver Caldwell - http://oli.me.uk/
5+
* @preserve
6+
*/

dist/index.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/src/AssetSidebarWidget.d.ts

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
import EventEmitter from "wolfy87-eventemitter";
2+
import { IAssetSidebarInitData, setAssetDto } from "./types";
3+
/** Class representing an asset Extension from Contentstack UI. */
4+
declare class AssetSidebarWidget {
5+
/**
6+
* @hideconstructor
7+
*/
8+
currentAsset: {
9+
[key: string]: any;
10+
};
11+
_emitter: EventEmitter;
12+
_connection: any;
13+
_changedData?: {
14+
[key: string]: any;
15+
};
16+
constructor(initializationData: IAssetSidebarInitData, connection: any, emitter: EventEmitter);
17+
getData(): {
18+
[key: string]: any;
19+
};
20+
setData(asset: Partial<setAssetDto>): Promise<any>;
21+
syncAsset(): Promise<any>;
22+
updateWidth(width: number): Promise<any>;
23+
replaceAsset(file: File): Promise<any>;
24+
/**
25+
* This function executes the callback function every time an asset is saved.
26+
* @param {function} callback The function to be called when an asset is saved.
27+
*/
28+
onSave(callback: (arg0: any) => void): void;
29+
/**
30+
* The field.onChange() function is called when another extension programmatically changes the data of the current extension field using the field.setData() function. This function is only available for extension fields that support the following data types: text, number, boolean, or date.
31+
* @param {function} callback The function to be called when an asset is edited/changed.
32+
*/
33+
onChange(callback: (arg0: any) => void): void;
34+
/**
35+
* The onPublish() function executes the callback function every time an asset has been published with the respective payload.
36+
* @param {function} callback The function to be called when an asset is published.
37+
*/
38+
onPublish(callback: (arg0: any) => void): void;
39+
/**
40+
* The onUnPublish() function executes the callback function every time an asset has been unpublished with the respective payload.
41+
* @param {function} callback The function to be called when an asset is un published.
42+
*/
43+
onUnPublish(callback: (arg0: any) => void): void;
44+
}
45+
export default AssetSidebarWidget;
46+
//# sourceMappingURL=AssetSidebarWidget.d.ts.map

dist/src/AssetSidebarWidget.d.ts.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/src/RTE/index.d.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import { IConfigCallback, IContainerMetaData, IOnFunction, IPluginMetaData, IRteParam } from "./types";
2+
export declare class RTEPlugin {
3+
private configCallback;
4+
private pluginMetaData;
5+
private isContainer;
6+
private containerMetaData;
7+
constructor(id: string, configCallback: IConfigCallback);
8+
addPlugins: (...plugins: RTEPlugin[]) => void;
9+
on: <Type extends keyof IOnFunction>(type: Type, callback: IOnFunction[Type]) => void;
10+
get: (rte: IRteParam | void) => Promise<IPluginMetaData | IContainerMetaData>;
11+
}
12+
export declare const rtePluginInitializer: (id: string, configCallback: IConfigCallback) => RTEPlugin;
13+
//# sourceMappingURL=index.d.ts.map

dist/src/RTE/index.d.ts.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/src/RTE/test/rte.test.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export {};
2+
//# sourceMappingURL=rte.test.d.ts.map

dist/src/RTE/test/rte.test.d.ts.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)