@pairdraw/vue 0.18.0 → 0.19.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 (228) hide show
  1. package/dist/canvas/CanvasRoot.vue.js +1 -0
  2. package/dist/canvas/CanvasRoot.vue.js.map +1 -1
  3. package/dist/canvas/drop/use.d.ts.map +1 -1
  4. package/dist/canvas/drop/use.js +5 -3
  5. package/dist/canvas/drop/use.js.map +1 -1
  6. package/dist/canvas/guides/input.js +2 -1
  7. package/dist/canvas/guides/input.js.map +1 -1
  8. package/dist/canvas/pen/input.js +20 -6
  9. package/dist/canvas/pen/input.js.map +1 -1
  10. package/dist/canvas/surface/gl-surface.js +82 -4
  11. package/dist/canvas/surface/gl-surface.js.map +1 -1
  12. package/dist/canvas/surface/lifecycle.js +5 -0
  13. package/dist/canvas/surface/lifecycle.js.map +1 -1
  14. package/dist/canvas/surface/resize-observer.js +11 -4
  15. package/dist/canvas/surface/resize-observer.js.map +1 -1
  16. package/dist/canvas/surface/types.d.ts +5 -0
  17. package/dist/canvas/surface/types.d.ts.map +1 -1
  18. package/dist/canvas/surface/use.d.ts +1 -0
  19. package/dist/canvas/surface/use.js +1 -0
  20. package/dist/canvas/surface/use.js.map +1 -1
  21. package/dist/canvas/text-edit/editing.js +11 -8
  22. package/dist/canvas/text-edit/editing.js.map +1 -1
  23. package/dist/canvas/text-edit/keyboard.js +12 -0
  24. package/dist/canvas/text-edit/keyboard.js.map +1 -1
  25. package/dist/canvas/useCanvasInput.d.ts +240 -0
  26. package/dist/controls/appearance/use.d.ts +1 -1
  27. package/dist/controls/layout/helpers.d.ts.map +1 -1
  28. package/dist/controls/layout/helpers.js +36 -7
  29. package/dist/controls/layout/helpers.js.map +1 -1
  30. package/dist/controls/layout/use.d.ts +1 -0
  31. package/dist/controls/layout/use.d.ts.map +1 -1
  32. package/dist/controls/layout/use.js +3 -0
  33. package/dist/controls/layout/use.js.map +1 -1
  34. package/dist/controls/node-preview/use.js +21 -1
  35. package/dist/controls/node-preview/use.js.map +1 -1
  36. package/dist/controls/position/use.d.ts +2 -1
  37. package/dist/controls/position/use.d.ts.map +1 -1
  38. package/dist/controls/position/use.js +13 -5
  39. package/dist/controls/position/use.js.map +1 -1
  40. package/dist/controls/property-list/use.d.ts.map +1 -1
  41. package/dist/controls/property-list/use.js +27 -5
  42. package/dist/controls/property-list/use.js.map +1 -1
  43. package/dist/controls/selection-layout/use.d.ts.map +1 -1
  44. package/dist/controls/selection-layout/use.js +2 -1
  45. package/dist/controls/selection-layout/use.js.map +1 -1
  46. package/dist/controls/slots/authoring.d.ts.map +1 -1
  47. package/dist/controls/slots/authoring.js +2 -1
  48. package/dist/controls/slots/authoring.js.map +1 -1
  49. package/dist/controls/typography/actions.js +18 -10
  50. package/dist/controls/typography/actions.js.map +1 -1
  51. package/dist/controls/typography/axes.d.ts.map +1 -1
  52. package/dist/controls/typography/axes.js +62 -19
  53. package/dist/controls/typography/axes.js.map +1 -1
  54. package/dist/editor/commands/registry.d.ts +1 -0
  55. package/dist/editor/commands/registry.d.ts.map +1 -1
  56. package/dist/editor/commands/registry.js +1 -0
  57. package/dist/editor/commands/registry.js.map +1 -1
  58. package/dist/editor/commands/selection.js +12 -3
  59. package/dist/editor/commands/selection.js.map +1 -1
  60. package/dist/editor/commands/types.d.ts +1 -1
  61. package/dist/editor/commands/types.d.ts.map +1 -1
  62. package/dist/editor/menu-model/canvas.js +5 -1
  63. package/dist/editor/menu-model/canvas.js.map +1 -1
  64. package/dist/editor/selection-capabilities/use.d.ts +1 -0
  65. package/dist/editor/selection-capabilities/use.js +4 -0
  66. package/dist/editor/selection-capabilities/use.js.map +1 -1
  67. package/dist/editor/selection-state/nodes.js +2 -2
  68. package/dist/editor/selection-state/nodes.js.map +1 -1
  69. package/dist/i18n/locale.d.ts.map +1 -1
  70. package/dist/i18n/locale.js +16 -6
  71. package/dist/i18n/locale.js.map +1 -1
  72. package/dist/i18n/locales/de/ai.json.js +3 -0
  73. package/dist/i18n/locales/de/cloud/portal.json.js +1 -1
  74. package/dist/i18n/locales/de/commands.json.js +1 -0
  75. package/dist/i18n/locales/de/comments.json.js +1 -0
  76. package/dist/i18n/locales/de/editor.json.js +2 -2
  77. package/dist/i18n/locales/de/menu.json.js +1 -1
  78. package/dist/i18n/locales/de/variables/panel.json.js +2 -0
  79. package/dist/i18n/locales/es/ai.json.js +3 -0
  80. package/dist/i18n/locales/es/cloud/portal.json.js +1 -1
  81. package/dist/i18n/locales/es/commands.json.js +1 -0
  82. package/dist/i18n/locales/es/comments.json.js +1 -0
  83. package/dist/i18n/locales/es/editor.json.js +2 -2
  84. package/dist/i18n/locales/es/menu.json.js +1 -1
  85. package/dist/i18n/locales/es/variables/panel.json.js +2 -0
  86. package/dist/i18n/locales/fr/ai.json.js +3 -0
  87. package/dist/i18n/locales/fr/cloud/portal.json.js +1 -1
  88. package/dist/i18n/locales/fr/commands.json.js +1 -0
  89. package/dist/i18n/locales/fr/comments.json.js +1 -0
  90. package/dist/i18n/locales/fr/editor.json.js +2 -2
  91. package/dist/i18n/locales/fr/menu.json.js +1 -1
  92. package/dist/i18n/locales/fr/variables/panel.json.js +2 -0
  93. package/dist/i18n/locales/it/ai.json.js +3 -0
  94. package/dist/i18n/locales/it/cloud/portal.json.js +1 -1
  95. package/dist/i18n/locales/it/commands.json.js +1 -0
  96. package/dist/i18n/locales/it/comments.json.js +1 -0
  97. package/dist/i18n/locales/it/editor.json.js +2 -2
  98. package/dist/i18n/locales/it/menu.json.js +1 -1
  99. package/dist/i18n/locales/it/variables/panel.json.js +2 -0
  100. package/dist/i18n/locales/ja/ai.json.js +3 -0
  101. package/dist/i18n/locales/ja/cloud/portal.json.js +1 -1
  102. package/dist/i18n/locales/ja/commands.json.js +1 -0
  103. package/dist/i18n/locales/ja/comments.json.js +1 -0
  104. package/dist/i18n/locales/ja/editor.json.js +2 -2
  105. package/dist/i18n/locales/ja/menu.json.js +1 -1
  106. package/dist/i18n/locales/ja/variables/panel.json.js +2 -0
  107. package/dist/i18n/locales/pl/ai.json.js +3 -0
  108. package/dist/i18n/locales/pl/cloud/portal.json.js +1 -1
  109. package/dist/i18n/locales/pl/commands.json.js +1 -0
  110. package/dist/i18n/locales/pl/comments.json.js +1 -0
  111. package/dist/i18n/locales/pl/editor.json.js +2 -2
  112. package/dist/i18n/locales/pl/menu.json.js +1 -1
  113. package/dist/i18n/locales/pl/variables/panel.json.js +2 -0
  114. package/dist/i18n/locales/ru/ai.json.js +3 -0
  115. package/dist/i18n/locales/ru/cloud/portal.json.js +1 -1
  116. package/dist/i18n/locales/ru/commands.json.js +1 -0
  117. package/dist/i18n/locales/ru/comments.json.js +1 -0
  118. package/dist/i18n/locales/ru/editor.json.js +2 -2
  119. package/dist/i18n/locales/ru/menu.json.js +1 -1
  120. package/dist/i18n/locales/ru/variables/panel.json.js +2 -0
  121. package/dist/i18n/locales/zh-cn/ai.json.js +3 -0
  122. package/dist/i18n/locales/zh-cn/cloud/portal.json.js +1 -1
  123. package/dist/i18n/locales/zh-cn/commands.json.js +1 -0
  124. package/dist/i18n/locales/zh-cn/comments.json.js +1 -0
  125. package/dist/i18n/locales/zh-cn/editor.json.js +2 -2
  126. package/dist/i18n/locales/zh-cn/menu.json.js +1 -1
  127. package/dist/i18n/locales/zh-cn/variables/panel.json.js +2 -0
  128. package/dist/i18n/messages/ai.d.ts +6 -0
  129. package/dist/i18n/messages/ai.d.ts.map +1 -1
  130. package/dist/i18n/messages/ai.js +4 -0
  131. package/dist/i18n/messages/ai.js.map +1 -1
  132. package/dist/i18n/messages/cloud/portal.d.ts +1 -1
  133. package/dist/i18n/messages/cloud/portal.js +1 -1
  134. package/dist/i18n/messages/cloud/portal.js.map +1 -1
  135. package/dist/i18n/messages/commands.d.ts +1 -0
  136. package/dist/i18n/messages/commands.d.ts.map +1 -1
  137. package/dist/i18n/messages/commands.js +1 -0
  138. package/dist/i18n/messages/commands.js.map +1 -1
  139. package/dist/i18n/messages/comments.d.ts +1 -0
  140. package/dist/i18n/messages/comments.d.ts.map +1 -1
  141. package/dist/i18n/messages/comments.js +1 -0
  142. package/dist/i18n/messages/comments.js.map +1 -1
  143. package/dist/i18n/messages/editor.d.ts +1 -1
  144. package/dist/i18n/messages/editor.js +1 -1
  145. package/dist/i18n/messages/editor.js.map +1 -1
  146. package/dist/i18n/messages/menu.d.ts +1 -1
  147. package/dist/i18n/messages/menu.js +1 -1
  148. package/dist/i18n/messages/menu.js.map +1 -1
  149. package/dist/i18n/messages/panels.d.ts +1 -1
  150. package/dist/i18n/messages/panels.js +1 -1
  151. package/dist/i18n/messages/panels.js.map +1 -1
  152. package/dist/i18n/messages/variables/panel.d.ts +2 -0
  153. package/dist/i18n/messages/variables/panel.d.ts.map +1 -1
  154. package/dist/i18n/messages/variables/panel.js +2 -0
  155. package/dist/i18n/messages/variables/panel.js.map +1 -1
  156. package/dist/i18n/messages.d.ts +13 -4
  157. package/dist/i18n/useI18n.d.ts +48 -14
  158. package/dist/i18n/useI18n.d.ts.map +1 -1
  159. package/dist/primitives/ColorPicker/ColorPickerRoot.vue.d.ts +12 -2
  160. package/dist/primitives/ColorPicker/ColorPickerRoot.vue.d.ts.map +1 -1
  161. package/dist/primitives/ColorPicker/ColorPickerRoot.vue.js +39 -10
  162. package/dist/primitives/ColorPicker/ColorPickerRoot.vue.js.map +1 -1
  163. package/dist/primitives/ColorPicker/gesture.d.ts +40 -0
  164. package/dist/primitives/ColorPicker/gesture.d.ts.map +1 -0
  165. package/dist/primitives/ColorPicker/gesture.js +120 -0
  166. package/dist/primitives/ColorPicker/gesture.js.map +1 -0
  167. package/dist/primitives/ColorPicker/index.d.ts +2 -1
  168. package/dist/primitives/ColorPicker/index.js +2 -1
  169. package/dist/primitives/Fill/FillSwatch.vue.d.ts.map +1 -1
  170. package/dist/primitives/Fill/FillSwatch.vue.js +6 -1
  171. package/dist/primitives/Fill/FillSwatch.vue.js.map +1 -1
  172. package/dist/primitives/Fill/types.d.ts +5 -0
  173. package/dist/primitives/Fill/types.d.ts.map +1 -1
  174. package/dist/primitives/Fill/useFill.d.ts.map +1 -1
  175. package/dist/primitives/Fill/useFill.js +15 -7
  176. package/dist/primitives/Fill/useFill.js.map +1 -1
  177. package/dist/primitives/FontPicker/FontPickerRoot.vue.d.ts +1 -0
  178. package/dist/primitives/FontPicker/FontPickerRoot.vue.d.ts.map +1 -1
  179. package/dist/primitives/FontPicker/FontPickerRoot.vue.js +7 -2
  180. package/dist/primitives/FontPicker/FontPickerRoot.vue.js.map +1 -1
  181. package/dist/primitives/LayerTree/LayerTreeRoot.vue.d.ts +2 -0
  182. package/dist/primitives/LayerTree/LayerTreeRoot.vue.d.ts.map +1 -1
  183. package/dist/primitives/LayerTree/LayerTreeRoot.vue.js +14 -3
  184. package/dist/primitives/LayerTree/LayerTreeRoot.vue.js.map +1 -1
  185. package/dist/primitives/LayerTree/model.js +1 -1
  186. package/dist/primitives/LayoutControls/LayoutControlsRoot.vue.d.ts.map +1 -1
  187. package/dist/primitives/LayoutControls/LayoutControlsRoot.vue.js +1 -0
  188. package/dist/primitives/LayoutControls/LayoutControlsRoot.vue.js.map +1 -1
  189. package/dist/primitives/NumberField/NumberFieldRoot.vue.d.ts +2 -2
  190. package/dist/primitives/NumberField/NumberFieldRoot.vue.d.ts.map +1 -1
  191. package/dist/primitives/NumberField/NumberFieldRoot.vue.js +3 -2
  192. package/dist/primitives/NumberField/NumberFieldRoot.vue.js.map +1 -1
  193. package/dist/primitives/NumberField/types.d.ts +5 -0
  194. package/dist/primitives/NumberField/types.d.ts.map +1 -1
  195. package/dist/primitives/PageList/PageListRoot.vue.d.ts +3 -3
  196. package/dist/primitives/PageList/PageListRoot.vue.d.ts.map +1 -1
  197. package/dist/primitives/PageList/PageListRoot.vue.js +3 -2
  198. package/dist/primitives/PageList/PageListRoot.vue.js.map +1 -1
  199. package/dist/primitives/PageList/usePageList.d.ts +1 -1
  200. package/dist/primitives/PageList/usePageList.d.ts.map +1 -1
  201. package/dist/primitives/PositionControls/PositionControlsRoot.vue.d.ts +1 -0
  202. package/dist/primitives/PositionControls/PositionControlsRoot.vue.d.ts.map +1 -1
  203. package/dist/primitives/PositionControls/PositionControlsRoot.vue.js +11 -13
  204. package/dist/primitives/PositionControls/PositionControlsRoot.vue.js.map +1 -1
  205. package/dist/primitives/PropertyList/PropertyListRoot.vue.d.ts.map +1 -1
  206. package/dist/primitives/PropertyList/PropertyListRoot.vue.js +10 -1
  207. package/dist/primitives/PropertyList/PropertyListRoot.vue.js.map +1 -1
  208. package/dist/primitives/PropertyList/index.d.ts +2 -2
  209. package/dist/primitives/PropertyList/types.d.ts +14 -2
  210. package/dist/primitives/PropertyList/types.d.ts.map +1 -1
  211. package/dist/shared/input/drop-target.js +2 -1
  212. package/dist/shared/input/drop-target.js.map +1 -1
  213. package/dist/shared/input/duplicate-drag.js.map +1 -1
  214. package/dist/shared/input/move/drag.js +25 -4
  215. package/dist/shared/input/move/drag.js.map +1 -1
  216. package/dist/shared/input/resize/start.js +2 -1
  217. package/dist/shared/input/resize/start.js.map +1 -1
  218. package/dist/shared/input/select/move.js +8 -3
  219. package/dist/shared/input/select/move.js.map +1 -1
  220. package/dist/shared/input/select.js +22 -12
  221. package/dist/shared/input/select.js.map +1 -1
  222. package/dist/shared/input/types.d.ts +2 -0
  223. package/dist/shared/input/types.d.ts.map +1 -1
  224. package/dist/shared/input/types.js.map +1 -1
  225. package/dist/variables/use.d.ts.map +1 -1
  226. package/dist/variables/use.js +2 -1
  227. package/dist/variables/use.js.map +1 -1
  228. package/package.json +4 -4
@@ -351,6 +351,8 @@ declare const useAIMessages: () => Ref<{
351
351
  readonly toolUndone: "Undone";
352
352
  readonly toolRunning: "Running…";
353
353
  readonly toolError: "Error";
354
+ readonly toolErrorShowAll: "Show all";
355
+ readonly toolErrorShowLess: "Show less";
354
356
  readonly toolInput: "Input";
355
357
  readonly toolOutput: "Output";
356
358
  readonly toolDetails: "Tool call details";
@@ -433,6 +435,9 @@ declare const useAIMessages: () => Ref<{
433
435
  readonly editSummaryChanged: import("@nanostores/i18n").TranslationFunction<[{
434
436
  changed: string | number;
435
437
  } & object], string>;
438
+ readonly editSummaryIn: import("@nanostores/i18n").TranslationFunction<[{
439
+ document: string | number;
440
+ } & object], string>;
436
441
  readonly editSummaryShow: "Show";
437
442
  readonly changePreviewSmall: "Small (240 px)";
438
443
  readonly changePreviewMedium: "Medium (480 px)";
@@ -1079,6 +1084,8 @@ declare const useAIMessages: () => Ref<{
1079
1084
  readonly toolUndone: "Undone";
1080
1085
  readonly toolRunning: "Running…";
1081
1086
  readonly toolError: "Error";
1087
+ readonly toolErrorShowAll: "Show all";
1088
+ readonly toolErrorShowLess: "Show less";
1082
1089
  readonly toolInput: "Input";
1083
1090
  readonly toolOutput: "Output";
1084
1091
  readonly toolDetails: "Tool call details";
@@ -1161,6 +1168,9 @@ declare const useAIMessages: () => Ref<{
1161
1168
  readonly editSummaryChanged: import("@nanostores/i18n").TranslationFunction<[{
1162
1169
  changed: string | number;
1163
1170
  } & object], string>;
1171
+ readonly editSummaryIn: import("@nanostores/i18n").TranslationFunction<[{
1172
+ document: string | number;
1173
+ } & object], string>;
1164
1174
  readonly editSummaryShow: "Show";
1165
1175
  readonly changePreviewSmall: "Small (240 px)";
1166
1176
  readonly changePreviewMedium: "Medium (480 px)";
@@ -2517,6 +2527,7 @@ declare const useCommandMessages: () => Ref<{
2517
2527
  readonly detachInstance: "Detach instance";
2518
2528
  readonly detachIcon: "Detach icon";
2519
2529
  readonly goToMainComponent: "Go to main component";
2530
+ readonly resetAllChanges: "Reset all changes";
2520
2531
  readonly addAutoLayout: "Add auto layout";
2521
2532
  readonly useAsMask: "Use as mask";
2522
2533
  readonly removeMask: "Remove mask";
@@ -2619,6 +2630,7 @@ declare const useCommandMessages: () => Ref<{
2619
2630
  readonly detachInstance: "Detach instance";
2620
2631
  readonly detachIcon: "Detach icon";
2621
2632
  readonly goToMainComponent: "Go to main component";
2633
+ readonly resetAllChanges: "Reset all changes";
2622
2634
  readonly addAutoLayout: "Add auto layout";
2623
2635
  readonly useAsMask: "Use as mask";
2624
2636
  readonly removeMask: "Remove mask";
@@ -2729,6 +2741,7 @@ declare const useCommentMessages: () => Ref<{
2729
2741
  readonly newestFirst: "Newest first";
2730
2742
  readonly oldestFirst: "Oldest first";
2731
2743
  readonly empty: "No comments yet. Click the canvas to leave one.";
2744
+ readonly allResolved: "All comments are resolved. Show resolved comments to read them.";
2732
2745
  readonly noMatches: "No comments match.";
2733
2746
  readonly replyCount: import("@nanostores/i18n").TranslationFunction<[{
2734
2747
  count: string | number;
@@ -2761,6 +2774,7 @@ declare const useCommentMessages: () => Ref<{
2761
2774
  readonly newestFirst: "Newest first";
2762
2775
  readonly oldestFirst: "Oldest first";
2763
2776
  readonly empty: "No comments yet. Click the canvas to leave one.";
2777
+ readonly allResolved: "All comments are resolved. Show resolved comments to read them.";
2764
2778
  readonly noMatches: "No comments match.";
2765
2779
  readonly replyCount: import("@nanostores/i18n").TranslationFunction<[{
2766
2780
  count: string | number;
@@ -3351,6 +3365,7 @@ declare const useEditorMessages: () => Ref<{
3351
3365
  tool: string | number;
3352
3366
  } & object], string>;
3353
3367
  readonly removeGradientStop: "Remove gradient stop";
3368
+ readonly selectGradientStop: "Select gradient stop";
3354
3369
  readonly cornerRadius: "Radius";
3355
3370
  readonly pointCount: "Count";
3356
3371
  readonly starRatio: "Ratio";
@@ -3370,7 +3385,6 @@ declare const useEditorMessages: () => Ref<{
3370
3385
  shortcut: string | number;
3371
3386
  } & object], string>;
3372
3387
  readonly toggleLayersPanel: "Layers panel";
3373
- readonly togglePropertiesPanel: "Properties panel";
3374
3388
  readonly goodies: "Goodies";
3375
3389
  readonly goodiesDescription: "Styles, design systems, scripts and shaders to start from.";
3376
3390
  readonly goodiesFeatured: "Featured";
@@ -3419,6 +3433,7 @@ declare const useEditorMessages: () => Ref<{
3419
3433
  tool: string | number;
3420
3434
  } & object], string>;
3421
3435
  readonly removeGradientStop: "Remove gradient stop";
3436
+ readonly selectGradientStop: "Select gradient stop";
3422
3437
  readonly cornerRadius: "Radius";
3423
3438
  readonly pointCount: "Count";
3424
3439
  readonly starRatio: "Ratio";
@@ -3438,7 +3453,6 @@ declare const useEditorMessages: () => Ref<{
3438
3453
  shortcut: string | number;
3439
3454
  } & object], string>;
3440
3455
  readonly toggleLayersPanel: "Layers panel";
3441
- readonly togglePropertiesPanel: "Properties panel";
3442
3456
  readonly goodies: "Goodies";
3443
3457
  readonly goodiesDescription: "Styles, design systems, scripts and shaders to start from.";
3444
3458
  readonly goodiesFeatured: "Featured";
@@ -4163,7 +4177,7 @@ declare const useMenuMessages: () => Ref<{
4163
4177
  readonly nextToolbarCategory: "Next toolbar category";
4164
4178
  readonly removeGuide: "Remove guide";
4165
4179
  readonly layersPanel: "Layers panel";
4166
- readonly propertiesPanel: "Properties panel";
4180
+ readonly designPanel: "Design panel";
4167
4181
  readonly keyboardShortcuts: "Keyboard shortcuts";
4168
4182
  readonly removeAutoLayout: "Remove auto layout";
4169
4183
  readonly shaderMode: "Shader Mode";
@@ -4273,7 +4287,7 @@ declare const useMenuMessages: () => Ref<{
4273
4287
  readonly nextToolbarCategory: "Next toolbar category";
4274
4288
  readonly removeGuide: "Remove guide";
4275
4289
  readonly layersPanel: "Layers panel";
4276
- readonly propertiesPanel: "Properties panel";
4290
+ readonly designPanel: "Design panel";
4277
4291
  readonly keyboardShortcuts: "Keyboard shortcuts";
4278
4292
  readonly removeAutoLayout: "Remove auto layout";
4279
4293
  readonly shaderMode: "Shader Mode";
@@ -5036,7 +5050,7 @@ declare const usePanelMessages: () => Ref<{
5036
5050
  } & {
5037
5051
  size: string | number;
5038
5052
  } & object], string>;
5039
- readonly searchFonts: "Search fonts...";
5053
+ readonly searchFonts: "Search fonts…";
5040
5054
  readonly noFontsFound: "No fonts found";
5041
5055
  readonly searchIcons: "Search icons...";
5042
5056
  readonly searchingIcons: "Searching…";
@@ -5856,7 +5870,7 @@ declare const usePanelMessages: () => Ref<{
5856
5870
  } & {
5857
5871
  size: string | number;
5858
5872
  } & object], string>;
5859
- readonly searchFonts: "Search fonts...";
5873
+ readonly searchFonts: "Search fonts…";
5860
5874
  readonly noFontsFound: "No fonts found";
5861
5875
  readonly searchIcons: "Search icons...";
5862
5876
  readonly searchingIcons: "Searching…";
@@ -7963,7 +7977,7 @@ declare const useCloudPortalMessages: () => Ref<{
7963
7977
  readonly deviceDescription: import("@nanostores/i18n").TranslationFunction<[{
7964
7978
  email: string | number;
7965
7979
  } & object], string>;
7966
- readonly deviceCheckCode: "Check that the app shows this code";
7980
+ readonly deviceEnterCode: "Enter the code the app shows";
7967
7981
  readonly deviceWarningTitle: "Only approve a sign-in you started";
7968
7982
  readonly deviceWarningDescription: "If you didn’t just sign in to Pairdraw on a computer, deny this request.";
7969
7983
  readonly approve: "Approve";
@@ -8490,7 +8504,7 @@ declare const useCloudPortalMessages: () => Ref<{
8490
8504
  readonly deviceDescription: import("@nanostores/i18n").TranslationFunction<[{
8491
8505
  email: string | number;
8492
8506
  } & object], string>;
8493
- readonly deviceCheckCode: "Check that the app shows this code";
8507
+ readonly deviceEnterCode: "Enter the code the app shows";
8494
8508
  readonly deviceWarningTitle: "Only approve a sign-in you started";
8495
8509
  readonly deviceWarningDescription: "If you didn’t just sign in to Pairdraw on a computer, deny this request.";
8496
8510
  readonly approve: "Approve";
@@ -9071,6 +9085,8 @@ declare const useVariableMessages: () => Ref<{
9071
9085
  } & {
9072
9086
  from: string | number;
9073
9087
  } & object], string>;
9088
+ readonly importMissingFilesHint: "Choose the folder these files sit in, so a resolver is read with all of them.";
9089
+ readonly importChooseFolder: "Choose folder";
9074
9090
  readonly importNothing: "These files hold no design tokens.";
9075
9091
  readonly importAction: "Import";
9076
9092
  readonly importUnsupportedCSS: import("@nanostores/i18n").TranslationFunction<[{
@@ -9282,6 +9298,8 @@ declare const useVariableMessages: () => Ref<{
9282
9298
  } & {
9283
9299
  from: string | number;
9284
9300
  } & object], string>;
9301
+ readonly importMissingFilesHint: "Choose the folder these files sit in, so a resolver is read with all of them.";
9302
+ readonly importChooseFolder: "Choose folder";
9285
9303
  readonly importNothing: "These files hold no design tokens.";
9286
9304
  readonly importAction: "Import";
9287
9305
  readonly importUnsupportedCSS: import("@nanostores/i18n").TranslationFunction<[{
@@ -9593,6 +9611,8 @@ declare function useI18n(): {
9593
9611
  readonly toolUndone: "Undone";
9594
9612
  readonly toolRunning: "Running…";
9595
9613
  readonly toolError: "Error";
9614
+ readonly toolErrorShowAll: "Show all";
9615
+ readonly toolErrorShowLess: "Show less";
9596
9616
  readonly toolInput: "Input";
9597
9617
  readonly toolOutput: "Output";
9598
9618
  readonly toolDetails: "Tool call details";
@@ -9675,6 +9695,9 @@ declare function useI18n(): {
9675
9695
  readonly editSummaryChanged: import("@nanostores/i18n").TranslationFunction<[{
9676
9696
  changed: string | number;
9677
9697
  } & object], string>;
9698
+ readonly editSummaryIn: import("@nanostores/i18n").TranslationFunction<[{
9699
+ document: string | number;
9700
+ } & object], string>;
9678
9701
  readonly editSummaryShow: "Show";
9679
9702
  readonly changePreviewSmall: "Small (240 px)";
9680
9703
  readonly changePreviewMedium: "Medium (480 px)";
@@ -10321,6 +10344,8 @@ declare function useI18n(): {
10321
10344
  readonly toolUndone: "Undone";
10322
10345
  readonly toolRunning: "Running…";
10323
10346
  readonly toolError: "Error";
10347
+ readonly toolErrorShowAll: "Show all";
10348
+ readonly toolErrorShowLess: "Show less";
10324
10349
  readonly toolInput: "Input";
10325
10350
  readonly toolOutput: "Output";
10326
10351
  readonly toolDetails: "Tool call details";
@@ -10403,6 +10428,9 @@ declare function useI18n(): {
10403
10428
  readonly editSummaryChanged: import("@nanostores/i18n").TranslationFunction<[{
10404
10429
  changed: string | number;
10405
10430
  } & object], string>;
10431
+ readonly editSummaryIn: import("@nanostores/i18n").TranslationFunction<[{
10432
+ document: string | number;
10433
+ } & object], string>;
10406
10434
  readonly editSummaryShow: "Show";
10407
10435
  readonly changePreviewSmall: "Small (240 px)";
10408
10436
  readonly changePreviewMedium: "Medium (480 px)";
@@ -11473,6 +11501,7 @@ declare function useI18n(): {
11473
11501
  readonly detachInstance: "Detach instance";
11474
11502
  readonly detachIcon: "Detach icon";
11475
11503
  readonly goToMainComponent: "Go to main component";
11504
+ readonly resetAllChanges: "Reset all changes";
11476
11505
  readonly addAutoLayout: "Add auto layout";
11477
11506
  readonly useAsMask: "Use as mask";
11478
11507
  readonly removeMask: "Remove mask";
@@ -11575,6 +11604,7 @@ declare function useI18n(): {
11575
11604
  readonly detachInstance: "Detach instance";
11576
11605
  readonly detachIcon: "Detach icon";
11577
11606
  readonly goToMainComponent: "Go to main component";
11607
+ readonly resetAllChanges: "Reset all changes";
11578
11608
  readonly addAutoLayout: "Add auto layout";
11579
11609
  readonly useAsMask: "Use as mask";
11580
11610
  readonly removeMask: "Remove mask";
@@ -11999,6 +12029,7 @@ declare function useI18n(): {
11999
12029
  tool: string | number;
12000
12030
  } & object], string>;
12001
12031
  readonly removeGradientStop: "Remove gradient stop";
12032
+ readonly selectGradientStop: "Select gradient stop";
12002
12033
  readonly cornerRadius: "Radius";
12003
12034
  readonly pointCount: "Count";
12004
12035
  readonly starRatio: "Ratio";
@@ -12018,7 +12049,6 @@ declare function useI18n(): {
12018
12049
  shortcut: string | number;
12019
12050
  } & object], string>;
12020
12051
  readonly toggleLayersPanel: "Layers panel";
12021
- readonly togglePropertiesPanel: "Properties panel";
12022
12052
  readonly goodies: "Goodies";
12023
12053
  readonly goodiesDescription: "Styles, design systems, scripts and shaders to start from.";
12024
12054
  readonly goodiesFeatured: "Featured";
@@ -12067,6 +12097,7 @@ declare function useI18n(): {
12067
12097
  tool: string | number;
12068
12098
  } & object], string>;
12069
12099
  readonly removeGradientStop: "Remove gradient stop";
12100
+ readonly selectGradientStop: "Select gradient stop";
12070
12101
  readonly cornerRadius: "Radius";
12071
12102
  readonly pointCount: "Count";
12072
12103
  readonly starRatio: "Ratio";
@@ -12086,7 +12117,6 @@ declare function useI18n(): {
12086
12117
  shortcut: string | number;
12087
12118
  } & object], string>;
12088
12119
  readonly toggleLayersPanel: "Layers panel";
12089
- readonly togglePropertiesPanel: "Properties panel";
12090
12120
  readonly goodies: "Goodies";
12091
12121
  readonly goodiesDescription: "Styles, design systems, scripts and shaders to start from.";
12092
12122
  readonly goodiesFeatured: "Featured";
@@ -12683,7 +12713,7 @@ declare function useI18n(): {
12683
12713
  readonly nextToolbarCategory: "Next toolbar category";
12684
12714
  readonly removeGuide: "Remove guide";
12685
12715
  readonly layersPanel: "Layers panel";
12686
- readonly propertiesPanel: "Properties panel";
12716
+ readonly designPanel: "Design panel";
12687
12717
  readonly keyboardShortcuts: "Keyboard shortcuts";
12688
12718
  readonly removeAutoLayout: "Remove auto layout";
12689
12719
  readonly shaderMode: "Shader Mode";
@@ -12793,7 +12823,7 @@ declare function useI18n(): {
12793
12823
  readonly nextToolbarCategory: "Next toolbar category";
12794
12824
  readonly removeGuide: "Remove guide";
12795
12825
  readonly layersPanel: "Layers panel";
12796
- readonly propertiesPanel: "Properties panel";
12826
+ readonly designPanel: "Design panel";
12797
12827
  readonly keyboardShortcuts: "Keyboard shortcuts";
12798
12828
  readonly removeAutoLayout: "Remove auto layout";
12799
12829
  readonly shaderMode: "Shader Mode";
@@ -13556,7 +13586,7 @@ declare function useI18n(): {
13556
13586
  } & {
13557
13587
  size: string | number;
13558
13588
  } & object], string>;
13559
- readonly searchFonts: "Search fonts...";
13589
+ readonly searchFonts: "Search fonts…";
13560
13590
  readonly noFontsFound: "No fonts found";
13561
13591
  readonly searchIcons: "Search icons...";
13562
13592
  readonly searchingIcons: "Searching…";
@@ -14376,7 +14406,7 @@ declare function useI18n(): {
14376
14406
  } & {
14377
14407
  size: string | number;
14378
14408
  } & object], string>;
14379
- readonly searchFonts: "Search fonts...";
14409
+ readonly searchFonts: "Search fonts…";
14380
14410
  readonly noFontsFound: "No fonts found";
14381
14411
  readonly searchIcons: "Search icons...";
14382
14412
  readonly searchingIcons: "Searching…";
@@ -15319,6 +15349,8 @@ declare function useI18n(): {
15319
15349
  } & {
15320
15350
  from: string | number;
15321
15351
  } & object], string>;
15352
+ readonly importMissingFilesHint: "Choose the folder these files sit in, so a resolver is read with all of them.";
15353
+ readonly importChooseFolder: "Choose folder";
15322
15354
  readonly importNothing: "These files hold no design tokens.";
15323
15355
  readonly importAction: "Import";
15324
15356
  readonly importUnsupportedCSS: import("@nanostores/i18n").TranslationFunction<[{
@@ -15530,6 +15562,8 @@ declare function useI18n(): {
15530
15562
  } & {
15531
15563
  from: string | number;
15532
15564
  } & object], string>;
15565
+ readonly importMissingFilesHint: "Choose the folder these files sit in, so a resolver is read with all of them.";
15566
+ readonly importChooseFolder: "Choose folder";
15533
15567
  readonly importNothing: "These files hold no design tokens.";
15534
15568
  readonly importAction: "Import";
15535
15569
  readonly importUnsupportedCSS: import("@nanostores/i18n").TranslationFunction<[{
@@ -1 +1 @@
1
- {"version":3,"file":"useI18n.d.ts","names":[],"sources":["../../src/i18n/useI18n.ts"],"mappings":";;;;iBA8CgB,iBAAiB,sBAAsB,OAAO,UAAU,gBACzC,IAAI,WAAW;cAGjC,wBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAChB,qBAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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./gesture.js";
1
2
  import { Color } from "@pairdraw/scene-graph/primitives";
2
3
  //#region src/primitives/ColorPicker/ColorPickerRoot.vue.d.ts
3
4
  interface ColorPickerUI {
@@ -8,13 +9,20 @@ type __VLS_Props = {
8
9
  color: Color;
9
10
  label?: string;
10
11
  ui?: ColorPickerUI;
12
+ /**
13
+ * For a colour with no undo history, such as a preference: Escape closing the picker puts back
14
+ * the colour it opened with. Otherwise Escape keeps the edit, as Figma's picker does.
15
+ */
16
+ escapeReverts?: boolean;
11
17
  };
18
+ declare function update(next: Color): void;
12
19
  declare var __VLS_16: {
13
20
  style: {
14
21
  background: string;
15
22
  };
16
23
  }, __VLS_32: {
17
24
  color: Color;
25
+ update: typeof update;
18
26
  };
19
27
  type __VLS_Slots = {} & {
20
28
  trigger?: (props: typeof __VLS_16) => any;
@@ -22,13 +30,15 @@ type __VLS_Slots = {} & {
22
30
  default?: (props: typeof __VLS_32) => any;
23
31
  };
24
32
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
25
- cancel: () => any;
33
+ cancel: (cause: PickerCancelCause) => any;
26
34
  update: (color: Color) => any;
27
35
  openChange: (open: boolean) => any;
36
+ commit: () => any;
28
37
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
29
- onCancel?: (() => any) | undefined;
38
+ onCancel?: ((cause: PickerCancelCause) => any) | undefined;
30
39
  onUpdate?: ((color: Color) => any) | undefined;
31
40
  onOpenChange?: ((open: boolean) => any) | undefined;
41
+ onCommit?: (() => any) | undefined;
32
42
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
33
43
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
34
44
  declare const _default: typeof __VLS_export;
@@ -1 +1 @@
1
- {"version":3,"file":"ColorPickerRoot.vue.d.ts","names":[],"sources":["../../../src/primitives/ColorPicker/ColorPickerRoot.vue"],"mappings":";;UA+EiB;EACf;EACA;;KAGG;EACH,OAAO;EACP;EACA,KAAK;;YAsJH;;;;GAAqB;SAAA;;KACpB;EACD,WAAW,cAAc;;EACzB,WAAW,cAAc;;cAKvB,0BAAU,gBAAA,2CAAA,qCAAA;;;;;;;;0CAGd;cACI,cAAqB,uBAAuB,YAAY;cACzC,iBAAO;KACvB,gBAAgB,GAAG,KAAK;;IAE3B,QAAQ"}
1
+ {"version":3,"file":"ColorPickerRoot.vue.d.ts","names":[],"sources":["../../../src/primitives/ColorPicker/ColorPickerRoot.vue"],"mappings":";;;UAyHiB;EACf;EACA;;KAGG;EACH,OAAO;EACP;EACA,KAAK;;;;;EAKL;;iBAkDO,OAAO,MAAM;YAmIlB;;;;GAAqB;SAAA;iBAAA;;KACpB;EACD,WAAW,cAAc;;EACzB,WAAW,cAAc;;cAKvB,0BAAU,gBAAA,2CAAA,qCAAA;;;;;;;;;;0CAGd;cACI,cAAqB,uBAAuB,YAAY;cACzC,iBAAO;KACvB,gBAAgB,GAAG,KAAK;;IAE3B,QAAQ"}
@@ -1,4 +1,5 @@
1
1
  import { useRetainedPopup } from "../../lifecycle/retention/popup.js";
2
+ import { usePickerGesture } from "./gesture.js";
2
3
  import { computed, createBlock, createCommentVNode, createElementVNode, createVNode, defineComponent, isRef, normalizeClass, normalizeStyle, openBlock, renderSlot, unref, withCtx } from "vue";
3
4
  import { PopoverContent, PopoverPortal, PopoverRoot, PopoverTrigger } from "reka-ui";
4
5
  import { colorToCSS } from "@pairdraw/scene-graph/color";
@@ -9,28 +10,53 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
9
10
  props: {
10
11
  color: {},
11
12
  label: { default: "Edit color" },
12
- ui: {}
13
+ ui: {},
14
+ escapeReverts: {
15
+ type: Boolean,
16
+ default: false
17
+ }
13
18
  },
14
19
  emits: [
15
20
  "update",
16
21
  "openChange",
22
+ "commit",
17
23
  "cancel"
18
24
  ],
19
25
  setup(__props, { emit: __emit }) {
20
26
  const emit = __emit;
21
27
  const swatchBg = computed(() => colorToCSS(__props.color));
22
- const { open: popupOpen, portalActive } = useRetainedPopup(void 0, () => {
23
- emit("cancel");
24
- emit("openChange", false);
28
+ let pressColor = { ...__props.color };
29
+ const gesture = usePickerGesture({
30
+ open: () => popupOpen.value,
31
+ beforeChange: () => {
32
+ pressColor = { ...__props.color };
33
+ },
34
+ commit: () => emit("commit"),
35
+ cancel: () => {
36
+ emit("update", pressColor);
37
+ emit("cancel", "press");
38
+ }
25
39
  });
26
- function cancelFromEscape(event) {
27
- event.stopPropagation();
28
- emit("cancel");
40
+ const { open: popupOpen, portalActive } = useRetainedPopup(void 0, () => onOpenChange(false));
41
+ let openColor = { ...__props.color };
42
+ /** A press still held when the picker closes is put back, whichever way it closes. */
43
+ function onOpenChange(open) {
44
+ if (open) openColor = { ...__props.color };
45
+ if (!open) gesture.abort();
46
+ emit("openChange", open);
47
+ }
48
+ function update(next) {
49
+ gesture.change(() => emit("update", next));
50
+ }
51
+ function onEscapeKeyDown() {
52
+ if (!__props.escapeReverts) return;
53
+ emit("update", openColor);
54
+ emit("cancel", "escape");
29
55
  }
30
56
  return (_ctx, _cache) => {
31
57
  return openBlock(), createBlock(unref(PopoverRoot), {
32
58
  open: unref(popupOpen),
33
- "onUpdate:open": [_cache[0] || (_cache[0] = ($event) => isRef(popupOpen) ? popupOpen.value = $event : null), _cache[1] || (_cache[1] = ($event) => emit("openChange", $event))]
59
+ "onUpdate:open": [_cache[0] || (_cache[0] = ($event) => isRef(popupOpen) ? popupOpen.value = $event : null), onOpenChange]
34
60
  }, {
35
61
  default: withCtx(() => [createVNode(unref(PopoverTrigger), { "as-child": "" }, {
36
62
  default: withCtx(() => [renderSlot(_ctx.$slots, "trigger", { style: normalizeStyle({ background: swatchBg.value }) }, () => [createElementVNode("button", {
@@ -46,9 +72,12 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
46
72
  "side-offset": 4,
47
73
  side: "left",
48
74
  "data-picker-content": "",
49
- onEscapeKeyDown: cancelFromEscape
75
+ onEscapeKeyDown
50
76
  }, {
51
- default: withCtx(() => [renderSlot(_ctx.$slots, "default", { color: __props.color })]),
77
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default", {
78
+ color: __props.color,
79
+ update
80
+ })]),
52
81
  _: 3
53
82
  }, 8, ["class"])]),
54
83
  _: 3
@@ -1 +1 @@
1
- {"version":3,"file":"ColorPickerRoot.vue.js","names":[],"sources":["../../../src/primitives/ColorPicker/ColorPickerRoot.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { PopoverContent, PopoverPortal, PopoverRoot, PopoverTrigger } from 'reka-ui'\nimport { computed } from 'vue'\n\nimport { colorToCSS } from '@pairdraw/scene-graph/color'\nimport type { Color } from '@pairdraw/scene-graph/primitives'\n\nimport { useRetainedPopup } from '#vue/lifecycle/retention/popup'\n\nexport interface ColorPickerUI {\n content?: string\n swatch?: string\n}\n\nconst {\n color,\n label = 'Edit color',\n ui\n} = defineProps<{\n color: Color\n label?: string\n ui?: ColorPickerUI\n}>()\n\nconst emit = defineEmits<{\n update: [color: Color]\n openChange: [open: boolean]\n cancel: []\n}>()\n\nconst swatchBg = computed(() => colorToCSS(color))\nconst { open: popupOpen, portalActive } = useRetainedPopup(undefined, () => {\n emit('cancel')\n emit('openChange', false)\n})\n\nfunction cancelFromEscape(event: KeyboardEvent) {\n event.stopPropagation()\n emit('cancel')\n}\n</script>\n\n<template>\n <PopoverRoot v-model:open=\"popupOpen\" @update:open=\"emit('openChange', $event)\">\n <PopoverTrigger as-child>\n <slot name=\"trigger\" :style=\"{ background: swatchBg }\">\n <button\n type=\"button\"\n :aria-label=\"label\"\n :class=\"ui?.swatch\"\n :style=\"{ background: swatchBg }\"\n />\n </slot>\n </PopoverTrigger>\n\n <PopoverPortal v-if=\"portalActive\">\n <PopoverContent\n :class=\"ui?.content\"\n :side-offset=\"4\"\n side=\"left\"\n data-picker-content\n @escape-key-down=\"cancelFromEscape\"\n >\n <slot :color=\"color\" />\n </Popover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js","names":[],"sources":["../../../src/primitives/ColorPicker/ColorPickerRoot.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { PopoverContent, PopoverPortal, PopoverRoot, PopoverTrigger } from 'reka-ui'\nimport { computed } from 'vue'\n\nimport { colorToCSS } from '@pairdraw/scene-graph/color'\nimport type { Color } from '@pairdraw/scene-graph/primitives'\n\nimport { useRetainedPopup } from '#vue/lifecycle/retention/popup'\n\nimport { usePickerGesture, type PickerCancelCause } from './gesture'\n\nexport interface ColorPickerUI {\n content?: string\n swatch?: string\n}\n\nconst {\n color,\n label = 'Edit color',\n ui,\n escapeReverts = false\n} = defineProps<{\n color: Color\n label?: string\n ui?: ColorPickerUI\n /**\n * For a colour with no undo history, such as a preference: Escape closing the picker puts back\n * the colour it opened with. Otherwise Escape keeps the edit, as Figma's picker does.\n */\n escapeReverts?: boolean\n}>()\n\nconst emit = defineEmits<{\n update: [color: Color]\n openChange: [open: boolean]\n /** Ends the edit made so far as one undo step: a press's release, or a change with none held. */\n commit: []\n /**\n * `press`: Escape during a press that changed the colour, or the picker closing during one; the\n * colour from before the press has just come back through `update`. `escape`: with\n * `escapeReverts`, Escape closed the picker after the colour it opened with came back.\n */\n cancel: [cause: PickerCancelCause]\n}>()\n\nconst swatchBg = computed(() => colorToCSS(color))\nlet pressColor: Color = { ...color }\nconst gesture = usePickerGesture({\n open: () => popupOpen.value,\n // The colour the press found when it first changed it, so a change from elsewhere since the\n // press began is not put back.\n beforeChange: () => {\n pressColor = { ...color }\n },\n commit: () => emit('commit'),\n cancel: () => {\n emit('update', pressColor)\n emit('cancel', 'press')\n }\n})\nconst { open: popupOpen, portalActive } = useRetainedPopup(undefined, () => onOpenChange(false))\n\nlet openColor: Color = { ...color }\n\n/** A press still held when the picker closes is put back, whichever way it closes. */\nfunction onOpenChange(open: boolean) {\n if (open) openColor = { ...color }\n if (!open) gesture.abort()\n emit('openChange', open)\n}\n\nfunction update(next: Color) {\n gesture.change(() => emit('update', next))\n}\n\nfunction onEscapeKeyDown() {\n if (!escapeReverts) return\n emit('update', openColor)\n emit('cancel', 'escape')\n}\n</script>\n\n<template>\n <PopoverRoot v-model:open=\"popupOpen\" @update:open=\"onOpenChange\">\n <PopoverTrigger as-child>\n <slot name=\"trigger\" :style=\"{ background: swatchBg }\">\n <button\n type=\"button\"\n :aria-label=\"label\"\n :class=\"ui?.swatch\"\n :style=\"{ background: swatchBg }\"\n />\n </slot>\n </PopoverTrigger>\n\n <PopoverPortal v-if=\"portalActive\">\n <PopoverContent\n :class=\"ui?.content\"\n :side-offset=\"4\"\n side=\"left\"\n data-picker-content\n @escape-key-down=\"onEscapeKeyDown\"\n >\n <slot :color=\"color\" :update=\"update\" />\n </PopoverContent>\n </PopoverPortal>\n </PopoverRoot>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;EAgCA,MAAM,OAAO;EAab,MAAM,WAAW,eAAe,WAAW,QAAA,KAAK,CAAC;EACjD,IAAI,aAAoB,EAAE,GAAG,QAAA,MAAM;EACnC,MAAM,UAAU,iBAAiB;GAC/B,YAAY,UAAU;GAGtB,oBAAoB;IAClB,aAAa,EAAE,GAAG,QAAA,MAAM;GAC1B;GACA,cAAc,KAAK,QAAQ;GAC3B,cAAc;IACZ,KAAK,UAAU,UAAU;IACzB,KAAK,UAAU,OAAO;GACxB;EACF,CAAC;EACD,MAAM,EAAE,MAAM,WAAW,iBAAiB,iBAAiB,KAAA,SAAiB,aAAa,KAAK,CAAC;EAE/F,IAAI,YAAmB,EAAE,GAAG,QAAA,MAAM;;EAGlC,SAAS,aAAa,MAAe;GACnC,IAAI,MAAM,YAAY,EAAE,GAAG,QAAA,MAAM;GACjC,IAAI,CAAC,MAAM,QAAQ,MAAM;GACzB,KAAK,cAAc,IAAI;EACzB;EAEA,SAAS,OAAO,MAAa;GAC3B,QAAQ,aAAa,KAAK,UAAU,IAAI,CAAC;EAC3C;EAEA,SAAS,kBAAkB;GACzB,IAAI,CAAC,QAAA,eAAe;GACpB,KAAK,UAAU,SAAS;GACxB,KAAK,UAAU,QAAQ;EACzB;;GAIE,OAAA,UAAA,GAAA,YAuBc,MAAA,WAAA,GAAA;IAvBO,MAAM,MAAA,SAAA;IAAA,iBAAA,CAAA,OAAA,OAAA,OAAA,MAAA,WAAA,MAAA,SAAA,IAAA,UAAS,QAAA,SAAA,OAAgB,YAAA;;IAUjC,SAAA,cAAA,CATjB,YASiB,MAAA,cAAA,GAAA,EATD,YAAA,GAAQ,GAAA;KAQf,SAAA,cAAA,CAPP,WAOO,KAAA,QAAA,WAAA,EAPe,OAAK,eAAA,EAAA,YAAgB,SAAA,MAAQ,CAAA,EAAA,SAO5C,CANL,mBAKE,UAAA;MAJA,MAAK;MACJ,cAAY,QAAA;MACZ,OAAK,eAAE,QAAA,IAAI,MAAM;MACjB,OAAK,eAAA,EAAA,YAAgB,SAAA,MAAQ,CAAA;;;IAKf,CAAA,GAAA,MAAA,YAAA,KAAA,UAAA,GAArB,YAUgB,MAAA,aAAA,GAAA,EAAA,KAAA,EAAA,GAAA;KADG,SAAA,cAAA,CARjB,YAQiB,MAAA,cAAA,GAAA;MAPd,OAAK,eAAE,QAAA,IAAI,OAAO;MAClB,eAAa;MACd,MAAK;MACL,uBAAA;MACkB;;MAEsB,SAAA,cAAA,CAAxC,WAAwC,KAAA,QAAA,WAAA;OAAjC,OAAO,QAAA;OAAgB"}
@@ -0,0 +1,40 @@
1
+ //#region src/primitives/ColorPicker/gesture.d.ts
2
+ interface PickerGestureOptions {
3
+ /** Whether the picker is open; only then does a press inside it start a step. */
4
+ open: () => boolean;
5
+ /** Ends the edit made so far as one undo step. */
6
+ commit: () => void;
7
+ /** Puts back what the press being held has changed. */
8
+ cancel: () => void;
9
+ /** A held press is about to make its first change, such as the moment to note what it changes. */
10
+ beforeChange?: () => void;
11
+ }
12
+ /**
13
+ * Why a picker reports `cancel`: `press` when Escape, or the picker closing, put back a press's
14
+ * change; `escape` when Escape closed a picker that puts back the colour it opened with.
15
+ */
16
+ type PickerCancelCause = 'press' | 'escape';
17
+ /**
18
+ * Groups a picker's changes into undo steps as Figma desktop 126 does. A press inside the picker
19
+ * and everything it changes until the release is one step, such as a drag over the colour area;
20
+ * a change made with no press held is a step of its own, such as a tab's click, a typed value, or
21
+ * a chosen image. A press counts in the picker or in one opened from it, such as a shader colour's.
22
+ * Escape while a press that changed something is held puts that back, leaves the picker open, and
23
+ * ends the drag: the control holding the pointer loses it, so it stops following until the
24
+ * release, and anything it still reports is dropped.
25
+ */
26
+ declare function usePickerGesture({ open, commit, cancel, beforeChange }: PickerGestureOptions): {
27
+ /** Applies a change, unless Escape put its press back; with no press held it is a step. */
28
+ change(apply: () => void): void;
29
+ /**
30
+ * Applies a change that is a step of its own, such as an image that arrives once its file is
31
+ * read. While a press is held, even one Escape put back, it waits for the press to end, so it
32
+ * neither splits that step nor survives being put back with it, and steps keep their order.
33
+ */
34
+ step(apply: () => void): void;
35
+ /** For the picker closing while a press is held, such as when it loses focus: drops it. */
36
+ abort(): void;
37
+ };
38
+ //#endregion
39
+ export { PickerCancelCause, PickerGestureOptions, usePickerGesture };
40
+ //# sourceMappingURL=gesture.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gesture.d.ts","names":[],"sources":["../../../src/primitives/ColorPicker/gesture.ts"],"mappings":";UAEiB;;EAEf;;EAEA;;EAEA;;EAEA;;;;;;KAOU;;;;;;;;;;iBAcI,mBAAmB,MAAM,QAAQ,QAAQ,gBAAgB;;EA+FvD,OAAA;;;;;;EAYF,KAAA"}