@innovastudio/contentbuilder 1.5.45 → 1.5.47

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/index.d.ts +40 -0
  2. package/package.json +3 -3
package/index.d.ts ADDED
@@ -0,0 +1,40 @@
1
+ interface ContentBuilderOptions {
2
+ container?: string;
3
+ snippetModal?: boolean;
4
+ snippetModalLeft?: boolean;
5
+ }
6
+
7
+ declare class ContentBuilder {
8
+ constructor(options?: ContentBuilderOptions);
9
+
10
+ html(element: HTMLElement): void;
11
+ loadSnippets(snippetFile: string, snippetOpen: boolean): void;
12
+ viewSnippets(): void;
13
+ saveImages(handler: string, onComplete: () => void, onBase64Upload: () => void): void;
14
+ applyBehavior(): void;
15
+ applyBehaviorOn(element: HTMLElement): void;
16
+ viewConfig(): void;
17
+ setUIColor(mode: string, csslink: string): void;
18
+ viewHtml(): void;
19
+ loadHtml(html: string, area: HTMLElement): void;
20
+ pasteHtmlAtCaret(html: string, selectPastedContent: boolean): void;
21
+ addSnippetl(html: string, bSnippet: boolean, noedit: boolean): void;
22
+ undo(): void;
23
+ redo(): void;
24
+ destroy(): void;
25
+ returnUrl(mode: string): void;
26
+ toggleSnippetModal(): void;
27
+ openSnippetModal(): void;
28
+ closeSnippetModal(): void;
29
+ toggleAIAssistant(): void;
30
+ openAIAssistant(): void;
31
+ closeAIAssistant(): void;
32
+ saveForUndo(): void;
33
+ selectAsset(s: string, f: boolean)
34
+ addBlock(html: string, blockContainer: HTMLElement)
35
+ addPage(box: HTMLElement)
36
+ setPageSize(s: string)
37
+ openPageOptions(): void;
38
+ print(): void;
39
+ }
40
+ export default ContentBuilder;
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@innovastudio/contentbuilder",
3
3
  "type": "module",
4
- "version": "1.5.45",
4
+ "version": "1.5.47",
5
5
  "description": "",
6
6
  "main": "public/contentbuilder/contentbuilder.esm.js",
7
+ "types": "index.d.ts",
7
8
  "files": [
8
9
  "public/contentbuilder",
9
- "public/contentbuilder/contentbuilder.css"
10
+ "index.d.ts"
10
11
  ],
11
- "style": "public/contentbuilder/contentbuilder.css",
12
12
  "scripts": {
13
13
  "build": "rollup -c",
14
14
  "start": "concurrently \"node server.js\" \"webpack serve --config webpack.config.js\"",