@topol.io/editor-vue 0.0.0-beta.16 → 0.0.0-beta.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { INotification, ISavedBlock } from "@topol.io/editor";
|
|
2
|
-
|
|
3
|
-
type
|
|
1
|
+
import { ITopolOptions, INotification, ISavedBlock, IStage } from "@topol.io/editor";
|
|
2
|
+
export type IVueOptions = Omit<ITopolOptions, 'id' | 'callbacks'>;
|
|
3
|
+
export type ICallbacks = Pick<ITopolOptions, 'callbacks'>;
|
|
4
4
|
type SaveData = {
|
|
5
5
|
json: unknown;
|
|
6
6
|
html: unknown;
|
|
@@ -16,7 +16,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
16
16
|
required: true;
|
|
17
17
|
};
|
|
18
18
|
stage: {
|
|
19
|
-
type: import("vue").PropType<
|
|
19
|
+
type: import("vue").PropType<IStage>;
|
|
20
20
|
default: string;
|
|
21
21
|
};
|
|
22
22
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -41,7 +41,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
41
41
|
required: true;
|
|
42
42
|
};
|
|
43
43
|
stage: {
|
|
44
|
-
type: import("vue").PropType<
|
|
44
|
+
type: import("vue").PropType<IStage>;
|
|
45
45
|
default: string;
|
|
46
46
|
};
|
|
47
47
|
}>> & {
|
|
@@ -61,6 +61,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
61
61
|
onOnAlert?: ((notification: INotification) => any) | undefined;
|
|
62
62
|
onOnBannerClick?: ((data: SaveData) => any) | undefined;
|
|
63
63
|
}, {
|
|
64
|
-
stage:
|
|
64
|
+
stage: IStage;
|
|
65
65
|
}, {}>;
|
|
66
66
|
export default _default;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type IVueTopolOptions from '../types/IVueTopolOptions';
|
|
2
1
|
import type { INotification } from '@topol.io/editor';
|
|
3
2
|
import type { ISavedBlock } from '@topol.io/editor';
|
|
3
|
+
import type { IVueOptions } from './TopolEditor.vue';
|
|
4
4
|
export { default as TopolEditor } from './TopolEditor.vue';
|
|
5
5
|
export { default as TopolPlugin } from '@topol.io/editor';
|
|
6
|
-
export {
|
|
6
|
+
export { IVueOptions as ITopolOptions };
|
|
7
7
|
export { ISavedBlock };
|
|
8
8
|
export { INotification };
|
package/package.json
CHANGED
|
@@ -14,17 +14,17 @@
|
|
|
14
14
|
"author": "Topol.io",
|
|
15
15
|
"homepage": "https://topol.io",
|
|
16
16
|
"license": "Apache-2.0",
|
|
17
|
-
"version": "0.0.0-beta.
|
|
17
|
+
"version": "0.0.0-beta.18",
|
|
18
18
|
"files": [
|
|
19
19
|
"dist"
|
|
20
20
|
],
|
|
21
21
|
"module": "./dist/topol-editor-vue.es.js",
|
|
22
|
-
"types": "./dist/types/
|
|
22
|
+
"types": "./dist/types/entry.d.ts",
|
|
23
23
|
"exports": {
|
|
24
24
|
".": {
|
|
25
25
|
"import": "./dist/topol-editor-vue.es.js",
|
|
26
26
|
"require": "./dist/topol-editor-vue.umd.js",
|
|
27
|
-
"types": "./dist/types/
|
|
27
|
+
"types": "./dist/types/entry.d.ts"
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
30
|
"scripts": {
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"build:types": "vue-tsc -p tsconfig.prod.json"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@topol.io/editor": "^0.0.0-alfa.
|
|
37
|
+
"@topol.io/editor": "^0.0.0-alfa.23"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"vue": "^3.2.25"
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { ISavedBlock, IMergeTagGroup, IContentBlockOptions, ITheme, IAuthHeaderConfig, IFont, IAPI, ICustomBlockData } from "@topol.io/editor";
|
|
2
|
-
export default interface IVueOptions {
|
|
3
|
-
authorize: {
|
|
4
|
-
apiKey: string;
|
|
5
|
-
userId: string | number;
|
|
6
|
-
};
|
|
7
|
-
title?: string;
|
|
8
|
-
removeTopBar?: boolean;
|
|
9
|
-
topBarOptions?: Array<string>;
|
|
10
|
-
mainMenuAlign?: "left" | "right";
|
|
11
|
-
disableAlerts?: boolean;
|
|
12
|
-
customFileManager?: boolean;
|
|
13
|
-
language?: string;
|
|
14
|
-
light?: boolean;
|
|
15
|
-
theme?: ITheme;
|
|
16
|
-
hideSettingsTab?: boolean;
|
|
17
|
-
imageEditor?: boolean;
|
|
18
|
-
premadeBlocks?: unknown | boolean;
|
|
19
|
-
savedBlocks?: Array<ISavedBlock> | boolean;
|
|
20
|
-
mergeTags?: Array<IMergeTagGroup>;
|
|
21
|
-
enableAutosaves?: boolean;
|
|
22
|
-
htmlMinified?: boolean;
|
|
23
|
-
apiAuthorizationHeader?: IAuthHeaderConfig | string;
|
|
24
|
-
windowBar?: Array<string>;
|
|
25
|
-
contentBlocks?: IContentBlockOptions[];
|
|
26
|
-
api?: IAPI;
|
|
27
|
-
mobileFirstEnabled?: boolean;
|
|
28
|
-
fonts?: Array<IFont>;
|
|
29
|
-
tinyConfig?: unknown;
|
|
30
|
-
fontSizes?: Array<number>;
|
|
31
|
-
colors?: Array<string>;
|
|
32
|
-
googleApiKey?: string;
|
|
33
|
-
role?: "manager" | "editor" | "reader";
|
|
34
|
-
imageMaxSize?: number;
|
|
35
|
-
autosaveInterval?: number;
|
|
36
|
-
betaFeatures?: {
|
|
37
|
-
carousel?: boolean;
|
|
38
|
-
};
|
|
39
|
-
customBlocks?: ICustomBlockData[];
|
|
40
|
-
}
|