@silexlabs/silex 3.0.0-alpha.55 → 3.0.0-alpha.56
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/dist/client/client/assetUrl.d.ts +8 -1
- package/dist/client/client/utils.d.ts +2 -1
- package/dist/client/js/main.js +74 -74
- package/dist/client/types.d.ts +1 -0
- package/dist/plugins/client/client/assetUrl.d.ts +8 -1
- package/dist/plugins/client/client/assetUrl.js +59 -21
- package/dist/plugins/client/client/assetUrl.js.map +1 -1
- package/dist/plugins/client/client/grapesjs/PublicationManager.js +13 -14
- package/dist/plugins/client/client/grapesjs/PublicationManager.js.map +1 -1
- package/dist/plugins/client/client/grapesjs/index.js +1 -1
- package/dist/plugins/client/client/grapesjs/index.js.map +1 -1
- package/dist/plugins/client/client/publication-transformers.js +4 -4
- package/dist/plugins/client/client/publication-transformers.js.map +1 -1
- package/dist/plugins/client/client/utils.d.ts +2 -1
- package/dist/plugins/client/client/utils.js.map +1 -1
- package/dist/plugins/client/types.d.ts +1 -0
- package/dist/plugins/server/types.d.ts +1 -0
- package/package.json +1 -1
- package/src/ts/client/assetUrl.ts +60 -22
- package/src/ts/client/grapesjs/PublicationManager.ts +13 -14
- package/src/ts/client/grapesjs/index.ts +1 -1
- package/src/ts/client/index.ts +4 -0
- package/src/ts/client/publication-transformers.ts +4 -4
- package/src/ts/client/utils.ts +3 -1
- package/src/ts/types.ts +1 -1
|
@@ -1,4 +1,11 @@
|
|
|
1
|
-
import { Asset, ConnectorId, Page, Style, WebsiteId } from '../types';
|
|
1
|
+
import { Asset, ClientSideFileType, ConnectorId, Page, Style, WebsiteId } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Publication transformer to convert the asset URL during publication
|
|
4
|
+
*/
|
|
5
|
+
export declare const assetsPublicationTransformer: {
|
|
6
|
+
transformPath(path: string, type: ClientSideFileType): string;
|
|
7
|
+
transformPermalink(path: string, type: ClientSideFileType): string;
|
|
8
|
+
};
|
|
2
9
|
/**
|
|
3
10
|
* Update asset URL to use the current storage connector and website ID
|
|
4
11
|
* Assets URLs are stored in the project data in the form `/assets/image.webp`
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { Component, Editor } from 'grapesjs';
|
|
2
|
+
export declare function onAll(editor: Editor, cbk: (c: Component) => void): void;
|