@silexlabs/silex 3.0.0-alpha.178 → 3.0.0-alpha.180

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.
@@ -3,12 +3,15 @@ export declare enum ClientEvent {
3
3
  STARTUP_END = "silex:startup:end",/* Silex is ready to be used */
4
4
  GRAPESJS_START = "silex:grapesjs:start",/* GrapesJS is about to be initialized, it is time to edit config.grapesJsConfig */
5
5
  GRAPESJS_END = "silex:grapesjs:end",/* GrapesJS is ready to be used, `editor` is passed as an argument */
6
- PUBLISH_START = "silex:publish:start",/* Publication starts, you can read+write {projectData, siteSettings} */
7
- PUBLISH_PAGE = "silex:publish:page",/* Publication of a page, read+write { siteSettings, pageSettings, page } */
8
- PUBLISH_DATA = "silex:publish:data",/* Just before we send the published data to the server, read+write all publication data, check PublicationData type in types.ts */
6
+ PUBLICATION_UI_OPEN = "silex:publication-ui:open",/* The publication UI is opened, you can access it with { publicationUi } */
7
+ PUBLICATION_UI_CLOSE = "silex:publication-ui:close",/* The publication UI is closed, you can access it with { publicationUi } */
8
+ PUBLISH_BEFORE = "silex:publish:before",/* Publication is about to start, you can read+write {projectData, siteSettings} */
9
+ PUBLISH_START = "silex:publish:start",/* Publication starts, you can read+write project data/settings, use publication manager/ui, prevent publication {projectData, siteSettings, publicationManager, prenventDefault} */
10
+ PUBLISH_PAGE = "silex:publish:page",/* Publication of a page, read+write settings and page data, use publication manager and prevent publication { siteSettings, pageSettings, page, publicationManager, preventDefault } */
11
+ PUBLISH_DATA = "silex:publish:data",/* Just before we send the published data to the server, read+write all publication data, check PublicationData type in types.ts { data, publicationManager } */
9
12
  PUBLISH_END = "silex:publish:end",/* Publication is over, the argument is the publication result with {success: boolean, message: string} */
10
13
  PUBLISH_ERROR = "silex:publish:error",/* Publication failed, the argument is the publication result with {success: boolean, message: string} */
11
- PUBLISH_LOGIN_START = "silex:publish:login:start",
14
+ PUBLISH_LOGIN_START = "silex:publish:login:start",/* The user is about to login before publication, you can read+write connector data and use publication manager and prevent publication {connector, publicationManager, preventDefault} */
12
15
  PUBLISH_LOGIN_END = "silex:publish:login:end",
13
16
  ASSET_WRITE_END = "silex:asset:write:end",
14
17
  WRITE_END = "silex:write:end",
@@ -60,13 +60,13 @@ export declare class PublicationManager {
60
60
  constructor(editor: PublishableEditor, opts: PublicationManagerOptions);
61
61
  goLogin(connector: ConnectorData): Promise<void>;
62
62
  goLogout(): Promise<void>;
63
- getPublicationData(projectData: any, siteSettings: any): Promise<PublicationData>;
63
+ getPublicationData(projectData: any, siteSettings: any, preventDefault: () => void): Promise<PublicationData>;
64
64
  /**
65
65
  * Start the publication process
66
66
  * This is the command "publish"
67
67
  */
68
68
  startPublication(): Promise<void>;
69
- getHtmlFiles(siteSettings: WebsiteSettings): Promise<WebsiteFile[]>;
69
+ getHtmlFiles(siteSettings: WebsiteSettings, preventDefault: any): Promise<WebsiteFile[]>;
70
70
  trackProgress(): Promise<void>;
71
71
  private setPublicationTransformers;
72
72
  private resetPublicationTransformers;
@@ -44,11 +44,8 @@ export declare class PublicationUi {
44
44
  isError(status: PublicationStatus): status is PublicationStatus.STATUS_ERROR;
45
45
  isLoggedOut(status: PublicationStatus): status is PublicationStatus.STATUS_LOGGED_OUT;
46
46
  isReady(status: PublicationStatus): status is PublicationStatus.STATUS_NONE;
47
- getDialogElements(): {
48
- el: HTMLElement;
49
- primary: HTMLElement;
50
- secondary: HTMLElement;
51
- };
47
+ userContent: TemplateResult | null;
48
+ setUserContent(content: TemplateResult): void;
52
49
  createDialogElements(): HTMLElement;
53
50
  move(rect: any): void;
54
51
  private renderDialog;