@printine/designer 0.1.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.
Files changed (199) hide show
  1. package/README.md +146 -0
  2. package/dist/DesignerRuntimeContext.d.ts +3 -0
  3. package/dist/PrintineDesigner.d.ts +9 -0
  4. package/dist/api/client.d.ts +8 -0
  5. package/dist/api/client.js +82 -0
  6. package/dist/api/common-endpoints.d.ts +12 -0
  7. package/dist/api/design-endpoints.d.ts +18 -0
  8. package/dist/api/endpoints.d.ts +33 -0
  9. package/dist/api/endpoints.js +46 -0
  10. package/dist/api/files-endpoints.d.ts +1 -0
  11. package/dist/assets/icons/aspect_ratio.d.ts +3 -0
  12. package/dist/assets/icons/delete.d.ts +3 -0
  13. package/dist/assets/icons/fit_screen.d.ts +3 -0
  14. package/dist/assets/icons/index.d.ts +11 -0
  15. package/dist/assets/icons/loading_1.d.ts +3 -0
  16. package/dist/assets/icons/loading_2.d.ts +3 -0
  17. package/dist/assets/icons/loading_3.d.ts +3 -0
  18. package/dist/assets/icons/pan.d.ts +3 -0
  19. package/dist/assets/icons/setting.d.ts +3 -0
  20. package/dist/assets/icons/text_color.d.ts +3 -0
  21. package/dist/assets/icons/text_h.d.ts +3 -0
  22. package/dist/assets/icons/text_v.d.ts +3 -0
  23. package/dist/bundled-assets.d.ts +4 -0
  24. package/dist/components/add-design.d.ts +8 -0
  25. package/dist/components/assets-dialog.d.ts +21 -0
  26. package/dist/components/canvas-context-menu.d.ts +6 -0
  27. package/dist/components/color-picker/index.d.ts +10 -0
  28. package/dist/components/context.d.ts +24 -0
  29. package/dist/components/design.d.ts +9 -0
  30. package/dist/components/fonts.d.ts +26 -0
  31. package/dist/components/image-crop.d.ts +4 -0
  32. package/dist/components/image-edit.d.ts +1 -0
  33. package/dist/components/layout/aside.d.ts +3 -0
  34. package/dist/components/layout/bottom-nav/element-menu-sheet.d.ts +11 -0
  35. package/dist/components/layout/bottom-nav/element-sheet.d.ts +11 -0
  36. package/dist/components/layout/bottom-nav/index.d.ts +1 -0
  37. package/dist/components/layout/header.d.ts +5 -0
  38. package/dist/components/loading.d.ts +3 -0
  39. package/dist/components/menus/ai.d.ts +5 -0
  40. package/dist/components/menus/background.d.ts +6 -0
  41. package/dist/components/menus/clipart.d.ts +6 -0
  42. package/dist/components/menus/files.d.ts +7 -0
  43. package/dist/components/menus/image.d.ts +8 -0
  44. package/dist/components/menus/index.d.ts +13 -0
  45. package/dist/components/menus/layer.d.ts +5 -0
  46. package/dist/components/menus/product.d.ts +3 -0
  47. package/dist/components/menus/sca.d.ts +5 -0
  48. package/dist/components/menus/shapes.d.ts +6 -0
  49. package/dist/components/menus/templates.d.ts +6 -0
  50. package/dist/components/menus/text-effects.d.ts +5 -0
  51. package/dist/components/menus/text.d.ts +6 -0
  52. package/dist/components/placement-tab.d.ts +7 -0
  53. package/dist/components/preview/3d.d.ts +7 -0
  54. package/dist/components/preview/graphic.d.ts +7 -0
  55. package/dist/components/preview/index.d.ts +18 -0
  56. package/dist/components/preview/open.d.ts +7 -0
  57. package/dist/components/preview/real-time/3d.d.ts +12 -0
  58. package/dist/components/preview/real-time/graphic.d.ts +18 -0
  59. package/dist/components/preview/real-time/index.d.ts +11 -0
  60. package/dist/components/scale-tools.d.ts +7 -0
  61. package/dist/components/semi-deisgn-config.d.ts +13 -0
  62. package/dist/components/semi-design-link.d.ts +9 -0
  63. package/dist/components/store.d.ts +1 -0
  64. package/dist/components/toolbar.d.ts +2 -0
  65. package/dist/config-D2qm60gf.js +16 -0
  66. package/dist/contracts/api-design.d.ts +176 -0
  67. package/dist/contracts/design.d.ts +86 -0
  68. package/dist/design-7zRpRtv9.js +20331 -0
  69. package/dist/engine/canvas-designer.d.ts +101 -0
  70. package/dist/engine/canvas-designer.js +313 -0
  71. package/dist/engine/constants.d.ts +27 -0
  72. package/dist/engine/constants.js +148 -0
  73. package/dist/engine/editor.d.ts +186 -0
  74. package/dist/engine/editor.js +734 -0
  75. package/dist/engine/events.d.ts +34 -0
  76. package/dist/engine/events.js +7 -0
  77. package/dist/engine/extensions/curved-text.d.ts +59 -0
  78. package/dist/engine/fabric.d.ts +4 -0
  79. package/dist/engine/fabric.js +187 -0
  80. package/dist/engine/history.d.ts +27 -0
  81. package/dist/engine/history.js +56 -0
  82. package/dist/engine/managers/event.d.ts +101 -0
  83. package/dist/engine/managers/event.js +410 -0
  84. package/dist/engine/managers/resize.d.ts +24 -0
  85. package/dist/engine/managers/resize.js +63 -0
  86. package/dist/engine/managers/snapline.d.ts +70 -0
  87. package/dist/engine/managers/snapline.js +124 -0
  88. package/dist/engine/managers/workspace.d.ts +26 -0
  89. package/dist/engine/managers/workspace.js +53 -0
  90. package/dist/engine/processors/image.d.ts +88 -0
  91. package/dist/engine/processors/image.js +473 -0
  92. package/dist/engine/processors/template.d.ts +45 -0
  93. package/dist/engine/processors/template.js +314 -0
  94. package/dist/engine/processors/text.d.ts +74 -0
  95. package/dist/engine/processors/text.js +215 -0
  96. package/dist/engine/semi-export-editor.d.ts +199 -0
  97. package/dist/engine/types.d.ts +28 -0
  98. package/dist/engine/utils/common.d.ts +25 -0
  99. package/dist/engine/utils/common.js +68 -0
  100. package/dist/engine/utils/dialog.d.ts +25 -0
  101. package/dist/engine/utils/font.d.ts +5 -0
  102. package/dist/engine/utils/font.js +39 -0
  103. package/dist/engine/utils/image.d.ts +8 -0
  104. package/dist/engine/utils/image.js +50 -0
  105. package/dist/engine/utils/loading.d.ts +17 -0
  106. package/dist/engine/utils/loading.js +71 -0
  107. package/dist/engine/utils/measure.d.ts +6 -0
  108. package/dist/engine/utils/measure.js +6 -0
  109. package/dist/engine/utils/mockup.d.ts +59 -0
  110. package/dist/engine/utils/setting.d.ts +4 -0
  111. package/dist/engine/utils/setting.js +73 -0
  112. package/dist/fabric-types.d.ts +59 -0
  113. package/dist/full-designer.js +14 -0
  114. package/dist/hooks/pagination.d.ts +19 -0
  115. package/dist/hooks/use-adobe-express.d.ts +50 -0
  116. package/dist/hooks/use-before-unload.d.ts +1 -0
  117. package/dist/hooks/use-image-drop.d.ts +18 -0
  118. package/dist/hooks/use-oss-upload.d.ts +34 -0
  119. package/dist/hooks/use-screen.d.ts +1 -0
  120. package/dist/i18n/index.d.ts +12 -0
  121. package/dist/images/design/asset_empty.png +0 -0
  122. package/dist/images/design/design/background.svg +3 -0
  123. package/dist/images/design/design/color-picker.svg +15 -0
  124. package/dist/images/design/design/computer.svg +1 -0
  125. package/dist/images/design/design/copy.svg +1 -0
  126. package/dist/images/design/design/image.svg +10 -0
  127. package/dist/images/design/design/line.svg +1 -0
  128. package/dist/images/design/design/text.svg +1 -0
  129. package/dist/images/design/design/title.svg +1 -0
  130. package/dist/images/design/empty.png +0 -0
  131. package/dist/images/design/layer_empty.png +0 -0
  132. package/dist/images/design/menu/ai.svg +1 -0
  133. package/dist/images/design/menu/back.svg +4 -0
  134. package/dist/images/design/menu/background.svg +6 -0
  135. package/dist/images/design/menu/clipart.svg +6 -0
  136. package/dist/images/design/menu/file.svg +4 -0
  137. package/dist/images/design/menu/fill.svg +1 -0
  138. package/dist/images/design/menu/image.svg +7 -0
  139. package/dist/images/design/menu/layer.svg +6 -0
  140. package/dist/images/design/menu/product.svg +3 -0
  141. package/dist/images/design/menu/sca.svg +5 -0
  142. package/dist/images/design/menu/shapes.svg +5 -0
  143. package/dist/images/design/menu/templates.svg +6 -0
  144. package/dist/images/design/menu/text.svg +6 -0
  145. package/dist/images/design/menu/uploads.svg +7 -0
  146. package/dist/images/design/spinner.svg +3 -0
  147. package/dist/images/design/spinners.svg +17 -0
  148. package/dist/images/design/transparent_pattern.svg +5 -0
  149. package/dist/index.d.ts +39 -0
  150. package/dist/index.js +127 -0
  151. package/dist/lib/analytics.d.ts +17 -0
  152. package/dist/lib/cn.d.ts +3 -0
  153. package/dist/lib/common.d.ts +16 -0
  154. package/dist/lib/config.d.ts +14 -0
  155. package/dist/lib/navigation.d.ts +2 -0
  156. package/dist/renderer/ThreeDPreview.d.ts +14 -0
  157. package/dist/renderer/sticker.js +1731 -0
  158. package/dist/renderer/three-d-preview.js +32 -0
  159. package/dist/state/designer-store.d.ts +43 -0
  160. package/dist/state/designer-store.js +85 -0
  161. package/dist/style.css +1 -0
  162. package/dist/types.d.ts +184 -0
  163. package/dist/ui/accordion.d.ts +7 -0
  164. package/dist/ui/button-group.d.ts +11 -0
  165. package/dist/ui/button.d.ts +10 -0
  166. package/dist/ui/checkbox.d.ts +4 -0
  167. package/dist/ui/command.d.ts +18 -0
  168. package/dist/ui/confirm-dialog.d.ts +15 -0
  169. package/dist/ui/context-menu.d.ts +25 -0
  170. package/dist/ui/dialog.d.ts +15 -0
  171. package/dist/ui/drawer.d.ts +15 -0
  172. package/dist/ui/editable-combobox.d.ts +10 -0
  173. package/dist/ui/hint.d.ts +8 -0
  174. package/dist/ui/image.d.ts +24 -0
  175. package/dist/ui/input-group.d.ts +16 -0
  176. package/dist/ui/input-with-addon.d.ts +17 -0
  177. package/dist/ui/input.d.ts +3 -0
  178. package/dist/ui/label.d.ts +4 -0
  179. package/dist/ui/loading-button.d.ts +15 -0
  180. package/dist/ui/popover.d.ts +9 -0
  181. package/dist/ui/scroll-area.d.ts +5 -0
  182. package/dist/ui/select.d.ts +22 -0
  183. package/dist/ui/separator.d.ts +4 -0
  184. package/dist/ui/shared-loading-button.d.ts +20 -0
  185. package/dist/ui/simple-dialog.d.ts +19 -0
  186. package/dist/ui/simple-popover.d.ts +13 -0
  187. package/dist/ui/simple-select.d.ts +20 -0
  188. package/dist/ui/skeleton.d.ts +2 -0
  189. package/dist/ui/slider.d.ts +4 -0
  190. package/dist/ui/spinner-box.d.ts +12 -0
  191. package/dist/ui/spinner.d.ts +2 -0
  192. package/dist/ui/switch.d.ts +6 -0
  193. package/dist/ui/tab/index.d.ts +15 -0
  194. package/dist/ui/textarea.d.ts +3 -0
  195. package/dist/ui/tooltip.d.ts +7 -0
  196. package/dist/workers/image-resize.worker.d.ts +1 -0
  197. package/dist/workers/mockup.worker.d.ts +5 -0
  198. package/dist/workers/render.worker.d.ts +1 -0
  199. package/package.json +201 -0
@@ -0,0 +1,73 @@
1
+ import { fabric as e } from "fabric";
2
+ const b = (a = 8) => {
3
+ e.Object.NUM_FRACTION_DIGITS = 20, e.Object.prototype.set({
4
+ borderColor: "#3540a5",
5
+ borderScaleFactor: 1.5,
6
+ cornerColor: "#fff",
7
+ cornerSize: a,
8
+ cornerStyle: "rect",
9
+ transparentCorners: !1,
10
+ cornerStrokeColor: "#3540a5"
11
+ }), e.Object.prototype.setControlsVisibility({ mt: !1, mb: !1, mr: !1, ml: !1 }), e.Object.prototype.controls = { ...e.Object.prototype.controls, mtr: z() };
12
+ }, f = "M477.44 85.333333c-235.648 0-426.666667 191.018667-426.666667 426.666667s191.018667 426.666667 426.666667 426.666667c184.32 0 341.418667-116.906667 401.066667-280.661334l-0.128-0.085333a42.666667 42.666667 0 1 0-80.213334-29.184l-1.92 5.418667-2.133333 5.461333A341.461333 341.461333 0 0 1 136.106667 512a341.333333 341.333333 0 0 1 582.698666-241.365333l108.202667 108.16h-153.002667a42.666667 42.666667 0 1 0 0 85.333333h257.408l2.432-0.128 1.109334-0.128 1.066666-0.128 1.493334-0.256 1.109333-0.213333a42.368 42.368 0 0 0 3.84-0.981334l0.469333-0.128a42.325333 42.325333 0 0 0 1.450667-0.512l2.090667-0.810666a42.368 42.368 0 0 0 17.109333-13.056l-3.413333 3.84a42.965333 42.965333 0 0 0 12.501333-30.122667v-256a42.666667 42.666667 0 1 0-85.333333 0v152.917333L779.093333 210.304A425.344 425.344 0 0 0 477.44 85.333333z";
13
+ let c = null;
14
+ function z(a = 20) {
15
+ const t = a / 2;
16
+ return new e.Control({
17
+ x: 0,
18
+ y: -0.5,
19
+ offsetX: 0,
20
+ offsetY: -(t + 20),
21
+ cursorStyle: "alias",
22
+ actionName: "rotate",
23
+ actionHandler: e.controlsUtils.rotationWithSnapping,
24
+ render: (s, r, l) => {
25
+ if (s.save(), s.translate(r, l), typeof Path2D < "u") {
26
+ c ??= new Path2D(f), s.save();
27
+ const o = t / 512;
28
+ s.scale(o, o), s.translate(-512, -512), s.fillStyle = "#3540a5", s.fill(c), s.restore();
29
+ }
30
+ s.restore();
31
+ }
32
+ });
33
+ }
34
+ const m = () => {
35
+ const a = (r, l, o, i) => {
36
+ switch (r.save(), r.translate(l, o), r.beginPath(), r.fillStyle = "#ffffff", r.strokeStyle = "#aaaaaa", r.lineWidth = 1, i) {
37
+ case "mt":
38
+ case "mb":
39
+ r.lineJoin = "round", r.fillRect(-12, -3, 24, 6), r.strokeRect(-12, -3, 24, 6);
40
+ break;
41
+ case "ml":
42
+ case "mr":
43
+ r.lineJoin = "round", r.fillRect(-3, -12, 6, 24), r.strokeRect(-3, -12, 6, 24);
44
+ break;
45
+ default:
46
+ r.arc(0, 0, 6, 0, Math.PI * 2, !1), r.fill(), r.stroke();
47
+ }
48
+ r.restore();
49
+ }, t = { ...e.Object.prototype.controls }, s = {
50
+ tl: { x: -0.5, y: -0.5, cursor: "nwse-resize" },
51
+ tr: { x: 0.5, y: -0.5, cursor: "nesw-resize" },
52
+ bl: { x: -0.5, y: 0.5, cursor: "nesw-resize" },
53
+ br: { x: 0.5, y: 0.5, cursor: "nwse-resize" },
54
+ mt: { x: 0, y: -0.5, cursor: "n-resize", actionHandler: e.controlsUtils.scalingY },
55
+ mb: { x: 0, y: 0.5, cursor: "s-resize", actionHandler: e.controlsUtils.scalingY },
56
+ ml: { x: -0.5, y: 0, cursor: "w-resize", actionHandler: e.controlsUtils.scalingX },
57
+ mr: { x: 0.5, y: 0, cursor: "e-resize", actionHandler: e.controlsUtils.scalingX },
58
+ mtr: {}
59
+ };
60
+ return Object.entries(s).forEach(([r, l]) => {
61
+ t[r] = r === "mtr" ? new e.Control({ visible: !1 }) : new e.Control({
62
+ x: l.x,
63
+ y: l.y,
64
+ cursorStyle: l.cursor,
65
+ actionHandler: l.actionHandler || e.controlsUtils.scalingEqually,
66
+ render: (o, i, n) => a(o, i, n, r)
67
+ });
68
+ }), t;
69
+ };
70
+ export {
71
+ m as getImageControls,
72
+ b as setDefaultControls
73
+ };
@@ -0,0 +1,59 @@
1
+ import 'fabric';
2
+ /**
3
+ * Printine-specific Fabric serialization fields. Keeping this augmentation in
4
+ * the package is required for an external host to load existing design JSON.
5
+ */
6
+ declare module 'fabric' {
7
+ namespace fabric {
8
+ interface IObjectOptions {
9
+ id?: string;
10
+ excludeHistory?: boolean;
11
+ originSrc?: string;
12
+ originLeft?: number;
13
+ originTop?: number;
14
+ clip?: boolean | undefined;
15
+ sourceType?: 'svg';
16
+ controls?: any;
17
+ ccProjectId?: string;
18
+ ungroupable?: boolean;
19
+ __baseWidth?: number;
20
+ __baseHeight?: number;
21
+ __basePadding?: number;
22
+ __baseObjectCaching?: boolean;
23
+ __curvedCenterX?: number;
24
+ __curvedCenterY?: number;
25
+ __lastCurvedWidth?: number;
26
+ __lastCurvedHeight?: number;
27
+ __lastCurvedCenterX?: number;
28
+ __lastCurvedCenterY?: number;
29
+ }
30
+ interface ITextOptions {
31
+ fontPath?: string;
32
+ }
33
+ interface StaticCanvas {
34
+ toJSON(propertiesToInclude?: string[]): {
35
+ version: string;
36
+ objects: fabric.Object[];
37
+ overlayImage: fabric.Object;
38
+ };
39
+ setOverlayImage(image: Image | Group | string, callback: () => void, options?: IImageOptions): Canvas;
40
+ setBackgroundImage(image: fabric.Object | string, callback: () => void, options?: IImageOptions): Canvas;
41
+ }
42
+ class AdvancedIText extends IText {
43
+ constructor(text: string, options?: AdvancedITextOptions);
44
+ radius: number;
45
+ spacing: number;
46
+ orientation?: 'vertical' | 'horizontal';
47
+ __isReflowing: boolean;
48
+ __rawText?: string;
49
+ static fromObject(object: any, callback?: (obj: AdvancedIText) => void): AdvancedIText;
50
+ }
51
+ interface AdvancedITextOptions extends ITextOptions {
52
+ radius?: number;
53
+ spacing?: number;
54
+ orientation?: 'vertical' | 'horizontal';
55
+ __rawText?: string;
56
+ }
57
+ }
58
+ }
59
+ export {};
@@ -0,0 +1,14 @@
1
+ import "react/jsx-runtime";
2
+ import "react";
3
+ import "./api/endpoints.js";
4
+ import { a as u } from "./design-7zRpRtv9.js";
5
+ import "./engine/events.js";
6
+ import "zustand/react/shallow";
7
+ import "./engine/history.js";
8
+ import "lodash-es/throttle";
9
+ import "./engine/constants.js";
10
+ import "./engine/utils/common.js";
11
+ import "./state/designer-store.js";
12
+ export {
13
+ u as default
14
+ };
@@ -0,0 +1,19 @@
1
+ export default function usePagination<T>(loadData: (params: Record<string, any>) => Promise<any>): {
2
+ loadingData: {
3
+ loading: boolean;
4
+ data: T[];
5
+ page: number;
6
+ empty: boolean;
7
+ noMore: boolean;
8
+ };
9
+ getList: () => Promise<void>;
10
+ scrollRef: import("react").RefObject<HTMLElement | null>;
11
+ setLoadingData: import("react").Dispatch<import("react").SetStateAction<{
12
+ loading: boolean;
13
+ data: T[];
14
+ page: number;
15
+ empty: boolean;
16
+ noMore: boolean;
17
+ }>>;
18
+ onRefresh: () => void;
19
+ };
@@ -0,0 +1,50 @@
1
+ import type { CCPublishParams } from '../contracts/design';
2
+ export declare const containerConfig: {
3
+ zIndex: number;
4
+ loadTimeout: number;
5
+ };
6
+ export declare const useCCEverywhere: (save: (params: CCPublishParams) => void) => {
7
+ appConfig: {
8
+ appVersion: string;
9
+ thumbnailOptions: string[];
10
+ allowedFileTypes: string[];
11
+ featureConfig: {
12
+ 'community-wall': boolean;
13
+ 'fast-mode': boolean;
14
+ 'custom-models': boolean;
15
+ };
16
+ editDropdownOptions: {
17
+ option: string;
18
+ }[];
19
+ fastModeConfig: {
20
+ defaultFastModeState: string;
21
+ };
22
+ publishConfig: {
23
+ id: string;
24
+ label: string;
25
+ };
26
+ callbacks: {
27
+ onPublish: (_: string, publishParams: CCPublishParams) => void;
28
+ onError: (err: string) => void;
29
+ };
30
+ };
31
+ baseAppConfig: {
32
+ allowedFileTypes: string[];
33
+ callbacks: {
34
+ onPublish: (_: string, publishParams: CCPublishParams) => void;
35
+ onError: (err: string) => void;
36
+ };
37
+ };
38
+ exportConfig: {
39
+ action: {
40
+ target: string;
41
+ outputype: string;
42
+ closeTargetOnExport: boolean;
43
+ };
44
+ id: string;
45
+ label: string;
46
+ style: {
47
+ uiType: string;
48
+ };
49
+ }[];
50
+ };
@@ -0,0 +1 @@
1
+ export declare function useBeforeUnload(shouldBlock: boolean): void;
@@ -0,0 +1,18 @@
1
+ interface UseImageDropProps {
2
+ onFileSelect?: (file: File) => void;
3
+ onImageUrlSelect?: (url: string) => void;
4
+ accept?: string;
5
+ }
6
+ export declare const parseNextImageUrl: (u: string) => string;
7
+ export declare const useImageDrop: ({ onFileSelect, onImageUrlSelect, accept, }: UseImageDropProps) => {
8
+ isDragOver: boolean;
9
+ isUploading: boolean;
10
+ fileRef: import("react").RefObject<HTMLInputElement | null>;
11
+ triggerImageUpload: () => void;
12
+ handleFileChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
13
+ handleDragOver: (e: React.DragEvent) => void;
14
+ handleDragLeave: (e: React.DragEvent) => void;
15
+ handleDrop: (e: React.DragEvent) => void;
16
+ setIsUploading: import("react").Dispatch<import("react").SetStateAction<boolean>>;
17
+ };
18
+ export {};
@@ -0,0 +1,34 @@
1
+ import { S3Client } from '@aws-sdk/client-s3';
2
+ import { Size } from '../contracts/design';
3
+ export type OssUploadFun = ({ file, base64Str, path, }: {
4
+ file?: File;
5
+ base64Str?: string | null;
6
+ path?: string;
7
+ }) => Promise<string | null>;
8
+ export type MultipleOssUploadFun = ({ file, base64Str, onProgress, }: {
9
+ file?: File;
10
+ base64Str?: string;
11
+ onProgress?: (progress: number) => void;
12
+ }) => Promise<string | undefined>;
13
+ export type PersistImageFun = ({ file, base64Str, transform, size, }: {
14
+ file?: File;
15
+ base64Str?: string;
16
+ transform?: boolean;
17
+ size: Size;
18
+ }) => Promise<{
19
+ originalPath: string;
20
+ thumbnailPath: string | null;
21
+ thumbnailScale?: number;
22
+ } | null>;
23
+ export declare const generateOssFileName: (fileName: string) => string;
24
+ export declare const calculateResizedDimensions: (originalWidth: number, originalHeight: number, maxLongEdge?: number) => {
25
+ width: number;
26
+ height: number;
27
+ scale: number;
28
+ };
29
+ export declare const useOssUpload: (autoInit?: boolean) => {
30
+ uploadClient: import("react").RefObject<S3Client | null>;
31
+ initUploadClient: () => Promise<void>;
32
+ onOssUpload: OssUploadFun;
33
+ onPersistImage: PersistImageFun;
34
+ };
@@ -0,0 +1 @@
1
+ export declare const useScreen: (width?: number) => boolean;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Package-owned translations.
3
+ *
4
+ * The editor never depends on the host's `next-intl` provider. A host can still
5
+ * override or extend any string through `PrintineDesignerProps.messages`.
6
+ */
7
+ export type DesignerMessages = Record<string, Record<string, string>>;
8
+ export declare const DESIGNER_MESSAGES: Record<string, DesignerMessages>;
9
+ /** Resolves a message, falling back to English and finally to the key itself. */
10
+ export declare function translate(locale: string | undefined, namespace: string, key: string, overrides?: DesignerMessages): string;
11
+ /** Mirrors the `useTranslations(namespace)` shape the migrated components already use. */
12
+ export declare function useTranslations(namespace: string): (key: string) => string;
@@ -0,0 +1,3 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M18.65 2.5H5.35C3.773 2.5 2.5 3.773 2.5 5.35V18.65C2.5 20.227 3.773 21.5 5.35 21.5H18.65C20.227 21.5 21.5 20.227 21.5 18.65V5.35C21.5 3.773 20.227 2.5 18.65 2.5ZM4.4 9.891V5.35C4.4 4.8275 4.8275 4.4 5.35 4.4H12.4085L4.4 11.7435V9.891ZM4.4 14.318L15.2205 4.4H18.213L4.4 17.377V14.318ZM19.6 18.65C19.6 19.1725 19.1725 19.6 18.65 19.6H11.4395L19.6 11.4395V18.65ZM19.6 8.7605L8.7605 19.6H5.35C5.198 19.6 5.0555 19.5525 4.9225 19.486L19.6 5.7015V8.7605Z" fill="#333333"/>
3
+ </svg>
@@ -0,0 +1,15 @@
1
+ <svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <g clip-path="url(#clip0_5647_12729)">
3
+ <path d="M10.5 1.16699L12.8333 3.50033" stroke="white" stroke-width="1.16667" stroke-linecap="round" stroke-linejoin="round"/>
4
+ <path d="M9.91797 4.08301L11.668 2.33301" stroke="white" stroke-width="1.16667" stroke-linecap="round" stroke-linejoin="round"/>
5
+ <path d="M11.0839 5.25033L5.07552 11.2587C4.49219 11.842 3.61719 11.842 3.09219 11.2587L2.74219 10.9087C2.15885 10.3253 2.15885 9.45033 2.74219 8.92533L8.75052 2.91699" stroke="white" stroke-width="1.16667" stroke-linecap="round" stroke-linejoin="round"/>
6
+ <path d="M5.25 6.41699L7.58333 8.75033" stroke="white" stroke-width="1.16667" stroke-linecap="round" stroke-linejoin="round"/>
7
+ <path d="M2.91797 11.083L1.16797 12.833" stroke="white" stroke-width="1.16667" stroke-linecap="round" stroke-linejoin="round"/>
8
+ <path d="M8.16797 2.33301L11.668 5.83301" stroke="white" stroke-width="1.16667" stroke-linecap="round" stroke-linejoin="round"/>
9
+ </g>
10
+ <defs>
11
+ <clipPath id="clip0_5647_12729">
12
+ <rect width="14" height="14" fill="white"/>
13
+ </clipPath>
14
+ </defs>
15
+ </svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" fill="#1f1f1f"><path d="M40-120v-80h880v80H40Zm120-120q-33 0-56.5-23.5T80-320v-440q0-33 23.5-56.5T160-840h640q33 0 56.5 23.5T880-760v440q0 33-23.5 56.5T800-240H160Zm0-80h640v-440H160v440Zm0 0v-440 440Z"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" fill="#1f1f1f"><path d="M760-200H320q-33 0-56.5-23.5T240-280v-560q0-33 23.5-56.5T320-920h280l240 240v400q0 33-23.5 56.5T760-200ZM560-640v-200H320v560h440v-360H560ZM160-40q-33 0-56.5-23.5T80-120v-560h80v560h440v80H160Zm160-800v200-200 560-560Z"/></svg>
@@ -0,0 +1,10 @@
1
+ <svg width="36" height="36" viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <g clip-path="url(#clip0_3494_9606)">
3
+ <path d="M0 8.26457V27.7909C0 29.6132 0.378079 29.9604 2.21061 29.9604H27.241C29.0581 29.9604 29.449 29.6286 29.449 27.7909V8.26586C29.449 6.48606 29.1018 6.0964 27.241 6.0964H2.20932C0.383223 6.0964 0.001286 6.40633 0.00128597 8.26586L0 8.26457ZM25.9807 24.8988H3.48373C5.94253 21.3752 10.3149 15.5034 11.426 15.5034C12.501 15.5034 16.152 20.2487 17.8006 21.9191C17.8006 21.9191 19.9225 19.135 21.0335 19.135C22.1665 19.135 25.9434 24.8705 25.9807 24.8988ZM19.3708 12.6048C19.3708 11.1285 20.5847 9.93507 22.0855 9.93507C23.5875 9.93507 24.8028 11.1285 24.8028 12.6035C24.8028 14.0785 23.5875 15.2719 22.0855 15.2719C20.5847 15.2719 19.3695 14.0785 19.3695 12.6035L19.3708 12.6048ZM13.8115 4.7847L9.50342 3.98353C8.07598 3.71734 7.51014 3.8125 7.16036 4.78599H13.8115V4.7847ZM34.0966 8.56549L30.726 7.93793L30.7273 8.17713V27.8141C30.7273 28.7271 30.6668 29.7572 29.9326 30.4632C29.2201 31.1499 28.1862 31.2078 27.2744 31.2078H25.2426L29.5673 32.0141C31.3523 32.3472 31.7998 32.0913 32.1483 30.287L35.8545 11.1027C36.1914 9.3538 35.9252 8.90756 34.0966 8.56678V8.56549Z" fill="#3540A5"/>
4
+ </g>
5
+ <defs>
6
+ <clipPath id="clip0_3494_9606">
7
+ <rect width="36" height="36" fill="white"/>
8
+ </clipPath>
9
+ </defs>
10
+ </svg>
@@ -0,0 +1 @@
1
+ <?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1751859178201" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="11200" xmlns:xlink="http://www.w3.org/1999/xlink" width="64" height="64"><path d="M85.333333 955.733333a17.0496 17.0496 0 0 1-12.066133-29.1328l853.333333-853.333333a17.0496 17.0496 0 1 1 24.132267 24.132267l-853.333333 853.333333A17.015467 17.015467 0 0 1 85.333333 955.733333z" p-id="11201" fill="#bfbfbf"></path></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" fill="#1f1f1f"><path d="M280-160v-520H80v-120h520v120H400v520H280Zm360 0v-320H520v-120h360v120H760v320H640Z"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" fill="#1f1f1f"><path d="M420-160v-520H200v-120h560v120H540v520H420Z"/></svg>
Binary file
@@ -0,0 +1 @@
1
+ <?xml version="1.0" encoding="UTF-8"?><svg width="24" height="24" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M24.0002 45C27.2208 45 32.7276 40.8 32.7276 24C32.7276 7.2 27.2208 3 24.0002 3C20.7797 3 15.2729 7.48302 15.2729 24C15.2729 40.517 20.7797 45 24.0002 45Z" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/><path fill-rule="evenodd" clip-rule="evenodd" d="M5.10515 35.0001C6.71545 37.8124 13.2479 40.4211 28.364 31.6211C43.48 22.8211 44.5057 15.8124 42.8954 13.0001C41.2851 10.1878 34.4981 7.72728 19.6367 16.3791C4.77521 25.0308 3.49489 32.1878 5.10515 35.0001Z" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/><path fill-rule="evenodd" clip-rule="evenodd" d="M5.10506 13.0001C3.4948 15.8124 4.52046 22.8211 19.6366 31.6211C34.7527 40.4211 41.285 37.8124 42.8953 35.0001C44.5056 32.1878 43.2253 25.0308 28.3638 16.3791C13.5024 7.72728 6.71537 10.1878 5.10506 13.0001Z" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/></svg>
@@ -0,0 +1,4 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M2.89948 12H20.8995" stroke="#333333" stroke-width="2" stroke-linejoin="round"/>
3
+ <path d="M8.8994 18L2.89941 12L8.8994 6" stroke="#333333" stroke-width="2" stroke-linejoin="round"/>
4
+ </svg>
@@ -0,0 +1,6 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <rect x="3.22266" y="3.21094" width="17.5273" height="17.5273" rx="2.25" stroke="#1C1C1E" stroke-width="1.5"/>
3
+ <path d="M3.44196 13.8721L14.9787 3.33789" stroke="#1C1C1E" stroke-width="1.5" stroke-linecap="round"/>
4
+ <path d="M9.26723 20.6674L20.5867 9.16035" stroke="#1C1C1E" stroke-width="1.5" stroke-linecap="round"/>
5
+ <path d="M3.51916 19.4329L20.009 4.06794" stroke="#1C1C1E" stroke-width="1.5" stroke-linecap="round"/>
6
+ </svg>
@@ -0,0 +1,6 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M5 22H19C19.5523 22 20 21.5523 20 21V7H15V2H5C4.44771 2 4 2.44771 4 3V21C4 21.5523 4.44771 22 5 22Z" stroke="#1C1C1E" stroke-width="1.5" stroke-linejoin="round"/>
3
+ <path d="M15 2L20 7" stroke="#1C1C1E" stroke-width="1.5" stroke-linejoin="round"/>
4
+ <path d="M9 10.5C10.1046 10.5 11 9.60457 11 8.5C11 7.39543 10.1046 6.5 9 6.5C7.89543 6.5 7 7.39543 7 8.5C7 9.60457 7.89543 10.5 9 10.5Z" stroke="#1C1C1E" stroke-width="1.5" stroke-linejoin="round"/>
5
+ <path d="M7.5 14V18.5H16.5V10.5L11.7447 15.75L7.5 14Z" stroke="#1C1C1E" stroke-width="1.5" stroke-linejoin="round"/>
6
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M2 4.5V20.5L4.5 10.5H19.75V7.5C19.75 6.9477 19.3023 6.5 18.75 6.5H12L9.5 3.5H3C2.44771 3.5 2 3.94771 2 4.5Z" stroke="#1C1C1E" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
3
+ <path d="M20 20.5L22 10.5H4.40625L2 20.5H20Z" stroke="#1C1C1E" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
4
+ </svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" fill="#1f1f1f"><path d="M346-140 100-386q-10-10-15-22t-5-25q0-13 5-25t15-22l230-229-106-106 62-65 400 400q10 10 14.5 22t4.5 25q0 13-4.5 25T686-386L440-140q-10 10-22 15t-25 5q-13 0-25-5t-22-15Zm47-506L179-432h428L393-646Zm399 526q-36 0-61-25.5T706-208q0-27 13.5-51t30.5-47l42-54 44 54q16 23 30 47t14 51q0 37-26 62.5T792-120Z"/></svg>
@@ -0,0 +1,7 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M22 12C22 11.4477 21.7493 11.0243 21.197 11.0243C20.6447 11.0243 20.4734 11.4477 20.4734 12H22ZM12 3.5C12.5523 3.5 13.0425 3.33699 13.0425 2.7847C13.0425 2.23242 12.5523 2 12 2V3.5ZM19.5 20.5538H4.5V22H19.5V20.5538ZM3.5 19.5V12V4.5H2V19.5H3.5ZM20.4734 12V19.5H22V12H20.4734ZM4.5 3.5H12V2H4.5V3.5ZM4.5 20.5538C4.22386 20.5538 3.5 19.7761 3.5 19.5H2C2 20.8807 3.11928 22 4.5 22V20.5538ZM19.5 22C20.8807 22 22 20.8807 22 19.5H20.4734C20.4734 19.7761 19.7761 20.5538 19.5 20.5538V22ZM3.5 4.5C3.5 4.22386 4.22386 3.5 4.5 3.5V2C3.11929 2 2 3.11928 2 4.5H3.5Z" fill="#1C1C1E"/>
3
+ <path d="M3 17.4998L8.34655 12.5988C8.71945 12.2569 9.28895 12.2474 9.67305 12.5767L16 17.9998" stroke="#1C1C1E" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
4
+ <path d="M14 15.4999L16.3867 13.1132C16.7386 12.7613 17.2957 12.7217 17.6938 13.0203L21 15.4999" stroke="#1C1C1E" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
5
+ <path d="M15 6H21" stroke="#1C1C1E" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
6
+ <path d="M18 3V9" stroke="#1C1C1E" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
7
+ </svg>
@@ -0,0 +1,6 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M2 5.95715L12 9.5L22 5.95715L12 2.5L2 5.95715Z" stroke="#1C1C1E" stroke-width="1.5" stroke-linejoin="round"/>
3
+ <path d="M2 10L12 13.5L22 10" stroke="#1C1C1E" stroke-width="1.5" stroke-linejoin="round"/>
4
+ <path d="M2 14L12 17.5L22 14" stroke="#1C1C1E" stroke-width="1.5" stroke-linejoin="round"/>
5
+ <path d="M2 18L12 21.5L22 18" stroke="#1C1C1E" stroke-width="1.5" stroke-linejoin="round"/>
6
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M9 3C9 4.65685 10.3432 6 12 6C13.6568 6 15 4.65685 15 3H17.7272L21 7.9091L18.1364 10.3637V21H5.86365V10.3637L3 7.9091L6.27275 3H9Z" stroke="#1C1C1E" stroke-width="1.5" stroke-linejoin="round"/>
3
+ </svg>
@@ -0,0 +1,5 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M12.1775 8.87838C14.215 8.87838 15.8667 7.22667 15.8667 5.18919C15.8667 3.15171 14.215 1.5 12.1775 1.5C10.14 1.5 8.48828 3.15171 8.48828 5.18919C8.48828 7.22667 10.14 8.87838 12.1775 8.87838Z" stroke="#1C1C1E" stroke-width="1.58108" stroke-linecap="round" stroke-linejoin="round"/>
3
+ <path d="M1.63672 20.9988C1.63672 16.3417 5.88398 12.5664 11.1232 12.5664" stroke="#1C1C1E" stroke-width="1.58108" stroke-linecap="round" stroke-linejoin="round"/>
4
+ <path d="M22.9709 9.56075C22.741 9.28885 21.683 9.95394 20.4754 11.0714C19.7979 11.6998 17.9219 13.4532 16.4047 14.871L18.0815 16.6592C19.4018 14.9599 21.0643 12.8216 21.6701 12.047C22.7326 10.6882 23.1146 9.71222 22.9709 9.56075ZM14.5828 16.5749L16.5673 18.6072L17.7881 17.0359L16.0615 15.1932C15.44 15.773 14.904 16.2739 14.5828 16.5749ZM12.1473 19.1366C12.1473 21.242 10 20.9575 10 20.9575C10 20.9575 15.1192 23.6281 16.2715 18.9822V18.9883L16.2755 18.983L14.2431 16.9022C14.122 16.9109 12.1473 17.0951 12.1473 19.1366Z" fill="#1C1C1E"/>
5
+ </svg>
@@ -0,0 +1,5 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M10 14.5H3V21.5H10V14.5Z" stroke="#1C1C1E" stroke-width="1.5" stroke-linejoin="round"/>
3
+ <path d="M12 2L17 10.5H7L12 2Z" stroke="#1C1C1E" stroke-width="1.5" stroke-linejoin="round"/>
4
+ <path d="M18 22C20.2092 22 22 20.2092 22 18C22 15.7908 20.2092 14 18 14C15.7908 14 14 15.7908 14 18C14 20.2092 15.7908 22 18 22Z" stroke="#1C1C1E" stroke-width="1.5" stroke-linejoin="round"/>
5
+ </svg>
@@ -0,0 +1,6 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M11.5 2H2V13H11.5V2Z" stroke="#1C1C1E" stroke-width="1.5" stroke-linejoin="round"/>
3
+ <path d="M22 17H2V21.5H22V17Z" stroke="#1C1C1E" stroke-width="1.5" stroke-linejoin="round"/>
4
+ <path d="M22 2H15.5V6H22V2Z" stroke="#1C1C1E" stroke-width="1.5" stroke-linejoin="round"/>
5
+ <path d="M22 9H15.5V13H22V9Z" stroke="#1C1C1E" stroke-width="1.5" stroke-linejoin="round"/>
6
+ </svg>
@@ -0,0 +1,6 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M19.5 3H4.5C3.67157 3 3 3.67157 3 4.5V19.5C3 20.3284 3.67157 21 4.5 21H19.5C20.3284 21 21 20.3284 21 19.5V4.5C21 3.67157 20.3284 3 19.5 3Z" stroke="#1C1C1E" stroke-width="1.5" stroke-linejoin="round"/>
3
+ <path d="M8 9.5V8H16V9.5" stroke="#1C1C1E" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
4
+ <path d="M11 17H13" stroke="#1C1C1E" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
5
+ <path d="M12 9V17" stroke="#1C1C1E" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
6
+ </svg>
@@ -0,0 +1,7 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M22 12C22 11.4477 21.7493 11.0243 21.197 11.0243C20.6447 11.0243 20.4734 11.4477 20.4734 12H22ZM12 3.5C12.5523 3.5 13.0425 3.33699 13.0425 2.7847C13.0425 2.23242 12.5523 2 12 2V3.5ZM19.5 20.5538H4.5V22H19.5V20.5538ZM3.5 19.5V12V4.5H2V19.5H3.5ZM20.4734 12V19.5H22V12H20.4734ZM4.5 3.5H12V2H4.5V3.5ZM4.5 20.5538C4.22386 20.5538 3.5 19.7761 3.5 19.5H2C2 20.8807 3.11928 22 4.5 22V20.5538ZM19.5 22C20.8807 22 22 20.8807 22 19.5H20.4734C20.4734 19.7761 19.7761 20.5538 19.5 20.5538V22ZM3.5 4.5C3.5 4.22386 4.22386 3.5 4.5 3.5V2C3.11929 2 2 3.11928 2 4.5H3.5Z" fill="#1C1C1E"/>
3
+ <path d="M3 17.4998L8.34655 12.5988C8.71945 12.2569 9.28895 12.2474 9.67305 12.5767L16 17.9998" stroke="#1C1C1E" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
4
+ <path d="M14 15.4999L16.3867 13.1132C16.7386 12.7613 17.2957 12.7217 17.6938 13.0203L21 15.4999" stroke="#1C1C1E" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
5
+ <path d="M15 6H21" stroke="#1C1C1E" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
6
+ <path d="M18 3V9" stroke="#1C1C1E" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
7
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M1.6 16C0.716345 16 -0.00829025 15.2819 0.0799275 14.4026C0.340807 11.8025 1.23568 9.29712 2.69648 7.11088C4.45459 4.47969 6.95344 2.42893 9.87706 1.21793C12.8007 0.00692732 16.0177 -0.309928 19.1214 0.307433C22.2251 0.924794 25.0761 2.44864 27.3137 4.68628C29.5513 6.92392 31.0752 9.77484 31.6926 12.8785C32.3099 15.9822 31.9931 19.1993 30.7821 22.1229C29.5711 25.0465 27.5203 27.5454 24.8891 29.3035C22.7029 30.7643 20.1975 31.6592 17.5974 31.9201C16.7182 32.0083 16 31.2837 16 30.4V30.4C16 29.5163 16.7191 28.8103 17.5959 28.7001C19.562 28.4531 21.4516 27.7518 23.1113 26.6428C25.2163 25.2363 26.8569 23.2372 27.8257 20.8983C28.7945 18.5594 29.0479 15.9858 28.554 13.5028C28.0602 11.0199 26.8411 8.73913 25.051 6.94902C23.2608 5.15891 20.9801 3.93984 18.4971 3.44595C16.0142 2.95206 13.4405 3.20554 11.1016 4.17434C8.76275 5.14315 6.76367 6.78375 5.35719 8.8887C4.24821 10.5484 3.54692 12.438 3.29986 14.4041C3.18969 15.2809 2.48366 16 1.6 16V16Z" fill="currentColor"/>
3
+ </svg>
@@ -0,0 +1,17 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <svg version="1.1" xmlns="http://www.w3.org/2000/svg" height="50" width="50" viewBox="0 0 50 50">
3
+ <circle cx="25" cy="25" r="20" fill="none" stroke-width="4" stroke="#E5E5E5" />
4
+ <circle cx="25" cy="25" r="20" fill="none" stroke-width="4" stroke="#555555" stroke-linecap="round">
5
+ <animate attributeName="stroke-dasharray" values="1, 150;90, 150;90, 150" dur="1.5s" repeatCount="indefinite" />
6
+ <animate attributeName="stroke-dashoffset" values="0;-35;-124" dur="1.5s" repeatCount="indefinite" />
7
+ <animateTransform
8
+ attributeName="transform"
9
+ attributeType="XML"
10
+ type="rotate"
11
+ from="0 25 25"
12
+ to="360 25 25"
13
+ dur="2s"
14
+ repeatCount="indefinite"
15
+ />
16
+ </circle>
17
+ </svg>
@@ -0,0 +1,5 @@
1
+ <svg xmlns='http://www.w3.org/2000/svg' width='20' height='20'>
2
+ <rect width='20' height='20' fill='#fff'/>
3
+ <rect width='10' height='10' fill='#f7f7f7'/>
4
+ <rect x='10' y='10' width='10' height='10' fill='#f7f7f7'/>
5
+ </svg>
@@ -0,0 +1,39 @@
1
+ import './fabric-types';
2
+ export { default as fabric, AdvancedIText } from './engine/fabric';
3
+ export { DesignerRuntimeProvider, useDesignerRuntime } from './DesignerRuntimeContext';
4
+ export { PrintineDesigner } from './PrintineDesigner';
5
+ export { default as FullDesigner } from './components/design';
6
+ export type { FullDesignerProps } from './components/design';
7
+ export { CanvasDesigner, renderPlacementPreviews } from './engine/canvas-designer';
8
+ export { Editor } from './engine/editor';
9
+ export { createDesignerApiClient } from './api/client';
10
+ export { CommonApi, DesignApi, setDesignerApiClient } from './api/endpoints';
11
+ export { HistoryManager } from './engine/history';
12
+ export { ALIGN_TYPES, DEFAULT_FILL_COLOR_LIST, DEFAULT_FONT_SIZE, ELEMENT_TITLE_MAP, FONT_WEIGHT, LAYER_BLACK_LIST, } from './engine/constants';
13
+ export { createEventBus, designerEventBus } from './engine/events';
14
+ export { SnaplineManager } from './engine/managers/snapline';
15
+ export { ResizeManager } from './engine/managers/resize';
16
+ export { WorkspaceManager } from './engine/managers/workspace';
17
+ export { EventManager } from './engine/managers/event';
18
+ export { ImageProcessor } from './engine/processors/image';
19
+ export { TextProcessor } from './engine/processors/text';
20
+ export { TemplateProcessor } from './engine/processors/template';
21
+ export { useDesignerStore } from './state/designer-store';
22
+ export * from './engine/utils/common';
23
+ export * from './engine/utils/image';
24
+ export * from './engine/utils/font';
25
+ export { DEFAULT_DPI, inchToPixel, isSvg } from './engine/utils/measure';
26
+ export { Loading } from './engine/utils/loading';
27
+ export { getImageControls, setDefaultControls } from './engine/utils/setting';
28
+ export type { ApiResponse, DesignerApiClient, DesignerApiClientOptions, DesignerAdapters, DesignerAsset, DesignerAssetsAdapter, DesignerError, DesignerEvent, DesignerImageUploadInput, DesignerImageUploadPurpose, DesignerImageUploadResult, DesignerImageMetadata, DesignerPage, DesignerSaveInput, DesignerTemplatesAdapter, DesignerUserTemplate, DesignerRuntime, DesignDocument, PrintineDesignerProps, } from './types';
29
+ export type { AppEvents, DesignerEventBus } from './engine/events';
30
+ export type { EditorOptions } from './engine/editor';
31
+ export type { DesignerState } from './state/designer-store';
32
+ export type { CanvasDesignerOptions, CanvasDesignState, PlacementPreviewOptions } from './engine/canvas-designer';
33
+ export type { BoundingPoints } from './engine/managers/snapline';
34
+ export type { ResizeEditor } from './engine/managers/resize';
35
+ export type { WorkspaceEditor, WorkspaceManagerOptions } from './engine/managers/workspace';
36
+ export type { LoadingOptions } from './engine/utils/loading';
37
+ export type { DesignerElementType, PrintArea, RenderableBox, Size, TransformBox } from './engine/types';
38
+ export type * from './contracts/design';
39
+ export type * from './contracts/api-design';