@pixerate/editor 0.135.0 → 0.137.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 (164) hide show
  1. package/dist/animation-editor/index.cjs +63 -55
  2. package/dist/animation-editor/index.cjs.map +1 -1
  3. package/dist/animation-editor/index.d.cts +8 -5
  4. package/dist/animation-editor/index.d.ts +8 -5
  5. package/dist/animation-editor/index.js +10 -2
  6. package/dist/animation-editor/index.js.map +1 -1
  7. package/dist/{bezier-J8i4uqSH.d.cts → bezier-CZ2AhjID.d.cts} +1 -1
  8. package/dist/{bezier-lNEOp0Jx.d.ts → bezier-Dywv3Bw8.d.ts} +1 -1
  9. package/dist/blending-D7jCmjO6.d.cts +1026 -0
  10. package/dist/blending-NgF3qo3d.d.ts +1026 -0
  11. package/dist/brushes-CnvZSYYU.d.cts +744 -0
  12. package/dist/brushes-DJmUbIgz.d.ts +744 -0
  13. package/dist/{brushstrokeRender-SII6MG4R.js → brushstrokeRender-2FAXA3XC.js} +13 -16
  14. package/dist/{brushstrokeRender-SII6MG4R.js.map → brushstrokeRender-2FAXA3XC.js.map} +1 -1
  15. package/dist/{brushstrokeRender-JNHVEUFG.cjs → brushstrokeRender-IMFY3FF6.cjs} +16 -19
  16. package/dist/brushstrokeRender-IMFY3FF6.cjs.map +1 -0
  17. package/dist/canvas/index.cjs +10 -10
  18. package/dist/canvas/index.cjs.map +1 -1
  19. package/dist/canvas/index.d.cts +10 -7
  20. package/dist/canvas/index.d.ts +10 -7
  21. package/dist/canvas/index.js +4 -4
  22. package/dist/{chunk-W4LNKTHT.cjs → chunk-2XS6LTUP.cjs} +63 -63
  23. package/dist/{chunk-W4LNKTHT.cjs.map → chunk-2XS6LTUP.cjs.map} +1 -1
  24. package/dist/{chunk-HHTCDFZC.js → chunk-3D77LOBM.js} +234 -136
  25. package/dist/chunk-3D77LOBM.js.map +1 -0
  26. package/dist/{chunk-BR7EKQUP.js → chunk-3G6J7UFV.js} +322 -2
  27. package/dist/chunk-3G6J7UFV.js.map +1 -0
  28. package/dist/{chunk-62XUO5LB.js → chunk-3X6IAJUQ.js} +2 -2
  29. package/dist/{chunk-EM3FMJWE.js → chunk-5FSRTP6E.js} +320 -3
  30. package/dist/chunk-5FSRTP6E.js.map +1 -0
  31. package/dist/{chunk-Z2H7KECK.cjs → chunk-5OOIUXNJ.cjs} +345 -247
  32. package/dist/chunk-5OOIUXNJ.cjs.map +1 -0
  33. package/dist/{chunk-7RJ6P7MI.js → chunk-6S6362D2.js} +2 -2
  34. package/dist/chunk-A3BVTI3G.js +150 -0
  35. package/dist/chunk-A3BVTI3G.js.map +1 -0
  36. package/dist/{chunk-24ATT2PE.cjs → chunk-AEAAN4AD.cjs} +120 -120
  37. package/dist/{chunk-24ATT2PE.cjs.map → chunk-AEAAN4AD.cjs.map} +1 -1
  38. package/dist/chunk-ECCXGELC.cjs +727 -0
  39. package/dist/chunk-ECCXGELC.cjs.map +1 -0
  40. package/dist/{chunk-SVYE5HIM.js → chunk-EQQMGO42.js} +2 -2
  41. package/dist/{chunk-FHPVDTI2.cjs → chunk-F2Y4E4GU.cjs} +22 -22
  42. package/dist/{chunk-FHPVDTI2.cjs.map → chunk-F2Y4E4GU.cjs.map} +1 -1
  43. package/dist/{chunk-OXSV64JX.js → chunk-G6IKY6PL.js} +4 -4
  44. package/dist/{chunk-UYQUPUR6.js → chunk-HUO3TI4C.js} +3 -3
  45. package/dist/chunk-I52DRGGJ.js +727 -0
  46. package/dist/chunk-I52DRGGJ.js.map +1 -0
  47. package/dist/{chunk-DDSO4HS7.cjs → chunk-KEENUAFN.cjs} +2 -2
  48. package/dist/{chunk-DDSO4HS7.cjs.map → chunk-KEENUAFN.cjs.map} +1 -1
  49. package/dist/{chunk-2HC4DRF4.js → chunk-LLFHCSU2.js} +2 -2
  50. package/dist/{chunk-J5BA3BQ6.cjs → chunk-O7LUD7MH.cjs} +323 -3
  51. package/dist/chunk-O7LUD7MH.cjs.map +1 -0
  52. package/dist/{chunk-ILYFOJUN.js → chunk-OIBIRXRG.js} +3 -3
  53. package/dist/{chunk-FWEO3HSL.js → chunk-PQQF5KOW.js} +8 -8
  54. package/dist/{chunk-T6TV6HY6.cjs → chunk-PRSRYHQD.cjs} +36 -36
  55. package/dist/{chunk-T6TV6HY6.cjs.map → chunk-PRSRYHQD.cjs.map} +1 -1
  56. package/dist/chunk-Q6OUXEK3.cjs +150 -0
  57. package/dist/chunk-Q6OUXEK3.cjs.map +1 -0
  58. package/dist/{chunk-6GFRKLLS.cjs → chunk-QBWEH3IM.cjs} +429 -112
  59. package/dist/chunk-QBWEH3IM.cjs.map +1 -0
  60. package/dist/{chunk-ESIWZMMK.js → chunk-SYT2TLQF.js} +35 -37
  61. package/dist/{chunk-ESIWZMMK.js.map → chunk-SYT2TLQF.js.map} +1 -1
  62. package/dist/{chunk-YT3JL7YM.cjs → chunk-TLCTTQFF.cjs} +53 -53
  63. package/dist/{chunk-YT3JL7YM.cjs.map → chunk-TLCTTQFF.cjs.map} +1 -1
  64. package/dist/{chunk-P3RQ5UJE.cjs → chunk-UTQKC66X.cjs} +4 -4
  65. package/dist/{chunk-P3RQ5UJE.cjs.map → chunk-UTQKC66X.cjs.map} +1 -1
  66. package/dist/{chunk-J3B45HTA.cjs → chunk-XB25WOC2.cjs} +6 -6
  67. package/dist/{chunk-J3B45HTA.cjs.map → chunk-XB25WOC2.cjs.map} +1 -1
  68. package/dist/{chunk-YAFS2QFZ.cjs → chunk-XN2NBLV5.cjs} +313 -315
  69. package/dist/chunk-XN2NBLV5.cjs.map +1 -0
  70. package/dist/effects/index.d.cts +7 -4
  71. package/dist/effects/index.d.ts +7 -4
  72. package/dist/{export-DMeG6E06.d.ts → export-41rL6Cne.d.ts} +1 -1
  73. package/dist/{export-AZSwX087.d.cts → export-CyJdfP_Z.d.cts} +5 -4
  74. package/dist/{export-KzubBKo7.d.cts → export-D9mXp05Q.d.cts} +1 -1
  75. package/dist/{export-BDkyDNM8.d.ts → export-DwnZ_hvQ.d.ts} +5 -4
  76. package/dist/extensions/index.cjs +3 -3
  77. package/dist/extensions/index.cjs.map +1 -1
  78. package/dist/extensions/index.js +2 -2
  79. package/dist/generation/index.cjs +150 -945
  80. package/dist/generation/index.cjs.map +1 -1
  81. package/dist/generation/index.d.cts +3 -423
  82. package/dist/generation/index.d.ts +3 -423
  83. package/dist/generation/index.js +59 -854
  84. package/dist/generation/index.js.map +1 -1
  85. package/dist/grammar/index.cjs +3 -3
  86. package/dist/grammar/index.cjs.map +1 -1
  87. package/dist/grammar/index.js +2 -2
  88. package/dist/{helpers-Coa4e2j_.d.ts → helpers-C-RgeyvH.d.ts} +25 -8
  89. package/dist/{helpers-DHl28yLO.d.cts → helpers-v6GMazzg.d.cts} +25 -8
  90. package/dist/image-editor/index.cjs +986 -986
  91. package/dist/image-editor/index.cjs.map +1 -1
  92. package/dist/image-editor/index.d.cts +15 -11
  93. package/dist/image-editor/index.d.ts +15 -11
  94. package/dist/image-editor/index.js +94 -94
  95. package/dist/index.cjs +28 -28
  96. package/dist/index.cjs.map +1 -1
  97. package/dist/index.js +36 -36
  98. package/dist/{opentype-BWR7Qv8W.d.cts → opentype-KR_jj6b_.d.cts} +1 -1
  99. package/dist/{opentype-Dfcx6wFx.d.ts → opentype-a1KAW-qs.d.ts} +1 -1
  100. package/dist/paint/index.cjs +5 -8
  101. package/dist/paint/index.cjs.map +1 -1
  102. package/dist/paint/index.d.cts +4 -2
  103. package/dist/paint/index.d.ts +4 -2
  104. package/dist/paint/index.js +15 -18
  105. package/dist/paint-editor/index.cjs +405 -403
  106. package/dist/paint-editor/index.cjs.map +1 -1
  107. package/dist/paint-editor/index.d.cts +15 -748
  108. package/dist/paint-editor/index.d.ts +15 -748
  109. package/dist/paint-editor/index.js +79 -77
  110. package/dist/paint-editor/index.js.map +1 -1
  111. package/dist/{pathfinder-D8KQ6blQ.d.cts → pathfinder-BHS4vQNm.d.cts} +1 -1
  112. package/dist/{pathfinder-Celbi3e6.d.ts → pathfinder-BVvTIBMo.d.ts} +1 -1
  113. package/dist/{pool-8JZGWHvR.d.ts → pool-CZQOrSXZ.d.ts} +1 -1
  114. package/dist/{pool-BfuxBKTd.d.cts → pool-FjZZmZ80.d.cts} +1 -1
  115. package/dist/provenance-DmlcgdzT.d.cts +426 -0
  116. package/dist/provenance-uh5r2TQ8.d.ts +426 -0
  117. package/dist/rand-8xbUb6ur.d.ts +1118 -0
  118. package/dist/rand-Cw9VLrVC.d.cts +1118 -0
  119. package/dist/raster/index.cjs +17 -19
  120. package/dist/raster/index.cjs.map +1 -1
  121. package/dist/raster/index.js +9 -11
  122. package/dist/raster/index.js.map +1 -1
  123. package/dist/{svg-CxxqG3_W.d.ts → svg-CSz3mzkw.d.ts} +2 -2
  124. package/dist/{svg-pwXWq6s2.d.cts → svg-DTb40ICU.d.cts} +2 -2
  125. package/dist/{tools-y1M6O3UT.d.ts → tools-B0wXP5cF.d.ts} +1 -1
  126. package/dist/{tools-3EBjR91b.d.cts → tools-Ca0kI1qo.d.cts} +1 -1
  127. package/dist/vector/index.cjs +2698 -1674
  128. package/dist/vector/index.cjs.map +1 -1
  129. package/dist/vector/index.d.cts +390 -72
  130. package/dist/vector/index.d.ts +390 -72
  131. package/dist/vector/index.js +1665 -641
  132. package/dist/vector/index.js.map +1 -1
  133. package/dist/video-editor/index.d.cts +7 -4
  134. package/dist/video-editor/index.d.ts +7 -4
  135. package/dist/{warp-Ceqdz7kj.d.cts → warp-DTOp0lON.d.cts} +1 -1
  136. package/dist/{warp-C1gwu2G_.d.ts → warp-pd7hrH4T.d.ts} +1 -1
  137. package/package.json +1 -1
  138. package/skills/pixerate-vector/SKILL.md +22 -0
  139. package/dist/brushstrokeRender-JNHVEUFG.cjs.map +0 -1
  140. package/dist/chunk-64PYNEHJ.js +0 -340
  141. package/dist/chunk-64PYNEHJ.js.map +0 -1
  142. package/dist/chunk-6GFRKLLS.cjs.map +0 -1
  143. package/dist/chunk-7QN76ESJ.js +0 -323
  144. package/dist/chunk-7QN76ESJ.js.map +0 -1
  145. package/dist/chunk-BR7EKQUP.js.map +0 -1
  146. package/dist/chunk-DCLJNVZS.cjs +0 -323
  147. package/dist/chunk-DCLJNVZS.cjs.map +0 -1
  148. package/dist/chunk-EM3FMJWE.js.map +0 -1
  149. package/dist/chunk-HHTCDFZC.js.map +0 -1
  150. package/dist/chunk-J5BA3BQ6.cjs.map +0 -1
  151. package/dist/chunk-YAFS2QFZ.cjs.map +0 -1
  152. package/dist/chunk-Z2H7KECK.cjs.map +0 -1
  153. package/dist/chunk-Z6OUCS2K.cjs +0 -340
  154. package/dist/chunk-Z6OUCS2K.cjs.map +0 -1
  155. package/dist/rand-BszBST4s.d.ts +0 -2140
  156. package/dist/rand-DOH_aMvm.d.cts +0 -2140
  157. /package/dist/{chunk-62XUO5LB.js.map → chunk-3X6IAJUQ.js.map} +0 -0
  158. /package/dist/{chunk-7RJ6P7MI.js.map → chunk-6S6362D2.js.map} +0 -0
  159. /package/dist/{chunk-SVYE5HIM.js.map → chunk-EQQMGO42.js.map} +0 -0
  160. /package/dist/{chunk-OXSV64JX.js.map → chunk-G6IKY6PL.js.map} +0 -0
  161. /package/dist/{chunk-UYQUPUR6.js.map → chunk-HUO3TI4C.js.map} +0 -0
  162. /package/dist/{chunk-2HC4DRF4.js.map → chunk-LLFHCSU2.js.map} +0 -0
  163. /package/dist/{chunk-ILYFOJUN.js.map → chunk-OIBIRXRG.js.map} +0 -0
  164. /package/dist/{chunk-FWEO3HSL.js.map → chunk-PQQF5KOW.js.map} +0 -0
@@ -23,7 +23,8 @@
23
23
 
24
24
 
25
25
 
26
- var _chunkP3RQ5UJEcjs = require('../chunk-P3RQ5UJE.cjs');
26
+ var _chunkUTQKC66Xcjs = require('../chunk-UTQKC66X.cjs');
27
+ require('../chunk-TNNJXF46.cjs');
27
28
 
28
29
 
29
30
 
@@ -58,7 +59,6 @@ var _chunkFD4LPFAEcjs = require('../chunk-FD4LPFAE.cjs');
58
59
 
59
60
 
60
61
  var _chunkMKA3AHLVcjs = require('../chunk-MKA3AHLV.cjs');
61
- require('../chunk-TNNJXF46.cjs');
62
62
 
63
63
 
64
64
 
@@ -114,5 +114,5 @@ require('../chunk-TNNJXF46.cjs');
114
114
 
115
115
 
116
116
 
117
- exports.FIELD_ALIASES = _chunkP3RQ5UJEcjs.FIELD_ALIASES; exports.INSTRUCTION_REGEX = _chunkMKA3AHLVcjs.INSTRUCTION_REGEX; exports.MAX_DATA_SOURCE_FIELDS = _chunkP3RQ5UJEcjs.MAX_DATA_SOURCE_FIELDS; exports.MAX_DATA_SOURCE_RECORDS = _chunkP3RQ5UJEcjs.MAX_DATA_SOURCE_RECORDS; exports.MAX_MERGE_LENGTH = _chunkP3RQ5UJEcjs.MAX_MERGE_LENGTH; exports.MAX_MERGE_OUTPUTS = _chunkP3RQ5UJEcjs.MAX_MERGE_OUTPUTS; exports.TEMPLATE_DEPTH_ERROR = _chunkFD4LPFAEcjs.TEMPLATE_DEPTH_ERROR; exports.TEMPLATE_LOOP_ERROR = _chunkFD4LPFAEcjs.TEMPLATE_LOOP_ERROR; exports.TEMPLATE_REGEX = _chunkMKA3AHLVcjs.TEMPLATE_REGEX; exports.VARIABLE_REGEX = _chunkMKA3AHLVcjs.VARIABLE_REGEX; exports.compactVariableValues = _chunkP3RQ5UJEcjs.compactVariableValues; exports.compareConditionValues = _chunkMKA3AHLVcjs.compareConditionValues; exports.conditionSubject = _chunkMKA3AHLVcjs.conditionSubject; exports.describeConditionalTag = _chunkMKA3AHLVcjs.describeConditionalTag; exports.detectDelimiter = _chunkP3RQ5UJEcjs.detectDelimiter; exports.escapeVariableText = _chunkMKA3AHLVcjs.escapeVariableText; exports.evaluateCondition = _chunkMKA3AHLVcjs.evaluateCondition; exports.evaluateConditionExpression = _chunkMKA3AHLVcjs.evaluateConditionExpression; exports.evaluatePromptTokens = _chunkFD4LPFAEcjs.evaluatePromptTokens; exports.extractInstructionNames = _chunkP3RQ5UJEcjs.extractInstructionNames; exports.extractTemplateNames = _chunkP3RQ5UJEcjs.extractTemplateNames; exports.extractVariableNames = _chunkP3RQ5UJEcjs.extractVariableNames; exports.extractVariables = _chunkP3RQ5UJEcjs.extractVariables; exports.formatComparisonOperand = _chunkMKA3AHLVcjs.formatComparisonOperand; exports.formatConditionalTag = _chunkMKA3AHLVcjs.formatConditionalTag; exports.getLatestVersion = _chunkFD4LPFAEcjs.getLatestVersion; exports.getPromptDiagnostics = _chunkFD4LPFAEcjs.getPromptDiagnostics; exports.getSuppliedValue = _chunkMKA3AHLVcjs.getSuppliedValue; exports.getTemplateBody = _chunkFD4LPFAEcjs.getTemplateBody; exports.getVariableFormFields = _chunkP3RQ5UJEcjs.getVariableFormFields; exports.instructionRegex = _chunkMKA3AHLVcjs.instructionRegex; exports.isPromptValueSet = _chunkMKA3AHLVcjs.isPromptValueSet; exports.mapRawOffsetToResolved = _chunkP3RQ5UJEcjs.mapRawOffsetToResolved; exports.mapResolvedOffsetToRaw = _chunkP3RQ5UJEcjs.mapResolvedOffsetToRaw; exports.matchConditionalTags = _chunkMKA3AHLVcjs.matchConditionalTags; exports.matchFields = _chunkP3RQ5UJEcjs.matchFields; exports.mergeRecords = _chunkP3RQ5UJEcjs.mergeRecords; exports.normalizeFieldKey = _chunkP3RQ5UJEcjs.normalizeFieldKey; exports.normalizeFieldNames = _chunkP3RQ5UJEcjs.normalizeFieldNames; exports.parseComparison = _chunkMKA3AHLVcjs.parseComparison; exports.parseConditionExpression = _chunkMKA3AHLVcjs.parseConditionExpression; exports.parseDataSource = _chunkP3RQ5UJEcjs.parseDataSource; exports.parseVariableBody = _chunkMKA3AHLVcjs.parseVariableBody; exports.recordToValues = _chunkP3RQ5UJEcjs.recordToValues; exports.resolvePrompt = _chunkFD4LPFAEcjs.resolvePrompt; exports.resolveTemplates = _chunkP3RQ5UJEcjs.resolveTemplates; exports.resolveTemplatesWithMapping = _chunkP3RQ5UJEcjs.resolveTemplatesWithMapping; exports.resolveVariables = _chunkP3RQ5UJEcjs.resolveVariables; exports.serializeMergeOutputs = _chunkP3RQ5UJEcjs.serializeMergeOutputs; exports.templateRegex = _chunkMKA3AHLVcjs.templateRegex; exports.tokenizePrompt = _chunkFD4LPFAEcjs.tokenizePrompt; exports.tokenizePromptWithDiagnostics = _chunkFD4LPFAEcjs.tokenizePromptWithDiagnostics; exports.unescapeVariableText = _chunkMKA3AHLVcjs.unescapeVariableText; exports.variableRegex = _chunkMKA3AHLVcjs.variableRegex;
117
+ exports.FIELD_ALIASES = _chunkUTQKC66Xcjs.FIELD_ALIASES; exports.INSTRUCTION_REGEX = _chunkMKA3AHLVcjs.INSTRUCTION_REGEX; exports.MAX_DATA_SOURCE_FIELDS = _chunkUTQKC66Xcjs.MAX_DATA_SOURCE_FIELDS; exports.MAX_DATA_SOURCE_RECORDS = _chunkUTQKC66Xcjs.MAX_DATA_SOURCE_RECORDS; exports.MAX_MERGE_LENGTH = _chunkUTQKC66Xcjs.MAX_MERGE_LENGTH; exports.MAX_MERGE_OUTPUTS = _chunkUTQKC66Xcjs.MAX_MERGE_OUTPUTS; exports.TEMPLATE_DEPTH_ERROR = _chunkFD4LPFAEcjs.TEMPLATE_DEPTH_ERROR; exports.TEMPLATE_LOOP_ERROR = _chunkFD4LPFAEcjs.TEMPLATE_LOOP_ERROR; exports.TEMPLATE_REGEX = _chunkMKA3AHLVcjs.TEMPLATE_REGEX; exports.VARIABLE_REGEX = _chunkMKA3AHLVcjs.VARIABLE_REGEX; exports.compactVariableValues = _chunkUTQKC66Xcjs.compactVariableValues; exports.compareConditionValues = _chunkMKA3AHLVcjs.compareConditionValues; exports.conditionSubject = _chunkMKA3AHLVcjs.conditionSubject; exports.describeConditionalTag = _chunkMKA3AHLVcjs.describeConditionalTag; exports.detectDelimiter = _chunkUTQKC66Xcjs.detectDelimiter; exports.escapeVariableText = _chunkMKA3AHLVcjs.escapeVariableText; exports.evaluateCondition = _chunkMKA3AHLVcjs.evaluateCondition; exports.evaluateConditionExpression = _chunkMKA3AHLVcjs.evaluateConditionExpression; exports.evaluatePromptTokens = _chunkFD4LPFAEcjs.evaluatePromptTokens; exports.extractInstructionNames = _chunkUTQKC66Xcjs.extractInstructionNames; exports.extractTemplateNames = _chunkUTQKC66Xcjs.extractTemplateNames; exports.extractVariableNames = _chunkUTQKC66Xcjs.extractVariableNames; exports.extractVariables = _chunkUTQKC66Xcjs.extractVariables; exports.formatComparisonOperand = _chunkMKA3AHLVcjs.formatComparisonOperand; exports.formatConditionalTag = _chunkMKA3AHLVcjs.formatConditionalTag; exports.getLatestVersion = _chunkFD4LPFAEcjs.getLatestVersion; exports.getPromptDiagnostics = _chunkFD4LPFAEcjs.getPromptDiagnostics; exports.getSuppliedValue = _chunkMKA3AHLVcjs.getSuppliedValue; exports.getTemplateBody = _chunkFD4LPFAEcjs.getTemplateBody; exports.getVariableFormFields = _chunkUTQKC66Xcjs.getVariableFormFields; exports.instructionRegex = _chunkMKA3AHLVcjs.instructionRegex; exports.isPromptValueSet = _chunkMKA3AHLVcjs.isPromptValueSet; exports.mapRawOffsetToResolved = _chunkUTQKC66Xcjs.mapRawOffsetToResolved; exports.mapResolvedOffsetToRaw = _chunkUTQKC66Xcjs.mapResolvedOffsetToRaw; exports.matchConditionalTags = _chunkMKA3AHLVcjs.matchConditionalTags; exports.matchFields = _chunkUTQKC66Xcjs.matchFields; exports.mergeRecords = _chunkUTQKC66Xcjs.mergeRecords; exports.normalizeFieldKey = _chunkUTQKC66Xcjs.normalizeFieldKey; exports.normalizeFieldNames = _chunkUTQKC66Xcjs.normalizeFieldNames; exports.parseComparison = _chunkMKA3AHLVcjs.parseComparison; exports.parseConditionExpression = _chunkMKA3AHLVcjs.parseConditionExpression; exports.parseDataSource = _chunkUTQKC66Xcjs.parseDataSource; exports.parseVariableBody = _chunkMKA3AHLVcjs.parseVariableBody; exports.recordToValues = _chunkUTQKC66Xcjs.recordToValues; exports.resolvePrompt = _chunkFD4LPFAEcjs.resolvePrompt; exports.resolveTemplates = _chunkUTQKC66Xcjs.resolveTemplates; exports.resolveTemplatesWithMapping = _chunkUTQKC66Xcjs.resolveTemplatesWithMapping; exports.resolveVariables = _chunkUTQKC66Xcjs.resolveVariables; exports.serializeMergeOutputs = _chunkUTQKC66Xcjs.serializeMergeOutputs; exports.templateRegex = _chunkMKA3AHLVcjs.templateRegex; exports.tokenizePrompt = _chunkFD4LPFAEcjs.tokenizePrompt; exports.tokenizePromptWithDiagnostics = _chunkFD4LPFAEcjs.tokenizePromptWithDiagnostics; exports.unescapeVariableText = _chunkMKA3AHLVcjs.unescapeVariableText; exports.variableRegex = _chunkMKA3AHLVcjs.variableRegex;
118
118
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/editor/editor/packages/core/dist/grammar/index.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,2jHAAC","file":"/home/runner/work/editor/editor/packages/core/dist/grammar/index.cjs"}
1
+ {"version":3,"sources":["/home/runner/work/editor/editor/packages/core/dist/grammar/index.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,2jHAAC","file":"/home/runner/work/editor/editor/packages/core/dist/grammar/index.cjs"}
@@ -23,7 +23,8 @@ import {
23
23
  resolveTemplatesWithMapping,
24
24
  resolveVariables,
25
25
  serializeMergeOutputs
26
- } from "../chunk-OXSV64JX.js";
26
+ } from "../chunk-G6IKY6PL.js";
27
+ import "../chunk-664LQYFJ.js";
27
28
  import {
28
29
  TEMPLATE_DEPTH_ERROR,
29
30
  TEMPLATE_LOOP_ERROR,
@@ -58,7 +59,6 @@ import {
58
59
  unescapeVariableText,
59
60
  variableRegex
60
61
  } from "../chunk-P6ODPZ4W.js";
61
- import "../chunk-664LQYFJ.js";
62
62
  export {
63
63
  FIELD_ALIASES,
64
64
  INSTRUCTION_REGEX,
@@ -1,6 +1,7 @@
1
1
  import { J as JsonSchema, S as SchemaValidationError } from './schema-Di0CS6Pe.js';
2
2
  import { f as MotionBehavior, b as AnimationLoopMode } from './evaluate-BbCeF6pt.js';
3
3
  import { b as AnimationEasing } from './easing-lM0Xo9Ni.js';
4
+ import { G as GenerationProvenance } from './provenance-uh5r2TQ8.js';
4
5
  import { W as WarpStyle, a as WarpMesh } from './types-CwMPoRMU.js';
5
6
 
6
7
  /**
@@ -685,17 +686,28 @@ interface VectorPaintLayer {
685
686
  /** The settings each stroke layer has of its own (the stroke shorthand fields of `VectorStyle`). */
686
687
  type VectorStrokeSettings = Pick<VectorStyle, 'strokeWidth' | 'strokeLinecap' | 'strokeLinejoin' | 'strokeDasharray' | 'strokeAlign' | 'startArrow' | 'endArrow' | 'arrowAlign' | 'startArrowScale' | 'endArrowScale' | 'strokeWidthProfile'>;
687
688
  /**
688
- * What a stroke layer draws. Only `paint` (a paint along the outline, the default) exists today.
689
- * Other kinds are the extension point for strokes drawn some other way, such as a raster
690
- * brushstroke from `@pixerate/editor/paint` laid along the path: a layer with an unknown kind is
691
- * kept through edits, load and SVG round trips, listed to agents, and skipped when drawing and
692
- * hit-testing.
689
+ * What a stroke layer draws: `paint` (a paint along the outline, the default) or `brushstroke` (a
690
+ * natural-media brush from `@pixerate/editor/paint` laid along the path; see `brushstroke.ts`).
691
+ * A layer of a kind this version does not know is kept through edits, load and SVG round trips,
692
+ * listed to agents, and skipped when drawing and hit-testing.
693
693
  */
694
- type VectorStrokeLayerKind = 'paint';
694
+ type VectorStrokeLayerKind = 'paint' | 'brushstroke';
695
+ /**
696
+ * A brushstroke stroke layer's brush (`VectorStrokeLayer.brush`): a brush from the paint editor's
697
+ * library by id, its size in document units (default the brush's own), and an optional pressure
698
+ * profile along the path's length (values 0–1 spread evenly from start to end).
699
+ */
700
+ interface VectorBrushstroke {
701
+ brushId: string;
702
+ size?: number;
703
+ pressure?: number[];
704
+ }
695
705
  /** One stroke of a path's stroke stack (`VectorStyle.strokes`): a paint plus its own stroke settings. */
696
706
  interface VectorStrokeLayer extends VectorPaintLayer, VectorStrokeSettings {
697
707
  /** Default `paint`. See `VectorStrokeLayerKind`. */
698
708
  kind?: VectorStrokeLayerKind;
709
+ /** Kind `brushstroke`: the brush the path is painted with (the layer's paint is its colour). */
710
+ brush?: VectorBrushstroke;
699
711
  }
700
712
  /** Paint and stroke settings of a path. */
701
713
  interface VectorStyle {
@@ -978,6 +990,11 @@ interface VectorGroupNode extends VectorNodeBase {
978
990
  * when resized. Ignored on blends, live booleans and mask groups.
979
991
  */
980
992
  frame?: VectorFrame | null;
993
+ /**
994
+ * Set on a group made by a generative prompt (`generateVectorArt`): what produced it (prompt,
995
+ * model, planned request; see `@pixerate/editor/generation`), so it can be regenerated.
996
+ */
997
+ generation?: GenerationProvenance;
981
998
  /**
982
999
  * Derived, not stored: a page's master art (its master page's children laid out on it), brought
983
1000
  * up to date after every edit (`resolveVectorMasterPages`) and drawn under the page's children.
@@ -1253,7 +1270,7 @@ interface VectorHandleRef extends VectorAnchorRef {
1253
1270
  * drags out a frame (`VectorGroupNode.frame`), taking in the top-level objects it fully encloses.
1254
1271
  * `connector` drags a connector between objects, gluing each end to the side it starts or ends on.
1255
1272
  */
1256
- type VectorTool = 'select' | 'direct' | 'pen' | 'pencil' | 'rect' | 'ellipse' | 'polygon' | 'star' | 'line' | 'scissors' | 'knife' | 'eraser' | 'width' | 'shapeBuilder' | 'paintBucket' | 'blend' | 'gradient' | 'envelope' | 'type' | 'typePath' | 'frame' | 'connector';
1273
+ type VectorTool = 'select' | 'direct' | 'pen' | 'pencil' | 'rect' | 'ellipse' | 'polygon' | 'star' | 'line' | 'scissors' | 'knife' | 'eraser' | 'width' | 'shapeBuilder' | 'paintBucket' | 'blend' | 'gradient' | 'envelope' | 'type' | 'typePath' | 'frame' | 'connector' | 'distort';
1257
1274
  declare const VECTOR_TOOLS: readonly VectorTool[];
1258
1275
  /** Keyboard modifiers held during a pointer event. */
1259
1276
  interface VectorModifiers {
@@ -2167,4 +2184,4 @@ declare class EffectsSlot {
2167
2184
  subscribe(listener: (provider: EffectProvider | null) => void): () => void;
2168
2185
  }
2169
2186
 
2170
- export { type VectorPaint as $, isEffectPixels as A, linearToSrgb as B, type CanvasGradientDef as C, resolveEffectValues as D, type EffectProvider as E, searchEffectSummaries as F, srgbToLinear as G, type VectorEffectParamsMap as H, type VectorPathNode as I, type VectorFillRule as J, type VectorBooleanOperation as K, type VectorNode as L, type VectorEffect as M, type VectorGroupNode as N, type VectorBounds as O, type VectorWarpMesh as P, type VectorInstanceNode as Q, type VectorFilterType as R, type SvgGradientDef as S, type VectorFilterParamsMap as T, type VectorFilter as U, type VectorEffectType as V, type VectorGradient as W, type Vec2 as X, type VectorGradientUnits as Y, type VectorGradientSpread as Z, type VectorGradientType as _, type EffectRenderRequest as a, type MotionEffectCommand as a$, type VectorMatrix as a0, type VectorGradientStop as a1, type VectorStrokeAlign as a2, type VectorSubpath as a3, type VectorDocument as a4, type VectorWidthPoint as a5, type MotionCommand as a6, type MotionShot as a7, type MotionScene as a8, type MotionDirection as a9, FLAIR_EXPORT_VERSION as aA, type FlairEase as aB, type FlairEaseName as aC, type FlairSpringEase as aD, type FlairSvgAnimation as aE, MOTION_BLENDS as aF, MOTION_CAMERA_MS as aG, MOTION_CASCADES as aH, MOTION_CLIP_TARGET as aI, MOTION_COMMAND_TYPES as aJ, MOTION_DEFAULT_DURATIONS as aK, MOTION_DEFAULT_HOLD as aL, MOTION_DIRECTIONS as aM, MOTION_DRAW_MS_PER_UNIT as aN, MOTION_DRAW_RANGE as aO, MOTION_DRIVEN_PROPERTIES as aP, MOTION_ENTER_STYLES as aQ, MOTION_EXIT_STYLES as aR, MOTION_IRIS_SHAPES as aS, MOTION_REPEAT_MODES as aT, MOTION_SPLIT_ORIENTATIONS as aU, MOTION_TEXT_UNITS as aV, MOTION_TRIGGERS as aW, type MotionColorPulseCommand as aX, type MotionCommandBase as aY, type MotionDrawCommand as aZ, type MotionDrawOrder as a_, type MotionIrisShape as aa, type MotionSplitOrientation as ab, type MotionDriver as ac, type MotionDrivenProperty as ad, type MotionRect as ae, type MotionBeatGrid as af, type MotionCue as ag, type MotionCamera as ah, type MotionTextUnit as ai, type MotionCascade as aj, type MotionBlur as ak, type MotionControl as al, type MotionPreset as am, type MotionClip as an, type FlairSvgMotion as ao, type FlairVectorEffect as ap, type MotionEffectSource as aq, type FlairExportOptions as ar, type FlairMotionExport as as, type FlairEffectOptions as at, type FlairEffectDocument as au, type MotionEnterStyle as av, type MotionExitStyle as aw, type MotionCommandType as ax, type MotionNarration as ay, FLAIR_EASES as az, type EffectPixels as b, type VectorFreeformGradient as b$, type MotionEnterCommand as b0, type MotionExitCommand as b1, type MotionFadeCommand as b2, type MotionFollowCommand as b3, type MotionMatchCommand as b4, type MotionMorphCommand as b5, type MotionMoveCommand as b6, type MotionPlayCommand as b7, type MotionPulseCommand as b8, type MotionRotateCommand as b9, type VectorCharacterStyle as bA, type VectorTextRun as bB, type VectorParagraphStyle as bC, type VectorTextFrame as bD, type VectorTransformHandle as bE, type VectorAnchorRef as bF, type VectorPathfinderOperation as bG, type VectorTool as bH, type VectorDefaults as bI, type VectorTextAlign as bJ, type VectorStyle as bK, type VectorHandleRef as bL, type VectorSegmentRef as bM, type VectorBlendOptions as bN, type VectorPerspectivePlane as bO, type VectorModifiers as bP, type VectorProviderEffect as bQ, type VectorBlendMode as bR, type VectorAlign as bS, type VectorDistribute as bT, type VectorArrange as bU, type VectorMaskType as bV, type VectorSymmetryMode as bW, type VectorSymmetry as bX, type VectorPerspective as bY, type VectorFreeformPoint as bZ, type VectorMeshGradient as b_, type MotionScaleCommand as ba, type MotionShakeCommand as bb, type MotionStyleCommand as bc, type MotionTeeterCommand as bd, type MotionTrigger as be, type MotionWaitCommand as bf, type MotionWaveCommand as bg, type MotionWiggleCommand as bh, flairAtLeast as bi, flairCurveFor as bj, flairEaseFor as bk, motionFlairPrimitive as bl, toFlairEffectDocument as bm, toFlairSvgMotion as bn, toFlairVectorEffect as bo, type VectorAnchor as bp, type VectorTextNode as bq, type VectorAnchorType as br, type VectorCornerKind as bs, type VectorViewport as bt, type VectorConnectorRoute as bu, type VectorConnectorSide as bv, type VectorConnectorEnd as bw, type VectorConnector as bx, type VectorConstraintKind as by, type VectorConstraint as bz, type EffectUse as c, parseCssGradient as c$, type VectorArrowhead as c0, type VectorLens as c1, type VectorResizing as c2, type VectorFrame as c3, type VectorHorizontalResizing as c4, type VectorVerticalResizing as c5, type VectorMask as c6, type VectorAverageAxis as c7, type VectorSymbol as c8, type VectorParameter as c9, VECTOR_MASK_TYPES as cA, VECTOR_MERGE_MODES as cB, VECTOR_PATHFINDER_OPERATIONS as cC, VECTOR_PATH_TEXT_BASELINES as cD, VECTOR_PERSPECTIVE_PLANES as cE, VECTOR_STROKE_GRADIENT_MODES as cF, VECTOR_SYMMETRY_MODES as cG, VECTOR_TEXT_ALIGNS as cH, VECTOR_TOOLS as cI, VECTOR_TRANSFORM_HANDLES as cJ, VECTOR_VERTICAL_RESIZING as cK, type VectorCorner as cL, type VectorGeomRef as cM, type VectorLineCap as cN, type VectorPathTextBaseline as cO, type VectorStrokeLayerKind as cP, type VectorTextRunStyle as cQ, type VectorWarpStyle as cR, CANVAS_GRADIENT_PRESETS as cS, type CanvasLinearGradient as cT, type CanvasRadialGradient as cU, type GradientStop as cV, PIXERATE_BRAND_GRADIENT as cW, type SvgGradientStop as cX, angleToSvgLinearCoords as cY, gradientToSvgDef as cZ, isCanvasGradient as c_, type VectorBlendSpacing as ca, type VectorGradientInterpolation as cb, type VectorStrokeGradientMode as cc, type VectorArrowAlign as cd, type VectorPaintLayer as ce, type VectorStrokeLayer as cf, type VectorBlend as cg, type VectorMergeMode as ch, type VectorLineJoin as ci, type VectorLensType as cj, type VectorStrokeSettings as ck, type VectorInstanceOverrides as cl, VECTOR_ARROWHEADS as cm, VECTOR_BLEND_MODES as cn, VECTOR_BLEND_SPACINGS as co, VECTOR_CONNECTOR_ROUTES as cp, VECTOR_CONNECTOR_SIDES as cq, VECTOR_CONSTRAINT_KINDS as cr, VECTOR_CORNER_KINDS as cs, VECTOR_EFFECT_TYPES as ct, VECTOR_FILTER_TYPES as cu, VECTOR_GRADIENT_INTERPOLATIONS as cv, VECTOR_GRADIENT_SPREADS as cw, VECTOR_GRADIENT_TYPES as cx, VECTOR_HORIZONTAL_RESIZING as cy, VECTOR_LENS_TYPES as cz, type EffectProviderCapabilities as d, resolveCanvasGradient as d0, type EffectValue as e, type EffectDescription as f, type EffectSummary as g, EFFECT_KINDS as h, EFFECT_USES as i, type EffectControlSchema as j, type EffectImageSource as k, type EffectInputSpec as l, type EffectKind as m, type EffectPreset as n, type EffectRenderer as o, type EffectRendererOptions as p, type EffectSearchOptions as q, type EffectSvgAnimation as r, type EffectValues as s, type EffectVectorMotion as t, type EffectVectorTarget as u, EffectsSlot as v, applyEffectMask as w, createEffectPixels as x, effectValueErrors as y, encodeEffectFloat as z };
2187
+ export { type VectorPaint as $, isEffectPixels as A, linearToSrgb as B, type CanvasGradientDef as C, resolveEffectValues as D, type EffectProvider as E, searchEffectSummaries as F, srgbToLinear as G, type VectorEffectParamsMap as H, type VectorPathNode as I, type VectorFillRule as J, type VectorBooleanOperation as K, type VectorNode as L, type VectorEffect as M, type VectorGroupNode as N, type VectorBounds as O, type VectorWarpMesh as P, type VectorInstanceNode as Q, type VectorFilterType as R, type SvgGradientDef as S, type VectorFilterParamsMap as T, type VectorFilter as U, type VectorEffectType as V, type VectorGradient as W, type Vec2 as X, type VectorGradientUnits as Y, type VectorGradientSpread as Z, type VectorGradientType as _, type EffectRenderRequest as a, type MotionEffectCommand as a$, type VectorMatrix as a0, type VectorGradientStop as a1, type VectorStrokeAlign as a2, type VectorSubpath as a3, type VectorDocument as a4, type VectorWidthPoint as a5, type MotionCommand as a6, type MotionShot as a7, type MotionScene as a8, type MotionDirection as a9, FLAIR_EXPORT_VERSION as aA, type FlairEase as aB, type FlairEaseName as aC, type FlairSpringEase as aD, type FlairSvgAnimation as aE, MOTION_BLENDS as aF, MOTION_CAMERA_MS as aG, MOTION_CASCADES as aH, MOTION_CLIP_TARGET as aI, MOTION_COMMAND_TYPES as aJ, MOTION_DEFAULT_DURATIONS as aK, MOTION_DEFAULT_HOLD as aL, MOTION_DIRECTIONS as aM, MOTION_DRAW_MS_PER_UNIT as aN, MOTION_DRAW_RANGE as aO, MOTION_DRIVEN_PROPERTIES as aP, MOTION_ENTER_STYLES as aQ, MOTION_EXIT_STYLES as aR, MOTION_IRIS_SHAPES as aS, MOTION_REPEAT_MODES as aT, MOTION_SPLIT_ORIENTATIONS as aU, MOTION_TEXT_UNITS as aV, MOTION_TRIGGERS as aW, type MotionColorPulseCommand as aX, type MotionCommandBase as aY, type MotionDrawCommand as aZ, type MotionDrawOrder as a_, type MotionIrisShape as aa, type MotionSplitOrientation as ab, type MotionDriver as ac, type MotionDrivenProperty as ad, type MotionRect as ae, type MotionBeatGrid as af, type MotionCue as ag, type MotionCamera as ah, type MotionTextUnit as ai, type MotionCascade as aj, type MotionBlur as ak, type MotionControl as al, type MotionPreset as am, type MotionClip as an, type FlairSvgMotion as ao, type FlairVectorEffect as ap, type MotionEffectSource as aq, type FlairExportOptions as ar, type FlairMotionExport as as, type FlairEffectOptions as at, type FlairEffectDocument as au, type MotionEnterStyle as av, type MotionExitStyle as aw, type MotionCommandType as ax, type MotionNarration as ay, FLAIR_EASES as az, type EffectPixels as b, type VectorMeshGradient as b$, type MotionEnterCommand as b0, type MotionExitCommand as b1, type MotionFadeCommand as b2, type MotionFollowCommand as b3, type MotionMatchCommand as b4, type MotionMorphCommand as b5, type MotionMoveCommand as b6, type MotionPlayCommand as b7, type MotionPulseCommand as b8, type MotionRotateCommand as b9, type VectorCharacterStyle as bA, type VectorTextRun as bB, type VectorParagraphStyle as bC, type VectorTextFrame as bD, type VectorTransformHandle as bE, type VectorAnchorRef as bF, type VectorPathfinderOperation as bG, type VectorTool as bH, type VectorDefaults as bI, type VectorTextAlign as bJ, type VectorStyle as bK, type VectorHandleRef as bL, type VectorSegmentRef as bM, type VectorBlendOptions as bN, type VectorPerspectivePlane as bO, type VectorModifiers as bP, type VectorProviderEffect as bQ, type VectorBrushstroke as bR, type VectorBlendMode as bS, type VectorAlign as bT, type VectorDistribute as bU, type VectorArrange as bV, type VectorMaskType as bW, type VectorSymmetryMode as bX, type VectorSymmetry as bY, type VectorPerspective as bZ, type VectorFreeformPoint as b_, type MotionScaleCommand as ba, type MotionShakeCommand as bb, type MotionStyleCommand as bc, type MotionTeeterCommand as bd, type MotionTrigger as be, type MotionWaitCommand as bf, type MotionWaveCommand as bg, type MotionWiggleCommand as bh, flairAtLeast as bi, flairCurveFor as bj, flairEaseFor as bk, motionFlairPrimitive as bl, toFlairEffectDocument as bm, toFlairSvgMotion as bn, toFlairVectorEffect as bo, type VectorAnchor as bp, type VectorTextNode as bq, type VectorAnchorType as br, type VectorCornerKind as bs, type VectorViewport as bt, type VectorConnectorRoute as bu, type VectorConnectorSide as bv, type VectorConnectorEnd as bw, type VectorConnector as bx, type VectorConstraintKind as by, type VectorConstraint as bz, type EffectUse as c, isCanvasGradient as c$, type VectorFreeformGradient as c0, type VectorArrowhead as c1, type VectorLens as c2, type VectorResizing as c3, type VectorFrame as c4, type VectorHorizontalResizing as c5, type VectorVerticalResizing as c6, type VectorMask as c7, type VectorAverageAxis as c8, type VectorSymbol as c9, VECTOR_LENS_TYPES as cA, VECTOR_MASK_TYPES as cB, VECTOR_MERGE_MODES as cC, VECTOR_PATHFINDER_OPERATIONS as cD, VECTOR_PATH_TEXT_BASELINES as cE, VECTOR_PERSPECTIVE_PLANES as cF, VECTOR_STROKE_GRADIENT_MODES as cG, VECTOR_SYMMETRY_MODES as cH, VECTOR_TEXT_ALIGNS as cI, VECTOR_TOOLS as cJ, VECTOR_TRANSFORM_HANDLES as cK, VECTOR_VERTICAL_RESIZING as cL, type VectorCorner as cM, type VectorGeomRef as cN, type VectorLineCap as cO, type VectorPathTextBaseline as cP, type VectorStrokeLayerKind as cQ, type VectorTextRunStyle as cR, type VectorWarpStyle as cS, CANVAS_GRADIENT_PRESETS as cT, type CanvasLinearGradient as cU, type CanvasRadialGradient as cV, type GradientStop as cW, PIXERATE_BRAND_GRADIENT as cX, type SvgGradientStop as cY, angleToSvgLinearCoords as cZ, gradientToSvgDef as c_, type VectorParameter as ca, type VectorStrokeLayer as cb, type VectorBlendSpacing as cc, type VectorGradientInterpolation as cd, type VectorStrokeGradientMode as ce, type VectorArrowAlign as cf, type VectorPaintLayer as cg, type VectorBlend as ch, type VectorMergeMode as ci, type VectorLineJoin as cj, type VectorLensType as ck, type VectorStrokeSettings as cl, type VectorInstanceOverrides as cm, VECTOR_ARROWHEADS as cn, VECTOR_BLEND_MODES as co, VECTOR_BLEND_SPACINGS as cp, VECTOR_CONNECTOR_ROUTES as cq, VECTOR_CONNECTOR_SIDES as cr, VECTOR_CONSTRAINT_KINDS as cs, VECTOR_CORNER_KINDS as ct, VECTOR_EFFECT_TYPES as cu, VECTOR_FILTER_TYPES as cv, VECTOR_GRADIENT_INTERPOLATIONS as cw, VECTOR_GRADIENT_SPREADS as cx, VECTOR_GRADIENT_TYPES as cy, VECTOR_HORIZONTAL_RESIZING as cz, type EffectProviderCapabilities as d, parseCssGradient as d0, resolveCanvasGradient as d1, type EffectValue as e, type EffectDescription as f, type EffectSummary as g, EFFECT_KINDS as h, EFFECT_USES as i, type EffectControlSchema as j, type EffectImageSource as k, type EffectInputSpec as l, type EffectKind as m, type EffectPreset as n, type EffectRenderer as o, type EffectRendererOptions as p, type EffectSearchOptions as q, type EffectSvgAnimation as r, type EffectValues as s, type EffectVectorMotion as t, type EffectVectorTarget as u, EffectsSlot as v, applyEffectMask as w, createEffectPixels as x, effectValueErrors as y, encodeEffectFloat as z };
@@ -1,6 +1,7 @@
1
1
  import { J as JsonSchema, S as SchemaValidationError } from './schema-Di0CS6Pe.cjs';
2
2
  import { f as MotionBehavior, b as AnimationLoopMode } from './evaluate-BsxYieLN.cjs';
3
3
  import { b as AnimationEasing } from './easing-lM0Xo9Ni.cjs';
4
+ import { G as GenerationProvenance } from './provenance-DmlcgdzT.cjs';
4
5
  import { W as WarpStyle, a as WarpMesh } from './types-CwMPoRMU.cjs';
5
6
 
6
7
  /**
@@ -685,17 +686,28 @@ interface VectorPaintLayer {
685
686
  /** The settings each stroke layer has of its own (the stroke shorthand fields of `VectorStyle`). */
686
687
  type VectorStrokeSettings = Pick<VectorStyle, 'strokeWidth' | 'strokeLinecap' | 'strokeLinejoin' | 'strokeDasharray' | 'strokeAlign' | 'startArrow' | 'endArrow' | 'arrowAlign' | 'startArrowScale' | 'endArrowScale' | 'strokeWidthProfile'>;
687
688
  /**
688
- * What a stroke layer draws. Only `paint` (a paint along the outline, the default) exists today.
689
- * Other kinds are the extension point for strokes drawn some other way, such as a raster
690
- * brushstroke from `@pixerate/editor/paint` laid along the path: a layer with an unknown kind is
691
- * kept through edits, load and SVG round trips, listed to agents, and skipped when drawing and
692
- * hit-testing.
689
+ * What a stroke layer draws: `paint` (a paint along the outline, the default) or `brushstroke` (a
690
+ * natural-media brush from `@pixerate/editor/paint` laid along the path; see `brushstroke.ts`).
691
+ * A layer of a kind this version does not know is kept through edits, load and SVG round trips,
692
+ * listed to agents, and skipped when drawing and hit-testing.
693
693
  */
694
- type VectorStrokeLayerKind = 'paint';
694
+ type VectorStrokeLayerKind = 'paint' | 'brushstroke';
695
+ /**
696
+ * A brushstroke stroke layer's brush (`VectorStrokeLayer.brush`): a brush from the paint editor's
697
+ * library by id, its size in document units (default the brush's own), and an optional pressure
698
+ * profile along the path's length (values 0–1 spread evenly from start to end).
699
+ */
700
+ interface VectorBrushstroke {
701
+ brushId: string;
702
+ size?: number;
703
+ pressure?: number[];
704
+ }
695
705
  /** One stroke of a path's stroke stack (`VectorStyle.strokes`): a paint plus its own stroke settings. */
696
706
  interface VectorStrokeLayer extends VectorPaintLayer, VectorStrokeSettings {
697
707
  /** Default `paint`. See `VectorStrokeLayerKind`. */
698
708
  kind?: VectorStrokeLayerKind;
709
+ /** Kind `brushstroke`: the brush the path is painted with (the layer's paint is its colour). */
710
+ brush?: VectorBrushstroke;
699
711
  }
700
712
  /** Paint and stroke settings of a path. */
701
713
  interface VectorStyle {
@@ -978,6 +990,11 @@ interface VectorGroupNode extends VectorNodeBase {
978
990
  * when resized. Ignored on blends, live booleans and mask groups.
979
991
  */
980
992
  frame?: VectorFrame | null;
993
+ /**
994
+ * Set on a group made by a generative prompt (`generateVectorArt`): what produced it (prompt,
995
+ * model, planned request; see `@pixerate/editor/generation`), so it can be regenerated.
996
+ */
997
+ generation?: GenerationProvenance;
981
998
  /**
982
999
  * Derived, not stored: a page's master art (its master page's children laid out on it), brought
983
1000
  * up to date after every edit (`resolveVectorMasterPages`) and drawn under the page's children.
@@ -1253,7 +1270,7 @@ interface VectorHandleRef extends VectorAnchorRef {
1253
1270
  * drags out a frame (`VectorGroupNode.frame`), taking in the top-level objects it fully encloses.
1254
1271
  * `connector` drags a connector between objects, gluing each end to the side it starts or ends on.
1255
1272
  */
1256
- type VectorTool = 'select' | 'direct' | 'pen' | 'pencil' | 'rect' | 'ellipse' | 'polygon' | 'star' | 'line' | 'scissors' | 'knife' | 'eraser' | 'width' | 'shapeBuilder' | 'paintBucket' | 'blend' | 'gradient' | 'envelope' | 'type' | 'typePath' | 'frame' | 'connector';
1273
+ type VectorTool = 'select' | 'direct' | 'pen' | 'pencil' | 'rect' | 'ellipse' | 'polygon' | 'star' | 'line' | 'scissors' | 'knife' | 'eraser' | 'width' | 'shapeBuilder' | 'paintBucket' | 'blend' | 'gradient' | 'envelope' | 'type' | 'typePath' | 'frame' | 'connector' | 'distort';
1257
1274
  declare const VECTOR_TOOLS: readonly VectorTool[];
1258
1275
  /** Keyboard modifiers held during a pointer event. */
1259
1276
  interface VectorModifiers {
@@ -2167,4 +2184,4 @@ declare class EffectsSlot {
2167
2184
  subscribe(listener: (provider: EffectProvider | null) => void): () => void;
2168
2185
  }
2169
2186
 
2170
- export { type VectorPaint as $, isEffectPixels as A, linearToSrgb as B, type CanvasGradientDef as C, resolveEffectValues as D, type EffectProvider as E, searchEffectSummaries as F, srgbToLinear as G, type VectorEffectParamsMap as H, type VectorPathNode as I, type VectorFillRule as J, type VectorBooleanOperation as K, type VectorNode as L, type VectorEffect as M, type VectorGroupNode as N, type VectorBounds as O, type VectorWarpMesh as P, type VectorInstanceNode as Q, type VectorFilterType as R, type SvgGradientDef as S, type VectorFilterParamsMap as T, type VectorFilter as U, type VectorEffectType as V, type VectorGradient as W, type Vec2 as X, type VectorGradientUnits as Y, type VectorGradientSpread as Z, type VectorGradientType as _, type EffectRenderRequest as a, type MotionEffectCommand as a$, type VectorMatrix as a0, type VectorGradientStop as a1, type VectorStrokeAlign as a2, type VectorSubpath as a3, type VectorDocument as a4, type VectorWidthPoint as a5, type MotionCommand as a6, type MotionShot as a7, type MotionScene as a8, type MotionDirection as a9, FLAIR_EXPORT_VERSION as aA, type FlairEase as aB, type FlairEaseName as aC, type FlairSpringEase as aD, type FlairSvgAnimation as aE, MOTION_BLENDS as aF, MOTION_CAMERA_MS as aG, MOTION_CASCADES as aH, MOTION_CLIP_TARGET as aI, MOTION_COMMAND_TYPES as aJ, MOTION_DEFAULT_DURATIONS as aK, MOTION_DEFAULT_HOLD as aL, MOTION_DIRECTIONS as aM, MOTION_DRAW_MS_PER_UNIT as aN, MOTION_DRAW_RANGE as aO, MOTION_DRIVEN_PROPERTIES as aP, MOTION_ENTER_STYLES as aQ, MOTION_EXIT_STYLES as aR, MOTION_IRIS_SHAPES as aS, MOTION_REPEAT_MODES as aT, MOTION_SPLIT_ORIENTATIONS as aU, MOTION_TEXT_UNITS as aV, MOTION_TRIGGERS as aW, type MotionColorPulseCommand as aX, type MotionCommandBase as aY, type MotionDrawCommand as aZ, type MotionDrawOrder as a_, type MotionIrisShape as aa, type MotionSplitOrientation as ab, type MotionDriver as ac, type MotionDrivenProperty as ad, type MotionRect as ae, type MotionBeatGrid as af, type MotionCue as ag, type MotionCamera as ah, type MotionTextUnit as ai, type MotionCascade as aj, type MotionBlur as ak, type MotionControl as al, type MotionPreset as am, type MotionClip as an, type FlairSvgMotion as ao, type FlairVectorEffect as ap, type MotionEffectSource as aq, type FlairExportOptions as ar, type FlairMotionExport as as, type FlairEffectOptions as at, type FlairEffectDocument as au, type MotionEnterStyle as av, type MotionExitStyle as aw, type MotionCommandType as ax, type MotionNarration as ay, FLAIR_EASES as az, type EffectPixels as b, type VectorFreeformGradient as b$, type MotionEnterCommand as b0, type MotionExitCommand as b1, type MotionFadeCommand as b2, type MotionFollowCommand as b3, type MotionMatchCommand as b4, type MotionMorphCommand as b5, type MotionMoveCommand as b6, type MotionPlayCommand as b7, type MotionPulseCommand as b8, type MotionRotateCommand as b9, type VectorCharacterStyle as bA, type VectorTextRun as bB, type VectorParagraphStyle as bC, type VectorTextFrame as bD, type VectorTransformHandle as bE, type VectorAnchorRef as bF, type VectorPathfinderOperation as bG, type VectorTool as bH, type VectorDefaults as bI, type VectorTextAlign as bJ, type VectorStyle as bK, type VectorHandleRef as bL, type VectorSegmentRef as bM, type VectorBlendOptions as bN, type VectorPerspectivePlane as bO, type VectorModifiers as bP, type VectorProviderEffect as bQ, type VectorBlendMode as bR, type VectorAlign as bS, type VectorDistribute as bT, type VectorArrange as bU, type VectorMaskType as bV, type VectorSymmetryMode as bW, type VectorSymmetry as bX, type VectorPerspective as bY, type VectorFreeformPoint as bZ, type VectorMeshGradient as b_, type MotionScaleCommand as ba, type MotionShakeCommand as bb, type MotionStyleCommand as bc, type MotionTeeterCommand as bd, type MotionTrigger as be, type MotionWaitCommand as bf, type MotionWaveCommand as bg, type MotionWiggleCommand as bh, flairAtLeast as bi, flairCurveFor as bj, flairEaseFor as bk, motionFlairPrimitive as bl, toFlairEffectDocument as bm, toFlairSvgMotion as bn, toFlairVectorEffect as bo, type VectorAnchor as bp, type VectorTextNode as bq, type VectorAnchorType as br, type VectorCornerKind as bs, type VectorViewport as bt, type VectorConnectorRoute as bu, type VectorConnectorSide as bv, type VectorConnectorEnd as bw, type VectorConnector as bx, type VectorConstraintKind as by, type VectorConstraint as bz, type EffectUse as c, parseCssGradient as c$, type VectorArrowhead as c0, type VectorLens as c1, type VectorResizing as c2, type VectorFrame as c3, type VectorHorizontalResizing as c4, type VectorVerticalResizing as c5, type VectorMask as c6, type VectorAverageAxis as c7, type VectorSymbol as c8, type VectorParameter as c9, VECTOR_MASK_TYPES as cA, VECTOR_MERGE_MODES as cB, VECTOR_PATHFINDER_OPERATIONS as cC, VECTOR_PATH_TEXT_BASELINES as cD, VECTOR_PERSPECTIVE_PLANES as cE, VECTOR_STROKE_GRADIENT_MODES as cF, VECTOR_SYMMETRY_MODES as cG, VECTOR_TEXT_ALIGNS as cH, VECTOR_TOOLS as cI, VECTOR_TRANSFORM_HANDLES as cJ, VECTOR_VERTICAL_RESIZING as cK, type VectorCorner as cL, type VectorGeomRef as cM, type VectorLineCap as cN, type VectorPathTextBaseline as cO, type VectorStrokeLayerKind as cP, type VectorTextRunStyle as cQ, type VectorWarpStyle as cR, CANVAS_GRADIENT_PRESETS as cS, type CanvasLinearGradient as cT, type CanvasRadialGradient as cU, type GradientStop as cV, PIXERATE_BRAND_GRADIENT as cW, type SvgGradientStop as cX, angleToSvgLinearCoords as cY, gradientToSvgDef as cZ, isCanvasGradient as c_, type VectorBlendSpacing as ca, type VectorGradientInterpolation as cb, type VectorStrokeGradientMode as cc, type VectorArrowAlign as cd, type VectorPaintLayer as ce, type VectorStrokeLayer as cf, type VectorBlend as cg, type VectorMergeMode as ch, type VectorLineJoin as ci, type VectorLensType as cj, type VectorStrokeSettings as ck, type VectorInstanceOverrides as cl, VECTOR_ARROWHEADS as cm, VECTOR_BLEND_MODES as cn, VECTOR_BLEND_SPACINGS as co, VECTOR_CONNECTOR_ROUTES as cp, VECTOR_CONNECTOR_SIDES as cq, VECTOR_CONSTRAINT_KINDS as cr, VECTOR_CORNER_KINDS as cs, VECTOR_EFFECT_TYPES as ct, VECTOR_FILTER_TYPES as cu, VECTOR_GRADIENT_INTERPOLATIONS as cv, VECTOR_GRADIENT_SPREADS as cw, VECTOR_GRADIENT_TYPES as cx, VECTOR_HORIZONTAL_RESIZING as cy, VECTOR_LENS_TYPES as cz, type EffectProviderCapabilities as d, resolveCanvasGradient as d0, type EffectValue as e, type EffectDescription as f, type EffectSummary as g, EFFECT_KINDS as h, EFFECT_USES as i, type EffectControlSchema as j, type EffectImageSource as k, type EffectInputSpec as l, type EffectKind as m, type EffectPreset as n, type EffectRenderer as o, type EffectRendererOptions as p, type EffectSearchOptions as q, type EffectSvgAnimation as r, type EffectValues as s, type EffectVectorMotion as t, type EffectVectorTarget as u, EffectsSlot as v, applyEffectMask as w, createEffectPixels as x, effectValueErrors as y, encodeEffectFloat as z };
2187
+ export { type VectorPaint as $, isEffectPixels as A, linearToSrgb as B, type CanvasGradientDef as C, resolveEffectValues as D, type EffectProvider as E, searchEffectSummaries as F, srgbToLinear as G, type VectorEffectParamsMap as H, type VectorPathNode as I, type VectorFillRule as J, type VectorBooleanOperation as K, type VectorNode as L, type VectorEffect as M, type VectorGroupNode as N, type VectorBounds as O, type VectorWarpMesh as P, type VectorInstanceNode as Q, type VectorFilterType as R, type SvgGradientDef as S, type VectorFilterParamsMap as T, type VectorFilter as U, type VectorEffectType as V, type VectorGradient as W, type Vec2 as X, type VectorGradientUnits as Y, type VectorGradientSpread as Z, type VectorGradientType as _, type EffectRenderRequest as a, type MotionEffectCommand as a$, type VectorMatrix as a0, type VectorGradientStop as a1, type VectorStrokeAlign as a2, type VectorSubpath as a3, type VectorDocument as a4, type VectorWidthPoint as a5, type MotionCommand as a6, type MotionShot as a7, type MotionScene as a8, type MotionDirection as a9, FLAIR_EXPORT_VERSION as aA, type FlairEase as aB, type FlairEaseName as aC, type FlairSpringEase as aD, type FlairSvgAnimation as aE, MOTION_BLENDS as aF, MOTION_CAMERA_MS as aG, MOTION_CASCADES as aH, MOTION_CLIP_TARGET as aI, MOTION_COMMAND_TYPES as aJ, MOTION_DEFAULT_DURATIONS as aK, MOTION_DEFAULT_HOLD as aL, MOTION_DIRECTIONS as aM, MOTION_DRAW_MS_PER_UNIT as aN, MOTION_DRAW_RANGE as aO, MOTION_DRIVEN_PROPERTIES as aP, MOTION_ENTER_STYLES as aQ, MOTION_EXIT_STYLES as aR, MOTION_IRIS_SHAPES as aS, MOTION_REPEAT_MODES as aT, MOTION_SPLIT_ORIENTATIONS as aU, MOTION_TEXT_UNITS as aV, MOTION_TRIGGERS as aW, type MotionColorPulseCommand as aX, type MotionCommandBase as aY, type MotionDrawCommand as aZ, type MotionDrawOrder as a_, type MotionIrisShape as aa, type MotionSplitOrientation as ab, type MotionDriver as ac, type MotionDrivenProperty as ad, type MotionRect as ae, type MotionBeatGrid as af, type MotionCue as ag, type MotionCamera as ah, type MotionTextUnit as ai, type MotionCascade as aj, type MotionBlur as ak, type MotionControl as al, type MotionPreset as am, type MotionClip as an, type FlairSvgMotion as ao, type FlairVectorEffect as ap, type MotionEffectSource as aq, type FlairExportOptions as ar, type FlairMotionExport as as, type FlairEffectOptions as at, type FlairEffectDocument as au, type MotionEnterStyle as av, type MotionExitStyle as aw, type MotionCommandType as ax, type MotionNarration as ay, FLAIR_EASES as az, type EffectPixels as b, type VectorMeshGradient as b$, type MotionEnterCommand as b0, type MotionExitCommand as b1, type MotionFadeCommand as b2, type MotionFollowCommand as b3, type MotionMatchCommand as b4, type MotionMorphCommand as b5, type MotionMoveCommand as b6, type MotionPlayCommand as b7, type MotionPulseCommand as b8, type MotionRotateCommand as b9, type VectorCharacterStyle as bA, type VectorTextRun as bB, type VectorParagraphStyle as bC, type VectorTextFrame as bD, type VectorTransformHandle as bE, type VectorAnchorRef as bF, type VectorPathfinderOperation as bG, type VectorTool as bH, type VectorDefaults as bI, type VectorTextAlign as bJ, type VectorStyle as bK, type VectorHandleRef as bL, type VectorSegmentRef as bM, type VectorBlendOptions as bN, type VectorPerspectivePlane as bO, type VectorModifiers as bP, type VectorProviderEffect as bQ, type VectorBrushstroke as bR, type VectorBlendMode as bS, type VectorAlign as bT, type VectorDistribute as bU, type VectorArrange as bV, type VectorMaskType as bW, type VectorSymmetryMode as bX, type VectorSymmetry as bY, type VectorPerspective as bZ, type VectorFreeformPoint as b_, type MotionScaleCommand as ba, type MotionShakeCommand as bb, type MotionStyleCommand as bc, type MotionTeeterCommand as bd, type MotionTrigger as be, type MotionWaitCommand as bf, type MotionWaveCommand as bg, type MotionWiggleCommand as bh, flairAtLeast as bi, flairCurveFor as bj, flairEaseFor as bk, motionFlairPrimitive as bl, toFlairEffectDocument as bm, toFlairSvgMotion as bn, toFlairVectorEffect as bo, type VectorAnchor as bp, type VectorTextNode as bq, type VectorAnchorType as br, type VectorCornerKind as bs, type VectorViewport as bt, type VectorConnectorRoute as bu, type VectorConnectorSide as bv, type VectorConnectorEnd as bw, type VectorConnector as bx, type VectorConstraintKind as by, type VectorConstraint as bz, type EffectUse as c, isCanvasGradient as c$, type VectorFreeformGradient as c0, type VectorArrowhead as c1, type VectorLens as c2, type VectorResizing as c3, type VectorFrame as c4, type VectorHorizontalResizing as c5, type VectorVerticalResizing as c6, type VectorMask as c7, type VectorAverageAxis as c8, type VectorSymbol as c9, VECTOR_LENS_TYPES as cA, VECTOR_MASK_TYPES as cB, VECTOR_MERGE_MODES as cC, VECTOR_PATHFINDER_OPERATIONS as cD, VECTOR_PATH_TEXT_BASELINES as cE, VECTOR_PERSPECTIVE_PLANES as cF, VECTOR_STROKE_GRADIENT_MODES as cG, VECTOR_SYMMETRY_MODES as cH, VECTOR_TEXT_ALIGNS as cI, VECTOR_TOOLS as cJ, VECTOR_TRANSFORM_HANDLES as cK, VECTOR_VERTICAL_RESIZING as cL, type VectorCorner as cM, type VectorGeomRef as cN, type VectorLineCap as cO, type VectorPathTextBaseline as cP, type VectorStrokeLayerKind as cQ, type VectorTextRunStyle as cR, type VectorWarpStyle as cS, CANVAS_GRADIENT_PRESETS as cT, type CanvasLinearGradient as cU, type CanvasRadialGradient as cV, type GradientStop as cW, PIXERATE_BRAND_GRADIENT as cX, type SvgGradientStop as cY, angleToSvgLinearCoords as cZ, gradientToSvgDef as c_, type VectorParameter as ca, type VectorStrokeLayer as cb, type VectorBlendSpacing as cc, type VectorGradientInterpolation as cd, type VectorStrokeGradientMode as ce, type VectorArrowAlign as cf, type VectorPaintLayer as cg, type VectorBlend as ch, type VectorMergeMode as ci, type VectorLineJoin as cj, type VectorLensType as ck, type VectorStrokeSettings as cl, type VectorInstanceOverrides as cm, VECTOR_ARROWHEADS as cn, VECTOR_BLEND_MODES as co, VECTOR_BLEND_SPACINGS as cp, VECTOR_CONNECTOR_ROUTES as cq, VECTOR_CONNECTOR_SIDES as cr, VECTOR_CONSTRAINT_KINDS as cs, VECTOR_CORNER_KINDS as ct, VECTOR_EFFECT_TYPES as cu, VECTOR_FILTER_TYPES as cv, VECTOR_GRADIENT_INTERPOLATIONS as cw, VECTOR_GRADIENT_SPREADS as cx, VECTOR_GRADIENT_TYPES as cy, VECTOR_HORIZONTAL_RESIZING as cz, type EffectProviderCapabilities as d, parseCssGradient as d0, resolveCanvasGradient as d1, type EffectValue as e, type EffectDescription as f, type EffectSummary as g, EFFECT_KINDS as h, EFFECT_USES as i, type EffectControlSchema as j, type EffectImageSource as k, type EffectInputSpec as l, type EffectKind as m, type EffectPreset as n, type EffectRenderer as o, type EffectRendererOptions as p, type EffectSearchOptions as q, type EffectSvgAnimation as r, type EffectValues as s, type EffectVectorMotion as t, type EffectVectorTarget as u, EffectsSlot as v, applyEffectMask as w, createEffectPixels as x, effectValueErrors as y, encodeEffectFloat as z };