designertool 0.0.1-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.
Files changed (82) hide show
  1. package/README.md +174 -0
  2. package/dist/PostcardDesigner.vue.d.ts +7 -0
  3. package/dist/PostcardDesigner.vue.d.ts.map +1 -0
  4. package/dist/assets/icons/template-icons/loading-circle-icon.vue.d.ts +2 -0
  5. package/dist/components/Image/ImageCard.vue.d.ts +15 -0
  6. package/dist/components/Image/ImageLibrary.vue.d.ts +26 -0
  7. package/dist/components/Image/ImageLoadingCard.vue.d.ts +2 -0
  8. package/dist/components/Image/ImageUpload.vue.d.ts +4 -0
  9. package/dist/components/Image/ImageUploadUrl.vue.d.ts +14 -0
  10. package/dist/components/Image/UnsplashPhoto.vue.d.ts +14 -0
  11. package/dist/components/Image/UnsplashPhotoList.vue.d.ts +28 -0
  12. package/dist/components/Template/TemplateList.vue.d.ts +19 -0
  13. package/dist/components/TextEditor/Selects/AlignSelector.vue.d.ts +16 -0
  14. package/dist/components/TextEditor/Selects/AlignToPageSelector.vue.d.ts +28 -0
  15. package/dist/components/TextEditor/Selects/OrderSelector.vue.d.ts +4 -0
  16. package/dist/components/TextEditor/TextFormatter.vue.d.ts +2 -0
  17. package/dist/components/display-elements/Item.vue.d.ts +14 -0
  18. package/dist/components/display-elements/ItemWrapper.vue.d.ts +14 -0
  19. package/dist/components/display-elements/displayables/Code.vue.d.ts +32 -0
  20. package/dist/components/display-elements/displayables/Image.vue.d.ts +12 -0
  21. package/dist/components/display-elements/displayables/Map.vue.d.ts +12 -0
  22. package/dist/components/display-elements/displayables/QrCode.vue.d.ts +12 -0
  23. package/dist/components/display-elements/displayables/Shape.vue.d.ts +12 -0
  24. package/dist/components/display-elements/displayables/Text.vue.d.ts +12 -0
  25. package/dist/components/display-elements/displayables/Tracking.vue.d.ts +12 -0
  26. package/dist/components/pages/Canvas.vue.d.ts +16 -0
  27. package/dist/components/pages/EditPage.vue.d.ts +13 -0
  28. package/dist/components/pages/PreviewPage.vue.d.ts +14 -0
  29. package/dist/components/share/BaseSelect.vue.d.ts +35 -0
  30. package/dist/components/share/Border.vue.d.ts +33 -0
  31. package/dist/components/share/Button.vue.d.ts +38 -0
  32. package/dist/components/share/Dropdown.vue.d.ts +54 -0
  33. package/dist/components/share/GoogleAutocomplete.vue.d.ts +76 -0
  34. package/dist/components/share/GoogleMap.vue.d.ts +76 -0
  35. package/dist/components/share/HeaderSection.vue.d.ts +28 -0
  36. package/dist/components/share/IconButton.vue.d.ts +44 -0
  37. package/dist/components/share/Input.vue.d.ts +74 -0
  38. package/dist/components/share/Modal.vue.d.ts +75 -0
  39. package/dist/components/share/Position.vue.d.ts +28 -0
  40. package/dist/components/share/SidebarTabs.vue.d.ts +28 -0
  41. package/dist/components/share/Slider.vue.d.ts +33 -0
  42. package/dist/components/sidebar/Background.vue.d.ts +2 -0
  43. package/dist/components/sidebar/Image.vue.d.ts +2 -0
  44. package/dist/components/sidebar/Layer.vue.d.ts +2 -0
  45. package/dist/components/sidebar/Map.vue.d.ts +2 -0
  46. package/dist/components/sidebar/Shape.vue.d.ts +2 -0
  47. package/dist/components/sidebar/Template.vue.d.ts +2 -0
  48. package/dist/components/sidebar/Text.vue.d.ts +2 -0
  49. package/dist/components/sidebar/Tracking.vue.d.ts +2 -0
  50. package/dist/components/sidebar/Variable.vue.d.ts +2 -0
  51. package/dist/composable/alert.d.ts +2 -0
  52. package/dist/composable/debouncedRef.d.ts +1 -0
  53. package/dist/composable/generateHtml.d.ts +18 -0
  54. package/dist/composable/googleMap.d.ts +2084 -0
  55. package/dist/composable/preview.d.ts +3 -0
  56. package/dist/composable/requests.d.ts +3 -0
  57. package/dist/config.d.ts +146 -0
  58. package/dist/entry.d.ts +1 -0
  59. package/dist/index.css +1 -0
  60. package/dist/index.d.ts +10 -0
  61. package/dist/layouts/DeviceOverlay.vue.d.ts +13 -0
  62. package/dist/layouts/MainLayout.vue.d.ts +2 -0
  63. package/dist/layouts/TheFooter.vue.d.ts +24 -0
  64. package/dist/layouts/TheSideBar.vue.d.ts +37 -0
  65. package/dist/layouts/TheToolbar.vue.d.ts +16 -0
  66. package/dist/postcard-dt.es.js +31940 -0
  67. package/dist/stores/canvas-store.d.ts +19 -0
  68. package/dist/stores/config-store.d.ts +153 -0
  69. package/dist/stores/constants.d.ts +35 -0
  70. package/dist/stores/global-store.d.ts +2127 -0
  71. package/dist/stores/history-store.d.ts +34 -0
  72. package/dist/stores/image-store.d.ts +14 -0
  73. package/dist/stores/item-store.d.ts +2070 -0
  74. package/dist/stores/project-store.d.ts +7 -0
  75. package/dist/stores/template-store.d.ts +9 -0
  76. package/dist/stores/unsplash-store.d.ts +99 -0
  77. package/dist/types/api.d.ts +58 -0
  78. package/dist/types/items.d.ts +92 -0
  79. package/dist/types/unsplash.d.ts +22 -0
  80. package/dist/utils/helper-functions.d.ts +11 -0
  81. package/dist/vite.svg +1 -0
  82. package/package.json +84 -0
@@ -0,0 +1,19 @@
1
+ import { CanvasState } from '../types/items';
2
+ export declare const useCanvas: import('./pinia/dist/pinia.esm-browser.js').StoreDefinition<"canvas", {
3
+ canvasState: CanvasState;
4
+ zoom: number;
5
+ activeSide: "front" | "back";
6
+ isFullscreen: boolean;
7
+ isCodeActive: boolean;
8
+ isCropping: boolean;
9
+ }, {}, {
10
+ setCanvasState(state?: CanvasState): void;
11
+ exportFunc(): {
12
+ size: {
13
+ w: number;
14
+ h: number;
15
+ };
16
+ front: any;
17
+ back: any;
18
+ };
19
+ }>;
@@ -0,0 +1,153 @@
1
+ import defaultConfig from '../config';
2
+ export type Config = typeof defaultConfig;
3
+ export type Font = Config['fonts'][number];
4
+ export declare const useConfig: import('./pinia/dist/pinia.esm-browser.js').StoreDefinition<"config", {
5
+ config: {
6
+ size: {
7
+ w: number;
8
+ h: number;
9
+ };
10
+ zoom: number;
11
+ backgroundColor: string;
12
+ backgroundImage: null;
13
+ border: {
14
+ enabled: boolean;
15
+ width: number;
16
+ color: string;
17
+ };
18
+ canvasOffset: {
19
+ x: number;
20
+ y: number;
21
+ };
22
+ address_box: {
23
+ visible: boolean;
24
+ width: number;
25
+ height: number;
26
+ };
27
+ merge_variables: string[];
28
+ return_address: {
29
+ company: string;
30
+ firstname: string;
31
+ lastname: string;
32
+ address1: string;
33
+ address2: string;
34
+ city: string;
35
+ state: string;
36
+ zipcode: string;
37
+ };
38
+ example_data: {
39
+ company: string;
40
+ firstname: string;
41
+ lastname: string;
42
+ address1: string;
43
+ address2: string;
44
+ city: string;
45
+ state: string;
46
+ zipcode: string;
47
+ }[];
48
+ api: {
49
+ base_url: string;
50
+ project_id: number;
51
+ user_id: number;
52
+ };
53
+ user_id: string;
54
+ google: {
55
+ map_api_key: string;
56
+ use_predefined_locations: boolean;
57
+ to_addresses: string[];
58
+ };
59
+ fonts: {
60
+ name: string;
61
+ link: string;
62
+ }[];
63
+ appearance: {
64
+ colors: {
65
+ 'wbg-dt-primary-25': string;
66
+ 'wbg-dt-primary-50': string;
67
+ 'wbg-dt-primary-100': string;
68
+ 'wbg-dt-primary-200': string;
69
+ 'wbg-dt-primary-300': string;
70
+ 'wbg-dt-primary-400': string;
71
+ 'wbg-dt-primary-500': string;
72
+ 'wbg-dt-primary-600': string;
73
+ 'wbg-dt-primary-700': string;
74
+ 'wbg-dt-primary-800': string;
75
+ 'wbg-dt-primary-900': string;
76
+ 'wbg-dt-primary-950': string;
77
+ 'wbg-dt-secondary-25': string;
78
+ 'wbg-dt-secondary-50': string;
79
+ 'wbg-dt-secondary-100': string;
80
+ 'wbg-dt-secondary-200': string;
81
+ 'wbg-dt-secondary-300': string;
82
+ 'wbg-dt-secondary-400': string;
83
+ 'wbg-dt-secondary-500': string;
84
+ 'wbg-dt-secondary-600': string;
85
+ 'wbg-dt-secondary-700': string;
86
+ 'wbg-dt-secondary-800': string;
87
+ 'wbg-dt-secondary-900': string;
88
+ 'wbg-dt-secondary-950': string;
89
+ 'wbg-dt-error-25': string;
90
+ 'wbg-dt-error-50': string;
91
+ 'wbg-dt-error-100': string;
92
+ 'wbg-dt-error-200': string;
93
+ 'wbg-dt-error-300': string;
94
+ 'wbg-dt-error-400': string;
95
+ 'wbg-dt-error-500': string;
96
+ 'wbg-dt-error-600': string;
97
+ 'wbg-dt-error-700': string;
98
+ 'wbg-dt-error-800': string;
99
+ 'wbg-dt-error-900': string;
100
+ 'wbg-dt-error-950': string;
101
+ 'wbg-dt-warning-25': string;
102
+ 'wbg-dt-warning-50': string;
103
+ 'wbg-dt-warning-100': string;
104
+ 'wbg-dt-warning-200': string;
105
+ 'wbg-dt-warning-300': string;
106
+ 'wbg-dt-warning-400': string;
107
+ 'wbg-dt-warning-500': string;
108
+ 'wbg-dt-warning-600': string;
109
+ 'wbg-dt-warning-700': string;
110
+ 'wbg-dt-warning-800': string;
111
+ 'wbg-dt-warning-900': string;
112
+ 'wbg-dt-warning-950': string;
113
+ 'wbg-dt-success-25': string;
114
+ 'wbg-dt-success-50': string;
115
+ 'wbg-dt-success-100': string;
116
+ 'wbg-dt-success-200': string;
117
+ 'wbg-dt-success-300': string;
118
+ 'wbg-dt-success-400': string;
119
+ 'wbg-dt-success-500': string;
120
+ 'wbg-dt-success-600': string;
121
+ 'wbg-dt-success-700': string;
122
+ 'wbg-dt-success-800': string;
123
+ 'wbg-dt-success-900': string;
124
+ 'wbg-dt-success-950': string;
125
+ 'wbg-dt-light': string;
126
+ 'wbg-dt-dark': string;
127
+ 'wbg-dt-off-white': string;
128
+ 'wbg-dt-light-blue': string;
129
+ 'wbg-dt-primary-ring': string;
130
+ 'wbg-dt-secondary-ring': string;
131
+ 'wbg-dt-error-ring': string;
132
+ };
133
+ rounding: {
134
+ 'wbg-dt-sm': string;
135
+ 'wbg-dt-def': string;
136
+ 'wbg-dt-md': string;
137
+ 'wbg-dt-lg': string;
138
+ 'wbg-dt-xl': string;
139
+ 'wbg-dt-2xl': string;
140
+ 'wbg-dt-full': string;
141
+ 'wbg-dt-sidebar': string;
142
+ };
143
+ fonts: {
144
+ 'wbg-dt-sans': string;
145
+ 'wbg-dt-serif': string;
146
+ 'wbg-dt-header': string;
147
+ };
148
+ };
149
+ };
150
+ }, {}, {
151
+ init(config: Partial<Omit<Config, 'fonts'>>): void;
152
+ addFont(font: Font | Font[]): void;
153
+ }>;
@@ -0,0 +1,35 @@
1
+ export declare const useConstants: () => {
2
+ SIDE_BAR_COMPONENTS: ({
3
+ key: string;
4
+ icon: string;
5
+ component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
6
+ } | {
7
+ key: string;
8
+ icon: string;
9
+ component?: undefined;
10
+ })[];
11
+ DEFAULT_POSITION: {
12
+ x: number;
13
+ y: number;
14
+ w: number;
15
+ h: number;
16
+ r: number;
17
+ };
18
+ ORDER_OPTIONS: {
19
+ icon: string;
20
+ label: string;
21
+ value: string;
22
+ }[];
23
+ CROP_TYPES: {
24
+ id: string;
25
+ name: string;
26
+ }[];
27
+ ALIGN_TEXT_OPTIONS: {
28
+ value: string;
29
+ icon: string;
30
+ }[];
31
+ FONT_WEIGHT_OPTIONS: {
32
+ id: string;
33
+ name: string;
34
+ }[];
35
+ };