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.
- package/README.md +174 -0
- package/dist/PostcardDesigner.vue.d.ts +7 -0
- package/dist/PostcardDesigner.vue.d.ts.map +1 -0
- package/dist/assets/icons/template-icons/loading-circle-icon.vue.d.ts +2 -0
- package/dist/components/Image/ImageCard.vue.d.ts +15 -0
- package/dist/components/Image/ImageLibrary.vue.d.ts +26 -0
- package/dist/components/Image/ImageLoadingCard.vue.d.ts +2 -0
- package/dist/components/Image/ImageUpload.vue.d.ts +4 -0
- package/dist/components/Image/ImageUploadUrl.vue.d.ts +14 -0
- package/dist/components/Image/UnsplashPhoto.vue.d.ts +14 -0
- package/dist/components/Image/UnsplashPhotoList.vue.d.ts +28 -0
- package/dist/components/Template/TemplateList.vue.d.ts +19 -0
- package/dist/components/TextEditor/Selects/AlignSelector.vue.d.ts +16 -0
- package/dist/components/TextEditor/Selects/AlignToPageSelector.vue.d.ts +28 -0
- package/dist/components/TextEditor/Selects/OrderSelector.vue.d.ts +4 -0
- package/dist/components/TextEditor/TextFormatter.vue.d.ts +2 -0
- package/dist/components/display-elements/Item.vue.d.ts +14 -0
- package/dist/components/display-elements/ItemWrapper.vue.d.ts +14 -0
- package/dist/components/display-elements/displayables/Code.vue.d.ts +32 -0
- package/dist/components/display-elements/displayables/Image.vue.d.ts +12 -0
- package/dist/components/display-elements/displayables/Map.vue.d.ts +12 -0
- package/dist/components/display-elements/displayables/QrCode.vue.d.ts +12 -0
- package/dist/components/display-elements/displayables/Shape.vue.d.ts +12 -0
- package/dist/components/display-elements/displayables/Text.vue.d.ts +12 -0
- package/dist/components/display-elements/displayables/Tracking.vue.d.ts +12 -0
- package/dist/components/pages/Canvas.vue.d.ts +16 -0
- package/dist/components/pages/EditPage.vue.d.ts +13 -0
- package/dist/components/pages/PreviewPage.vue.d.ts +14 -0
- package/dist/components/share/BaseSelect.vue.d.ts +35 -0
- package/dist/components/share/Border.vue.d.ts +33 -0
- package/dist/components/share/Button.vue.d.ts +38 -0
- package/dist/components/share/Dropdown.vue.d.ts +54 -0
- package/dist/components/share/GoogleAutocomplete.vue.d.ts +76 -0
- package/dist/components/share/GoogleMap.vue.d.ts +76 -0
- package/dist/components/share/HeaderSection.vue.d.ts +28 -0
- package/dist/components/share/IconButton.vue.d.ts +44 -0
- package/dist/components/share/Input.vue.d.ts +74 -0
- package/dist/components/share/Modal.vue.d.ts +75 -0
- package/dist/components/share/Position.vue.d.ts +28 -0
- package/dist/components/share/SidebarTabs.vue.d.ts +28 -0
- package/dist/components/share/Slider.vue.d.ts +33 -0
- package/dist/components/sidebar/Background.vue.d.ts +2 -0
- package/dist/components/sidebar/Image.vue.d.ts +2 -0
- package/dist/components/sidebar/Layer.vue.d.ts +2 -0
- package/dist/components/sidebar/Map.vue.d.ts +2 -0
- package/dist/components/sidebar/Shape.vue.d.ts +2 -0
- package/dist/components/sidebar/Template.vue.d.ts +2 -0
- package/dist/components/sidebar/Text.vue.d.ts +2 -0
- package/dist/components/sidebar/Tracking.vue.d.ts +2 -0
- package/dist/components/sidebar/Variable.vue.d.ts +2 -0
- package/dist/composable/alert.d.ts +2 -0
- package/dist/composable/debouncedRef.d.ts +1 -0
- package/dist/composable/generateHtml.d.ts +18 -0
- package/dist/composable/googleMap.d.ts +2084 -0
- package/dist/composable/preview.d.ts +3 -0
- package/dist/composable/requests.d.ts +3 -0
- package/dist/config.d.ts +146 -0
- package/dist/entry.d.ts +1 -0
- package/dist/index.css +1 -0
- package/dist/index.d.ts +10 -0
- package/dist/layouts/DeviceOverlay.vue.d.ts +13 -0
- package/dist/layouts/MainLayout.vue.d.ts +2 -0
- package/dist/layouts/TheFooter.vue.d.ts +24 -0
- package/dist/layouts/TheSideBar.vue.d.ts +37 -0
- package/dist/layouts/TheToolbar.vue.d.ts +16 -0
- package/dist/postcard-dt.es.js +31940 -0
- package/dist/stores/canvas-store.d.ts +19 -0
- package/dist/stores/config-store.d.ts +153 -0
- package/dist/stores/constants.d.ts +35 -0
- package/dist/stores/global-store.d.ts +2127 -0
- package/dist/stores/history-store.d.ts +34 -0
- package/dist/stores/image-store.d.ts +14 -0
- package/dist/stores/item-store.d.ts +2070 -0
- package/dist/stores/project-store.d.ts +7 -0
- package/dist/stores/template-store.d.ts +9 -0
- package/dist/stores/unsplash-store.d.ts +99 -0
- package/dist/types/api.d.ts +58 -0
- package/dist/types/items.d.ts +92 -0
- package/dist/types/unsplash.d.ts +22 -0
- package/dist/utils/helper-functions.d.ts +11 -0
- package/dist/vite.svg +1 -0
- package/package.json +84 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { GlobalState } from '../types/items';
|
|
2
|
+
export declare const useHistory: import('./pinia/dist/pinia.esm-browser.js').StoreDefinition<"history", {
|
|
3
|
+
previous: GlobalState[];
|
|
4
|
+
next: GlobalState[];
|
|
5
|
+
isLoading: boolean;
|
|
6
|
+
htmlGenerator: {
|
|
7
|
+
body: HTMLBodyElement;
|
|
8
|
+
html: HTMLHtmlElement;
|
|
9
|
+
style: HTMLStyleElement;
|
|
10
|
+
setHtml: (htmlString: string) => void;
|
|
11
|
+
addClassAttribute: (name: string, value: Object) => void;
|
|
12
|
+
editAttribute: (className: string, attributes: Object) => void;
|
|
13
|
+
deleteAttributeFromId: (className: string, attributes: string[]) => void;
|
|
14
|
+
deleteClassAttribute: (className: string) => void;
|
|
15
|
+
initHtml: (htmlTitle: string) => void;
|
|
16
|
+
getHtmlText: () => string;
|
|
17
|
+
getStyleByKey: (key: string) => import("vue").StyleValue;
|
|
18
|
+
convertCssStringToObject: (cssString: string) => {
|
|
19
|
+
[key: string]: string;
|
|
20
|
+
};
|
|
21
|
+
downloadHtml: () => void;
|
|
22
|
+
};
|
|
23
|
+
loading: boolean;
|
|
24
|
+
}, {}, {
|
|
25
|
+
saveStepToHistory(): void;
|
|
26
|
+
savePreviousStep(): void;
|
|
27
|
+
saveHistory(): Promise<unknown>;
|
|
28
|
+
storeHtmlState(html: string): void;
|
|
29
|
+
undo(): void;
|
|
30
|
+
redo(): void;
|
|
31
|
+
clearHtmlContent(canvas: HTMLElement): void;
|
|
32
|
+
clearHtmlAttributes(canvas: Element): void;
|
|
33
|
+
clearDataAttributes(htmlString: string): string;
|
|
34
|
+
}>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { S3Image } from '../types/api';
|
|
2
|
+
export declare const useS3Image: import('./pinia/dist/pinia.esm-browser.js').StoreDefinition<"s3-image", {
|
|
3
|
+
getSignedUrlEndpoint: string;
|
|
4
|
+
imagesEndpoint: string;
|
|
5
|
+
images: S3Image[];
|
|
6
|
+
isUploadInProgress: boolean;
|
|
7
|
+
nextPageUrl: string;
|
|
8
|
+
}, {}, {
|
|
9
|
+
listImages(): Promise<void>;
|
|
10
|
+
listAdditionalImages(): Promise<void>;
|
|
11
|
+
getSignedUrl(): Promise<any>;
|
|
12
|
+
uploadImage(file: File): Promise<any>;
|
|
13
|
+
deleteImage(imageId: number): Promise<void>;
|
|
14
|
+
}>;
|