@pixerate/editor 0.80.0 → 0.82.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/README.md +13 -3
- package/dist/agent/index.cjs +138 -13
- package/dist/agent/index.cjs.map +1 -1
- package/dist/agent/index.d.cts +9 -5
- package/dist/agent/index.d.ts +9 -5
- package/dist/agent/index.js +144 -19
- package/dist/agent/index.js.map +1 -1
- package/dist/animation-editor/index.d.cts +1 -1
- package/dist/animation-editor/index.d.ts +1 -1
- package/dist/bridge/index.d.cts +3 -3
- package/dist/bridge/index.d.ts +3 -3
- package/dist/{bridge-client-C5dRjrz5.d.ts → bridge-client-CMGfnjTl.d.ts} +1 -1
- package/dist/{bridge-client-C5OziCRK.d.cts → bridge-client-VpnICVxP.d.cts} +1 -1
- package/dist/{builtins-BKYlHH1s.d.ts → builtins-CV1fDj64.d.ts} +5 -1
- package/dist/{builtins-1kqwLUnb.d.cts → builtins-c4w0eAYl.d.cts} +5 -1
- package/dist/canvas/index.cjs +235 -104
- package/dist/canvas/index.cjs.map +1 -1
- package/dist/canvas/index.d.cts +59 -1
- package/dist/canvas/index.d.ts +59 -1
- package/dist/canvas/index.js +234 -103
- package/dist/canvas/index.js.map +1 -1
- package/dist/capture-DFEMFmVt.d.cts +133 -0
- package/dist/capture-wwNGaW05.d.ts +133 -0
- package/dist/chart/index.d.cts +1 -1
- package/dist/chart/index.d.ts +1 -1
- package/dist/{chunk-2CJ3LPYQ.js → chunk-424H3P4I.js} +13 -295
- package/dist/chunk-424H3P4I.js.map +1 -0
- package/dist/{chunk-K73CKYUM.cjs → chunk-EI2MOVQ3.cjs} +198 -3
- package/dist/chunk-EI2MOVQ3.cjs.map +1 -0
- package/dist/chunk-FURT6ZFZ.cjs +1 -0
- package/dist/chunk-FURT6ZFZ.cjs.map +1 -0
- package/dist/{chunk-GPWNYQ7R.js → chunk-O2W2SP3C.js} +197 -2
- package/dist/chunk-O2W2SP3C.js.map +1 -0
- package/dist/{chunk-UN33YOXW.cjs → chunk-PA5S7KPC.cjs} +293 -2
- package/dist/chunk-PA5S7KPC.cjs.map +1 -0
- package/dist/{chunk-IB3ZHQAX.js → chunk-PTYWCFFW.js} +29 -4
- package/dist/chunk-PTYWCFFW.js.map +1 -0
- package/dist/{chunk-JQ3BB3E6.js → chunk-PXDEFEG2.js} +293 -2
- package/dist/chunk-PXDEFEG2.js.map +1 -0
- package/dist/chunk-REOJJIY3.js +201 -0
- package/dist/chunk-REOJJIY3.js.map +1 -0
- package/dist/chunk-RJ2BFKEN.js +1 -0
- package/dist/chunk-RJ2BFKEN.js.map +1 -0
- package/dist/{chunk-YU4WQE5M.cjs → chunk-TAPXWP2B.cjs} +95 -377
- package/dist/chunk-TAPXWP2B.cjs.map +1 -0
- package/dist/{chunk-HXDMZQTD.cjs → chunk-TPOT575P.cjs} +29 -4
- package/dist/{chunk-IB3ZHQAX.js.map → chunk-TPOT575P.cjs.map} +1 -1
- package/dist/chunk-VJUVNERT.cjs +201 -0
- package/dist/chunk-VJUVNERT.cjs.map +1 -0
- package/dist/commands/index.cjs +2 -2
- package/dist/commands/index.d.cts +2 -2
- package/dist/commands/index.d.ts +2 -2
- package/dist/commands/index.js +1 -1
- package/dist/diagram/index.d.cts +1 -1
- package/dist/diagram/index.d.ts +1 -1
- package/dist/dom-capture-7Wvf6Tyg.d.ts +59 -0
- package/dist/dom-capture-GyYuE-zq.d.cts +59 -0
- package/dist/generation/index.cjs +932 -791
- package/dist/generation/index.cjs.map +1 -1
- package/dist/generation/index.d.cts +268 -242
- package/dist/generation/index.d.ts +268 -242
- package/dist/generation/index.js +926 -785
- package/dist/generation/index.js.map +1 -1
- package/dist/image-editor/index.cjs +362 -2
- package/dist/image-editor/index.cjs.map +1 -1
- package/dist/image-editor/index.d.cts +35 -2
- package/dist/image-editor/index.d.ts +35 -2
- package/dist/image-editor/index.js +361 -1
- package/dist/image-editor/index.js.map +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +16 -16
- package/dist/{registry-DIpIaCkH.d.cts → registry-BqA1AZt0.d.cts} +1 -1
- package/dist/{registry-7AZFuand.d.ts → registry-D-4fit9C.d.ts} +1 -1
- package/dist/spreadsheet/index.cjs +3 -3
- package/dist/spreadsheet/index.cjs.map +1 -1
- package/dist/spreadsheet/index.js +16 -16
- package/dist/tools/index.cjs +33 -4
- package/dist/tools/index.cjs.map +1 -1
- package/dist/tools/index.d.cts +4 -2
- package/dist/tools/index.d.ts +4 -2
- package/dist/tools/index.js +43 -14
- package/dist/video-editor/index.d.cts +1 -1
- package/dist/video-editor/index.d.ts +1 -1
- package/package.json +2 -1
- package/skills/README.md +55 -0
- package/skills/pixerate-agent-tools/SKILL.md +75 -0
- package/skills/pixerate-animation-editor/SKILL.md +155 -0
- package/skills/pixerate-animation-editor/references/commands.md +123 -0
- package/skills/pixerate-canvas/SKILL.md +231 -0
- package/skills/pixerate-chart/SKILL.md +190 -0
- package/skills/pixerate-diagram/SKILL.md +134 -0
- package/skills/pixerate-generation/SKILL.md +109 -0
- package/skills/pixerate-image-editor/SKILL.md +140 -0
- package/skills/pixerate-parameters/SKILL.md +83 -0
- package/skills/pixerate-rich-text/SKILL.md +160 -0
- package/skills/pixerate-spreadsheet/SKILL.md +146 -0
- package/skills/pixerate-vector/SKILL.md +191 -0
- package/skills/pixerate-vector/references/commands.md +138 -0
- package/skills/pixerate-video-editor/SKILL.md +173 -0
- package/dist/chunk-2CJ3LPYQ.js.map +0 -1
- package/dist/chunk-GPWNYQ7R.js.map +0 -1
- package/dist/chunk-HXDMZQTD.cjs.map +0 -1
- package/dist/chunk-JQ3BB3E6.js.map +0 -1
- package/dist/chunk-K73CKYUM.cjs.map +0 -1
- package/dist/chunk-UN33YOXW.cjs.map +0 -1
- package/dist/chunk-YU4WQE5M.cjs.map +0 -1
package/dist/diagram/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { f as MetaCarrier, M as MermaidDocument, e as EditOp, D as DiagramFamily, g as DiagramAdapter, S as SupportTier, h as Preamble, b as DiagramMeta, E as EdgePattern, A as ArrowHead, d as GraphEdge, i as AdapterParseContext, a as DiagramGraph, j as Diagnostic, G as GraphNode, P as Point, c as GraphGroup } from '../types-DYkjhzdz.cjs';
|
|
2
2
|
export { k as DIRECTIONS, l as Direction } from '../types-DYkjhzdz.cjs';
|
|
3
3
|
import { H as HistoryManager } from '../HistoryManager-DeQQMBCj.cjs';
|
|
4
|
-
import {
|
|
4
|
+
import { a as AgentToolProvider } from '../registry-BqA1AZt0.cjs';
|
|
5
5
|
import { g as PresenceStore, e as PresenceClock, d as PresenceActorInfo } from '../presence-Cb6WhcrQ.cjs';
|
|
6
6
|
export { P as PRESENCE_COLORS, a as PerformanceQueue, c as PresenceActor, f as PresenceState, h as createInstantPresenceClock, r as realPresenceClock } from '../presence-Cb6WhcrQ.cjs';
|
|
7
7
|
import '../types-DsiXGmjo.cjs';
|
package/dist/diagram/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { f as MetaCarrier, M as MermaidDocument, e as EditOp, D as DiagramFamily, g as DiagramAdapter, S as SupportTier, h as Preamble, b as DiagramMeta, E as EdgePattern, A as ArrowHead, d as GraphEdge, i as AdapterParseContext, a as DiagramGraph, j as Diagnostic, G as GraphNode, P as Point, c as GraphGroup } from '../types-DYkjhzdz.js';
|
|
2
2
|
export { k as DIRECTIONS, l as Direction } from '../types-DYkjhzdz.js';
|
|
3
3
|
import { H as HistoryManager } from '../HistoryManager-DWSLd6Tf.js';
|
|
4
|
-
import {
|
|
4
|
+
import { a as AgentToolProvider } from '../registry-D-4fit9C.js';
|
|
5
5
|
import { g as PresenceStore, e as PresenceClock, d as PresenceActorInfo } from '../presence-Cb6WhcrQ.js';
|
|
6
6
|
export { P as PRESENCE_COLORS, a as PerformanceQueue, c as PresenceActor, f as PresenceState, h as createInstantPresenceClock, r as realPresenceClock } from '../presence-Cb6WhcrQ.js';
|
|
7
7
|
import '../types-DsiXGmjo.js';
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { C as CaptureFormat, a as CapturedImage, b as CaptureSurface } from './capture-wwNGaW05.js';
|
|
2
|
+
|
|
3
|
+
interface RasterizeElementOptions {
|
|
4
|
+
/** CSS size of the drawn box (default: the element's client size). */
|
|
5
|
+
width?: number;
|
|
6
|
+
height?: number;
|
|
7
|
+
/** Output size in pixels (default: the CSS size). */
|
|
8
|
+
pixelWidth?: number;
|
|
9
|
+
pixelHeight?: number;
|
|
10
|
+
format?: CaptureFormat;
|
|
11
|
+
/** JPEG quality, 0-1 (default 0.85). */
|
|
12
|
+
quality?: number;
|
|
13
|
+
/** Fill behind the element (default: its computed background, else white for JPEG and transparent for PNG). */
|
|
14
|
+
background?: string;
|
|
15
|
+
/** Selectors of elements (and their subtrees) to leave out. */
|
|
16
|
+
exclude?: readonly string[];
|
|
17
|
+
/** Adjusts the styled clone before it is drawn (e.g. moves a viewport transform). */
|
|
18
|
+
prepare?: (clone: HTMLElement) => void;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Deep-clones `element` with every computed style inlined, so the copy looks
|
|
22
|
+
* the same outside the page's stylesheets (inside an SVG `<foreignObject>`).
|
|
23
|
+
* Elements matching `exclude` are left out, canvases become images, and
|
|
24
|
+
* same-origin images and form values are copied in.
|
|
25
|
+
*/
|
|
26
|
+
declare function cloneElementWithStyles(element: Element, exclude?: readonly string[]): HTMLElement;
|
|
27
|
+
/** Wraps a styled clone in a standalone SVG of `width` × `height` CSS pixels. */
|
|
28
|
+
declare function elementToSvg(clone: Element, width: number, height: number): string;
|
|
29
|
+
/**
|
|
30
|
+
* Draws a DOM element into an image in the browser: its styled clone goes
|
|
31
|
+
* into an SVG `<foreignObject>`, which is drawn onto a canvas. Web fonts that
|
|
32
|
+
* are not installed locally fall back, pseudo-elements (`::before`) are not
|
|
33
|
+
* drawn, and cross-origin images come out blank. Returns a `data:` URL.
|
|
34
|
+
*/
|
|
35
|
+
declare function rasterizeElement(element: HTMLElement, options?: RasterizeElementOptions): Promise<string>;
|
|
36
|
+
interface ElementCaptureSurfaceOptions {
|
|
37
|
+
/** The element to capture, or a getter (re-read on every call). */
|
|
38
|
+
element: HTMLElement | null | undefined | (() => HTMLElement | null | undefined);
|
|
39
|
+
/** Selectors left out of every capture (default none). */
|
|
40
|
+
exclude?: readonly string[];
|
|
41
|
+
/** Selectors of transient overlays, left out unless `includeOverlays` (default `CAPTURE_OVERLAY_SELECTORS`). */
|
|
42
|
+
overlaySelectors?: readonly string[];
|
|
43
|
+
/** Fill behind the element (default its computed background). */
|
|
44
|
+
background?: string;
|
|
45
|
+
/** Swaps the drawing step (tests, or a library such as html-to-image). */
|
|
46
|
+
rasterize?: (element: HTMLElement, options: RasterizeElementOptions) => Promise<CapturedImage>;
|
|
47
|
+
}
|
|
48
|
+
/** Overlays left out of captures by default: agent cursors and presence tags. */
|
|
49
|
+
declare const CAPTURE_OVERLAY_SELECTORS: readonly string[];
|
|
50
|
+
/** Elements marked `data-capture="exclude"` are never captured. */
|
|
51
|
+
declare const CAPTURE_EXCLUDE_SELECTOR = "[data-capture=\"exclude\"]";
|
|
52
|
+
/**
|
|
53
|
+
* A capture surface for any DOM element (a rich-text editor, a spreadsheet, a
|
|
54
|
+
* panel): units are CSS pixels from the element's top-left corner; `viewport`
|
|
55
|
+
* is its visible box and `content` its full scrollable area.
|
|
56
|
+
*/
|
|
57
|
+
declare function createElementCaptureSurface(options: ElementCaptureSurfaceOptions): CaptureSurface;
|
|
58
|
+
|
|
59
|
+
export { CAPTURE_EXCLUDE_SELECTOR as C, type ElementCaptureSurfaceOptions as E, type RasterizeElementOptions as R, CAPTURE_OVERLAY_SELECTORS as a, createElementCaptureSurface as b, cloneElementWithStyles as c, elementToSvg as e, rasterizeElement as r };
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { C as CaptureFormat, a as CapturedImage, b as CaptureSurface } from './capture-DFEMFmVt.cjs';
|
|
2
|
+
|
|
3
|
+
interface RasterizeElementOptions {
|
|
4
|
+
/** CSS size of the drawn box (default: the element's client size). */
|
|
5
|
+
width?: number;
|
|
6
|
+
height?: number;
|
|
7
|
+
/** Output size in pixels (default: the CSS size). */
|
|
8
|
+
pixelWidth?: number;
|
|
9
|
+
pixelHeight?: number;
|
|
10
|
+
format?: CaptureFormat;
|
|
11
|
+
/** JPEG quality, 0-1 (default 0.85). */
|
|
12
|
+
quality?: number;
|
|
13
|
+
/** Fill behind the element (default: its computed background, else white for JPEG and transparent for PNG). */
|
|
14
|
+
background?: string;
|
|
15
|
+
/** Selectors of elements (and their subtrees) to leave out. */
|
|
16
|
+
exclude?: readonly string[];
|
|
17
|
+
/** Adjusts the styled clone before it is drawn (e.g. moves a viewport transform). */
|
|
18
|
+
prepare?: (clone: HTMLElement) => void;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Deep-clones `element` with every computed style inlined, so the copy looks
|
|
22
|
+
* the same outside the page's stylesheets (inside an SVG `<foreignObject>`).
|
|
23
|
+
* Elements matching `exclude` are left out, canvases become images, and
|
|
24
|
+
* same-origin images and form values are copied in.
|
|
25
|
+
*/
|
|
26
|
+
declare function cloneElementWithStyles(element: Element, exclude?: readonly string[]): HTMLElement;
|
|
27
|
+
/** Wraps a styled clone in a standalone SVG of `width` × `height` CSS pixels. */
|
|
28
|
+
declare function elementToSvg(clone: Element, width: number, height: number): string;
|
|
29
|
+
/**
|
|
30
|
+
* Draws a DOM element into an image in the browser: its styled clone goes
|
|
31
|
+
* into an SVG `<foreignObject>`, which is drawn onto a canvas. Web fonts that
|
|
32
|
+
* are not installed locally fall back, pseudo-elements (`::before`) are not
|
|
33
|
+
* drawn, and cross-origin images come out blank. Returns a `data:` URL.
|
|
34
|
+
*/
|
|
35
|
+
declare function rasterizeElement(element: HTMLElement, options?: RasterizeElementOptions): Promise<string>;
|
|
36
|
+
interface ElementCaptureSurfaceOptions {
|
|
37
|
+
/** The element to capture, or a getter (re-read on every call). */
|
|
38
|
+
element: HTMLElement | null | undefined | (() => HTMLElement | null | undefined);
|
|
39
|
+
/** Selectors left out of every capture (default none). */
|
|
40
|
+
exclude?: readonly string[];
|
|
41
|
+
/** Selectors of transient overlays, left out unless `includeOverlays` (default `CAPTURE_OVERLAY_SELECTORS`). */
|
|
42
|
+
overlaySelectors?: readonly string[];
|
|
43
|
+
/** Fill behind the element (default its computed background). */
|
|
44
|
+
background?: string;
|
|
45
|
+
/** Swaps the drawing step (tests, or a library such as html-to-image). */
|
|
46
|
+
rasterize?: (element: HTMLElement, options: RasterizeElementOptions) => Promise<CapturedImage>;
|
|
47
|
+
}
|
|
48
|
+
/** Overlays left out of captures by default: agent cursors and presence tags. */
|
|
49
|
+
declare const CAPTURE_OVERLAY_SELECTORS: readonly string[];
|
|
50
|
+
/** Elements marked `data-capture="exclude"` are never captured. */
|
|
51
|
+
declare const CAPTURE_EXCLUDE_SELECTOR = "[data-capture=\"exclude\"]";
|
|
52
|
+
/**
|
|
53
|
+
* A capture surface for any DOM element (a rich-text editor, a spreadsheet, a
|
|
54
|
+
* panel): units are CSS pixels from the element's top-left corner; `viewport`
|
|
55
|
+
* is its visible box and `content` its full scrollable area.
|
|
56
|
+
*/
|
|
57
|
+
declare function createElementCaptureSurface(options: ElementCaptureSurfaceOptions): CaptureSurface;
|
|
58
|
+
|
|
59
|
+
export { CAPTURE_EXCLUDE_SELECTOR as C, type ElementCaptureSurfaceOptions as E, type RasterizeElementOptions as R, CAPTURE_OVERLAY_SELECTORS as a, createElementCaptureSurface as b, cloneElementWithStyles as c, elementToSvg as e, rasterizeElement as r };
|