@popmelt.com/core 0.12.2 → 0.13.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/codex-plugin/.codex-plugin/plugin.json +1 -1
- package/dist/bridge-entry.mjs +54 -54
- package/dist/{chunk-HBODYNYU.mjs → chunk-36CNIZDC.mjs} +1 -1
- package/dist/cli.mjs +82 -82
- package/dist/index.d.mts +8 -3
- package/dist/index.mjs +101 -79
- package/dist/plugin-astro.mjs +1 -1
- package/dist/plugin-vite.mjs +1 -1
- package/dist/{server-NIKJG3WH.mjs → server-IKKLHSAM.mjs} +54 -54
- package/dist/server.mjs +55 -55
- package/package.json +1 -1
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 [
|
|
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 = {
|