@alpaca-editor/core 1.0.4086 → 1.0.4089

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 (149) hide show
  1. package/dist/components/ui/card.d.ts +1 -1
  2. package/dist/config/config.js +10 -3
  3. package/dist/config/config.js.map +1 -1
  4. package/dist/config/types.d.ts +4 -0
  5. package/dist/editor/ContentTree.js +43 -21
  6. package/dist/editor/ContentTree.js.map +1 -1
  7. package/dist/editor/FieldListField.js +12 -1
  8. package/dist/editor/FieldListField.js.map +1 -1
  9. package/dist/editor/ai/AgentTerminal.d.ts +3 -1
  10. package/dist/editor/ai/AgentTerminal.js +96 -74
  11. package/dist/editor/ai/AgentTerminal.js.map +1 -1
  12. package/dist/editor/ai/Agents.js +50 -2
  13. package/dist/editor/ai/Agents.js.map +1 -1
  14. package/dist/editor/ai/AiResponseMessage.js +171 -75
  15. package/dist/editor/ai/AiResponseMessage.js.map +1 -1
  16. package/dist/editor/ai/AiTerminal.js +27 -14
  17. package/dist/editor/ai/AiTerminal.js.map +1 -1
  18. package/dist/editor/client/EditorShell.js +121 -17
  19. package/dist/editor/client/EditorShell.js.map +1 -1
  20. package/dist/editor/client/editContext.d.ts +4 -0
  21. package/dist/editor/client/editContext.js.map +1 -1
  22. package/dist/editor/client/hooks/useSocketMessageHandler.d.ts +1 -0
  23. package/dist/editor/client/hooks/useSocketMessageHandler.js +54 -20
  24. package/dist/editor/client/hooks/useSocketMessageHandler.js.map +1 -1
  25. package/dist/editor/client/hooks/useWorkbox.d.ts +1 -1
  26. package/dist/editor/client/hooks/useWorkbox.js +4 -4
  27. package/dist/editor/client/hooks/useWorkbox.js.map +1 -1
  28. package/dist/editor/client/itemsRepository.d.ts +13 -1
  29. package/dist/editor/client/itemsRepository.js +34 -21
  30. package/dist/editor/client/itemsRepository.js.map +1 -1
  31. package/dist/editor/client/pageModelBuilder.js +1 -1
  32. package/dist/editor/client/pageModelBuilder.js.map +1 -1
  33. package/dist/editor/control-center/Setup.js +12 -223
  34. package/dist/editor/control-center/Setup.js.map +1 -1
  35. package/dist/editor/control-center/setup-steps/AiSetupStep.d.ts +2 -0
  36. package/dist/editor/control-center/setup-steps/AiSetupStep.js +287 -0
  37. package/dist/editor/control-center/setup-steps/AiSetupStep.js.map +1 -0
  38. package/dist/editor/control-center/setup-steps/DbSetupStep.d.ts +2 -0
  39. package/dist/editor/control-center/setup-steps/DbSetupStep.js +46 -0
  40. package/dist/editor/control-center/setup-steps/DbSetupStep.js.map +1 -0
  41. package/dist/editor/control-center/setup-steps/IndexSetupStep.d.ts +2 -0
  42. package/dist/editor/control-center/setup-steps/IndexSetupStep.js +34 -0
  43. package/dist/editor/control-center/setup-steps/IndexSetupStep.js.map +1 -0
  44. package/dist/editor/control-center/setup-steps/SettingsSetupStep.d.ts +2 -0
  45. package/dist/editor/control-center/setup-steps/SettingsSetupStep.js +104 -0
  46. package/dist/editor/control-center/setup-steps/SettingsSetupStep.js.map +1 -0
  47. package/dist/editor/field-types/ImageFieldEditor.js +1 -1
  48. package/dist/editor/field-types/ImageFieldEditor.js.map +1 -1
  49. package/dist/editor/field-types/MultiLineText.js +1 -1
  50. package/dist/editor/field-types/MultiLineText.js.map +1 -1
  51. package/dist/editor/field-types/PictureFieldEditor.js +1 -1
  52. package/dist/editor/field-types/PictureFieldEditor.js.map +1 -1
  53. package/dist/editor/field-types/RawEditor.js +1 -1
  54. package/dist/editor/field-types/RawEditor.js.map +1 -1
  55. package/dist/editor/field-types/RichTextEditorComponent.js +1 -1
  56. package/dist/editor/field-types/RichTextEditorComponent.js.map +1 -1
  57. package/dist/editor/field-types/SingleLineText.js +1 -1
  58. package/dist/editor/field-types/SingleLineText.js.map +1 -1
  59. package/dist/editor/field-types/richtext/components/ReactSlate.js +2 -2
  60. package/dist/editor/field-types/richtext/components/ReactSlate.js.map +1 -1
  61. package/dist/editor/field-types/richtext/utils/profileServiceCache.d.ts +1 -1
  62. package/dist/editor/field-types/richtext/utils/profileServiceCache.js +16 -14
  63. package/dist/editor/field-types/richtext/utils/profileServiceCache.js.map +1 -1
  64. package/dist/editor/menubar/toolbar-sections/CompareControls.js +1 -1
  65. package/dist/editor/menubar/toolbar-sections/CompareControls.js.map +1 -1
  66. package/dist/editor/menubar/toolbar-sections/EditControls.js +1 -1
  67. package/dist/editor/menubar/toolbar-sections/EditControls.js.map +1 -1
  68. package/dist/editor/menubar/toolbar-sections/ViewportControls.js +1 -1
  69. package/dist/editor/menubar/toolbar-sections/ViewportControls.js.map +1 -1
  70. package/dist/editor/page-editor-chrome/InlineEditor.js +25 -6
  71. package/dist/editor/page-editor-chrome/InlineEditor.js.map +1 -1
  72. package/dist/editor/page-viewer/EditorForm.js +9 -2
  73. package/dist/editor/page-viewer/EditorForm.js.map +1 -1
  74. package/dist/editor/page-viewer/PageViewerFrame.js +6 -1
  75. package/dist/editor/page-viewer/PageViewerFrame.js.map +1 -1
  76. package/dist/editor/pageModel.d.ts +1 -0
  77. package/dist/editor/reviews/Comment.js +1 -1
  78. package/dist/editor/reviews/Comment.js.map +1 -1
  79. package/dist/editor/reviews/CommentDisplayPopover.js +3 -24
  80. package/dist/editor/reviews/CommentDisplayPopover.js.map +1 -1
  81. package/dist/editor/reviews/CommentPopover.js +3 -23
  82. package/dist/editor/reviews/CommentPopover.js.map +1 -1
  83. package/dist/editor/reviews/CommentView.js +2 -1
  84. package/dist/editor/reviews/CommentView.js.map +1 -1
  85. package/dist/editor/reviews/Comments.js +88 -37
  86. package/dist/editor/reviews/Comments.js.map +1 -1
  87. package/dist/editor/reviews/commentAi.js +3 -0
  88. package/dist/editor/reviews/commentAi.js.map +1 -1
  89. package/dist/editor/sidebar/Debug.js +1 -5
  90. package/dist/editor/sidebar/Debug.js.map +1 -1
  91. package/dist/editor/sidebar/ViewSelector.js +72 -6
  92. package/dist/editor/sidebar/ViewSelector.js.map +1 -1
  93. package/dist/editor/ui/Icons.d.ts +5 -0
  94. package/dist/editor/ui/Icons.js +14 -0
  95. package/dist/editor/ui/Icons.js.map +1 -1
  96. package/dist/revision.d.ts +2 -2
  97. package/dist/revision.js +2 -2
  98. package/dist/splash-screen/SplashScreen.js +2 -2
  99. package/dist/splash-screen/SplashScreen.js.map +1 -1
  100. package/dist/styles.css +0 -5
  101. package/dist/types.d.ts +2 -0
  102. package/package.json +1 -1
  103. package/src/components/ui/card.tsx +1 -1
  104. package/src/config/config.tsx +9 -2
  105. package/src/config/types.ts +5 -0
  106. package/src/editor/ContentTree.tsx +48 -23
  107. package/src/editor/FieldListField.tsx +13 -2
  108. package/src/editor/ai/AgentTerminal.tsx +118 -71
  109. package/src/editor/ai/Agents.tsx +56 -1
  110. package/src/editor/ai/AiResponseMessage.tsx +234 -78
  111. package/src/editor/ai/AiTerminal.tsx +30 -14
  112. package/src/editor/client/EditorShell.tsx +140 -25
  113. package/src/editor/client/editContext.ts +1 -0
  114. package/src/editor/client/hooks/useSocketMessageHandler.ts +70 -21
  115. package/src/editor/client/hooks/useWorkbox.ts +4 -4
  116. package/src/editor/client/itemsRepository.ts +56 -25
  117. package/src/editor/client/pageModelBuilder.ts +1 -1
  118. package/src/editor/control-center/Setup.tsx +14 -420
  119. package/src/editor/control-center/setup-steps/AiSetupStep.tsx +462 -0
  120. package/src/editor/control-center/setup-steps/DbSetupStep.tsx +84 -0
  121. package/src/editor/control-center/setup-steps/IndexSetupStep.tsx +56 -0
  122. package/src/editor/control-center/setup-steps/SettingsSetupStep.tsx +176 -0
  123. package/src/editor/field-types/ImageFieldEditor.tsx +0 -1
  124. package/src/editor/field-types/MultiLineText.tsx +0 -1
  125. package/src/editor/field-types/PictureFieldEditor.tsx +0 -1
  126. package/src/editor/field-types/RawEditor.tsx +0 -1
  127. package/src/editor/field-types/RichTextEditorComponent.tsx +0 -1
  128. package/src/editor/field-types/SingleLineText.tsx +0 -1
  129. package/src/editor/field-types/richtext/components/ReactSlate.tsx +14 -6
  130. package/src/editor/field-types/richtext/utils/profileServiceCache.ts +42 -32
  131. package/src/editor/menubar/toolbar-sections/CompareControls.tsx +1 -0
  132. package/src/editor/menubar/toolbar-sections/EditControls.tsx +1 -0
  133. package/src/editor/menubar/toolbar-sections/ViewportControls.tsx +1 -0
  134. package/src/editor/page-editor-chrome/InlineEditor.tsx +29 -6
  135. package/src/editor/page-viewer/EditorForm.tsx +13 -2
  136. package/src/editor/page-viewer/PageViewerFrame.tsx +5 -1
  137. package/src/editor/pageModel.ts +1 -0
  138. package/src/editor/reviews/Comment.tsx +1 -1
  139. package/src/editor/reviews/CommentDisplayPopover.tsx +2 -22
  140. package/src/editor/reviews/CommentPopover.tsx +3 -24
  141. package/src/editor/reviews/CommentView.tsx +3 -2
  142. package/src/editor/reviews/Comments.tsx +162 -35
  143. package/src/editor/reviews/commentAi.ts +5 -0
  144. package/src/editor/sidebar/Debug.tsx +1 -5
  145. package/src/editor/sidebar/ViewSelector.tsx +144 -28
  146. package/src/editor/ui/Icons.tsx +55 -0
  147. package/src/revision.ts +2 -2
  148. package/src/splash-screen/SplashScreen.tsx +5 -6
  149. package/src/types.ts +3 -0
@@ -1,5 +1,5 @@
1
1
  import { Card } from "../components/ui/card";
2
- import { Logo, MagicEditIcon } from "../editor/ui/Icons";
2
+ import { AnimatedSunIcon, Logo, MagicEditIcon } from "../editor/ui/Icons";
3
3
  import { useEditContext } from "../editor/client/editContext";
4
4
  import { useEffect, useState } from "react";
5
5
  import { getWizards } from "../page-wizard/service";
@@ -139,24 +139,23 @@ export function SplashScreen() {
139
139
  <div className="flex h-full w-full gap-2 bg-gray-100 md:items-center md:justify-center">
140
140
  <div className="z-10 flex flex-1 flex-col items-stretch gap-4 p-4 md:min-h-[40vh] md:max-w-screen-xl md:flex-row">
141
141
  <Card
142
- title="Welcome to the Editor Without A Name"
142
+ title=<span className="text-2xl tracking-widest">parhelion</span>
143
143
  description="The easiest way to create and manage your content"
144
- icon={<Logo />}
144
+ icon={<AnimatedSunIcon />}
145
145
  className="flex-1"
146
146
  >
147
147
  <div className="flex flex-col gap-4 text-sm text-gray-500">
148
- Ai Workbench is an editor for your favorite content management
148
+ Parhelion is an editor for your favorite content management
149
149
  system. It allows you to create and manage your content in a
150
150
  simple and intuitive way.
151
151
  <div className="flex flex-col gap-4">
152
- <ActionButton
152
+ <ActionButton
153
153
  data-testid="create-new-page-button"
154
154
  onClick={() => editContext?.switchView("new-page")}
155
155
  >
156
156
  Create new page
157
157
  </ActionButton>
158
158
  <ActionButton
159
-
160
159
  onClick={() => editContext?.switchView("open-page")}
161
160
  >
162
161
  Open existing page
package/src/types.ts CHANGED
@@ -398,6 +398,9 @@ export type EditorSettings = {
398
398
  invalidItemNameChars?: string;
399
399
  maxItemNameLength?: number;
400
400
  currency?: string;
401
+ // Default AI profile to use when resolving comments
402
+ commentResolveProfileId?: string;
403
+ commentResolveProfileName?: string;
401
404
  };
402
405
 
403
406
  export interface SuggestedEdit {