designertool 0.0.1-dev → 0.0.2-dev
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/PostcardDesigner.vue.d.ts.map +1 -1
- package/dist/components/Image/ImageCard.vue.d.ts +5 -3
- package/dist/components/display-elements/displayables/Code.vue.d.ts +1 -1
- package/dist/components/share/Tooltip.vue.d.ts +21 -0
- package/dist/composable/generateHtml.d.ts +1 -0
- package/dist/composable/googleMap.d.ts +11 -0
- package/dist/config.d.ts +61 -17
- package/dist/index.css +1 -1
- package/dist/postcard-dt.es.js +37669 -20688
- package/dist/stores/canvas-store.d.ts +9 -0
- package/dist/stores/config-store.d.ts +61 -17
- package/dist/stores/global-store.d.ts +21 -0
- package/dist/stores/history-store.d.ts +1 -0
- package/dist/stores/item-store.d.ts +11 -0
- package/dist/types/api.d.ts +1 -0
- package/dist/types/variable.d.ts +8 -0
- package/package.json +2 -2
|
@@ -2,10 +2,14 @@ import { CanvasState } from '../types/items';
|
|
|
2
2
|
export declare const useCanvas: import('./pinia/dist/pinia.esm-browser.js').StoreDefinition<"canvas", {
|
|
3
3
|
canvasState: CanvasState;
|
|
4
4
|
zoom: number;
|
|
5
|
+
htmlButtonBehaviour: "download" | "save";
|
|
5
6
|
activeSide: "front" | "back";
|
|
7
|
+
isSideChangeAvailable: boolean;
|
|
6
8
|
isFullscreen: boolean;
|
|
7
9
|
isCodeActive: boolean;
|
|
8
10
|
isCropping: boolean;
|
|
11
|
+
isWrappedInModal: boolean;
|
|
12
|
+
isBackButtonVisible: boolean;
|
|
9
13
|
}, {}, {
|
|
10
14
|
setCanvasState(state?: CanvasState): void;
|
|
11
15
|
exportFunc(): {
|
|
@@ -16,4 +20,9 @@ export declare const useCanvas: import('./pinia/dist/pinia.esm-browser.js').Stor
|
|
|
16
20
|
front: any;
|
|
17
21
|
back: any;
|
|
18
22
|
};
|
|
23
|
+
setDefaultActiveSide(): void;
|
|
24
|
+
setDefaultHtmlButtonBehaviour(): void;
|
|
25
|
+
checkValidLetterSize(): void;
|
|
26
|
+
checkIfIsWrappedInModal(): void;
|
|
27
|
+
checkIfIsBackButtonVisible(): void;
|
|
19
28
|
}>;
|
|
@@ -23,28 +23,56 @@ export declare const useConfig: import('./pinia/dist/pinia.esm-browser.js').Stor
|
|
|
23
23
|
visible: boolean;
|
|
24
24
|
width: number;
|
|
25
25
|
height: number;
|
|
26
|
+
isLetter: boolean;
|
|
26
27
|
};
|
|
27
|
-
|
|
28
|
+
sideSelector: {
|
|
29
|
+
front: boolean;
|
|
30
|
+
back: boolean;
|
|
31
|
+
};
|
|
32
|
+
htmlButtonBehaviour: string;
|
|
33
|
+
onHtmlButtonClick: (html: any) => void;
|
|
34
|
+
merge_variables: ({
|
|
35
|
+
merge_tag: string;
|
|
36
|
+
type: string;
|
|
37
|
+
default_value: string;
|
|
38
|
+
} | {
|
|
39
|
+
merge_tag: string;
|
|
40
|
+
type: string;
|
|
41
|
+
default_value?: undefined;
|
|
42
|
+
})[];
|
|
28
43
|
return_address: {
|
|
29
44
|
company: string;
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
45
|
+
first_name: string;
|
|
46
|
+
last_name: string;
|
|
47
|
+
address_line1: string;
|
|
48
|
+
address_line2: string;
|
|
49
|
+
address_city: string;
|
|
50
|
+
address_state: string;
|
|
51
|
+
address_zip: string;
|
|
37
52
|
};
|
|
38
|
-
example_data: {
|
|
53
|
+
example_data: ({
|
|
39
54
|
company: string;
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
55
|
+
first_name: string;
|
|
56
|
+
last_name: string;
|
|
57
|
+
address_line1: string;
|
|
58
|
+
address_line2: string;
|
|
59
|
+
address_city: string;
|
|
60
|
+
address_state: string;
|
|
61
|
+
address_zip: string;
|
|
62
|
+
image: string;
|
|
63
|
+
image2: string;
|
|
64
|
+
} | {
|
|
65
|
+
company: string;
|
|
66
|
+
first_name: string;
|
|
67
|
+
last_name: string;
|
|
68
|
+
address_line1: string;
|
|
69
|
+
address_line2: string;
|
|
70
|
+
address_city: string;
|
|
71
|
+
address_state: string;
|
|
72
|
+
address_zip: string;
|
|
73
|
+
image?: undefined;
|
|
74
|
+
image2?: undefined;
|
|
75
|
+
})[];
|
|
48
76
|
api: {
|
|
49
77
|
base_url: string;
|
|
50
78
|
project_id: number;
|
|
@@ -129,6 +157,20 @@ export declare const useConfig: import('./pinia/dist/pinia.esm-browser.js').Stor
|
|
|
129
157
|
'wbg-dt-primary-ring': string;
|
|
130
158
|
'wbg-dt-secondary-ring': string;
|
|
131
159
|
'wbg-dt-error-ring': string;
|
|
160
|
+
'sb-color-25': string;
|
|
161
|
+
'sb-color-50': string;
|
|
162
|
+
'sb-color-100': string;
|
|
163
|
+
'sb-color-200': string;
|
|
164
|
+
'sb-color-300': string;
|
|
165
|
+
'sb-color-400': string;
|
|
166
|
+
'sb-color-500': string;
|
|
167
|
+
'sb-color-600': string;
|
|
168
|
+
'sb-color-700': string;
|
|
169
|
+
'sb-color-800': string;
|
|
170
|
+
'sb-color-900': string;
|
|
171
|
+
'sb-color-950': string;
|
|
172
|
+
'tooltip-bg-color': string;
|
|
173
|
+
'tooltip-text-color': string;
|
|
132
174
|
};
|
|
133
175
|
rounding: {
|
|
134
176
|
'wbg-dt-sm': string;
|
|
@@ -145,6 +187,8 @@ export declare const useConfig: import('./pinia/dist/pinia.esm-browser.js').Stor
|
|
|
145
187
|
'wbg-dt-serif': string;
|
|
146
188
|
'wbg-dt-header': string;
|
|
147
189
|
};
|
|
190
|
+
isWrappedInModal: boolean;
|
|
191
|
+
isBackButtonVisible: boolean;
|
|
148
192
|
};
|
|
149
193
|
};
|
|
150
194
|
}, {}, {
|
|
@@ -25,6 +25,7 @@ export declare const useGlobal: import('./pinia/dist/pinia.esm-browser.js').Stor
|
|
|
25
25
|
[key: string]: string;
|
|
26
26
|
};
|
|
27
27
|
downloadHtml: () => void;
|
|
28
|
+
returnTheWholeHtml: () => void;
|
|
28
29
|
};
|
|
29
30
|
loading: boolean;
|
|
30
31
|
}, {}, {
|
|
@@ -54,6 +55,7 @@ export declare const useGlobal: import('./pinia/dist/pinia.esm-browser.js').Stor
|
|
|
54
55
|
[key: string]: string;
|
|
55
56
|
};
|
|
56
57
|
downloadHtml: () => void;
|
|
58
|
+
returnTheWholeHtml: () => void;
|
|
57
59
|
};
|
|
58
60
|
}, {
|
|
59
61
|
getFocusedItem: (state: {
|
|
@@ -598,6 +600,7 @@ export declare const useGlobal: import('./pinia/dist/pinia.esm-browser.js').Stor
|
|
|
598
600
|
[key: string]: string;
|
|
599
601
|
};
|
|
600
602
|
downloadHtml: () => void;
|
|
603
|
+
returnTheWholeHtml: () => void;
|
|
601
604
|
};
|
|
602
605
|
loading: boolean;
|
|
603
606
|
};
|
|
@@ -978,6 +981,7 @@ export declare const useGlobal: import('./pinia/dist/pinia.esm-browser.js').Stor
|
|
|
978
981
|
[key: string]: string;
|
|
979
982
|
};
|
|
980
983
|
downloadHtml: () => void;
|
|
984
|
+
returnTheWholeHtml: () => void;
|
|
981
985
|
};
|
|
982
986
|
loading: boolean;
|
|
983
987
|
}>): void;
|
|
@@ -1357,6 +1361,7 @@ export declare const useGlobal: import('./pinia/dist/pinia.esm-browser.js').Stor
|
|
|
1357
1361
|
[key: string]: string;
|
|
1358
1362
|
};
|
|
1359
1363
|
downloadHtml: () => void;
|
|
1364
|
+
returnTheWholeHtml: () => void;
|
|
1360
1365
|
};
|
|
1361
1366
|
loading: boolean;
|
|
1362
1367
|
}) => any>(stateMutator: ReturnType<F> extends Promise<any> ? never : F): void;
|
|
@@ -1382,6 +1387,7 @@ export declare const useGlobal: import('./pinia/dist/pinia.esm-browser.js').Stor
|
|
|
1382
1387
|
[key: string]: string;
|
|
1383
1388
|
};
|
|
1384
1389
|
downloadHtml: () => void;
|
|
1390
|
+
returnTheWholeHtml: () => void;
|
|
1385
1391
|
};
|
|
1386
1392
|
loading: boolean;
|
|
1387
1393
|
}>, options?: ({
|
|
@@ -1407,6 +1413,7 @@ export declare const useGlobal: import('./pinia/dist/pinia.esm-browser.js').Stor
|
|
|
1407
1413
|
[key: string]: string;
|
|
1408
1414
|
};
|
|
1409
1415
|
downloadHtml: () => void;
|
|
1416
|
+
returnTheWholeHtml: () => void;
|
|
1410
1417
|
};
|
|
1411
1418
|
loading: boolean;
|
|
1412
1419
|
}, {}, {
|
|
@@ -1798,6 +1805,7 @@ export declare const useGlobal: import('./pinia/dist/pinia.esm-browser.js').Stor
|
|
|
1798
1805
|
[key: string]: string;
|
|
1799
1806
|
};
|
|
1800
1807
|
downloadHtml: () => void;
|
|
1808
|
+
returnTheWholeHtml: () => void;
|
|
1801
1809
|
};
|
|
1802
1810
|
loading: boolean;
|
|
1803
1811
|
saveStepToHistory: () => void;
|
|
@@ -1826,6 +1834,7 @@ export declare const useGlobal: import('./pinia/dist/pinia.esm-browser.js').Stor
|
|
|
1826
1834
|
[key: string]: string;
|
|
1827
1835
|
};
|
|
1828
1836
|
downloadHtml: () => void;
|
|
1837
|
+
returnTheWholeHtml: () => void;
|
|
1829
1838
|
};
|
|
1830
1839
|
} & import('./pinia/dist/pinia.esm-browser.js').PiniaCustomStateProperties<{
|
|
1831
1840
|
items: import("../types/items").Item[];
|
|
@@ -1852,6 +1861,7 @@ export declare const useGlobal: import('./pinia/dist/pinia.esm-browser.js').Stor
|
|
|
1852
1861
|
[key: string]: string;
|
|
1853
1862
|
};
|
|
1854
1863
|
downloadHtml: () => void;
|
|
1864
|
+
returnTheWholeHtml: () => void;
|
|
1855
1865
|
};
|
|
1856
1866
|
loading: boolean;
|
|
1857
1867
|
}, {}, {
|
|
@@ -1881,6 +1891,7 @@ export declare const useGlobal: import('./pinia/dist/pinia.esm-browser.js').Stor
|
|
|
1881
1891
|
[key: string]: string;
|
|
1882
1892
|
};
|
|
1883
1893
|
downloadHtml: () => void;
|
|
1894
|
+
returnTheWholeHtml: () => void;
|
|
1884
1895
|
};
|
|
1885
1896
|
}>) => {
|
|
1886
1897
|
type: "Color";
|
|
@@ -2072,10 +2083,14 @@ export declare const useGlobal: import('./pinia/dist/pinia.esm-browser.js').Stor
|
|
|
2072
2083
|
canvasStore: import('./pinia/dist/pinia.esm-browser.js').Store<"canvas", {
|
|
2073
2084
|
canvasState: import("../types/items").CanvasState;
|
|
2074
2085
|
zoom: number;
|
|
2086
|
+
htmlButtonBehaviour: "download" | "save";
|
|
2075
2087
|
activeSide: "front" | "back";
|
|
2088
|
+
isSideChangeAvailable: boolean;
|
|
2076
2089
|
isFullscreen: boolean;
|
|
2077
2090
|
isCodeActive: boolean;
|
|
2078
2091
|
isCropping: boolean;
|
|
2092
|
+
isWrappedInModal: boolean;
|
|
2093
|
+
isBackButtonVisible: boolean;
|
|
2079
2094
|
}, {}, {
|
|
2080
2095
|
setCanvasState(state?: import("../types/items").CanvasState): void;
|
|
2081
2096
|
exportFunc(): {
|
|
@@ -2086,6 +2101,11 @@ export declare const useGlobal: import('./pinia/dist/pinia.esm-browser.js').Stor
|
|
|
2086
2101
|
front: any;
|
|
2087
2102
|
back: any;
|
|
2088
2103
|
};
|
|
2104
|
+
setDefaultActiveSide(): void;
|
|
2105
|
+
setDefaultHtmlButtonBehaviour(): void;
|
|
2106
|
+
checkValidLetterSize(): void;
|
|
2107
|
+
checkIfIsWrappedInModal(): void;
|
|
2108
|
+
checkIfIsBackButtonVisible(): void;
|
|
2089
2109
|
}>;
|
|
2090
2110
|
historyStore: import('./pinia/dist/pinia.esm-browser.js').Store<"history", {
|
|
2091
2111
|
previous: GlobalState[];
|
|
@@ -2107,6 +2127,7 @@ export declare const useGlobal: import('./pinia/dist/pinia.esm-browser.js').Stor
|
|
|
2107
2127
|
[key: string]: string;
|
|
2108
2128
|
};
|
|
2109
2129
|
downloadHtml: () => void;
|
|
2130
|
+
returnTheWholeHtml: () => void;
|
|
2110
2131
|
};
|
|
2111
2132
|
loading: boolean;
|
|
2112
2133
|
}, {}, {
|
|
@@ -24,6 +24,7 @@ export declare const useItems: import('./pinia/dist/pinia.esm-browser.js').Store
|
|
|
24
24
|
[key: string]: string;
|
|
25
25
|
};
|
|
26
26
|
downloadHtml: () => void;
|
|
27
|
+
returnTheWholeHtml: () => void;
|
|
27
28
|
};
|
|
28
29
|
loading: boolean;
|
|
29
30
|
}, {}, {
|
|
@@ -53,6 +54,7 @@ export declare const useItems: import('./pinia/dist/pinia.esm-browser.js').Store
|
|
|
53
54
|
[key: string]: string;
|
|
54
55
|
};
|
|
55
56
|
downloadHtml: () => void;
|
|
57
|
+
returnTheWholeHtml: () => void;
|
|
56
58
|
};
|
|
57
59
|
}, {
|
|
58
60
|
getFocusedItem: (state: {
|
|
@@ -597,6 +599,7 @@ export declare const useItems: import('./pinia/dist/pinia.esm-browser.js').Store
|
|
|
597
599
|
[key: string]: string;
|
|
598
600
|
};
|
|
599
601
|
downloadHtml: () => void;
|
|
602
|
+
returnTheWholeHtml: () => void;
|
|
600
603
|
};
|
|
601
604
|
loading: boolean;
|
|
602
605
|
};
|
|
@@ -977,6 +980,7 @@ export declare const useItems: import('./pinia/dist/pinia.esm-browser.js').Store
|
|
|
977
980
|
[key: string]: string;
|
|
978
981
|
};
|
|
979
982
|
downloadHtml: () => void;
|
|
983
|
+
returnTheWholeHtml: () => void;
|
|
980
984
|
};
|
|
981
985
|
loading: boolean;
|
|
982
986
|
}>): void;
|
|
@@ -1356,6 +1360,7 @@ export declare const useItems: import('./pinia/dist/pinia.esm-browser.js').Store
|
|
|
1356
1360
|
[key: string]: string;
|
|
1357
1361
|
};
|
|
1358
1362
|
downloadHtml: () => void;
|
|
1363
|
+
returnTheWholeHtml: () => void;
|
|
1359
1364
|
};
|
|
1360
1365
|
loading: boolean;
|
|
1361
1366
|
}) => any>(stateMutator: ReturnType<F> extends Promise<any> ? never : F): void;
|
|
@@ -1381,6 +1386,7 @@ export declare const useItems: import('./pinia/dist/pinia.esm-browser.js').Store
|
|
|
1381
1386
|
[key: string]: string;
|
|
1382
1387
|
};
|
|
1383
1388
|
downloadHtml: () => void;
|
|
1389
|
+
returnTheWholeHtml: () => void;
|
|
1384
1390
|
};
|
|
1385
1391
|
loading: boolean;
|
|
1386
1392
|
}>, options?: ({
|
|
@@ -1406,6 +1412,7 @@ export declare const useItems: import('./pinia/dist/pinia.esm-browser.js').Store
|
|
|
1406
1412
|
[key: string]: string;
|
|
1407
1413
|
};
|
|
1408
1414
|
downloadHtml: () => void;
|
|
1415
|
+
returnTheWholeHtml: () => void;
|
|
1409
1416
|
};
|
|
1410
1417
|
loading: boolean;
|
|
1411
1418
|
}, {}, {
|
|
@@ -1797,6 +1804,7 @@ export declare const useItems: import('./pinia/dist/pinia.esm-browser.js').Store
|
|
|
1797
1804
|
[key: string]: string;
|
|
1798
1805
|
};
|
|
1799
1806
|
downloadHtml: () => void;
|
|
1807
|
+
returnTheWholeHtml: () => void;
|
|
1800
1808
|
};
|
|
1801
1809
|
loading: boolean;
|
|
1802
1810
|
saveStepToHistory: () => void;
|
|
@@ -1825,6 +1833,7 @@ export declare const useItems: import('./pinia/dist/pinia.esm-browser.js').Store
|
|
|
1825
1833
|
[key: string]: string;
|
|
1826
1834
|
};
|
|
1827
1835
|
downloadHtml: () => void;
|
|
1836
|
+
returnTheWholeHtml: () => void;
|
|
1828
1837
|
};
|
|
1829
1838
|
} & import('./pinia/dist/pinia.esm-browser.js').PiniaCustomStateProperties<{
|
|
1830
1839
|
items: Item[];
|
|
@@ -1851,6 +1860,7 @@ export declare const useItems: import('./pinia/dist/pinia.esm-browser.js').Store
|
|
|
1851
1860
|
[key: string]: string;
|
|
1852
1861
|
};
|
|
1853
1862
|
downloadHtml: () => void;
|
|
1863
|
+
returnTheWholeHtml: () => void;
|
|
1854
1864
|
};
|
|
1855
1865
|
loading: boolean;
|
|
1856
1866
|
}, {}, {
|
|
@@ -1880,6 +1890,7 @@ export declare const useItems: import('./pinia/dist/pinia.esm-browser.js').Store
|
|
|
1880
1890
|
[key: string]: string;
|
|
1881
1891
|
};
|
|
1882
1892
|
downloadHtml: () => void;
|
|
1893
|
+
returnTheWholeHtml: () => void;
|
|
1883
1894
|
};
|
|
1884
1895
|
}>) => {
|
|
1885
1896
|
type: "Color";
|
package/dist/types/api.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "designertool",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.2-dev",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist"
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"scripts": {
|
|
21
21
|
"dev": "vite",
|
|
22
22
|
"format": "prettier . --write",
|
|
23
|
-
"build": "vue-tsc && vite build",
|
|
23
|
+
"build:npm": "vue-tsc && vite build",
|
|
24
24
|
"build:static": "vue-cli-service build",
|
|
25
25
|
"build:package": "vue-cli-service build --target lib --inline-vue --name myLib src/package-entry.ts",
|
|
26
26
|
"preview": "vite preview"
|