@topol.io/editor 1.0.0-alpha.9 → 1.0.0
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.
- package/README.md +160 -97
- package/dist/index.js +171 -0
- package/dist/types/src/email-editor/index.d.ts +16 -102
- package/dist/types/src/landing-page-editor/constants.d.ts +1 -1
- package/dist/types/src/landing-page-editor/index.d.ts +10 -5
- package/dist/types/src/landing-page-editor/schemas/api/apiSchema.d.ts +5 -11
- package/dist/types/src/landing-page-editor/schemas/contentBlock/contentBlockScheme.d.ts +34 -18
- package/dist/types/src/landing-page-editor/schemas/language/languageSchema.d.ts +1 -1
- package/dist/types/src/landing-page-editor/schemas/mjmlStore/mjmlStoreSchema.d.ts +8 -6
- package/dist/types/src/landing-page-editor/schemas/notification/notificationSchema.d.ts +0 -1
- package/dist/types/src/landing-page-editor/schemas/openAI/openAISchema.d.ts +1 -2
- package/dist/types/src/landing-page-editor/schemas/pluginOptions/pluginOptionsSchema.d.ts +65 -21
- package/dist/types/src/landing-page-editor/schemas/premadeSection/premadeSectionSchema.d.ts +30 -0
- package/dist/types/src/landing-page-editor/schemas/template/blocks/buttonBlockSchema.d.ts +687 -5
- package/dist/types/src/landing-page-editor/schemas/template/blocks/carouselBlockSchema.d.ts +9 -2
- package/dist/types/src/landing-page-editor/schemas/template/blocks/dividerBlockSchema.d.ts +11 -3
- package/dist/types/src/landing-page-editor/schemas/template/blocks/formBlockSchema.d.ts +1069 -0
- package/dist/types/src/landing-page-editor/schemas/template/blocks/imageAnGifBlockSchema.d.ts +35 -19
- package/dist/types/src/landing-page-editor/schemas/template/blocks/rawBlockSchema.d.ts +9 -1
- package/dist/types/src/landing-page-editor/schemas/template/blocks/socialBlockSchema.d.ts +11 -3
- package/dist/types/src/landing-page-editor/schemas/template/blocks/spacerBlockSchema.d.ts +18 -10
- package/dist/types/src/landing-page-editor/schemas/template/blocks/textBlockSchema.d.ts +9 -1
- package/dist/types/src/landing-page-editor/schemas/template/blocks/videoBlockSchema.d.ts +9 -1
- package/dist/types/src/landing-page-editor/schemas/template/commonSchema.d.ts +28 -8
- package/dist/types/src/landing-page-editor/schemas/template/navbarBlocks/navbarCTASchema.d.ts +335 -0
- package/dist/types/src/landing-page-editor/schemas/template/navbarBlocks/navbarHamburgerSchema.d.ts +1109 -0
- package/dist/types/src/landing-page-editor/schemas/template/navbarBlocks/navbarLogoSchema.d.ts +252 -0
- package/dist/types/src/landing-page-editor/schemas/template/navbarBlocks/navbarMenuSchema.d.ts +1209 -0
- package/dist/types/src/landing-page-editor/schemas/template/settingsSchema.d.ts +4058 -546
- package/dist/types/src/landing-page-editor/schemas/template/structure/blockSchema.d.ts +5007 -2328
- package/dist/types/src/landing-page-editor/schemas/template/structure/columnSchema.d.ts +5501 -2412
- package/dist/types/src/landing-page-editor/schemas/template/structure/navbarSchema.d.ts +4394 -0
- package/dist/types/src/landing-page-editor/schemas/template/structure/rowSchema.d.ts +11094 -0
- package/dist/types/src/landing-page-editor/schemas/template/structure/sectionSchema.d.ts +8602 -3337
- package/dist/types/src/landing-page-editor/schemas/template/styleSchema.d.ts +55 -44
- package/dist/types/src/landing-page-editor/schemas/templateSchema.d.ts +34865 -48464
- package/dist/types/src/landing-page-editor/schemas/templateSettings/templateSettingsSchema.d.ts +4304 -794
- package/dist/types/src/landing-page-editor/schemas/theme/themeSchema.d.ts +6 -1
- package/dist/types/src/landing-page-editor/schemas/utils/cssValue.d.ts +21 -0
- package/dist/types/src/landing-page-editor/schemas/utils/transformBorder.d.ts +10 -5
- package/dist/types/src/main.d.ts +28 -108
- package/dist/types/types/API/API.d.ts +8 -9
- package/dist/types/types/APIBlocks/APIBlocks.d.ts +9 -0
- package/dist/types/types/Auth/IAuthorize.d.ts +6 -0
- package/dist/types/types/Auth/INonceAuthCallbacks.d.ts +10 -0
- package/dist/types/types/Callbacks/ICallbackPayloads.d.ts +27 -23
- package/dist/types/types/Callbacks/IEmailCallbacks.d.ts +73 -155
- package/dist/types/types/Cloud/ICloudOptions.d.ts +32 -0
- package/dist/types/types/ContentBlock/IContentBlockOptions.d.ts +1 -1
- package/dist/types/types/Countdown/ICountdownOptions.d.ts +48 -0
- package/dist/types/types/{ITopolOptions.d.ts → IEmailConfig.d.ts} +80 -28
- package/dist/types/types/IEmailEditorInstance.d.ts +64 -0
- package/dist/types/types/IEmailOptions.d.ts +7 -0
- package/dist/types/types/Language/Language.d.ts +1 -1
- package/dist/types/types/MergeTag/IMergeTag.d.ts +18 -0
- package/dist/types/types/Notification/INotification.d.ts +2 -1
- package/dist/types/types/Sections/ISections.d.ts +41 -0
- package/dist/types/types/Shortcuts/EditorShortcut.d.ts +4 -0
- package/dist/types/types/Theme/ITheme.d.ts +12 -2
- package/dist/types/types/landing-page/ILandingPageEditorInstance.d.ts +65 -5
- package/dist/types/types/landing-page/ILandingPageOptions.d.ts +15 -12
- package/logo.svg +1 -0
- package/package.json +11 -13
- package/dist/topol-plugin.es.js +0 -277
- package/dist/topol-plugin.umd.js +0 -1
- package/dist/types/src/landing-page-editor/schemas/helpdesk/helpdeskSchema.d.ts +0 -8
- package/dist/types/src/landing-page-editor/schemas/premadeBlock/premadeBlockSchema.d.ts +0 -59750
- package/dist/types/src/landing-page-editor/schemas/savedBlock/savedBlockApiSchema.d.ts +0 -44831
- package/dist/types/src/landing-page-editor/schemas/savedBlock/savedBlockSchema.d.ts +0 -59725
- package/dist/types/src/landing-page-editor/schemas/template/blocks/index.d.ts +0 -12
- package/dist/types/types/ITopolPlugin.d.ts +0 -44
- package/dist/types/types/SavedBlock/ISavedBlock.d.ts +0 -6
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export * from "./buttonBlockSchema";
|
|
2
|
-
export * from "./carouselBlockSchema";
|
|
3
|
-
export * from "./dividerBlockSchema";
|
|
4
|
-
export * from "./imageAnGifBlockSchema";
|
|
5
|
-
export * from "./rawBlockSchema";
|
|
6
|
-
export * from "./socialBlockSchema";
|
|
7
|
-
export * from "./spacerBlockSchema";
|
|
8
|
-
export * from "./textBlockSchema";
|
|
9
|
-
export * from "./videoBlockSchema";
|
|
10
|
-
export { TopolTextStyleSchema, TopolListStyleSchema } from "../styleSchema";
|
|
11
|
-
export { TopolSectionStyleSchema, TopolContainerAttributesSchema } from "../structure/sectionSchema";
|
|
12
|
-
export { TopolColumnStyleSchema } from "../structure/columnSchema";
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import INotification from "./Notification/INotification";
|
|
2
|
-
import ISavedBlock from "./SavedBlock/ISavedBlock";
|
|
3
|
-
import ITopolOptions from "./ITopolOptions";
|
|
4
|
-
import IMergeTagGroup from "./MergeTag/IMergeTagGroup";
|
|
5
|
-
import IMergeTag from "./MergeTag/IMergeTag";
|
|
6
|
-
export default interface ITopolPlugin {
|
|
7
|
-
init: (topolOptions: ITopolOptions) => void;
|
|
8
|
-
save: (lang?: string) => void;
|
|
9
|
-
load: (json: unknown) => void;
|
|
10
|
-
togglePreview: () => void;
|
|
11
|
-
togglePreviewSize: () => void;
|
|
12
|
-
chooseFile: (url: string) => void;
|
|
13
|
-
undo: () => void;
|
|
14
|
-
redo: () => void;
|
|
15
|
-
destroy: () => void;
|
|
16
|
-
setSavedBlocks: (savedBlocks: ISavedBlock[]) => void;
|
|
17
|
-
setPreviewHTML: (html: unknown) => void;
|
|
18
|
-
createNotification: (notification: INotification) => void;
|
|
19
|
-
setActiveMembers: (activeMemers: string[]) => void;
|
|
20
|
-
changeEmailToMobile: () => void;
|
|
21
|
-
changeEmailToDesktop: () => void;
|
|
22
|
-
toggleBlocksAndStructuresVisibility: () => void;
|
|
23
|
-
updateCustomBlockContent: (content: string) => void;
|
|
24
|
-
refreshComments: (key: string) => void;
|
|
25
|
-
refreshSyncedRows: () => void;
|
|
26
|
-
openPremadeTemplatesSelection: () => void;
|
|
27
|
-
updateApiAuthorizationHeader: (newHeader: string | Record<string, string>) => void;
|
|
28
|
-
setTemplateName: (name: string) => void;
|
|
29
|
-
updateOptions: (options: Partial<ITopolOptions>) => void;
|
|
30
|
-
setMergeTags: (mergeTags: Array<IMergeTagGroup | IMergeTag>) => void;
|
|
31
|
-
toggleChatAI: () => void;
|
|
32
|
-
toggleAutosaves: () => void;
|
|
33
|
-
toggleComments: () => void;
|
|
34
|
-
createLanguage: (lang: string) => void;
|
|
35
|
-
setPrimaryLanguage: (lang: string) => void;
|
|
36
|
-
deleteLanguage: (lang: string) => void;
|
|
37
|
-
selectLanguage: (lang: string) => void;
|
|
38
|
-
getMutations: () => void;
|
|
39
|
-
toggleControlPanel: () => void;
|
|
40
|
-
updateTemplate: (json: unknown, options?: {
|
|
41
|
-
skipSnapshot?: boolean;
|
|
42
|
-
}) => void;
|
|
43
|
-
toggleDarkMode: () => void;
|
|
44
|
-
}
|