@alpaca-editor/core 1.0.4170 → 1.0.4173

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 (213) hide show
  1. package/dist/agents-view/AgentsView.d.ts +5 -0
  2. package/dist/agents-view/AgentsView.js +213 -0
  3. package/dist/agents-view/AgentsView.js.map +1 -0
  4. package/dist/components/ui/context-menu.js +51 -7
  5. package/dist/components/ui/context-menu.js.map +1 -1
  6. package/dist/config/config.d.ts +1 -2
  7. package/dist/config/config.js +103 -8
  8. package/dist/config/config.js.map +1 -1
  9. package/dist/config/types.d.ts +1 -1
  10. package/dist/editor/ConfirmationDialog.js +2 -1
  11. package/dist/editor/ConfirmationDialog.js.map +1 -1
  12. package/dist/editor/ContentTree.d.ts +2 -1
  13. package/dist/editor/ContentTree.js +18 -3
  14. package/dist/editor/ContentTree.js.map +1 -1
  15. package/dist/editor/ContextMenu.js +1 -1
  16. package/dist/editor/ContextMenu.js.map +1 -1
  17. package/dist/editor/FieldList.js +7 -3
  18. package/dist/editor/FieldList.js.map +1 -1
  19. package/dist/editor/FieldListField.d.ts +3 -2
  20. package/dist/editor/FieldListField.js +4 -4
  21. package/dist/editor/FieldListField.js.map +1 -1
  22. package/dist/editor/FieldListFieldWithFallbacks.d.ts +2 -1
  23. package/dist/editor/FieldListFieldWithFallbacks.js +5 -2
  24. package/dist/editor/FieldListFieldWithFallbacks.js.map +1 -1
  25. package/dist/editor/ItemInfo.js +8 -2
  26. package/dist/editor/ItemInfo.js.map +1 -1
  27. package/dist/editor/MainLayout.js +1 -1
  28. package/dist/editor/PictureEditor.js +2 -4
  29. package/dist/editor/PictureEditor.js.map +1 -1
  30. package/dist/editor/QuickItemSwitcher.d.ts +9 -0
  31. package/dist/editor/QuickItemSwitcher.js +56 -0
  32. package/dist/editor/QuickItemSwitcher.js.map +1 -0
  33. package/dist/editor/ai/AgentCostDisplay.js +4 -4
  34. package/dist/editor/ai/AgentCostDisplay.js.map +1 -1
  35. package/dist/editor/ai/AgentProfilesOverview.d.ts +9 -0
  36. package/dist/editor/ai/AgentProfilesOverview.js +16 -0
  37. package/dist/editor/ai/AgentProfilesOverview.js.map +1 -0
  38. package/dist/editor/ai/AgentTerminal.d.ts +2 -1
  39. package/dist/editor/ai/AgentTerminal.js +1051 -557
  40. package/dist/editor/ai/AgentTerminal.js.map +1 -1
  41. package/dist/editor/ai/Agents.js +108 -31
  42. package/dist/editor/ai/Agents.js.map +1 -1
  43. package/dist/editor/ai/AiResponseMessage.d.ts +2 -1
  44. package/dist/editor/ai/AiResponseMessage.js +4 -2
  45. package/dist/editor/ai/AiResponseMessage.js.map +1 -1
  46. package/dist/editor/ai/ContextInfoBar.js +17 -17
  47. package/dist/editor/ai/ToolCallDisplay.js +4 -2
  48. package/dist/editor/ai/ToolCallDisplay.js.map +1 -1
  49. package/dist/editor/ai/useAgentStatus.js +21 -9
  50. package/dist/editor/ai/useAgentStatus.js.map +1 -1
  51. package/dist/editor/client/EditorShell.js +172 -21
  52. package/dist/editor/client/EditorShell.js.map +1 -1
  53. package/dist/editor/client/hooks/useSocketMessageHandler.js +12 -0
  54. package/dist/editor/client/hooks/useSocketMessageHandler.js.map +1 -1
  55. package/dist/editor/client/ui/EditorChrome.js +1 -1
  56. package/dist/editor/client/ui/EditorChrome.js.map +1 -1
  57. package/dist/editor/commands/itemCommands.d.ts +1 -0
  58. package/dist/editor/commands/itemCommands.js +53 -1
  59. package/dist/editor/commands/itemCommands.js.map +1 -1
  60. package/dist/editor/control-center/WebSocketMessages.js +4 -1
  61. package/dist/editor/control-center/WebSocketMessages.js.map +1 -1
  62. package/dist/editor/control-center/parhelia-setup/Overview.d.ts +1 -0
  63. package/dist/editor/control-center/parhelia-setup/Overview.js +91 -0
  64. package/dist/editor/control-center/parhelia-setup/Overview.js.map +1 -0
  65. package/dist/editor/control-center/setup-steps/AiSetupStep/tools/GenerateToolsSection.js +4 -0
  66. package/dist/editor/control-center/setup-steps/AiSetupStep/tools/GenerateToolsSection.js.map +1 -1
  67. package/dist/editor/field-types/AttachmentEditor.d.ts +7 -2
  68. package/dist/editor/field-types/AttachmentEditor.js +71 -3
  69. package/dist/editor/field-types/AttachmentEditor.js.map +1 -1
  70. package/dist/editor/field-types/DropLinkEditor.js +2 -2
  71. package/dist/editor/field-types/DropLinkEditor.js.map +1 -1
  72. package/dist/editor/field-types/DropListEditor.js +2 -1
  73. package/dist/editor/field-types/DropListEditor.js.map +1 -1
  74. package/dist/editor/field-types/InternalLinkFieldEditor.js +3 -3
  75. package/dist/editor/field-types/InternalLinkFieldEditor.js.map +1 -1
  76. package/dist/editor/field-types/MultiLineText.d.ts +2 -1
  77. package/dist/editor/field-types/MultiLineText.js +2 -2
  78. package/dist/editor/field-types/MultiLineText.js.map +1 -1
  79. package/dist/editor/field-types/RawEditor.d.ts +2 -1
  80. package/dist/editor/field-types/RawEditor.js +2 -2
  81. package/dist/editor/field-types/RawEditor.js.map +1 -1
  82. package/dist/editor/field-types/SingleLineText.d.ts +2 -1
  83. package/dist/editor/field-types/SingleLineText.js +2 -2
  84. package/dist/editor/field-types/SingleLineText.js.map +1 -1
  85. package/dist/editor/field-types/TreeListEditor.js +9 -7
  86. package/dist/editor/field-types/TreeListEditor.js.map +1 -1
  87. package/dist/editor/fieldTypes.d.ts +4 -0
  88. package/dist/editor/media-selector/MediaFolderBrowser.js +68 -7
  89. package/dist/editor/media-selector/MediaFolderBrowser.js.map +1 -1
  90. package/dist/editor/media-selector/TreeSelector.js +1 -1
  91. package/dist/editor/media-selector/TreeSelector.js.map +1 -1
  92. package/dist/editor/menubar/ActiveUsers.js +2 -2
  93. package/dist/editor/menubar/FavoritesControls.js +2 -2
  94. package/dist/editor/menubar/FavoritesControls.js.map +1 -1
  95. package/dist/editor/menubar/toolbar-sections/UtilityControls.js +1 -1
  96. package/dist/editor/menubar/toolbar-sections/UtilityControls.js.map +1 -1
  97. package/dist/editor/page-editor-chrome/FrameMenu.js +10 -1
  98. package/dist/editor/page-editor-chrome/FrameMenu.js.map +1 -1
  99. package/dist/editor/page-editor-chrome/PlaceholderDropZone.js +14 -4
  100. package/dist/editor/page-editor-chrome/PlaceholderDropZone.js.map +1 -1
  101. package/dist/editor/page-viewer/PageViewerFrame.js +17 -7
  102. package/dist/editor/page-viewer/PageViewerFrame.js.map +1 -1
  103. package/dist/editor/page-viewer/pageModelSkeletonBuilder.js +14 -0
  104. package/dist/editor/page-viewer/pageModelSkeletonBuilder.js.map +1 -1
  105. package/dist/editor/services/agentService.d.ts +6 -2
  106. package/dist/editor/services/agentService.js +13 -2
  107. package/dist/editor/services/agentService.js.map +1 -1
  108. package/dist/editor/services/aiService.d.ts +5 -1
  109. package/dist/editor/services/aiService.js +1 -1
  110. package/dist/editor/services/aiService.js.map +1 -1
  111. package/dist/editor/services/contentService.d.ts +1 -1
  112. package/dist/editor/services/contentService.js +4 -2
  113. package/dist/editor/services/contentService.js.map +1 -1
  114. package/dist/editor/services/editService.d.ts +6 -1
  115. package/dist/editor/services/editService.js +7 -1
  116. package/dist/editor/services/editService.js.map +1 -1
  117. package/dist/editor/services/setupService.d.ts +21 -0
  118. package/dist/editor/services/setupService.js +10 -0
  119. package/dist/editor/services/setupService.js.map +1 -0
  120. package/dist/editor/sidebar/ComponentTree.js +15 -1
  121. package/dist/editor/sidebar/ComponentTree.js.map +1 -1
  122. package/dist/editor/sidebar/SidebarView.js +1 -1
  123. package/dist/editor/sidebar/SidebarView.js.map +1 -1
  124. package/dist/editor/ui/ItemSearch.d.ts +1 -0
  125. package/dist/editor/ui/ItemSearch.js +2 -2
  126. package/dist/editor/ui/ItemSearch.js.map +1 -1
  127. package/dist/editor/ui/PerfectTree.d.ts +5 -1
  128. package/dist/editor/ui/PerfectTree.js +308 -29
  129. package/dist/editor/ui/PerfectTree.js.map +1 -1
  130. package/dist/editor/ui/SimpleIconButton.js +1 -1
  131. package/dist/editor/ui/SimpleIconButton.js.map +1 -1
  132. package/dist/editor/ui/TemplateSelectorDialog.d.ts +8 -0
  133. package/dist/editor/ui/TemplateSelectorDialog.js +61 -0
  134. package/dist/editor/ui/TemplateSelectorDialog.js.map +1 -0
  135. package/dist/editor/utils/keyboardNavigation.d.ts +2 -0
  136. package/dist/editor/utils/keyboardNavigation.js +80 -2
  137. package/dist/editor/utils/keyboardNavigation.js.map +1 -1
  138. package/dist/editor/views/SingleEditView.js +6 -4
  139. package/dist/editor/views/SingleEditView.js.map +1 -1
  140. package/dist/index.d.ts +2 -2
  141. package/dist/index.js +2 -2
  142. package/dist/index.js.map +1 -1
  143. package/dist/revision.d.ts +2 -2
  144. package/dist/revision.js +2 -2
  145. package/dist/splash-screen/SplashScreen.js +78 -4
  146. package/dist/splash-screen/SplashScreen.js.map +1 -1
  147. package/dist/styles.css +164 -20
  148. package/dist/types.d.ts +7 -1
  149. package/package.json +1 -1
  150. package/src/agents-view/AgentsView.tsx +431 -0
  151. package/src/components/ui/context-menu.tsx +62 -7
  152. package/src/config/config.tsx +112 -7
  153. package/src/config/types.ts +8 -2
  154. package/src/editor/ConfirmationDialog.tsx +42 -10
  155. package/src/editor/ContentTree.tsx +20 -1
  156. package/src/editor/ContextMenu.tsx +4 -1
  157. package/src/editor/FieldList.tsx +10 -4
  158. package/src/editor/FieldListField.tsx +7 -0
  159. package/src/editor/FieldListFieldWithFallbacks.tsx +10 -0
  160. package/src/editor/ItemInfo.tsx +15 -1
  161. package/src/editor/MainLayout.tsx +1 -1
  162. package/src/editor/PictureEditor.tsx +21 -23
  163. package/src/editor/QuickItemSwitcher.tsx +190 -0
  164. package/src/editor/ai/AgentCostDisplay.tsx +28 -6
  165. package/src/editor/ai/AgentProfilesOverview.tsx +81 -0
  166. package/src/editor/ai/AgentTerminal.tsx +734 -187
  167. package/src/editor/ai/Agents.tsx +167 -67
  168. package/src/editor/ai/AiResponseMessage.tsx +12 -1
  169. package/src/editor/ai/ContextInfoBar.tsx +17 -17
  170. package/src/editor/ai/ToolCallDisplay.tsx +2 -5
  171. package/src/editor/ai/useAgentStatus.ts +24 -9
  172. package/src/editor/client/EditorShell.tsx +231 -31
  173. package/src/editor/client/hooks/useSocketMessageHandler.ts +28 -13
  174. package/src/editor/client/ui/EditorChrome.tsx +1 -1
  175. package/src/editor/commands/itemCommands.tsx +77 -0
  176. package/src/editor/control-center/WebSocketMessages.tsx +4 -1
  177. package/src/editor/control-center/parhelia-setup/Overview.tsx +184 -0
  178. package/src/editor/control-center/setup-steps/AiSetupStep/tools/GenerateToolsSection.tsx +5 -0
  179. package/src/editor/field-types/AttachmentEditor.tsx +111 -3
  180. package/src/editor/field-types/DropLinkEditor.tsx +2 -2
  181. package/src/editor/field-types/DropListEditor.tsx +2 -1
  182. package/src/editor/field-types/InternalLinkFieldEditor.tsx +3 -3
  183. package/src/editor/field-types/MultiLineText.tsx +3 -0
  184. package/src/editor/field-types/RawEditor.tsx +3 -0
  185. package/src/editor/field-types/SingleLineText.tsx +3 -0
  186. package/src/editor/field-types/TreeListEditor.tsx +32 -24
  187. package/src/editor/fieldTypes.ts +4 -0
  188. package/src/editor/media-selector/MediaFolderBrowser.tsx +93 -9
  189. package/src/editor/media-selector/TreeSelector.tsx +1 -0
  190. package/src/editor/menubar/ActiveUsers.tsx +2 -2
  191. package/src/editor/menubar/FavoritesControls.tsx +5 -5
  192. package/src/editor/menubar/toolbar-sections/UtilityControls.tsx +1 -1
  193. package/src/editor/page-editor-chrome/FrameMenu.tsx +10 -1
  194. package/src/editor/page-editor-chrome/PlaceholderDropZone.tsx +12 -4
  195. package/src/editor/page-viewer/PageViewerFrame.tsx +15 -6
  196. package/src/editor/page-viewer/pageModelSkeletonBuilder.ts +17 -0
  197. package/src/editor/services/agentService.ts +18 -2
  198. package/src/editor/services/aiService.ts +6 -2
  199. package/src/editor/services/contentService.ts +4 -1
  200. package/src/editor/services/editService.ts +23 -3
  201. package/src/editor/services/setupService.ts +35 -0
  202. package/src/editor/sidebar/ComponentTree.tsx +16 -1
  203. package/src/editor/sidebar/SidebarView.tsx +1 -1
  204. package/src/editor/ui/ItemSearch.tsx +3 -1
  205. package/src/editor/ui/PerfectTree.tsx +393 -42
  206. package/src/editor/ui/SimpleIconButton.tsx +1 -0
  207. package/src/editor/ui/TemplateSelectorDialog.tsx +129 -0
  208. package/src/editor/utils/keyboardNavigation.ts +97 -1
  209. package/src/editor/views/SingleEditView.tsx +27 -13
  210. package/src/index.ts +3 -3
  211. package/src/revision.ts +2 -2
  212. package/src/splash-screen/SplashScreen.tsx +134 -2
  213. package/src/types.ts +9 -1
package/dist/styles.css CHANGED
@@ -101,9 +101,11 @@
101
101
  --color-white: #fff;
102
102
  --spacing: 0.25rem;
103
103
  --breakpoint-xl: 80rem;
104
+ --container-xs: 20rem;
104
105
  --container-md: 28rem;
105
106
  --container-lg: 32rem;
106
107
  --container-xl: 36rem;
108
+ --container-4xl: 56rem;
107
109
  --text-xs: 0.75rem;
108
110
  --text-xs--line-height: calc(1 / 0.75);
109
111
  --text-sm: 0.875rem;
@@ -453,6 +455,9 @@
453
455
  .mr-2 {
454
456
  margin-right: calc(var(--spacing) * 2);
455
457
  }
458
+ .mr-3 {
459
+ margin-right: calc(var(--spacing) * 3);
460
+ }
456
461
  .mr-\[-3px\] {
457
462
  margin-right: -3px;
458
463
  }
@@ -516,6 +521,12 @@
516
521
  -webkit-box-orient: vertical;
517
522
  -webkit-line-clamp: 2;
518
523
  }
524
+ .line-clamp-3 {
525
+ overflow: hidden;
526
+ display: -webkit-box;
527
+ -webkit-box-orient: vertical;
528
+ -webkit-line-clamp: 3;
529
+ }
519
530
  .block {
520
531
  display: block;
521
532
  }
@@ -667,6 +678,9 @@
667
678
  .h-64 {
668
679
  height: calc(var(--spacing) * 64);
669
680
  }
681
+ .h-80 {
682
+ height: calc(var(--spacing) * 80);
683
+ }
670
684
  .h-96 {
671
685
  height: calc(var(--spacing) * 96);
672
686
  }
@@ -760,6 +774,9 @@
760
774
  .max-h-\[50vh\] {
761
775
  max-height: 50vh;
762
776
  }
777
+ .max-h-\[85vh\] {
778
+ max-height: 85vh;
779
+ }
763
780
  .max-h-\[200px\] {
764
781
  max-height: 200px;
765
782
  }
@@ -790,6 +807,9 @@
790
807
  .min-h-16 {
791
808
  min-height: calc(var(--spacing) * 16);
792
809
  }
810
+ .min-h-24 {
811
+ min-height: calc(var(--spacing) * 24);
812
+ }
793
813
  .min-h-\[60px\] {
794
814
  min-height: 60px;
795
815
  }
@@ -943,6 +963,9 @@
943
963
  .w-full {
944
964
  width: 100%;
945
965
  }
966
+ .max-w-4xl {
967
+ max-width: var(--container-4xl);
968
+ }
946
969
  .max-w-48 {
947
970
  max-width: calc(var(--spacing) * 48);
948
971
  }
@@ -958,6 +981,9 @@
958
981
  .max-w-\[80vw\] {
959
982
  max-width: 80vw;
960
983
  }
984
+ .max-w-\[90vw\] {
985
+ max-width: 90vw;
986
+ }
961
987
  .max-w-\[240px\] {
962
988
  max-width: 240px;
963
989
  }
@@ -985,9 +1011,15 @@
985
1011
  .max-w-prose {
986
1012
  max-width: 65ch;
987
1013
  }
1014
+ .max-w-screen-xl {
1015
+ max-width: var(--breakpoint-xl);
1016
+ }
988
1017
  .max-w-xl {
989
1018
  max-width: var(--container-xl);
990
1019
  }
1020
+ .max-w-xs {
1021
+ max-width: var(--container-xs);
1022
+ }
991
1023
  .min-w-0 {
992
1024
  min-width: calc(var(--spacing) * 0);
993
1025
  }
@@ -1012,6 +1044,9 @@
1012
1044
  .min-w-\[16px\] {
1013
1045
  min-width: 16px;
1014
1046
  }
1047
+ .min-w-\[90px\] {
1048
+ min-width: 90px;
1049
+ }
1015
1050
  .min-w-\[120px\] {
1016
1051
  min-width: 120px;
1017
1052
  }
@@ -1062,6 +1097,9 @@
1062
1097
  .origin-\(--radix-tooltip-content-transform-origin\) {
1063
1098
  transform-origin: var(--radix-tooltip-content-transform-origin);
1064
1099
  }
1100
+ .origin-top-left {
1101
+ transform-origin: top left;
1102
+ }
1065
1103
  .-translate-x-1\/2 {
1066
1104
  --tw-translate-x: calc(calc(1/2 * 100%) * -1);
1067
1105
  translate: var(--tw-translate-x) var(--tw-translate-y);
@@ -1082,6 +1120,12 @@
1082
1120
  --tw-translate-y: calc(-50% - 2px);
1083
1121
  translate: var(--tw-translate-x) var(--tw-translate-y);
1084
1122
  }
1123
+ .scale-105 {
1124
+ --tw-scale-x: 105%;
1125
+ --tw-scale-y: 105%;
1126
+ --tw-scale-z: 105%;
1127
+ scale: var(--tw-scale-x) var(--tw-scale-y);
1128
+ }
1085
1129
  .-rotate-45 {
1086
1130
  rotate: calc(45deg * -1);
1087
1131
  }
@@ -1217,6 +1261,9 @@
1217
1261
  .grid-cols-\[repeat\(auto-fill\,_minmax\(70px\,_1fr\)\)\] {
1218
1262
  grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
1219
1263
  }
1264
+ .grid-cols-\[repeat\(auto-fit\,minmax\(min\(200px\,100\%\)\,1fr\)\)\] {
1265
+ grid-template-columns: repeat(auto-fit,minmax(min(200px, 100%),1fr));
1266
+ }
1220
1267
  .grid-rows-\[0fr\] {
1221
1268
  grid-template-rows: 0fr;
1222
1269
  }
@@ -1265,6 +1312,9 @@
1265
1312
  .justify-stretch {
1266
1313
  justify-content: stretch;
1267
1314
  }
1315
+ .gap-0 {
1316
+ gap: calc(var(--spacing) * 0);
1317
+ }
1268
1318
  .gap-0\.5 {
1269
1319
  gap: calc(var(--spacing) * 0.5);
1270
1320
  }
@@ -1286,6 +1336,9 @@
1286
1336
  .gap-4 {
1287
1337
  gap: calc(var(--spacing) * 4);
1288
1338
  }
1339
+ .gap-5 {
1340
+ gap: calc(var(--spacing) * 5);
1341
+ }
1289
1342
  .gap-6 {
1290
1343
  gap: calc(var(--spacing) * 6);
1291
1344
  }
@@ -1613,6 +1666,9 @@
1613
1666
  .border-gray-400 {
1614
1667
  border-color: var(--color-gray-400);
1615
1668
  }
1669
+ .border-gray-500 {
1670
+ border-color: var(--color-gray-500);
1671
+ }
1616
1672
  .border-gray-800 {
1617
1673
  border-color: var(--color-gray-800);
1618
1674
  }
@@ -1733,6 +1789,12 @@
1733
1789
  background-color: color-mix(in oklab, var(--color-black) 50%, transparent);
1734
1790
  }
1735
1791
  }
1792
+ .bg-black\/60 {
1793
+ background-color: color-mix(in srgb, #000 60%, transparent);
1794
+ @supports (color: color-mix(in lab, red, red)) {
1795
+ background-color: color-mix(in oklab, var(--color-black) 60%, transparent);
1796
+ }
1797
+ }
1736
1798
  .bg-blue-50 {
1737
1799
  background-color: var(--color-blue-50);
1738
1800
  }
@@ -2053,6 +2115,9 @@
2053
2115
  .object-scale-down {
2054
2116
  object-fit: scale-down;
2055
2117
  }
2118
+ .\!p-0 {
2119
+ padding: calc(var(--spacing) * 0) !important;
2120
+ }
2056
2121
  .p-0 {
2057
2122
  padding: calc(var(--spacing) * 0);
2058
2123
  }
@@ -2585,6 +2650,9 @@
2585
2650
  .opacity-75 {
2586
2651
  opacity: 75%;
2587
2652
  }
2653
+ .opacity-80 {
2654
+ opacity: 80%;
2655
+ }
2588
2656
  .opacity-90 {
2589
2657
  opacity: 90%;
2590
2658
  }
@@ -2798,6 +2866,13 @@
2798
2866
  }
2799
2867
  }
2800
2868
  }
2869
+ .group-hover\:text-blue-500 {
2870
+ &:is(:where(.group):hover *) {
2871
+ @media (hover: hover) {
2872
+ color: var(--color-blue-500);
2873
+ }
2874
+ }
2875
+ }
2801
2876
  .group-hover\:opacity-100 {
2802
2877
  &:is(:where(.group):hover *) {
2803
2878
  @media (hover: hover) {
@@ -2968,6 +3043,13 @@
2968
3043
  }
2969
3044
  }
2970
3045
  }
3046
+ .hover\:bg-\[\#f6eeff\] {
3047
+ &:hover {
3048
+ @media (hover: hover) {
3049
+ background-color: #f6eeff;
3050
+ }
3051
+ }
3052
+ }
2971
3053
  .hover\:bg-accent {
2972
3054
  &:hover {
2973
3055
  @media (hover: hover) {
@@ -2996,6 +3078,13 @@
2996
3078
  }
2997
3079
  }
2998
3080
  }
3081
+ .hover\:bg-black {
3082
+ &:hover {
3083
+ @media (hover: hover) {
3084
+ background-color: var(--color-black);
3085
+ }
3086
+ }
3087
+ }
2999
3088
  .hover\:bg-black\/40 {
3000
3089
  &:hover {
3001
3090
  @media (hover: hover) {
@@ -3225,6 +3314,13 @@
3225
3314
  }
3226
3315
  }
3227
3316
  }
3317
+ .hover\:bg-theme-secondary-light {
3318
+ &:hover {
3319
+ @media (hover: hover) {
3320
+ background-color: var(--color-theme-secondary-light);
3321
+ }
3322
+ }
3323
+ }
3228
3324
  .hover\:bg-theme-secondary\/80 {
3229
3325
  &:hover {
3230
3326
  @media (hover: hover) {
@@ -3290,6 +3386,13 @@
3290
3386
  }
3291
3387
  }
3292
3388
  }
3389
+ .hover\:text-blue-700 {
3390
+ &:hover {
3391
+ @media (hover: hover) {
3392
+ color: var(--color-blue-700);
3393
+ }
3394
+ }
3395
+ }
3293
3396
  .hover\:text-blue-800 {
3294
3397
  &:hover {
3295
3398
  @media (hover: hover) {
@@ -3420,6 +3523,11 @@
3420
3523
  border-color: var(--color-blue-500);
3421
3524
  }
3422
3525
  }
3526
+ .focus\:bg-\[\#f6eeff\] {
3527
+ &:focus {
3528
+ background-color: #f6eeff;
3529
+ }
3530
+ }
3423
3531
  .focus\:bg-accent {
3424
3532
  &:focus {
3425
3533
  background-color: var(--accent);
@@ -3470,6 +3578,12 @@
3470
3578
  }
3471
3579
  }
3472
3580
  }
3581
+ .focus\:ring-offset-1 {
3582
+ &:focus {
3583
+ --tw-ring-offset-width: 1px;
3584
+ --tw-ring-offset-shadow: var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
3585
+ }
3586
+ }
3473
3587
  .focus\:ring-offset-2 {
3474
3588
  &:focus {
3475
3589
  --tw-ring-offset-width: 2px;
@@ -3806,9 +3920,9 @@
3806
3920
  }
3807
3921
  }
3808
3922
  }
3809
- .sm\:max-w-\[425px\] {
3923
+ .sm\:max-w-\[480px\] {
3810
3924
  @media (width >= 40rem) {
3811
- max-width: 425px;
3925
+ max-width: 480px;
3812
3926
  }
3813
3927
  }
3814
3928
  .sm\:flex-row {
@@ -3821,6 +3935,11 @@
3821
3935
  justify-content: flex-end;
3822
3936
  }
3823
3937
  }
3938
+ .sm\:gap-2 {
3939
+ @media (width >= 40rem) {
3940
+ gap: calc(var(--spacing) * 2);
3941
+ }
3942
+ }
3824
3943
  .sm\:text-left {
3825
3944
  @media (width >= 40rem) {
3826
3945
  text-align: left;
@@ -3966,6 +4085,11 @@
3966
4085
  grid-template-columns: repeat(2, minmax(0, 1fr));
3967
4086
  }
3968
4087
  }
4088
+ .md\:grid-cols-3 {
4089
+ @media (width >= 48rem) {
4090
+ grid-template-columns: repeat(3, minmax(0, 1fr));
4091
+ }
4092
+ }
3969
4093
  .md\:flex-row {
3970
4094
  @media (width >= 48rem) {
3971
4095
  flex-direction: row;
@@ -4061,6 +4185,16 @@
4061
4185
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
4062
4186
  }
4063
4187
  }
4188
+ .lg\:grid-cols-4 {
4189
+ @media (width >= 64rem) {
4190
+ grid-template-columns: repeat(4, minmax(0, 1fr));
4191
+ }
4192
+ }
4193
+ .xl\:grid-cols-5 {
4194
+ @media (width >= 80rem) {
4195
+ grid-template-columns: repeat(5, minmax(0, 1fr));
4196
+ }
4197
+ }
4064
4198
  .xl\:\!\[--width\:660px\] {
4065
4199
  @media (width >= 80rem) {
4066
4200
  --width: 660px !important;
@@ -4324,6 +4458,16 @@
4324
4458
  height: calc(var(--spacing) * 3.5);
4325
4459
  }
4326
4460
  }
4461
+ .\[\&\>svg\]\:h-full {
4462
+ &>svg {
4463
+ height: 100%;
4464
+ }
4465
+ }
4466
+ .\[\&\>svg\]\:w-full {
4467
+ &>svg {
4468
+ width: 100%;
4469
+ }
4470
+ }
4327
4471
  .\[\&\>svg\]\:text-muted-foreground {
4328
4472
  &>svg {
4329
4473
  color: var(--muted-foreground);
@@ -5373,6 +5517,21 @@ html, body {
5373
5517
  inherits: false;
5374
5518
  initial-value: 0;
5375
5519
  }
5520
+ @property --tw-scale-x {
5521
+ syntax: "*";
5522
+ inherits: false;
5523
+ initial-value: 1;
5524
+ }
5525
+ @property --tw-scale-y {
5526
+ syntax: "*";
5527
+ inherits: false;
5528
+ initial-value: 1;
5529
+ }
5530
+ @property --tw-scale-z {
5531
+ syntax: "*";
5532
+ inherits: false;
5533
+ initial-value: 1;
5534
+ }
5376
5535
  @property --tw-rotate-x {
5377
5536
  syntax: "*";
5378
5537
  inherits: false;
@@ -5634,21 +5793,6 @@ html, body {
5634
5793
  syntax: "*";
5635
5794
  inherits: false;
5636
5795
  }
5637
- @property --tw-scale-x {
5638
- syntax: "*";
5639
- inherits: false;
5640
- initial-value: 1;
5641
- }
5642
- @property --tw-scale-y {
5643
- syntax: "*";
5644
- inherits: false;
5645
- initial-value: 1;
5646
- }
5647
- @property --tw-scale-z {
5648
- syntax: "*";
5649
- inherits: false;
5650
- initial-value: 1;
5651
- }
5652
5796
  @property --tw-content {
5653
5797
  syntax: "*";
5654
5798
  initial-value: "";
@@ -5700,6 +5844,9 @@ html, body {
5700
5844
  --tw-translate-x: 0;
5701
5845
  --tw-translate-y: 0;
5702
5846
  --tw-translate-z: 0;
5847
+ --tw-scale-x: 1;
5848
+ --tw-scale-y: 1;
5849
+ --tw-scale-z: 1;
5703
5850
  --tw-rotate-x: initial;
5704
5851
  --tw-rotate-y: initial;
5705
5852
  --tw-rotate-z: initial;
@@ -5760,9 +5907,6 @@ html, body {
5760
5907
  --tw-backdrop-sepia: initial;
5761
5908
  --tw-duration: initial;
5762
5909
  --tw-ease: initial;
5763
- --tw-scale-x: 1;
5764
- --tw-scale-y: 1;
5765
- --tw-scale-z: 1;
5766
5910
  --tw-content: "";
5767
5911
  }
5768
5912
  }
package/dist/types.d.ts CHANGED
@@ -55,7 +55,7 @@ export type EditSession = {
55
55
  color: string;
56
56
  };
57
57
  export type EditOperation = {
58
- type: "edit-field" | "remove-component" | "move-component" | "add-component" | "synchronize-components" | "link-component" | "duplicate-components" | "rename-item";
58
+ type: "edit-field" | "remove-component" | "move-component" | "add-component" | "synchronize-components" | "link-component" | "duplicate-components" | "rename-item" | "change-template";
59
59
  date: string;
60
60
  id: string;
61
61
  user?: User;
@@ -73,6 +73,12 @@ export type RenameItemOperation = EditOperation & {
73
73
  newName: string;
74
74
  oldName?: string;
75
75
  };
76
+ export type ChangeTemplateOperation = EditOperation & {
77
+ type: "change-template";
78
+ itemId: string;
79
+ newTemplateId: string;
80
+ oldTemplateId?: string;
81
+ };
76
82
  export type EditFieldOperation = EditOperation & {
77
83
  type: "edit-field";
78
84
  itemId: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alpaca-editor/core",
3
- "version": "1.0.4170",
3
+ "version": "1.0.4173",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },