@popmelt.com/core 0.8.7 → 0.8.9
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 +3 -18
- package/dist/bridge-entry.mjs +47 -107
- package/dist/{chunk-ETDSTV4E.mjs → chunk-AX3C7GUE.mjs} +1 -1
- package/dist/cli.mjs +47 -107
- package/dist/index.d.mts +10 -1
- package/dist/index.mjs +68 -47
- package/dist/memory-legacy.d.mts +5 -1
- package/dist/memory-legacy.mjs +1 -1
- package/dist/memory-store.d.mts +6 -94
- package/dist/memory-store.mjs +3 -3
- package/dist/memory.d.mts +5 -10
- package/dist/memory.mjs +1 -1
- package/dist/plugin-astro.mjs +1 -1
- package/dist/plugin-vite.mjs +1 -1
- package/dist/server-6UNEV3DE.mjs +182 -0
- package/dist/server.d.mts +1 -1
- package/dist/server.mjs +48 -108
- package/package.json +1 -1
- package/dist/server-FZ2YAIA5.mjs +0 -242
package/dist/index.d.mts
CHANGED
|
@@ -30,7 +30,7 @@ type Scope = {
|
|
|
30
30
|
breadth: ScopeBreadth;
|
|
31
31
|
target: ScopeTarget;
|
|
32
32
|
};
|
|
33
|
-
declare const TOOL_TYPES: readonly ["freehand", "line", "rectangle", "circle", "inspector", "hand", "
|
|
33
|
+
declare const TOOL_TYPES: readonly ["freehand", "line", "rectangle", "circle", "inspector", "hand", "model"];
|
|
34
34
|
type ToolType = (typeof TOOL_TYPES)[number];
|
|
35
35
|
type AnnotationType = ToolType | 'text';
|
|
36
36
|
type Point = {
|
|
@@ -109,6 +109,13 @@ type SpacingTokenChange = {
|
|
|
109
109
|
captured?: boolean;
|
|
110
110
|
affectedElements: SpacingElementEvidence[];
|
|
111
111
|
};
|
|
112
|
+
type AnnotationAttachment = {
|
|
113
|
+
id: string;
|
|
114
|
+
name: string;
|
|
115
|
+
mimeType: string;
|
|
116
|
+
size: number;
|
|
117
|
+
kind: 'svg' | 'text';
|
|
118
|
+
};
|
|
112
119
|
type Annotation = {
|
|
113
120
|
id: string;
|
|
114
121
|
type: AnnotationType;
|
|
@@ -132,6 +139,7 @@ type Annotation = {
|
|
|
132
139
|
linkedSelector?: string;
|
|
133
140
|
linkedAnchor?: 'top-left' | 'bottom-left';
|
|
134
141
|
imageCount?: number;
|
|
142
|
+
attachments?: AnnotationAttachment[];
|
|
135
143
|
};
|
|
136
144
|
type BridgeStatus = {
|
|
137
145
|
ok: boolean;
|
|
@@ -158,6 +166,7 @@ type AnnotationData = {
|
|
|
158
166
|
pathname?: string;
|
|
159
167
|
elements: ElementInfo[];
|
|
160
168
|
imageCount?: number;
|
|
169
|
+
attachments?: AnnotationAttachment[];
|
|
161
170
|
};
|
|
162
171
|
type FeedbackData = {
|
|
163
172
|
timestamp: string;
|