@popmelt.com/core 0.12.2 → 0.14.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.
package/dist/index.d.mts CHANGED
@@ -38,6 +38,7 @@ type StickerColorStep = (typeof STICKER_COLOR_STEPS)[number];
38
38
  declare const STICKER_FAMILIES: readonly ["padding", "margin", "border", "radius", "stack", "grid", "text", "color", "transform", "opacity"];
39
39
  type StickerFamily = (typeof STICKER_FAMILIES)[number];
40
40
  declare const SPACING_STEPS: readonly [0, 1, 2, 3, 4, 6, 8, 10, 12, 16];
41
+ declare const TRANSLATE_STEPS: readonly [-16, -12, -10, -8, -6, -4, -3, -2, -1, 0, 1, 2, 3, 4, 6, 8, 10, 12, 16];
41
42
  declare const BORDER_STEPS: readonly [0, 1, 2, 4, 8];
42
43
  declare const DIRECTION_STEPS: readonly ["vertical", "horizontal"];
43
44
  declare const ALIGN_STEPS: readonly ["stretch", "start", "center", "end", "baseline"];
@@ -48,11 +49,11 @@ declare const FONT_WEIGHT_STEPS: readonly [300, 400, 500, 600, 700, 800];
48
49
  declare const LINE_HEIGHT_STEPS: readonly ["none", "tight", "snug", "normal", "relaxed", "loose"];
49
50
  declare const LETTER_SPACING_STEPS: readonly ["tighter", "tight", "normal", "wide", "wider", "widest"];
50
51
  declare const TEXT_ALIGN_STEPS: readonly ["left", "center", "right", "justify"];
51
- declare const SCALE_STEPS: readonly [0, 50, 75, 90, 95, 100, 105, 110, 125, 150];
52
- declare const ROTATE_STEPS: readonly [0, 1, 2, 3, 6, 12, 45, 90, 180];
52
+ declare const SCALE_STEPS: readonly [25, 50, 75, 90, 95, 100, 105, 110, 125, 150];
53
+ declare const ROTATE_STEPS: readonly [-180, -90, -45, -25, -12, -6, -3, -2, -1, 0, 1, 2, 3, 6, 12, 25, 45, 90, 180];
53
54
  declare const OPACITY_STEPS: readonly [0, 5, 10, 20, 25, 30, 40, 50, 60, 70, 75, 80, 90, 95, 100];
54
55
  declare const MIX_BLEND_STEPS: readonly ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"];
55
- type StickerStep = (typeof SPACING_STEPS)[number] | (typeof BORDER_STEPS)[number] | (typeof DIRECTION_STEPS)[number] | (typeof ALIGN_STEPS)[number] | (typeof JUSTIFY_STEPS)[number] | (typeof GRID_COUNT_STEPS)[number] | (typeof FONT_SIZE_STEPS)[number] | (typeof FONT_WEIGHT_STEPS)[number] | (typeof LINE_HEIGHT_STEPS)[number] | (typeof LETTER_SPACING_STEPS)[number] | (typeof TEXT_ALIGN_STEPS)[number] | (typeof SCALE_STEPS)[number] | (typeof ROTATE_STEPS)[number] | (typeof OPACITY_STEPS)[number] | (typeof MIX_BLEND_STEPS)[number] | StickerColorStep;
56
+ type StickerStep = (typeof SPACING_STEPS)[number] | (typeof BORDER_STEPS)[number] | (typeof DIRECTION_STEPS)[number] | (typeof ALIGN_STEPS)[number] | (typeof JUSTIFY_STEPS)[number] | (typeof GRID_COUNT_STEPS)[number] | (typeof FONT_SIZE_STEPS)[number] | (typeof FONT_WEIGHT_STEPS)[number] | (typeof LINE_HEIGHT_STEPS)[number] | (typeof LETTER_SPACING_STEPS)[number] | (typeof TEXT_ALIGN_STEPS)[number] | (typeof TRANSLATE_STEPS)[number] | (typeof SCALE_STEPS)[number] | (typeof ROTATE_STEPS)[number] | (typeof OPACITY_STEPS)[number] | (typeof MIX_BLEND_STEPS)[number] | StickerColorStep;
56
57
  type StickerSubproperty = 'all' | 'x' | 'y' | 'top' | 'right' | 'bottom' | 'left' | 'top-left' | 'top-right' | 'bottom-right' | 'bottom-left' | 'vertical' | 'horizontal' | 'direction' | 'gap' | 'align' | 'justify' | 'rows' | 'columns' | 'size' | 'weight' | 'line-height' | 'letter-spacing' | 'text-align' | 'color' | 'translate' | 'scale' | 'rotate' | 'opacity' | 'mix-blend' | StickerColorName;
57
58
 
58
59
  type AnnotationLifecycleStatus = 'pending' | 'sending' | 'in_flight' | 'resolved' | 'needs_review' | 'dismissed' | 'waiting_input' | 'failed';
@@ -100,6 +101,10 @@ type StyleChange = {
100
101
  family: StickerFamily;
101
102
  subproperty: StickerSubproperty;
102
103
  step: StickerStep;
104
+ axisSteps?: {
105
+ x: StickerStep;
106
+ y: StickerStep;
107
+ };
103
108
  };
104
109
  };
105
110
  type StyleModification = {
@@ -108,6 +113,7 @@ type StyleModification = {
108
113
  element: ElementInfo;
109
114
  changes: StyleChange[];
110
115
  createdAt?: number;
116
+ annotationNumber?: number;
111
117
  captured?: boolean;
112
118
  pathname?: string;
113
119
  };
@@ -119,6 +125,7 @@ type TextModification = {
119
125
  original: string;
120
126
  modified: string;
121
127
  createdAt?: number;
128
+ annotationNumber?: number;
122
129
  captured?: boolean;
123
130
  pathname?: string;
124
131
  };
@@ -186,6 +193,7 @@ type Annotation = {
186
193
  replyCount?: number;
187
194
  replyJobIds?: string[];
188
195
  threadId?: string;
196
+ targetBindingId?: string;
189
197
  pathname?: string;
190
198
  elements?: ElementInfo[];
191
199
  linkedSelector?: string;