designertool 0.31.0 → 0.35.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 +14 -3
- package/dist/PostcardDesigner.vue.d.ts +2 -0
- package/dist/config.d.ts +4 -0
- package/dist/designertool.js +163 -109
- package/dist/stores/config-store.d.ts +4 -0
- package/package.json +2 -3
package/README.md
CHANGED
|
@@ -12,9 +12,6 @@ Default config:
|
|
|
12
12
|
|
|
13
13
|
```js
|
|
14
14
|
{
|
|
15
|
-
// TO BE ADDDED:
|
|
16
|
-
"initialHtml": "<html>... HTML GENERATED BY A DESIGNERTOOL INSTANCE ... </html>",
|
|
17
|
-
|
|
18
15
|
// Existing:
|
|
19
16
|
"size": {
|
|
20
17
|
"w": 9,
|
|
@@ -24,6 +21,20 @@ Default config:
|
|
|
24
21
|
"flags": {
|
|
25
22
|
"disable_default_templates": false
|
|
26
23
|
},
|
|
24
|
+
"initial_html": "<html>... HTML GENERATED BY A DESIGNERTOOL INSTANCE ... </html>",
|
|
25
|
+
// There can be selected between these two options: 'download' or 'save'
|
|
26
|
+
"htmlButtonBehaviour": 'save',
|
|
27
|
+
// This function is called when the user clicks on the Html button: 'download' or 'save'. (This is only an example, you can replace it with your own function)
|
|
28
|
+
"onHtmlButtonClick": (html: any) => {
|
|
29
|
+
console.log(html);
|
|
30
|
+
},
|
|
31
|
+
"isTopRightExitButtonVisible": false,
|
|
32
|
+
"isBottomLeftExitButtonVisible": false,
|
|
33
|
+
"onExitButtonClick": () => {
|
|
34
|
+
emit('exit');
|
|
35
|
+
},
|
|
36
|
+
// The logo needs to be on a publicly accessible URL, in image format PNG, JPG, SVG etc.
|
|
37
|
+
"logo_sidebar_url": "https://yourdomain.com/path-to-your-logo.png",
|
|
27
38
|
"zoom": 100,
|
|
28
39
|
"backgroundColor": "#ffffff",
|
|
29
40
|
"backgroundImage": null,
|
|
@@ -9,7 +9,9 @@ declare global {
|
|
|
9
9
|
}
|
|
10
10
|
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
11
11
|
"html-button-click": (...args: any[]) => void;
|
|
12
|
+
exit: (...args: any[]) => void;
|
|
12
13
|
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
13
14
|
"onHtml-button-click"?: ((...args: any[]) => any) | undefined;
|
|
15
|
+
onExit?: ((...args: any[]) => any) | undefined;
|
|
14
16
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, any, any>;
|
|
15
17
|
export default _default;
|
package/dist/config.d.ts
CHANGED
|
@@ -32,6 +32,10 @@ declare const _default: {
|
|
|
32
32
|
initial_html: undefined | string;
|
|
33
33
|
htmlButtonBehaviour: string;
|
|
34
34
|
onHtmlButtonClick: (html: any) => void;
|
|
35
|
+
isTopRightExitButtonVisible: boolean;
|
|
36
|
+
isBottomLeftExitButtonVisible: boolean;
|
|
37
|
+
onExitButtonClick: () => void;
|
|
38
|
+
logo_sidebar_url: undefined | string;
|
|
35
39
|
merge_variables: ({
|
|
36
40
|
merge_tag: string;
|
|
37
41
|
type: string;
|