@pixerate/editor 0.251.0 → 0.253.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.
Files changed (58) hide show
  1. package/dist/brushes/index.cjs +240 -1344
  2. package/dist/brushes/index.d.cts +10 -1
  3. package/dist/brushes/index.d.ts +10 -1
  4. package/dist/brushes/index.js +250 -1354
  5. package/dist/brushes/library.d.cts +104 -0
  6. package/dist/brushes/library.d.ts +104 -0
  7. package/dist/brushes/patch.d.cts +23 -0
  8. package/dist/brushes/patch.d.ts +23 -0
  9. package/dist/brushes/profiles.d.cts +85 -0
  10. package/dist/brushes/profiles.d.ts +85 -0
  11. package/dist/brushes/tools.d.cts +37 -0
  12. package/dist/brushes/tools.d.ts +37 -0
  13. package/dist/brushes/ui.d.cts +105 -0
  14. package/dist/brushes/ui.d.ts +105 -0
  15. package/dist/chunk-34KLWUH4.cjs +2284 -0
  16. package/dist/chunk-QPHNVZHO.js +2284 -0
  17. package/dist/paint-editor/brush-controls.d.cts +57 -0
  18. package/dist/paint-editor/brush-controls.d.ts +57 -0
  19. package/dist/paint-editor/brush-library-tools.d.cts +15 -0
  20. package/dist/paint-editor/brush-library-tools.d.ts +15 -0
  21. package/dist/paint-editor/brush-library.d.cts +29 -0
  22. package/dist/paint-editor/brush-library.d.ts +29 -0
  23. package/dist/paint-editor/controller.d.cts +76 -17
  24. package/dist/paint-editor/controller.d.ts +76 -17
  25. package/dist/paint-editor/index.cjs +537 -852
  26. package/dist/paint-editor/index.d.cts +1 -0
  27. package/dist/paint-editor/index.d.ts +1 -0
  28. package/dist/paint-editor/index.js +327 -642
  29. package/dist/paint-editor/serialize.d.cts +7 -4
  30. package/dist/paint-editor/serialize.d.ts +7 -4
  31. package/dist/paint-editor/sticker-tools.d.cts +1 -1
  32. package/dist/paint-editor/sticker-tools.d.ts +1 -1
  33. package/dist/paint-editor/strokes.d.cts +10 -1
  34. package/dist/paint-editor/strokes.d.ts +10 -1
  35. package/dist/paint-editor/tools.d.cts +1 -1
  36. package/dist/paint-editor/tools.d.ts +1 -1
  37. package/dist/paint-editor/ui.d.cts +3 -51
  38. package/dist/paint-editor/ui.d.ts +3 -51
  39. package/dist/paint-editor/wet-tools.d.cts +1 -1
  40. package/dist/paint-editor/wet-tools.d.ts +1 -1
  41. package/dist/tools/skill-evals.d.cts +8 -1
  42. package/dist/tools/skill-evals.d.ts +8 -1
  43. package/package.json +1 -1
  44. package/skills/README.md +2 -0
  45. package/skills/pixerate-brushes/SKILL.md +106 -0
  46. package/skills/pixerate-brushes-design/SKILL.md +88 -0
  47. package/skills/pixerate-brushes-design/evals/canvas-chalk.json +15 -0
  48. package/skills/pixerate-brushes-design/evals/pink-highlighter.json +15 -0
  49. package/skills/pixerate-brushes-design/evals/port-to-vector.json +17 -0
  50. package/skills/pixerate-paint-editor/SKILL.md +26 -24
  51. package/skills/pixerate-paint-editor/references/brush-facets.md +30 -0
  52. package/skills/pixerate-paint-editor/references/gradient-paint.md +1 -1
  53. package/skills/pixerate-paint-editor/references/light-paint.md +2 -2
  54. package/skills/pixerate-paint-editor/references/oils.md +1 -1
  55. package/skills/pixerate-paint-editor/references/particle-brushes.md +8 -5
  56. package/skills/pixerate-paint-oil-impasto/SKILL.md +1 -1
  57. package/skills/pixerate-stickers/SKILL.md +1 -1
  58. package/skills/pixerate-video-editor/SKILL.md +1 -1
@@ -2,7 +2,11 @@
2
2
  * `@pixerate/editor/brushes`: the brush model shared by every editor that paints. A `Brush` is
3
3
  * made of facets (tip, marks, dynamics, behaviour, light, motion, colour); `resolveBrush` turns
4
4
  * one into the flat form the paint engine reads, `migrateBrushV1` reads brushes written before
5
- * the facet model, and `BRUSH_PRESETS` is the built-in library. No renderer is bundled.
5
+ * the facet model, and `BRUSH_PRESETS` is the built-in library. Host profiles say what each editor
6
+ * can render (`checkBrush`), `createBrushLibrary` keeps user brushes on any storage adapter, and
7
+ * `createBrushLibraryToolProvider` gives agents the library, and `brushEditorSections` /
8
+ * `brushLibraryGroups` describe the brush editor and library browser the UI packages draw. No
9
+ * renderer is bundled.
6
10
  */
7
11
  export * from './types.cjs';
8
12
  export { BRUSH_FACET_SCHEMAS, BRUSH_JSON_SCHEMA, BRUSH_WORD, MAX_BRUSH_PALETTE } from './schema.cjs';
@@ -10,3 +14,8 @@ export { normalizeBrushSpec, WET_BRUSH_TOOLS } from './normalize.cjs';
10
14
  export { resolveBrush, resolveCategory, resolveEngine, resolveWetMedium, type ResolveBrushOptions } from './resolve.cjs';
11
15
  export { migrateBrushV1 } from './migrate.cjs';
12
16
  export { BRUSH_PRESETS } from './presets.cjs';
17
+ export { BRUSH_HOST_PROFILES, brushColourKind, CANVAS_PROFILE, checkBrush, degrade, IMAGE_PROFILE, listPresets, PAINT_PROFILE, VECTOR_PROFILE, type BrushCheck, type BrushColourKind, type BrushHostProfile, type BrushIssue, type BrushSupport, type DegradedBrush } from './profiles.cjs';
18
+ export { BrushLibraryError, createBrushLibrary, parseBrushLibrary, type BrushFilter, type BrushLibrary, type BrushLibraryEntry, type BrushLibraryErrorCode, type BrushLibraryFile, type BrushLibraryOptions, type ImportBrushesResult, type SaveBrushResult, } from './library.cjs';
19
+ export { BRUSH_PATCH_PROPERTIES, BRUSH_UNSET_PROPERTY, changedBrushPaths, mergeBrushPatch, UNSETTABLE_BRUSH_FACETS, type BrushPatch, type UnsettableBrushFacet } from './patch.cjs';
20
+ export { brushEditorSections, brushLibraryGroups, setBrushEditorValue, type BrushEditorControl, type BrushEditorSection, type BrushEditorSectionId, type BrushLibraryGroup } from './ui.cjs';
21
+ export { createBrushLibraryToolProvider, createBrushLibraryTools, type BrushLibraryToolProviderOptions, type BrushPreviewImage, type BrushPreviewRenderer } from './tools.cjs';
@@ -2,7 +2,11 @@
2
2
  * `@pixerate/editor/brushes`: the brush model shared by every editor that paints. A `Brush` is
3
3
  * made of facets (tip, marks, dynamics, behaviour, light, motion, colour); `resolveBrush` turns
4
4
  * one into the flat form the paint engine reads, `migrateBrushV1` reads brushes written before
5
- * the facet model, and `BRUSH_PRESETS` is the built-in library. No renderer is bundled.
5
+ * the facet model, and `BRUSH_PRESETS` is the built-in library. Host profiles say what each editor
6
+ * can render (`checkBrush`), `createBrushLibrary` keeps user brushes on any storage adapter, and
7
+ * `createBrushLibraryToolProvider` gives agents the library, and `brushEditorSections` /
8
+ * `brushLibraryGroups` describe the brush editor and library browser the UI packages draw. No
9
+ * renderer is bundled.
6
10
  */
7
11
  export * from './types.js';
8
12
  export { BRUSH_FACET_SCHEMAS, BRUSH_JSON_SCHEMA, BRUSH_WORD, MAX_BRUSH_PALETTE } from './schema.js';
@@ -10,3 +14,8 @@ export { normalizeBrushSpec, WET_BRUSH_TOOLS } from './normalize.js';
10
14
  export { resolveBrush, resolveCategory, resolveEngine, resolveWetMedium, type ResolveBrushOptions } from './resolve.js';
11
15
  export { migrateBrushV1 } from './migrate.js';
12
16
  export { BRUSH_PRESETS } from './presets.js';
17
+ export { BRUSH_HOST_PROFILES, brushColourKind, CANVAS_PROFILE, checkBrush, degrade, IMAGE_PROFILE, listPresets, PAINT_PROFILE, VECTOR_PROFILE, type BrushCheck, type BrushColourKind, type BrushHostProfile, type BrushIssue, type BrushSupport, type DegradedBrush } from './profiles.js';
18
+ export { BrushLibraryError, createBrushLibrary, parseBrushLibrary, type BrushFilter, type BrushLibrary, type BrushLibraryEntry, type BrushLibraryErrorCode, type BrushLibraryFile, type BrushLibraryOptions, type ImportBrushesResult, type SaveBrushResult, } from './library.js';
19
+ export { BRUSH_PATCH_PROPERTIES, BRUSH_UNSET_PROPERTY, changedBrushPaths, mergeBrushPatch, UNSETTABLE_BRUSH_FACETS, type BrushPatch, type UnsettableBrushFacet } from './patch.js';
20
+ export { brushEditorSections, brushLibraryGroups, setBrushEditorValue, type BrushEditorControl, type BrushEditorSection, type BrushEditorSectionId, type BrushLibraryGroup } from './ui.js';
21
+ export { createBrushLibraryToolProvider, createBrushLibraryTools, type BrushLibraryToolProviderOptions, type BrushPreviewImage, type BrushPreviewRenderer } from './tools.js';