@orangecatai/adgen-canvas 0.0.36 → 0.0.38
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/dev/{chunk-2NSNU2PO.js → chunk-TIMG2YRS.js} +2 -2
- package/dist/dev/{chunk-UECNYULR.js → chunk-UFLQZT2L.js} +3 -3
- package/dist/dev/data/{image-3S7FVECW.js → image-5CK7ECXM.js} +3 -3
- package/dist/dev/index.css +38 -2
- package/dist/dev/index.css.map +2 -2
- package/dist/dev/index.js +2135 -2169
- package/dist/dev/index.js.map +4 -4
- package/dist/dev/subset-shared.chunk.js +1 -1
- package/dist/dev/subset-worker.chunk.js +1 -1
- package/dist/prod/{chunk-7MAYRMSQ.js → chunk-3NZJNQVB.js} +2 -2
- package/dist/prod/{chunk-KZGD5EMI.js → chunk-7QV54JOA.js} +1 -1
- package/dist/prod/data/image-6UHTG2HH.js +1 -0
- package/dist/prod/index.css +1 -1
- package/dist/prod/index.js +73 -81
- package/dist/prod/subset-shared.chunk.js +1 -1
- package/dist/prod/subset-worker.chunk.js +1 -1
- package/dist/types/excalidraw/components/AIChatPanel.d.ts +7 -3
- package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +2 -3
- package/dist/types/excalidraw/components/ai-chat/canvasTools.d.ts +12 -11
- package/dist/types/excalidraw/components/template-builder/TemplateBuilderTray.d.ts +481 -0
- package/dist/types/excalidraw/types.d.ts +9 -4
- package/package.json +3 -3
- package/dist/prod/data/image-I3FR2Q7R.js +0 -1
- /package/dist/dev/{chunk-2NSNU2PO.js.map → chunk-TIMG2YRS.js.map} +0 -0
- /package/dist/dev/{chunk-UECNYULR.js.map → chunk-UFLQZT2L.js.map} +0 -0
- /package/dist/dev/data/{image-3S7FVECW.js.map → image-5CK7ECXM.js.map} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c,d}from"./chunk-Z5NKEFVG.js";import"./chunk-
|
|
1
|
+
import{a,b,c,d}from"./chunk-Z5NKEFVG.js";import"./chunk-7QV54JOA.js";import"./chunk-SRAX5OIU.js";export{a as Commands,b as subsetToBase64,c as subsetToBinary,d as toBase64};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as r,c as t}from"./chunk-Z5NKEFVG.js";import"./chunk-
|
|
1
|
+
import{a as r,c as t}from"./chunk-Z5NKEFVG.js";import"./chunk-7QV54JOA.js";import"./chunk-SRAX5OIU.js";var s=import.meta.url?new URL(import.meta.url):void 0;typeof window>"u"&&typeof self<"u"&&(self.onmessage=async e=>{switch(e.data.command){case r.Subset:let a=await t(e.data.arrayBuffer,e.data.codePoints);self.postMessage(a,{transfer:[a]});break}});export{s as WorkerUrl};
|
|
@@ -160,15 +160,19 @@ export type AIChatPanelProps = {
|
|
|
160
160
|
blobUrl: string;
|
|
161
161
|
previewDataUrl?: string;
|
|
162
162
|
}>>;
|
|
163
|
-
onListBrandTemplates?: (
|
|
163
|
+
onListBrandTemplates?: (brief?: string) => Promise<Array<{
|
|
164
164
|
id: string;
|
|
165
165
|
name: string;
|
|
166
166
|
campaignTag?: string;
|
|
167
167
|
label?: string;
|
|
168
168
|
width?: number;
|
|
169
169
|
height?: number;
|
|
170
|
-
|
|
171
|
-
|
|
170
|
+
visualMetadata?: {
|
|
171
|
+
caption?: string;
|
|
172
|
+
useCases?: string[];
|
|
173
|
+
visualStyle?: string[];
|
|
174
|
+
layout?: string;
|
|
175
|
+
} | null;
|
|
172
176
|
}>>;
|
|
173
177
|
onGetTemplateVariant?: (variantId: string) => Promise<{
|
|
174
178
|
canvasJson: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./ColorPicker.scss";
|
|
2
2
|
import type { ExcalidrawElement } from "@orangecatai/element/types";
|
|
3
|
-
import type {
|
|
3
|
+
import type { ColorPaletteCustom } from "@orangecatai/common";
|
|
4
4
|
import type { ColorPickerType } from "./colorPickerUtils";
|
|
5
5
|
import type { AppState } from "../../types";
|
|
6
6
|
interface ColorPickerProps {
|
|
@@ -15,8 +15,7 @@ interface ColorPickerProps {
|
|
|
15
15
|
elements: readonly ExcalidrawElement[];
|
|
16
16
|
appState: AppState;
|
|
17
17
|
palette?: ColorPaletteCustom | null;
|
|
18
|
-
topPicks?: ColorTuple;
|
|
19
18
|
updateData: (formData?: any) => void;
|
|
20
19
|
}
|
|
21
|
-
export declare const ColorPicker: ({ type, color, onChange, label, elements, palette,
|
|
20
|
+
export declare const ColorPicker: ({ type, color, onChange, label, elements, palette, updateData, appState, }: ColorPickerProps) => import("react/jsx-runtime").JSX.Element;
|
|
22
21
|
export {};
|
|
@@ -755,19 +755,16 @@ export declare const BANNER_TOOLS: readonly [...({
|
|
|
755
755
|
readonly type: "function";
|
|
756
756
|
readonly function: {
|
|
757
757
|
readonly name: "list_brand_templates";
|
|
758
|
-
readonly description: "
|
|
758
|
+
readonly description: "Search saved brand templates semantically against the full ad brief. Results are ranked from captions generated from the actual template frame. Use the returned visual description, campaign fit, dimensions, and ID to decide whether to use a template.";
|
|
759
759
|
readonly parameters: {
|
|
760
760
|
readonly type: "object";
|
|
761
761
|
readonly properties: {
|
|
762
|
-
readonly
|
|
763
|
-
readonly type: "
|
|
764
|
-
readonly
|
|
765
|
-
readonly type: "string";
|
|
766
|
-
};
|
|
767
|
-
readonly description: "Up to 20 keyword variations to search across template names, campaign tags, and labels. All are OR-matched case-insensitively. Generate 10 tag synonyms + 10 name variations from the user's request.";
|
|
762
|
+
readonly brief: {
|
|
763
|
+
readonly type: "string";
|
|
764
|
+
readonly description: "The user's complete ad brief, including campaign, subject, style, copy, and requested dimensions when known.";
|
|
768
765
|
};
|
|
769
766
|
};
|
|
770
|
-
readonly required: readonly [];
|
|
767
|
+
readonly required: readonly ["brief"];
|
|
771
768
|
readonly additionalProperties: false;
|
|
772
769
|
};
|
|
773
770
|
};
|
|
@@ -1032,15 +1029,19 @@ export type ToolExecutionContext = {
|
|
|
1032
1029
|
blobUrl: string;
|
|
1033
1030
|
previewDataUrl?: string;
|
|
1034
1031
|
}>>;
|
|
1035
|
-
onListBrandTemplates?: (
|
|
1032
|
+
onListBrandTemplates?: (brief?: string) => Promise<Array<{
|
|
1036
1033
|
id: string;
|
|
1037
1034
|
name: string;
|
|
1038
1035
|
campaignTag?: string;
|
|
1039
1036
|
label?: string;
|
|
1040
1037
|
width?: number;
|
|
1041
1038
|
height?: number;
|
|
1042
|
-
|
|
1043
|
-
|
|
1039
|
+
visualMetadata?: {
|
|
1040
|
+
caption?: string;
|
|
1041
|
+
useCases?: string[];
|
|
1042
|
+
visualStyle?: string[];
|
|
1043
|
+
layout?: string;
|
|
1044
|
+
} | null;
|
|
1044
1045
|
}>>;
|
|
1045
1046
|
onGetTemplateVariant?: (variantId: string) => Promise<{
|
|
1046
1047
|
canvasJson: string;
|
|
@@ -1,4 +1,485 @@
|
|
|
1
1
|
import type { AppClassProperties } from "../../types";
|
|
2
|
+
import type { OrderedExcalidrawElement } from "@orangecatai/element/types";
|
|
3
|
+
type SceneElement = OrderedExcalidrawElement;
|
|
4
|
+
export declare const getTemplateBuilderFrame: (elements: readonly SceneElement[], selectedElementIds: Record<string, boolean>, sourceFrameId: string | null) => (Readonly<{
|
|
5
|
+
id: string;
|
|
6
|
+
x: number;
|
|
7
|
+
y: number;
|
|
8
|
+
strokeColor: string;
|
|
9
|
+
backgroundColor: string;
|
|
10
|
+
fillStyle: import("@orangecatai/element/types").FillStyle;
|
|
11
|
+
strokeWidth: number;
|
|
12
|
+
strokeStyle: import("@orangecatai/element/types").StrokeStyle;
|
|
13
|
+
roundness: null | {
|
|
14
|
+
type: import("@orangecatai/element/types").RoundnessType;
|
|
15
|
+
value?: number;
|
|
16
|
+
};
|
|
17
|
+
roughness: number;
|
|
18
|
+
opacity: number;
|
|
19
|
+
width: number;
|
|
20
|
+
height: number;
|
|
21
|
+
angle: import("@orangecatai/math").Radians;
|
|
22
|
+
seed: number;
|
|
23
|
+
version: number;
|
|
24
|
+
versionNonce: number;
|
|
25
|
+
index: import("@orangecatai/element/types").FractionalIndex | null;
|
|
26
|
+
isDeleted: boolean;
|
|
27
|
+
groupIds: readonly import("@orangecatai/element/types").GroupId[];
|
|
28
|
+
frameId: string | null;
|
|
29
|
+
boundElements: readonly import("@orangecatai/element/types").BoundElement[] | null;
|
|
30
|
+
updated: number;
|
|
31
|
+
link: string | null;
|
|
32
|
+
locked: boolean;
|
|
33
|
+
customData?: Record<string, any>;
|
|
34
|
+
}> & Readonly<{
|
|
35
|
+
type: "line" | "arrow";
|
|
36
|
+
points: readonly import("@orangecatai/math").LocalPoint[];
|
|
37
|
+
startBinding: import("@orangecatai/element/types").FixedPointBinding | null;
|
|
38
|
+
endBinding: import("@orangecatai/element/types").FixedPointBinding | null;
|
|
39
|
+
startArrowhead: import("@orangecatai/element/types").Arrowhead | null;
|
|
40
|
+
endArrowhead: import("@orangecatai/element/types").Arrowhead | null;
|
|
41
|
+
}> & {
|
|
42
|
+
index: import("@orangecatai/element/types").FractionalIndex;
|
|
43
|
+
}) | (Readonly<{
|
|
44
|
+
id: string;
|
|
45
|
+
x: number;
|
|
46
|
+
y: number;
|
|
47
|
+
strokeColor: string;
|
|
48
|
+
backgroundColor: string;
|
|
49
|
+
fillStyle: import("@orangecatai/element/types").FillStyle;
|
|
50
|
+
strokeWidth: number;
|
|
51
|
+
strokeStyle: import("@orangecatai/element/types").StrokeStyle;
|
|
52
|
+
roundness: null | {
|
|
53
|
+
type: import("@orangecatai/element/types").RoundnessType;
|
|
54
|
+
value?: number;
|
|
55
|
+
};
|
|
56
|
+
roughness: number;
|
|
57
|
+
opacity: number;
|
|
58
|
+
width: number;
|
|
59
|
+
height: number;
|
|
60
|
+
angle: import("@orangecatai/math").Radians;
|
|
61
|
+
seed: number;
|
|
62
|
+
version: number;
|
|
63
|
+
versionNonce: number;
|
|
64
|
+
index: import("@orangecatai/element/types").FractionalIndex | null;
|
|
65
|
+
isDeleted: boolean;
|
|
66
|
+
groupIds: readonly import("@orangecatai/element/types").GroupId[];
|
|
67
|
+
frameId: string | null;
|
|
68
|
+
boundElements: readonly import("@orangecatai/element/types").BoundElement[] | null;
|
|
69
|
+
updated: number;
|
|
70
|
+
link: string | null;
|
|
71
|
+
locked: boolean;
|
|
72
|
+
customData?: Record<string, any>;
|
|
73
|
+
}> & {
|
|
74
|
+
type: "selection";
|
|
75
|
+
} & {
|
|
76
|
+
index: import("@orangecatai/element/types").FractionalIndex;
|
|
77
|
+
}) | (Readonly<{
|
|
78
|
+
id: string;
|
|
79
|
+
x: number;
|
|
80
|
+
y: number;
|
|
81
|
+
strokeColor: string;
|
|
82
|
+
backgroundColor: string;
|
|
83
|
+
fillStyle: import("@orangecatai/element/types").FillStyle;
|
|
84
|
+
strokeWidth: number;
|
|
85
|
+
strokeStyle: import("@orangecatai/element/types").StrokeStyle;
|
|
86
|
+
roundness: null | {
|
|
87
|
+
type: import("@orangecatai/element/types").RoundnessType;
|
|
88
|
+
value?: number;
|
|
89
|
+
};
|
|
90
|
+
roughness: number;
|
|
91
|
+
opacity: number;
|
|
92
|
+
width: number;
|
|
93
|
+
height: number;
|
|
94
|
+
angle: import("@orangecatai/math").Radians;
|
|
95
|
+
seed: number;
|
|
96
|
+
version: number;
|
|
97
|
+
versionNonce: number;
|
|
98
|
+
index: import("@orangecatai/element/types").FractionalIndex | null;
|
|
99
|
+
isDeleted: boolean;
|
|
100
|
+
groupIds: readonly import("@orangecatai/element/types").GroupId[];
|
|
101
|
+
frameId: string | null;
|
|
102
|
+
boundElements: readonly import("@orangecatai/element/types").BoundElement[] | null;
|
|
103
|
+
updated: number;
|
|
104
|
+
link: string | null;
|
|
105
|
+
locked: boolean;
|
|
106
|
+
customData?: Record<string, any>;
|
|
107
|
+
}> & {
|
|
108
|
+
type: "rectangle";
|
|
109
|
+
} & {
|
|
110
|
+
index: import("@orangecatai/element/types").FractionalIndex;
|
|
111
|
+
}) | (Readonly<{
|
|
112
|
+
id: string;
|
|
113
|
+
x: number;
|
|
114
|
+
y: number;
|
|
115
|
+
strokeColor: string;
|
|
116
|
+
backgroundColor: string;
|
|
117
|
+
fillStyle: import("@orangecatai/element/types").FillStyle;
|
|
118
|
+
strokeWidth: number;
|
|
119
|
+
strokeStyle: import("@orangecatai/element/types").StrokeStyle;
|
|
120
|
+
roundness: null | {
|
|
121
|
+
type: import("@orangecatai/element/types").RoundnessType;
|
|
122
|
+
value?: number;
|
|
123
|
+
};
|
|
124
|
+
roughness: number;
|
|
125
|
+
opacity: number;
|
|
126
|
+
width: number;
|
|
127
|
+
height: number;
|
|
128
|
+
angle: import("@orangecatai/math").Radians;
|
|
129
|
+
seed: number;
|
|
130
|
+
version: number;
|
|
131
|
+
versionNonce: number;
|
|
132
|
+
index: import("@orangecatai/element/types").FractionalIndex | null;
|
|
133
|
+
isDeleted: boolean;
|
|
134
|
+
groupIds: readonly import("@orangecatai/element/types").GroupId[];
|
|
135
|
+
frameId: string | null;
|
|
136
|
+
boundElements: readonly import("@orangecatai/element/types").BoundElement[] | null;
|
|
137
|
+
updated: number;
|
|
138
|
+
link: string | null;
|
|
139
|
+
locked: boolean;
|
|
140
|
+
customData?: Record<string, any>;
|
|
141
|
+
}> & {
|
|
142
|
+
type: "diamond";
|
|
143
|
+
} & {
|
|
144
|
+
index: import("@orangecatai/element/types").FractionalIndex;
|
|
145
|
+
}) | (Readonly<{
|
|
146
|
+
id: string;
|
|
147
|
+
x: number;
|
|
148
|
+
y: number;
|
|
149
|
+
strokeColor: string;
|
|
150
|
+
backgroundColor: string;
|
|
151
|
+
fillStyle: import("@orangecatai/element/types").FillStyle;
|
|
152
|
+
strokeWidth: number;
|
|
153
|
+
strokeStyle: import("@orangecatai/element/types").StrokeStyle;
|
|
154
|
+
roundness: null | {
|
|
155
|
+
type: import("@orangecatai/element/types").RoundnessType;
|
|
156
|
+
value?: number;
|
|
157
|
+
};
|
|
158
|
+
roughness: number;
|
|
159
|
+
opacity: number;
|
|
160
|
+
width: number;
|
|
161
|
+
height: number;
|
|
162
|
+
angle: import("@orangecatai/math").Radians;
|
|
163
|
+
seed: number;
|
|
164
|
+
version: number;
|
|
165
|
+
versionNonce: number;
|
|
166
|
+
index: import("@orangecatai/element/types").FractionalIndex | null;
|
|
167
|
+
isDeleted: boolean;
|
|
168
|
+
groupIds: readonly import("@orangecatai/element/types").GroupId[];
|
|
169
|
+
frameId: string | null;
|
|
170
|
+
boundElements: readonly import("@orangecatai/element/types").BoundElement[] | null;
|
|
171
|
+
updated: number;
|
|
172
|
+
link: string | null;
|
|
173
|
+
locked: boolean;
|
|
174
|
+
customData?: Record<string, any>;
|
|
175
|
+
}> & {
|
|
176
|
+
type: "ellipse";
|
|
177
|
+
} & {
|
|
178
|
+
index: import("@orangecatai/element/types").FractionalIndex;
|
|
179
|
+
}) | (Readonly<{
|
|
180
|
+
id: string;
|
|
181
|
+
x: number;
|
|
182
|
+
y: number;
|
|
183
|
+
strokeColor: string;
|
|
184
|
+
backgroundColor: string;
|
|
185
|
+
fillStyle: import("@orangecatai/element/types").FillStyle;
|
|
186
|
+
strokeWidth: number;
|
|
187
|
+
strokeStyle: import("@orangecatai/element/types").StrokeStyle;
|
|
188
|
+
roundness: null | {
|
|
189
|
+
type: import("@orangecatai/element/types").RoundnessType;
|
|
190
|
+
value?: number;
|
|
191
|
+
};
|
|
192
|
+
roughness: number;
|
|
193
|
+
opacity: number;
|
|
194
|
+
width: number;
|
|
195
|
+
height: number;
|
|
196
|
+
angle: import("@orangecatai/math").Radians;
|
|
197
|
+
seed: number;
|
|
198
|
+
version: number;
|
|
199
|
+
versionNonce: number;
|
|
200
|
+
index: import("@orangecatai/element/types").FractionalIndex | null;
|
|
201
|
+
isDeleted: boolean;
|
|
202
|
+
groupIds: readonly import("@orangecatai/element/types").GroupId[];
|
|
203
|
+
frameId: string | null;
|
|
204
|
+
boundElements: readonly import("@orangecatai/element/types").BoundElement[] | null;
|
|
205
|
+
updated: number;
|
|
206
|
+
link: string | null;
|
|
207
|
+
locked: boolean;
|
|
208
|
+
customData?: Record<string, any>;
|
|
209
|
+
}> & Readonly<{
|
|
210
|
+
type: "embeddable";
|
|
211
|
+
}> & {
|
|
212
|
+
index: import("@orangecatai/element/types").FractionalIndex;
|
|
213
|
+
}) | (Readonly<{
|
|
214
|
+
id: string;
|
|
215
|
+
x: number;
|
|
216
|
+
y: number;
|
|
217
|
+
strokeColor: string;
|
|
218
|
+
backgroundColor: string;
|
|
219
|
+
fillStyle: import("@orangecatai/element/types").FillStyle;
|
|
220
|
+
strokeWidth: number;
|
|
221
|
+
strokeStyle: import("@orangecatai/element/types").StrokeStyle;
|
|
222
|
+
roundness: null | {
|
|
223
|
+
type: import("@orangecatai/element/types").RoundnessType;
|
|
224
|
+
value?: number;
|
|
225
|
+
};
|
|
226
|
+
roughness: number;
|
|
227
|
+
opacity: number;
|
|
228
|
+
width: number;
|
|
229
|
+
height: number;
|
|
230
|
+
angle: import("@orangecatai/math").Radians;
|
|
231
|
+
seed: number;
|
|
232
|
+
version: number;
|
|
233
|
+
versionNonce: number;
|
|
234
|
+
index: import("@orangecatai/element/types").FractionalIndex | null;
|
|
235
|
+
isDeleted: boolean;
|
|
236
|
+
groupIds: readonly import("@orangecatai/element/types").GroupId[];
|
|
237
|
+
frameId: string | null;
|
|
238
|
+
boundElements: readonly import("@orangecatai/element/types").BoundElement[] | null;
|
|
239
|
+
updated: number;
|
|
240
|
+
link: string | null;
|
|
241
|
+
locked: boolean;
|
|
242
|
+
customData?: Record<string, any>;
|
|
243
|
+
}> & Readonly<{
|
|
244
|
+
type: "iframe";
|
|
245
|
+
customData?: {
|
|
246
|
+
generationData?: import("@orangecatai/element/types").MagicGenerationData;
|
|
247
|
+
};
|
|
248
|
+
}> & {
|
|
249
|
+
index: import("@orangecatai/element/types").FractionalIndex;
|
|
250
|
+
}) | (Readonly<{
|
|
251
|
+
id: string;
|
|
252
|
+
x: number;
|
|
253
|
+
y: number;
|
|
254
|
+
strokeColor: string;
|
|
255
|
+
backgroundColor: string;
|
|
256
|
+
fillStyle: import("@orangecatai/element/types").FillStyle;
|
|
257
|
+
strokeWidth: number;
|
|
258
|
+
strokeStyle: import("@orangecatai/element/types").StrokeStyle;
|
|
259
|
+
roundness: null | {
|
|
260
|
+
type: import("@orangecatai/element/types").RoundnessType;
|
|
261
|
+
value?: number;
|
|
262
|
+
};
|
|
263
|
+
roughness: number;
|
|
264
|
+
opacity: number;
|
|
265
|
+
width: number;
|
|
266
|
+
height: number;
|
|
267
|
+
angle: import("@orangecatai/math").Radians;
|
|
268
|
+
seed: number;
|
|
269
|
+
version: number;
|
|
270
|
+
versionNonce: number;
|
|
271
|
+
index: import("@orangecatai/element/types").FractionalIndex | null;
|
|
272
|
+
isDeleted: boolean;
|
|
273
|
+
groupIds: readonly import("@orangecatai/element/types").GroupId[];
|
|
274
|
+
frameId: string | null;
|
|
275
|
+
boundElements: readonly import("@orangecatai/element/types").BoundElement[] | null;
|
|
276
|
+
updated: number;
|
|
277
|
+
link: string | null;
|
|
278
|
+
locked: boolean;
|
|
279
|
+
customData?: Record<string, any>;
|
|
280
|
+
}> & Readonly<{
|
|
281
|
+
type: "image";
|
|
282
|
+
fileId: import("@orangecatai/element/types").FileId | null;
|
|
283
|
+
status: "pending" | "saved" | "error";
|
|
284
|
+
scale: [number, number];
|
|
285
|
+
crop: import("@orangecatai/element/types").ImageCrop | null;
|
|
286
|
+
}> & {
|
|
287
|
+
index: import("@orangecatai/element/types").FractionalIndex;
|
|
288
|
+
}) | (Readonly<{
|
|
289
|
+
id: string;
|
|
290
|
+
x: number;
|
|
291
|
+
y: number;
|
|
292
|
+
strokeColor: string;
|
|
293
|
+
backgroundColor: string;
|
|
294
|
+
fillStyle: import("@orangecatai/element/types").FillStyle;
|
|
295
|
+
strokeWidth: number;
|
|
296
|
+
strokeStyle: import("@orangecatai/element/types").StrokeStyle;
|
|
297
|
+
roundness: null | {
|
|
298
|
+
type: import("@orangecatai/element/types").RoundnessType;
|
|
299
|
+
value?: number;
|
|
300
|
+
};
|
|
301
|
+
roughness: number;
|
|
302
|
+
opacity: number;
|
|
303
|
+
width: number;
|
|
304
|
+
height: number;
|
|
305
|
+
angle: import("@orangecatai/math").Radians;
|
|
306
|
+
seed: number;
|
|
307
|
+
version: number;
|
|
308
|
+
versionNonce: number;
|
|
309
|
+
index: import("@orangecatai/element/types").FractionalIndex | null;
|
|
310
|
+
isDeleted: boolean;
|
|
311
|
+
groupIds: readonly import("@orangecatai/element/types").GroupId[];
|
|
312
|
+
frameId: string | null;
|
|
313
|
+
boundElements: readonly import("@orangecatai/element/types").BoundElement[] | null;
|
|
314
|
+
updated: number;
|
|
315
|
+
link: string | null;
|
|
316
|
+
locked: boolean;
|
|
317
|
+
customData?: Record<string, any>;
|
|
318
|
+
}> & Readonly<{
|
|
319
|
+
type: "video";
|
|
320
|
+
videoUrl: string | null;
|
|
321
|
+
status: "idle" | "uploading" | "saved" | "error";
|
|
322
|
+
mimeType: "video/mp4" | "video/quicktime" | null;
|
|
323
|
+
thumbnailDataUrl: string | null;
|
|
324
|
+
duration: number;
|
|
325
|
+
naturalWidth: number;
|
|
326
|
+
naturalHeight: number;
|
|
327
|
+
}> & {
|
|
328
|
+
index: import("@orangecatai/element/types").FractionalIndex;
|
|
329
|
+
}) | (Readonly<{
|
|
330
|
+
id: string;
|
|
331
|
+
x: number;
|
|
332
|
+
y: number;
|
|
333
|
+
strokeColor: string;
|
|
334
|
+
backgroundColor: string;
|
|
335
|
+
fillStyle: import("@orangecatai/element/types").FillStyle;
|
|
336
|
+
strokeWidth: number;
|
|
337
|
+
strokeStyle: import("@orangecatai/element/types").StrokeStyle;
|
|
338
|
+
roundness: null | {
|
|
339
|
+
type: import("@orangecatai/element/types").RoundnessType;
|
|
340
|
+
value?: number;
|
|
341
|
+
};
|
|
342
|
+
roughness: number;
|
|
343
|
+
opacity: number;
|
|
344
|
+
width: number;
|
|
345
|
+
height: number;
|
|
346
|
+
angle: import("@orangecatai/math").Radians;
|
|
347
|
+
seed: number;
|
|
348
|
+
version: number;
|
|
349
|
+
versionNonce: number;
|
|
350
|
+
index: import("@orangecatai/element/types").FractionalIndex | null;
|
|
351
|
+
isDeleted: boolean;
|
|
352
|
+
groupIds: readonly import("@orangecatai/element/types").GroupId[];
|
|
353
|
+
frameId: string | null;
|
|
354
|
+
boundElements: readonly import("@orangecatai/element/types").BoundElement[] | null;
|
|
355
|
+
updated: number;
|
|
356
|
+
link: string | null;
|
|
357
|
+
locked: boolean;
|
|
358
|
+
customData?: Record<string, any>;
|
|
359
|
+
}> & {
|
|
360
|
+
type: "frame";
|
|
361
|
+
name: string | null;
|
|
362
|
+
} & {
|
|
363
|
+
index: import("@orangecatai/element/types").FractionalIndex;
|
|
364
|
+
}) | (Readonly<{
|
|
365
|
+
id: string;
|
|
366
|
+
x: number;
|
|
367
|
+
y: number;
|
|
368
|
+
strokeColor: string;
|
|
369
|
+
backgroundColor: string;
|
|
370
|
+
fillStyle: import("@orangecatai/element/types").FillStyle;
|
|
371
|
+
strokeWidth: number;
|
|
372
|
+
strokeStyle: import("@orangecatai/element/types").StrokeStyle;
|
|
373
|
+
roundness: null | {
|
|
374
|
+
type: import("@orangecatai/element/types").RoundnessType;
|
|
375
|
+
value?: number;
|
|
376
|
+
};
|
|
377
|
+
roughness: number;
|
|
378
|
+
opacity: number;
|
|
379
|
+
width: number;
|
|
380
|
+
height: number;
|
|
381
|
+
angle: import("@orangecatai/math").Radians;
|
|
382
|
+
seed: number;
|
|
383
|
+
version: number;
|
|
384
|
+
versionNonce: number;
|
|
385
|
+
index: import("@orangecatai/element/types").FractionalIndex | null;
|
|
386
|
+
isDeleted: boolean;
|
|
387
|
+
groupIds: readonly import("@orangecatai/element/types").GroupId[];
|
|
388
|
+
frameId: string | null;
|
|
389
|
+
boundElements: readonly import("@orangecatai/element/types").BoundElement[] | null;
|
|
390
|
+
updated: number;
|
|
391
|
+
link: string | null;
|
|
392
|
+
locked: boolean;
|
|
393
|
+
customData?: Record<string, any>;
|
|
394
|
+
}> & {
|
|
395
|
+
type: "magicframe";
|
|
396
|
+
name: string | null;
|
|
397
|
+
} & {
|
|
398
|
+
index: import("@orangecatai/element/types").FractionalIndex;
|
|
399
|
+
}) | (Readonly<{
|
|
400
|
+
id: string;
|
|
401
|
+
x: number;
|
|
402
|
+
y: number;
|
|
403
|
+
strokeColor: string;
|
|
404
|
+
backgroundColor: string;
|
|
405
|
+
fillStyle: import("@orangecatai/element/types").FillStyle;
|
|
406
|
+
strokeWidth: number;
|
|
407
|
+
strokeStyle: import("@orangecatai/element/types").StrokeStyle;
|
|
408
|
+
roundness: null | {
|
|
409
|
+
type: import("@orangecatai/element/types").RoundnessType;
|
|
410
|
+
value?: number;
|
|
411
|
+
};
|
|
412
|
+
roughness: number;
|
|
413
|
+
opacity: number;
|
|
414
|
+
width: number;
|
|
415
|
+
height: number;
|
|
416
|
+
angle: import("@orangecatai/math").Radians;
|
|
417
|
+
seed: number;
|
|
418
|
+
version: number;
|
|
419
|
+
versionNonce: number;
|
|
420
|
+
index: import("@orangecatai/element/types").FractionalIndex | null;
|
|
421
|
+
isDeleted: boolean;
|
|
422
|
+
groupIds: readonly import("@orangecatai/element/types").GroupId[];
|
|
423
|
+
frameId: string | null;
|
|
424
|
+
boundElements: readonly import("@orangecatai/element/types").BoundElement[] | null;
|
|
425
|
+
updated: number;
|
|
426
|
+
link: string | null;
|
|
427
|
+
locked: boolean;
|
|
428
|
+
customData?: Record<string, any>;
|
|
429
|
+
}> & Readonly<{
|
|
430
|
+
type: "text";
|
|
431
|
+
fontSize: number;
|
|
432
|
+
fontFamily: import("@orangecatai/element/types").FontFamilyValues;
|
|
433
|
+
text: string;
|
|
434
|
+
textAlign: import("@orangecatai/element/types").TextAlign;
|
|
435
|
+
verticalAlign: import("@orangecatai/element/types").VerticalAlign;
|
|
436
|
+
containerId: import("@orangecatai/element/types").ExcalidrawGenericElement["id"] | null;
|
|
437
|
+
originalText: string;
|
|
438
|
+
autoResize: boolean;
|
|
439
|
+
lineHeight: number & {
|
|
440
|
+
_brand: "unitlessLineHeight";
|
|
441
|
+
};
|
|
442
|
+
}> & {
|
|
443
|
+
index: import("@orangecatai/element/types").FractionalIndex;
|
|
444
|
+
}) | (Readonly<{
|
|
445
|
+
id: string;
|
|
446
|
+
x: number;
|
|
447
|
+
y: number;
|
|
448
|
+
strokeColor: string;
|
|
449
|
+
backgroundColor: string;
|
|
450
|
+
fillStyle: import("@orangecatai/element/types").FillStyle;
|
|
451
|
+
strokeWidth: number;
|
|
452
|
+
strokeStyle: import("@orangecatai/element/types").StrokeStyle;
|
|
453
|
+
roundness: null | {
|
|
454
|
+
type: import("@orangecatai/element/types").RoundnessType;
|
|
455
|
+
value?: number;
|
|
456
|
+
};
|
|
457
|
+
roughness: number;
|
|
458
|
+
opacity: number;
|
|
459
|
+
width: number;
|
|
460
|
+
height: number;
|
|
461
|
+
angle: import("@orangecatai/math").Radians;
|
|
462
|
+
seed: number;
|
|
463
|
+
version: number;
|
|
464
|
+
versionNonce: number;
|
|
465
|
+
index: import("@orangecatai/element/types").FractionalIndex | null;
|
|
466
|
+
isDeleted: boolean;
|
|
467
|
+
groupIds: readonly import("@orangecatai/element/types").GroupId[];
|
|
468
|
+
frameId: string | null;
|
|
469
|
+
boundElements: readonly import("@orangecatai/element/types").BoundElement[] | null;
|
|
470
|
+
updated: number;
|
|
471
|
+
link: string | null;
|
|
472
|
+
locked: boolean;
|
|
473
|
+
customData?: Record<string, any>;
|
|
474
|
+
}> & Readonly<{
|
|
475
|
+
type: "freedraw";
|
|
476
|
+
points: readonly import("@orangecatai/math").LocalPoint[];
|
|
477
|
+
pressures: readonly number[];
|
|
478
|
+
simulatePressure: boolean;
|
|
479
|
+
}> & {
|
|
480
|
+
index: import("@orangecatai/element/types").FractionalIndex;
|
|
481
|
+
}) | undefined;
|
|
2
482
|
export declare const TemplateBuilderTray: ({ app }: {
|
|
3
483
|
app: AppClassProperties;
|
|
4
484
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
485
|
+
export {};
|
|
@@ -567,7 +567,7 @@ export interface ExcalidrawProps {
|
|
|
567
567
|
};
|
|
568
568
|
button: "down" | "up";
|
|
569
569
|
pointersMap: Gesture["pointers"];
|
|
570
|
-
}) => void
|
|
570
|
+
}) => void | Promise<void>;
|
|
571
571
|
onPaste?: (data: ClipboardData, event: ClipboardEvent | null) => Promise<boolean> | boolean;
|
|
572
572
|
/**
|
|
573
573
|
* Called when element(s) are duplicated so you can listen or modify as
|
|
@@ -843,16 +843,21 @@ export interface ExcalidrawProps {
|
|
|
843
843
|
blobUrl: string;
|
|
844
844
|
}>>;
|
|
845
845
|
/**
|
|
846
|
-
*
|
|
846
|
+
* Semantically search captioned brand templates against the full ad brief.
|
|
847
847
|
*/
|
|
848
|
-
onListBrandTemplates?: (
|
|
848
|
+
onListBrandTemplates?: (brief?: string) => Promise<Array<{
|
|
849
849
|
id: string;
|
|
850
850
|
name: string;
|
|
851
851
|
campaignTag?: string;
|
|
852
852
|
label?: string;
|
|
853
853
|
width?: number;
|
|
854
854
|
height?: number;
|
|
855
|
-
|
|
855
|
+
visualMetadata?: {
|
|
856
|
+
caption?: string;
|
|
857
|
+
useCases?: string[];
|
|
858
|
+
visualStyle?: string[];
|
|
859
|
+
layout?: string;
|
|
860
|
+
} | null;
|
|
856
861
|
}>>;
|
|
857
862
|
/**
|
|
858
863
|
* Fetch the full canvas JSON for a specific template by ID.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orangecatai/adgen-canvas",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.38",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"types": "./dist/types/excalidraw/index.d.ts",
|
|
6
6
|
"main": "./dist/prod/index.js",
|
|
@@ -84,8 +84,8 @@
|
|
|
84
84
|
"@excalidraw/laser-pointer": "1.3.1",
|
|
85
85
|
"@excalidraw/mermaid-to-excalidraw": "2.0.0-rfc3",
|
|
86
86
|
"@excalidraw/random-username": "1.1.0",
|
|
87
|
-
"@orangecatai/common": "0.0.
|
|
88
|
-
"@orangecatai/element": "0.0.
|
|
87
|
+
"@orangecatai/common": "0.0.5",
|
|
88
|
+
"@orangecatai/element": "0.0.6",
|
|
89
89
|
"@orangecatai/math": "0.0.2",
|
|
90
90
|
"@radix-ui/react-avatar": "1.1.11",
|
|
91
91
|
"@radix-ui/react-select": "2.2.6",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{S as a,T as b,U as c}from"../chunk-7MAYRMSQ.js";import"../chunk-KZGD5EMI.js";import"../chunk-SRAX5OIU.js";export{c as decodePngMetadata,b as encodePngMetadata,a as getTEXtChunk};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|