@alpaca-editor/core 1.0.0 → 1.0.3

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 (695) hide show
  1. package/build.css +3 -0
  2. package/components.json +21 -0
  3. package/dev.css +3 -0
  4. package/dist/client-components/api.d.ts +1 -0
  5. package/dist/client-components/api.js +4 -0
  6. package/dist/client-components/api.js.map +1 -0
  7. package/dist/client-components/index.d.ts +16 -0
  8. package/dist/client-components/index.js +17 -0
  9. package/dist/client-components/index.js.map +1 -0
  10. package/dist/components/ActionButton.d.ts +12 -0
  11. package/dist/components/ActionButton.js +6 -0
  12. package/dist/components/ActionButton.js.map +1 -0
  13. package/dist/components/Error.d.ts +9 -0
  14. package/dist/components/Error.js +24 -0
  15. package/dist/components/Error.js.map +1 -0
  16. package/dist/components/ui/button.d.ts +10 -0
  17. package/dist/components/ui/button.js +32 -0
  18. package/dist/components/ui/button.js.map +1 -0
  19. package/dist/config/config.d.ts +6 -0
  20. package/dist/config/config.js +647 -0
  21. package/dist/config/config.js.map +1 -0
  22. package/dist/config/types.d.ts +223 -0
  23. package/dist/config/types.js +2 -0
  24. package/dist/config/types.js.map +1 -0
  25. package/dist/editor/ComponentInfo.d.ts +4 -0
  26. package/dist/editor/ComponentInfo.js +29 -0
  27. package/dist/editor/ComponentInfo.js.map +1 -0
  28. package/dist/editor/ConfirmationDialog.d.ts +19 -0
  29. package/dist/editor/ConfirmationDialog.js +31 -0
  30. package/dist/editor/ConfirmationDialog.js.map +1 -0
  31. package/dist/editor/ContentTree.d.ts +35 -0
  32. package/dist/editor/ContentTree.js +404 -0
  33. package/dist/editor/ContentTree.js.map +1 -0
  34. package/dist/editor/ContextMenu.d.ts +13 -0
  35. package/dist/editor/ContextMenu.js +114 -0
  36. package/dist/editor/ContextMenu.js.map +1 -0
  37. package/dist/editor/Editor.d.ts +11 -0
  38. package/dist/editor/Editor.js +50 -0
  39. package/dist/editor/Editor.js.map +1 -0
  40. package/dist/editor/EditorWarning.d.ts +5 -0
  41. package/dist/editor/EditorWarning.js +11 -0
  42. package/dist/editor/EditorWarning.js.map +1 -0
  43. package/dist/editor/EditorWarnings.d.ts +9 -0
  44. package/dist/editor/EditorWarnings.js +19 -0
  45. package/dist/editor/EditorWarnings.js.map +1 -0
  46. package/dist/editor/FieldEditorPopup.d.ts +10 -0
  47. package/dist/editor/FieldEditorPopup.js +22 -0
  48. package/dist/editor/FieldEditorPopup.js.map +1 -0
  49. package/dist/editor/FieldHistory.d.ts +6 -0
  50. package/dist/editor/FieldHistory.js +38 -0
  51. package/dist/editor/FieldHistory.js.map +1 -0
  52. package/dist/editor/FieldList.d.ts +16 -0
  53. package/dist/editor/FieldList.js +58 -0
  54. package/dist/editor/FieldList.js.map +1 -0
  55. package/dist/editor/FieldListField.d.ts +14 -0
  56. package/dist/editor/FieldListField.js +161 -0
  57. package/dist/editor/FieldListField.js.map +1 -0
  58. package/dist/editor/FieldListFieldWithFallbacks.d.ts +10 -0
  59. package/dist/editor/FieldListFieldWithFallbacks.js +109 -0
  60. package/dist/editor/FieldListFieldWithFallbacks.js.map +1 -0
  61. package/dist/editor/FloatingToolbar.d.ts +7 -0
  62. package/dist/editor/FloatingToolbar.js +90 -0
  63. package/dist/editor/FloatingToolbar.js.map +1 -0
  64. package/dist/editor/ImageEditor.d.ts +5 -0
  65. package/dist/editor/ImageEditor.js +53 -0
  66. package/dist/editor/ImageEditor.js.map +1 -0
  67. package/dist/editor/InsertMenu.d.ts +8 -0
  68. package/dist/editor/InsertMenu.js +158 -0
  69. package/dist/editor/InsertMenu.js.map +1 -0
  70. package/dist/editor/ItemInfo.d.ts +4 -0
  71. package/dist/editor/ItemInfo.js +28 -0
  72. package/dist/editor/ItemInfo.js.map +1 -0
  73. package/dist/editor/LinkEditorDialog.d.ts +15 -0
  74. package/dist/editor/LinkEditorDialog.js +84 -0
  75. package/dist/editor/LinkEditorDialog.js.map +1 -0
  76. package/dist/editor/MainLayout.d.ts +9 -0
  77. package/dist/editor/MainLayout.js +41 -0
  78. package/dist/editor/MainLayout.js.map +1 -0
  79. package/dist/editor/NewEditorClient.d.ts +5 -0
  80. package/dist/editor/NewEditorClient.js +7 -0
  81. package/dist/editor/NewEditorClient.js.map +1 -0
  82. package/dist/editor/PictureCropper.d.ts +6 -0
  83. package/dist/editor/PictureCropper.js +327 -0
  84. package/dist/editor/PictureCropper.js.map +1 -0
  85. package/dist/editor/PictureEditor.d.ts +8 -0
  86. package/dist/editor/PictureEditor.js +102 -0
  87. package/dist/editor/PictureEditor.js.map +1 -0
  88. package/dist/editor/PictureEditorDialog.d.ts +8 -0
  89. package/dist/editor/PictureEditorDialog.js +189 -0
  90. package/dist/editor/PictureEditorDialog.js.map +1 -0
  91. package/dist/editor/ScrollingContentTree.d.ts +6 -0
  92. package/dist/editor/ScrollingContentTree.js +25 -0
  93. package/dist/editor/ScrollingContentTree.js.map +1 -0
  94. package/dist/editor/Terminal.d.ts +14 -0
  95. package/dist/editor/Terminal.js +107 -0
  96. package/dist/editor/Terminal.js.map +1 -0
  97. package/dist/editor/Titlebar.d.ts +1 -0
  98. package/dist/editor/Titlebar.js +9 -0
  99. package/dist/editor/Titlebar.js.map +1 -0
  100. package/dist/editor/ai/AiPopup.d.ts +10 -0
  101. package/dist/editor/ai/AiPopup.js +23 -0
  102. package/dist/editor/ai/AiPopup.js.map +1 -0
  103. package/dist/editor/ai/AiResponseMessage.d.ts +8 -0
  104. package/dist/editor/ai/AiResponseMessage.js +22 -0
  105. package/dist/editor/ai/AiResponseMessage.js.map +1 -0
  106. package/dist/editor/ai/AiTerminal.d.ts +34 -0
  107. package/dist/editor/ai/AiTerminal.js +236 -0
  108. package/dist/editor/ai/AiTerminal.js.map +1 -0
  109. package/dist/editor/ai/AiToolCall.d.ts +9 -0
  110. package/dist/editor/ai/AiToolCall.js +16 -0
  111. package/dist/editor/ai/AiToolCall.js.map +1 -0
  112. package/dist/editor/ai/EditorAiTerminal.d.ts +5 -0
  113. package/dist/editor/ai/EditorAiTerminal.js +7 -0
  114. package/dist/editor/ai/EditorAiTerminal.js.map +1 -0
  115. package/dist/editor/ai/editorAiContext.d.ts +11 -0
  116. package/dist/editor/ai/editorAiContext.js +12 -0
  117. package/dist/editor/ai/editorAiContext.js.map +1 -0
  118. package/dist/editor/client/DialogContext.d.ts +12 -0
  119. package/dist/editor/client/DialogContext.js +25 -0
  120. package/dist/editor/client/DialogContext.js.map +1 -0
  121. package/dist/editor/client/EditorClient.d.ts +26 -0
  122. package/dist/editor/client/EditorClient.js +1298 -0
  123. package/dist/editor/client/EditorClient.js.map +1 -0
  124. package/dist/editor/client/GenericDialog.d.ts +10 -0
  125. package/dist/editor/client/GenericDialog.js +25 -0
  126. package/dist/editor/client/GenericDialog.js.map +1 -0
  127. package/dist/editor/client/editContext.d.ts +199 -0
  128. package/dist/editor/client/editContext.js +20 -0
  129. package/dist/editor/client/editContext.js.map +1 -0
  130. package/dist/editor/client/helpers.d.ts +12 -0
  131. package/dist/editor/client/helpers.js +29 -0
  132. package/dist/editor/client/helpers.js.map +1 -0
  133. package/dist/editor/client/itemsRepository.d.ts +24 -0
  134. package/dist/editor/client/itemsRepository.js +253 -0
  135. package/dist/editor/client/itemsRepository.js.map +1 -0
  136. package/dist/editor/client/operations.d.ts +57 -0
  137. package/dist/editor/client/operations.js +393 -0
  138. package/dist/editor/client/operations.js.map +1 -0
  139. package/dist/editor/client/pageModelBuilder.d.ts +6 -0
  140. package/dist/editor/client/pageModelBuilder.js +127 -0
  141. package/dist/editor/client/pageModelBuilder.js.map +1 -0
  142. package/dist/editor/commands/commands.d.ts +19 -0
  143. package/dist/editor/commands/commands.js +2 -0
  144. package/dist/editor/commands/commands.js.map +1 -0
  145. package/dist/editor/commands/componentCommands.d.ts +13 -0
  146. package/dist/editor/commands/componentCommands.js +271 -0
  147. package/dist/editor/commands/componentCommands.js.map +1 -0
  148. package/dist/editor/commands/createVersionCommand.d.ts +4 -0
  149. package/dist/editor/commands/createVersionCommand.js +24 -0
  150. package/dist/editor/commands/createVersionCommand.js.map +1 -0
  151. package/dist/editor/commands/deleteVersionCommand.d.ts +4 -0
  152. package/dist/editor/commands/deleteVersionCommand.js +53 -0
  153. package/dist/editor/commands/deleteVersionCommand.js.map +1 -0
  154. package/dist/editor/commands/itemCommands.d.ts +17 -0
  155. package/dist/editor/commands/itemCommands.js +132 -0
  156. package/dist/editor/commands/itemCommands.js.map +1 -0
  157. package/dist/editor/commands/localizeItem/LocalizeItemDialog.d.ts +8 -0
  158. package/dist/editor/commands/localizeItem/LocalizeItemDialog.js +89 -0
  159. package/dist/editor/commands/localizeItem/LocalizeItemDialog.js.map +1 -0
  160. package/dist/editor/commands/undo.d.ts +15 -0
  161. package/dist/editor/commands/undo.js +29 -0
  162. package/dist/editor/commands/undo.js.map +1 -0
  163. package/dist/editor/component-designer/ComponentDesigner.d.ts +1 -0
  164. package/dist/editor/component-designer/ComponentDesigner.js +56 -0
  165. package/dist/editor/component-designer/ComponentDesigner.js.map +1 -0
  166. package/dist/editor/component-designer/ComponentDesignerAiTerminal.d.ts +1 -0
  167. package/dist/editor/component-designer/ComponentDesignerAiTerminal.js +7 -0
  168. package/dist/editor/component-designer/ComponentDesignerAiTerminal.js.map +1 -0
  169. package/dist/editor/component-designer/ComponentDesignerMenu.d.ts +1 -0
  170. package/dist/editor/component-designer/ComponentDesignerMenu.js +65 -0
  171. package/dist/editor/component-designer/ComponentDesignerMenu.js.map +1 -0
  172. package/dist/editor/component-designer/ComponentEditor.d.ts +4 -0
  173. package/dist/editor/component-designer/ComponentEditor.js +57 -0
  174. package/dist/editor/component-designer/ComponentEditor.js.map +1 -0
  175. package/dist/editor/component-designer/ComponentRenderingCodeEditor.d.ts +5 -0
  176. package/dist/editor/component-designer/ComponentRenderingCodeEditor.js +11 -0
  177. package/dist/editor/component-designer/ComponentRenderingCodeEditor.js.map +1 -0
  178. package/dist/editor/component-designer/ComponentRenderingEditor.d.ts +1 -0
  179. package/dist/editor/component-designer/ComponentRenderingEditor.js +69 -0
  180. package/dist/editor/component-designer/ComponentRenderingEditor.js.map +1 -0
  181. package/dist/editor/component-designer/ComponentsDropdown.d.ts +4 -0
  182. package/dist/editor/component-designer/ComponentsDropdown.js +20 -0
  183. package/dist/editor/component-designer/ComponentsDropdown.js.map +1 -0
  184. package/dist/editor/component-designer/PlaceholdersEditor.d.ts +4 -0
  185. package/dist/editor/component-designer/PlaceholdersEditor.js +68 -0
  186. package/dist/editor/component-designer/PlaceholdersEditor.js.map +1 -0
  187. package/dist/editor/component-designer/RenderingsDropdown.d.ts +1 -0
  188. package/dist/editor/component-designer/RenderingsDropdown.js +23 -0
  189. package/dist/editor/component-designer/RenderingsDropdown.js.map +1 -0
  190. package/dist/editor/component-designer/TemplateEditor.d.ts +1 -0
  191. package/dist/editor/component-designer/TemplateEditor.js +142 -0
  192. package/dist/editor/component-designer/TemplateEditor.js.map +1 -0
  193. package/dist/editor/component-designer/aiContext.d.ts +5 -0
  194. package/dist/editor/component-designer/aiContext.js +16 -0
  195. package/dist/editor/component-designer/aiContext.js.map +1 -0
  196. package/dist/editor/componentTreeHelper.d.ts +16 -0
  197. package/dist/editor/componentTreeHelper.js +87 -0
  198. package/dist/editor/componentTreeHelper.js.map +1 -0
  199. package/dist/editor/control-center/ControlCenterMenu.d.ts +1 -0
  200. package/dist/editor/control-center/ControlCenterMenu.js +57 -0
  201. package/dist/editor/control-center/ControlCenterMenu.js.map +1 -0
  202. package/dist/editor/control-center/IndexOverview.d.ts +1 -0
  203. package/dist/editor/control-center/IndexOverview.js +25 -0
  204. package/dist/editor/control-center/IndexOverview.js.map +1 -0
  205. package/dist/editor/control-center/IndexSettings.d.ts +5 -0
  206. package/dist/editor/control-center/IndexSettings.js +104 -0
  207. package/dist/editor/control-center/IndexSettings.js.map +1 -0
  208. package/dist/editor/control-center/Status.d.ts +1 -0
  209. package/dist/editor/control-center/Status.js +5 -0
  210. package/dist/editor/control-center/Status.js.map +1 -0
  211. package/dist/editor/editor-warnings/ItemLocked.d.ts +2 -0
  212. package/dist/editor/editor-warnings/ItemLocked.js +38 -0
  213. package/dist/editor/editor-warnings/ItemLocked.js.map +1 -0
  214. package/dist/editor/editor-warnings/NoLanguageWriteAccess.d.ts +2 -0
  215. package/dist/editor/editor-warnings/NoLanguageWriteAccess.js +14 -0
  216. package/dist/editor/editor-warnings/NoLanguageWriteAccess.js.map +1 -0
  217. package/dist/editor/editor-warnings/NoWorkflowWriteAccess.d.ts +2 -0
  218. package/dist/editor/editor-warnings/NoWorkflowWriteAccess.js +14 -0
  219. package/dist/editor/editor-warnings/NoWorkflowWriteAccess.js.map +1 -0
  220. package/dist/editor/editor-warnings/NoWriteAccess.d.ts +2 -0
  221. package/dist/editor/editor-warnings/NoWriteAccess.js +12 -0
  222. package/dist/editor/editor-warnings/NoWriteAccess.js.map +1 -0
  223. package/dist/editor/editor-warnings/ValidationErrors.d.ts +2 -0
  224. package/dist/editor/editor-warnings/ValidationErrors.js +25 -0
  225. package/dist/editor/editor-warnings/ValidationErrors.js.map +1 -0
  226. package/dist/editor/field-types/AttachmentEditor.d.ts +4 -0
  227. package/dist/editor/field-types/AttachmentEditor.js +5 -0
  228. package/dist/editor/field-types/AttachmentEditor.js.map +1 -0
  229. package/dist/editor/field-types/CheckboxEditor.d.ts +5 -0
  230. package/dist/editor/field-types/CheckboxEditor.js +30 -0
  231. package/dist/editor/field-types/CheckboxEditor.js.map +1 -0
  232. package/dist/editor/field-types/DropLinkEditor.d.ts +5 -0
  233. package/dist/editor/field-types/DropLinkEditor.js +49 -0
  234. package/dist/editor/field-types/DropLinkEditor.js.map +1 -0
  235. package/dist/editor/field-types/DropListEditor.d.ts +5 -0
  236. package/dist/editor/field-types/DropListEditor.js +56 -0
  237. package/dist/editor/field-types/DropListEditor.js.map +1 -0
  238. package/dist/editor/field-types/ImageFieldEditor.d.ts +5 -0
  239. package/dist/editor/field-types/ImageFieldEditor.js +34 -0
  240. package/dist/editor/field-types/ImageFieldEditor.js.map +1 -0
  241. package/dist/editor/field-types/InternalLinkFieldEditor.d.ts +5 -0
  242. package/dist/editor/field-types/InternalLinkFieldEditor.js +59 -0
  243. package/dist/editor/field-types/InternalLinkFieldEditor.js.map +1 -0
  244. package/dist/editor/field-types/LinkFieldEditor.d.ts +5 -0
  245. package/dist/editor/field-types/LinkFieldEditor.js +56 -0
  246. package/dist/editor/field-types/LinkFieldEditor.js.map +1 -0
  247. package/dist/editor/field-types/MultiLineText.d.ts +6 -0
  248. package/dist/editor/field-types/MultiLineText.js +33 -0
  249. package/dist/editor/field-types/MultiLineText.js.map +1 -0
  250. package/dist/editor/field-types/PictureFieldEditor.d.ts +5 -0
  251. package/dist/editor/field-types/PictureFieldEditor.js +57 -0
  252. package/dist/editor/field-types/PictureFieldEditor.js.map +1 -0
  253. package/dist/editor/field-types/RawEditor.d.ts +5 -0
  254. package/dist/editor/field-types/RawEditor.js +31 -0
  255. package/dist/editor/field-types/RawEditor.js.map +1 -0
  256. package/dist/editor/field-types/ReactQuill.d.ts +125 -0
  257. package/dist/editor/field-types/ReactQuill.js +385 -0
  258. package/dist/editor/field-types/ReactQuill.js.map +1 -0
  259. package/dist/editor/field-types/RichTextEditor.d.ts +5 -0
  260. package/dist/editor/field-types/RichTextEditor.js +8 -0
  261. package/dist/editor/field-types/RichTextEditor.js.map +1 -0
  262. package/dist/editor/field-types/RichTextEditorComponent.d.ts +6 -0
  263. package/dist/editor/field-types/RichTextEditorComponent.js +70 -0
  264. package/dist/editor/field-types/RichTextEditorComponent.js.map +1 -0
  265. package/dist/editor/field-types/SingleLineText.d.ts +6 -0
  266. package/dist/editor/field-types/SingleLineText.js +90 -0
  267. package/dist/editor/field-types/SingleLineText.js.map +1 -0
  268. package/dist/editor/field-types/TreeListEditor.d.ts +5 -0
  269. package/dist/editor/field-types/TreeListEditor.js +132 -0
  270. package/dist/editor/field-types/TreeListEditor.js.map +1 -0
  271. package/dist/editor/fieldTypes.d.ts +117 -0
  272. package/dist/editor/fieldTypes.js +2 -0
  273. package/dist/editor/fieldTypes.js.map +1 -0
  274. package/dist/editor/media-selector/AiImageSearch.d.ts +4 -0
  275. package/dist/editor/media-selector/AiImageSearch.js +105 -0
  276. package/dist/editor/media-selector/AiImageSearch.js.map +1 -0
  277. package/dist/editor/media-selector/AiImageSearchPrompt.d.ts +3 -0
  278. package/dist/editor/media-selector/AiImageSearchPrompt.js +56 -0
  279. package/dist/editor/media-selector/AiImageSearchPrompt.js.map +1 -0
  280. package/dist/editor/media-selector/MediaSelector.d.ts +9 -0
  281. package/dist/editor/media-selector/MediaSelector.js +8 -0
  282. package/dist/editor/media-selector/MediaSelector.js.map +1 -0
  283. package/dist/editor/media-selector/Preview.d.ts +4 -0
  284. package/dist/editor/media-selector/Preview.js +7 -0
  285. package/dist/editor/media-selector/Preview.js.map +1 -0
  286. package/dist/editor/media-selector/Thumbnails.d.ts +13 -0
  287. package/dist/editor/media-selector/Thumbnails.js +9 -0
  288. package/dist/editor/media-selector/Thumbnails.js.map +1 -0
  289. package/dist/editor/media-selector/TreeSelector.d.ts +7 -0
  290. package/dist/editor/media-selector/TreeSelector.js +165 -0
  291. package/dist/editor/media-selector/TreeSelector.js.map +1 -0
  292. package/dist/editor/media-selector/UploadZone.d.ts +4 -0
  293. package/dist/editor/media-selector/UploadZone.js +78 -0
  294. package/dist/editor/media-selector/UploadZone.js.map +1 -0
  295. package/dist/editor/menubar/ActionsMenu.d.ts +1 -0
  296. package/dist/editor/menubar/ActionsMenu.js +31 -0
  297. package/dist/editor/menubar/ActionsMenu.js.map +1 -0
  298. package/dist/editor/menubar/ActiveUsers.d.ts +1 -0
  299. package/dist/editor/menubar/ActiveUsers.js +11 -0
  300. package/dist/editor/menubar/ActiveUsers.js.map +1 -0
  301. package/dist/editor/menubar/ApproveAndPublish.d.ts +1 -0
  302. package/dist/editor/menubar/ApproveAndPublish.js +11 -0
  303. package/dist/editor/menubar/ApproveAndPublish.js.map +1 -0
  304. package/dist/editor/menubar/BrowseHistory.d.ts +6 -0
  305. package/dist/editor/menubar/BrowseHistory.js +12 -0
  306. package/dist/editor/menubar/BrowseHistory.js.map +1 -0
  307. package/dist/editor/menubar/ItemLanguageVersion.d.ts +1 -0
  308. package/dist/editor/menubar/ItemLanguageVersion.js +34 -0
  309. package/dist/editor/menubar/ItemLanguageVersion.js.map +1 -0
  310. package/dist/editor/menubar/LanguageSelector.d.ts +9 -0
  311. package/dist/editor/menubar/LanguageSelector.js +31 -0
  312. package/dist/editor/menubar/LanguageSelector.js.map +1 -0
  313. package/dist/editor/menubar/Menu.d.ts +1 -0
  314. package/dist/editor/menubar/Menu.js +63 -0
  315. package/dist/editor/menubar/Menu.js.map +1 -0
  316. package/dist/editor/menubar/NavButtons.d.ts +1 -0
  317. package/dist/editor/menubar/NavButtons.js +41 -0
  318. package/dist/editor/menubar/NavButtons.js.map +1 -0
  319. package/dist/editor/menubar/PageSelector.d.ts +4 -0
  320. package/dist/editor/menubar/PageSelector.js +48 -0
  321. package/dist/editor/menubar/PageSelector.js.map +1 -0
  322. package/dist/editor/menubar/PageViewerControls.d.ts +1 -0
  323. package/dist/editor/menubar/PageViewerControls.js +35 -0
  324. package/dist/editor/menubar/PageViewerControls.js.map +1 -0
  325. package/dist/editor/menubar/Separator.d.ts +3 -0
  326. package/dist/editor/menubar/Separator.js +6 -0
  327. package/dist/editor/menubar/Separator.js.map +1 -0
  328. package/dist/editor/menubar/SiteInfo.d.ts +1 -0
  329. package/dist/editor/menubar/SiteInfo.js +24 -0
  330. package/dist/editor/menubar/SiteInfo.js.map +1 -0
  331. package/dist/editor/menubar/User.d.ts +4 -0
  332. package/dist/editor/menubar/User.js +16 -0
  333. package/dist/editor/menubar/User.js.map +1 -0
  334. package/dist/editor/menubar/VersionSelector.d.ts +9 -0
  335. package/dist/editor/menubar/VersionSelector.js +47 -0
  336. package/dist/editor/menubar/VersionSelector.js.map +1 -0
  337. package/dist/editor/page-editor-chrome/CommentHighlighting.d.ts +6 -0
  338. package/dist/editor/page-editor-chrome/CommentHighlighting.js +212 -0
  339. package/dist/editor/page-editor-chrome/CommentHighlighting.js.map +1 -0
  340. package/dist/editor/page-editor-chrome/CommentHighlightings.d.ts +4 -0
  341. package/dist/editor/page-editor-chrome/CommentHighlightings.js +15 -0
  342. package/dist/editor/page-editor-chrome/CommentHighlightings.js.map +1 -0
  343. package/dist/editor/page-editor-chrome/FieldActionIndicator.d.ts +4 -0
  344. package/dist/editor/page-editor-chrome/FieldActionIndicator.js +25 -0
  345. package/dist/editor/page-editor-chrome/FieldActionIndicator.js.map +1 -0
  346. package/dist/editor/page-editor-chrome/FieldActionIndicators.d.ts +1 -0
  347. package/dist/editor/page-editor-chrome/FieldActionIndicators.js +13 -0
  348. package/dist/editor/page-editor-chrome/FieldActionIndicators.js.map +1 -0
  349. package/dist/editor/page-editor-chrome/FieldEditedIndicator.d.ts +8 -0
  350. package/dist/editor/page-editor-chrome/FieldEditedIndicator.js +25 -0
  351. package/dist/editor/page-editor-chrome/FieldEditedIndicator.js.map +1 -0
  352. package/dist/editor/page-editor-chrome/FieldEditedIndicators.d.ts +6 -0
  353. package/dist/editor/page-editor-chrome/FieldEditedIndicators.js +13 -0
  354. package/dist/editor/page-editor-chrome/FieldEditedIndicators.js.map +1 -0
  355. package/dist/editor/page-editor-chrome/FrameMenu.d.ts +7 -0
  356. package/dist/editor/page-editor-chrome/FrameMenu.js +176 -0
  357. package/dist/editor/page-editor-chrome/FrameMenu.js.map +1 -0
  358. package/dist/editor/page-editor-chrome/FrameMenus.d.ts +5 -0
  359. package/dist/editor/page-editor-chrome/FrameMenus.js +22 -0
  360. package/dist/editor/page-editor-chrome/FrameMenus.js.map +1 -0
  361. package/dist/editor/page-editor-chrome/InlineEditor.d.ts +5 -0
  362. package/dist/editor/page-editor-chrome/InlineEditor.js +99 -0
  363. package/dist/editor/page-editor-chrome/InlineEditor.js.map +1 -0
  364. package/dist/editor/page-editor-chrome/LockedFieldIndicator.d.ts +1 -0
  365. package/dist/editor/page-editor-chrome/LockedFieldIndicator.js +33 -0
  366. package/dist/editor/page-editor-chrome/LockedFieldIndicator.js.map +1 -0
  367. package/dist/editor/page-editor-chrome/NoLayout.d.ts +1 -0
  368. package/dist/editor/page-editor-chrome/NoLayout.js +19 -0
  369. package/dist/editor/page-editor-chrome/NoLayout.js.map +1 -0
  370. package/dist/editor/page-editor-chrome/PageEditorChrome.d.ts +6 -0
  371. package/dist/editor/page-editor-chrome/PageEditorChrome.js +63 -0
  372. package/dist/editor/page-editor-chrome/PageEditorChrome.js.map +1 -0
  373. package/dist/editor/page-editor-chrome/PictureEditorOverlay.d.ts +1 -0
  374. package/dist/editor/page-editor-chrome/PictureEditorOverlay.js +107 -0
  375. package/dist/editor/page-editor-chrome/PictureEditorOverlay.js.map +1 -0
  376. package/dist/editor/page-editor-chrome/PlaceholderDropZone.d.ts +14 -0
  377. package/dist/editor/page-editor-chrome/PlaceholderDropZone.js +80 -0
  378. package/dist/editor/page-editor-chrome/PlaceholderDropZone.js.map +1 -0
  379. package/dist/editor/page-editor-chrome/PlaceholderDropZones.d.ts +5 -0
  380. package/dist/editor/page-editor-chrome/PlaceholderDropZones.js +145 -0
  381. package/dist/editor/page-editor-chrome/PlaceholderDropZones.js.map +1 -0
  382. package/dist/editor/page-viewer/DeviceToolbar.d.ts +6 -0
  383. package/dist/editor/page-viewer/DeviceToolbar.js +19 -0
  384. package/dist/editor/page-viewer/DeviceToolbar.js.map +1 -0
  385. package/dist/editor/page-viewer/EditorForm.d.ts +5 -0
  386. package/dist/editor/page-viewer/EditorForm.js +128 -0
  387. package/dist/editor/page-viewer/EditorForm.js.map +1 -0
  388. package/dist/editor/page-viewer/MiniMap.d.ts +9 -0
  389. package/dist/editor/page-viewer/MiniMap.js +222 -0
  390. package/dist/editor/page-viewer/MiniMap.js.map +1 -0
  391. package/dist/editor/page-viewer/PageViewer.d.ts +8 -0
  392. package/dist/editor/page-viewer/PageViewer.js +62 -0
  393. package/dist/editor/page-viewer/PageViewer.js.map +1 -0
  394. package/dist/editor/page-viewer/PageViewerFrame.d.ts +11 -0
  395. package/dist/editor/page-viewer/PageViewerFrame.js +690 -0
  396. package/dist/editor/page-viewer/PageViewerFrame.js.map +1 -0
  397. package/dist/editor/page-viewer/pageViewContext.d.ts +38 -0
  398. package/dist/editor/page-viewer/pageViewContext.js +115 -0
  399. package/dist/editor/page-viewer/pageViewContext.js.map +1 -0
  400. package/dist/editor/pageModel.d.ts +171 -0
  401. package/dist/editor/pageModel.js +2 -0
  402. package/dist/editor/pageModel.js.map +1 -0
  403. package/dist/editor/picture-shared.d.ts +16 -0
  404. package/dist/editor/picture-shared.js +25 -0
  405. package/dist/editor/picture-shared.js.map +1 -0
  406. package/dist/editor/reviews/Comment.d.ts +4 -0
  407. package/dist/editor/reviews/Comment.js +114 -0
  408. package/dist/editor/reviews/Comment.js.map +1 -0
  409. package/dist/editor/reviews/Comments.d.ts +1 -0
  410. package/dist/editor/reviews/Comments.js +22 -0
  411. package/dist/editor/reviews/Comments.js.map +1 -0
  412. package/dist/editor/reviews/PreviewInfo.d.ts +1 -0
  413. package/dist/editor/reviews/PreviewInfo.js +11 -0
  414. package/dist/editor/reviews/PreviewInfo.js.map +1 -0
  415. package/dist/editor/reviews/Reviews.d.ts +1 -0
  416. package/dist/editor/reviews/Reviews.js +160 -0
  417. package/dist/editor/reviews/Reviews.js.map +1 -0
  418. package/dist/editor/reviews/reviewCommands.d.ts +3 -0
  419. package/dist/editor/reviews/reviewCommands.js +42 -0
  420. package/dist/editor/reviews/reviewCommands.js.map +1 -0
  421. package/dist/editor/reviews/useReviews.d.ts +12 -0
  422. package/dist/editor/reviews/useReviews.js +43 -0
  423. package/dist/editor/reviews/useReviews.js.map +1 -0
  424. package/dist/editor/services/aiService.d.ts +34 -0
  425. package/dist/editor/services/aiService.js +95 -0
  426. package/dist/editor/services/aiService.js.map +1 -0
  427. package/dist/editor/services/componentDesignerService.d.ts +46 -0
  428. package/dist/editor/services/componentDesignerService.js +72 -0
  429. package/dist/editor/services/componentDesignerService.js.map +1 -0
  430. package/dist/editor/services/contentService.d.ts +34 -0
  431. package/dist/editor/services/contentService.js +92 -0
  432. package/dist/editor/services/contentService.js.map +1 -0
  433. package/dist/editor/services/editService.d.ts +34 -0
  434. package/dist/editor/services/editService.js +294 -0
  435. package/dist/editor/services/editService.js.map +1 -0
  436. package/dist/editor/services/indexService.d.ts +6 -0
  437. package/dist/editor/services/indexService.js +19 -0
  438. package/dist/editor/services/indexService.js.map +1 -0
  439. package/dist/editor/services/reviewsService.d.ts +12 -0
  440. package/dist/editor/services/reviewsService.js +32 -0
  441. package/dist/editor/services/reviewsService.js.map +1 -0
  442. package/dist/editor/services/serviceHelper.d.ts +9 -0
  443. package/dist/editor/services/serviceHelper.js +64 -0
  444. package/dist/editor/services/serviceHelper.js.map +1 -0
  445. package/dist/editor/services/systemService.d.ts +2 -0
  446. package/dist/editor/services/systemService.js +5 -0
  447. package/dist/editor/services/systemService.js.map +1 -0
  448. package/dist/editor/services/translationService.d.ts +11 -0
  449. package/dist/editor/services/translationService.js +11 -0
  450. package/dist/editor/services/translationService.js.map +1 -0
  451. package/dist/editor/services-server/api.d.ts +19 -0
  452. package/dist/editor/services-server/api.js +111 -0
  453. package/dist/editor/services-server/api.js.map +1 -0
  454. package/dist/editor/services-server/graphQL.d.ts +29 -0
  455. package/dist/editor/services-server/graphQL.js +53 -0
  456. package/dist/editor/services-server/graphQL.js.map +1 -0
  457. package/dist/editor/sidebar/ComponentPalette.d.ts +1 -0
  458. package/dist/editor/sidebar/ComponentPalette.js +53 -0
  459. package/dist/editor/sidebar/ComponentPalette.js.map +1 -0
  460. package/dist/editor/sidebar/ComponentTree.d.ts +1 -0
  461. package/dist/editor/sidebar/ComponentTree.js +360 -0
  462. package/dist/editor/sidebar/ComponentTree.js.map +1 -0
  463. package/dist/editor/sidebar/Debug.d.ts +1 -0
  464. package/dist/editor/sidebar/Debug.js +58 -0
  465. package/dist/editor/sidebar/Debug.js.map +1 -0
  466. package/dist/editor/sidebar/DictionaryEditor.d.ts +1 -0
  467. package/dist/editor/sidebar/DictionaryEditor.js +158 -0
  468. package/dist/editor/sidebar/DictionaryEditor.js.map +1 -0
  469. package/dist/editor/sidebar/EditHistory.d.ts +1 -0
  470. package/dist/editor/sidebar/EditHistory.js +72 -0
  471. package/dist/editor/sidebar/EditHistory.js.map +1 -0
  472. package/dist/editor/sidebar/GraphQL.d.ts +1 -0
  473. package/dist/editor/sidebar/GraphQL.js +113 -0
  474. package/dist/editor/sidebar/GraphQL.js.map +1 -0
  475. package/dist/editor/sidebar/Insert.d.ts +1 -0
  476. package/dist/editor/sidebar/Insert.js +22 -0
  477. package/dist/editor/sidebar/Insert.js.map +1 -0
  478. package/dist/editor/sidebar/MainContentTree.d.ts +4 -0
  479. package/dist/editor/sidebar/MainContentTree.js +49 -0
  480. package/dist/editor/sidebar/MainContentTree.js.map +1 -0
  481. package/dist/editor/sidebar/Performance.d.ts +1 -0
  482. package/dist/editor/sidebar/Performance.js +32 -0
  483. package/dist/editor/sidebar/Performance.js.map +1 -0
  484. package/dist/editor/sidebar/Sessions.d.ts +1 -0
  485. package/dist/editor/sidebar/Sessions.js +29 -0
  486. package/dist/editor/sidebar/Sessions.js.map +1 -0
  487. package/dist/editor/sidebar/Sidebar.d.ts +1 -0
  488. package/dist/editor/sidebar/Sidebar.js +13 -0
  489. package/dist/editor/sidebar/Sidebar.js.map +1 -0
  490. package/dist/editor/sidebar/SidebarView.d.ts +8 -0
  491. package/dist/editor/sidebar/SidebarView.js +74 -0
  492. package/dist/editor/sidebar/SidebarView.js.map +1 -0
  493. package/dist/editor/sidebar/Translations.d.ts +1 -0
  494. package/dist/editor/sidebar/Translations.js +158 -0
  495. package/dist/editor/sidebar/Translations.js.map +1 -0
  496. package/dist/editor/sidebar/Validation.d.ts +1 -0
  497. package/dist/editor/sidebar/Validation.js +50 -0
  498. package/dist/editor/sidebar/Validation.js.map +1 -0
  499. package/dist/editor/sidebar/ViewSelector.d.ts +1 -0
  500. package/dist/editor/sidebar/ViewSelector.js +13 -0
  501. package/dist/editor/sidebar/ViewSelector.js.map +1 -0
  502. package/dist/editor/sidebar/Workbox.d.ts +1 -0
  503. package/dist/editor/sidebar/Workbox.js +78 -0
  504. package/dist/editor/sidebar/Workbox.js.map +1 -0
  505. package/dist/editor/ui/CenteredMessage.d.ts +3 -0
  506. package/dist/editor/ui/CenteredMessage.js +5 -0
  507. package/dist/editor/ui/CenteredMessage.js.map +1 -0
  508. package/dist/editor/ui/CopyToClipboardButton.d.ts +3 -0
  509. package/dist/editor/ui/CopyToClipboardButton.js +15 -0
  510. package/dist/editor/ui/CopyToClipboardButton.js.map +1 -0
  511. package/dist/editor/ui/DialogButtons.d.ts +3 -0
  512. package/dist/editor/ui/DialogButtons.js +5 -0
  513. package/dist/editor/ui/DialogButtons.js.map +1 -0
  514. package/dist/editor/ui/Icons.d.ts +38 -0
  515. package/dist/editor/ui/Icons.js +56 -0
  516. package/dist/editor/ui/Icons.js.map +1 -0
  517. package/dist/editor/ui/ItemNameDialog.d.ts +11 -0
  518. package/dist/editor/ui/ItemNameDialog.js +40 -0
  519. package/dist/editor/ui/ItemNameDialog.js.map +1 -0
  520. package/dist/editor/ui/ItemNameDialogNew.d.ts +10 -0
  521. package/dist/editor/ui/ItemNameDialogNew.js +56 -0
  522. package/dist/editor/ui/ItemNameDialogNew.js.map +1 -0
  523. package/dist/editor/ui/ItemSearch.d.ts +23 -0
  524. package/dist/editor/ui/ItemSearch.js +90 -0
  525. package/dist/editor/ui/ItemSearch.js.map +1 -0
  526. package/dist/editor/ui/PerfectTree.d.ts +60 -0
  527. package/dist/editor/ui/PerfectTree.js +187 -0
  528. package/dist/editor/ui/PerfectTree.js.map +1 -0
  529. package/dist/editor/ui/Section.d.ts +4 -0
  530. package/dist/editor/ui/Section.js +10 -0
  531. package/dist/editor/ui/Section.js.map +1 -0
  532. package/dist/editor/ui/SimpleIconButton.d.ts +11 -0
  533. package/dist/editor/ui/SimpleIconButton.js +9 -0
  534. package/dist/editor/ui/SimpleIconButton.js.map +1 -0
  535. package/dist/editor/ui/SimpleMenu.d.ts +13 -0
  536. package/dist/editor/ui/SimpleMenu.js +7 -0
  537. package/dist/editor/ui/SimpleMenu.js.map +1 -0
  538. package/dist/editor/ui/SimpleTable.d.ts +14 -0
  539. package/dist/editor/ui/SimpleTable.js +9 -0
  540. package/dist/editor/ui/SimpleTable.js.map +1 -0
  541. package/dist/editor/ui/SimpleTabs.d.ts +12 -0
  542. package/dist/editor/ui/SimpleTabs.js +19 -0
  543. package/dist/editor/ui/SimpleTabs.js.map +1 -0
  544. package/dist/editor/ui/SimpleToolbar.d.ts +3 -0
  545. package/dist/editor/ui/SimpleToolbar.js +5 -0
  546. package/dist/editor/ui/SimpleToolbar.js.map +1 -0
  547. package/dist/editor/ui/Spinner.d.ts +3 -0
  548. package/dist/editor/ui/Spinner.js +5 -0
  549. package/dist/editor/ui/Spinner.js.map +1 -0
  550. package/dist/editor/ui/Splitter.d.ts +15 -0
  551. package/dist/editor/ui/Splitter.js +151 -0
  552. package/dist/editor/ui/Splitter.js.map +1 -0
  553. package/dist/editor/ui/StackedPanels.d.ts +5 -0
  554. package/dist/editor/ui/StackedPanels.js +67 -0
  555. package/dist/editor/ui/StackedPanels.js.map +1 -0
  556. package/dist/editor/ui/Toolbar.d.ts +3 -0
  557. package/dist/editor/ui/Toolbar.js +5 -0
  558. package/dist/editor/ui/Toolbar.js.map +1 -0
  559. package/dist/editor/utils/id-helper.d.ts +1 -0
  560. package/dist/editor/utils/id-helper.js +5 -0
  561. package/dist/editor/utils/id-helper.js.map +1 -0
  562. package/dist/editor/utils/insertOptions.d.ts +3 -0
  563. package/dist/editor/utils/insertOptions.js +43 -0
  564. package/dist/editor/utils/insertOptions.js.map +1 -0
  565. package/dist/editor/utils/itemutils.d.ts +3 -0
  566. package/dist/editor/utils/itemutils.js +22 -0
  567. package/dist/editor/utils/itemutils.js.map +1 -0
  568. package/dist/editor/utils/useMemoDebug.d.ts +1 -0
  569. package/dist/editor/utils/useMemoDebug.js +18 -0
  570. package/dist/editor/utils/useMemoDebug.js.map +1 -0
  571. package/dist/editor/utils.d.ts +44 -0
  572. package/dist/editor/utils.js +309 -0
  573. package/dist/editor/utils.js.map +1 -0
  574. package/dist/editor/views/CompareView.d.ts +1 -0
  575. package/dist/editor/views/CompareView.js +145 -0
  576. package/dist/editor/views/CompareView.js.map +1 -0
  577. package/dist/editor/views/EditView.d.ts +1 -0
  578. package/dist/editor/views/EditView.js +15 -0
  579. package/dist/editor/views/EditView.js.map +1 -0
  580. package/dist/editor/views/ItemEditor.d.ts +7 -0
  581. package/dist/editor/views/ItemEditor.js +22 -0
  582. package/dist/editor/views/ItemEditor.js.map +1 -0
  583. package/dist/editor/views/SingleEditView.d.ts +8 -0
  584. package/dist/editor/views/SingleEditView.js +23 -0
  585. package/dist/editor/views/SingleEditView.js.map +1 -0
  586. package/dist/images/bg-shape-black.webp +0 -0
  587. package/dist/index.d.ts +5 -0
  588. package/dist/index.js +5 -0
  589. package/dist/index.js.map +1 -0
  590. package/dist/lib/utils.d.ts +2 -0
  591. package/dist/lib/utils.js +6 -0
  592. package/dist/lib/utils.js.map +1 -0
  593. package/dist/page-wizard/PageWizard.d.ts +70 -0
  594. package/dist/page-wizard/PageWizard.js +60 -0
  595. package/dist/page-wizard/PageWizard.js.map +1 -0
  596. package/dist/page-wizard/SelectWizard.d.ts +7 -0
  597. package/dist/page-wizard/SelectWizard.js +41 -0
  598. package/dist/page-wizard/SelectWizard.js.map +1 -0
  599. package/dist/page-wizard/WizardSteps.d.ts +8 -0
  600. package/dist/page-wizard/WizardSteps.js +69 -0
  601. package/dist/page-wizard/WizardSteps.js.map +1 -0
  602. package/dist/page-wizard/service.d.ts +15 -0
  603. package/dist/page-wizard/service.js +22 -0
  604. package/dist/page-wizard/service.js.map +1 -0
  605. package/dist/page-wizard/startPageWizardCommand.d.ts +13 -0
  606. package/dist/page-wizard/startPageWizardCommand.js +21 -0
  607. package/dist/page-wizard/startPageWizardCommand.js.map +1 -0
  608. package/dist/page-wizard/steps/BuildPageStep.d.ts +2 -0
  609. package/dist/page-wizard/steps/BuildPageStep.js +133 -0
  610. package/dist/page-wizard/steps/BuildPageStep.js.map +1 -0
  611. package/dist/page-wizard/steps/CollectStep.d.ts +2 -0
  612. package/dist/page-wizard/steps/CollectStep.js +119 -0
  613. package/dist/page-wizard/steps/CollectStep.js.map +1 -0
  614. package/dist/page-wizard/steps/ComponentTypesSelector.d.ts +11 -0
  615. package/dist/page-wizard/steps/ComponentTypesSelector.js +209 -0
  616. package/dist/page-wizard/steps/ComponentTypesSelector.js.map +1 -0
  617. package/dist/page-wizard/steps/Components.d.ts +9 -0
  618. package/dist/page-wizard/steps/Components.js +89 -0
  619. package/dist/page-wizard/steps/Components.js.map +1 -0
  620. package/dist/page-wizard/steps/CreatePage.d.ts +12 -0
  621. package/dist/page-wizard/steps/CreatePage.js +140 -0
  622. package/dist/page-wizard/steps/CreatePage.js.map +1 -0
  623. package/dist/page-wizard/steps/CreatePageAndLayoutStep.d.ts +2 -0
  624. package/dist/page-wizard/steps/CreatePageAndLayoutStep.js +228 -0
  625. package/dist/page-wizard/steps/CreatePageAndLayoutStep.js.map +1 -0
  626. package/dist/page-wizard/steps/EditButton.d.ts +8 -0
  627. package/dist/page-wizard/steps/EditButton.js +5 -0
  628. package/dist/page-wizard/steps/EditButton.js.map +1 -0
  629. package/dist/page-wizard/steps/FieldEditor.d.ts +5 -0
  630. package/dist/page-wizard/steps/FieldEditor.js +28 -0
  631. package/dist/page-wizard/steps/FieldEditor.js.map +1 -0
  632. package/dist/page-wizard/steps/Generate.d.ts +5 -0
  633. package/dist/page-wizard/steps/Generate.js +10 -0
  634. package/dist/page-wizard/steps/Generate.js.map +1 -0
  635. package/dist/page-wizard/steps/ImagesStep.d.ts +2 -0
  636. package/dist/page-wizard/steps/ImagesStep.js +156 -0
  637. package/dist/page-wizard/steps/ImagesStep.js.map +1 -0
  638. package/dist/page-wizard/steps/LayoutStep.d.ts +2 -0
  639. package/dist/page-wizard/steps/LayoutStep.js +118 -0
  640. package/dist/page-wizard/steps/LayoutStep.js.map +1 -0
  641. package/dist/page-wizard/steps/SelectStep.d.ts +2 -0
  642. package/dist/page-wizard/steps/SelectStep.js +145 -0
  643. package/dist/page-wizard/steps/SelectStep.js.map +1 -0
  644. package/dist/page-wizard/steps/schema.d.ts +13 -0
  645. package/dist/page-wizard/steps/schema.js +137 -0
  646. package/dist/page-wizard/steps/schema.js.map +1 -0
  647. package/dist/page-wizard/steps/usePageCreator.d.ts +6 -0
  648. package/dist/page-wizard/steps/usePageCreator.js +192 -0
  649. package/dist/page-wizard/steps/usePageCreator.js.map +1 -0
  650. package/dist/splash-screen/NewPage.d.ts +3 -0
  651. package/dist/splash-screen/NewPage.js +129 -0
  652. package/dist/splash-screen/NewPage.js.map +1 -0
  653. package/dist/splash-screen/SectionHeadline.d.ts +4 -0
  654. package/dist/splash-screen/SectionHeadline.js +7 -0
  655. package/dist/splash-screen/SectionHeadline.js.map +1 -0
  656. package/dist/splash-screen/SplashScreen.d.ts +1 -0
  657. package/dist/splash-screen/SplashScreen.js +79 -0
  658. package/dist/splash-screen/SplashScreen.js.map +1 -0
  659. package/dist/styles.css +2739 -0
  660. package/dist/tour/Tour.d.ts +3 -0
  661. package/dist/tour/Tour.js +319 -0
  662. package/dist/tour/Tour.js.map +1 -0
  663. package/dist/tour/default-tour.d.ts +9 -0
  664. package/dist/tour/default-tour.js +229 -0
  665. package/dist/tour/default-tour.js.map +1 -0
  666. package/dist/tour/preview-tour.d.ts +2 -0
  667. package/dist/tour/preview-tour.js +91 -0
  668. package/dist/tour/preview-tour.js.map +1 -0
  669. package/dist/types.d.ts +259 -0
  670. package/dist/types.js +2 -0
  671. package/dist/types.js.map +1 -0
  672. package/package.json +12 -5
  673. package/src/components/ui/button.tsx +62 -0
  674. package/src/editor/Titlebar.tsx +2 -2
  675. package/src/editor/client/EditorClient.tsx +8 -9
  676. package/src/editor/menubar/ActionsMenu.tsx +1 -1
  677. package/src/editor/menubar/Menu.tsx +3 -3
  678. package/src/editor/menubar/VersionSelector.tsx +9 -10
  679. package/src/editor/page-editor-chrome/CommentHighlighting.tsx +8 -9
  680. package/src/editor/page-viewer/MiniMap.tsx +11 -11
  681. package/src/editor/reviews/Comment.tsx +38 -33
  682. package/src/editor/sidebar/ComponentTree.tsx +512 -512
  683. package/src/editor/sidebar/Insert.tsx +2 -2
  684. package/src/editor/sidebar/MainContentTree.tsx +1 -0
  685. package/src/editor/sidebar/Translations.tsx +12 -12
  686. package/src/editor/sidebar/ViewSelector.tsx +6 -7
  687. package/src/editor/ui/PerfectTree.tsx +2 -2
  688. package/src/editor/ui/SimpleTable.tsx +3 -6
  689. package/src/editor/utils.ts +32 -29
  690. package/src/index.ts +2 -0
  691. package/src/lib/utils.ts +6 -0
  692. package/src/splash-screen/SplashScreen.tsx +2 -2
  693. package/styles.css +124 -2
  694. package/tsconfig.build.json +23 -13
  695. package/tsconfig.json +3 -0
@@ -0,0 +1,92 @@
1
+ import Cookies from "universal-cookie";
2
+ import { get, post } from "./serviceHelper";
3
+ export async function getChildren(itemId, sessionId, templateIds = [], includeEmbeddedItems, language, include) {
4
+ let url =
5
+ // configuration.services.editorService.baseUrl +
6
+ "/alpaca/editor/children?itemId=" +
7
+ itemId +
8
+ "&sessionId=" +
9
+ sessionId +
10
+ "&includeEmbeddedItems=" +
11
+ includeEmbeddedItems +
12
+ "&language=" +
13
+ language +
14
+ "&include=" +
15
+ include;
16
+ url = templateIds.reduce((u, t) => u + "&templateIds=" + t, url);
17
+ const response = await fetch(url, {
18
+ method: "GET",
19
+ credentials: "include",
20
+ headers: {
21
+ "Content-Type": "application/json",
22
+ Cookie: new Cookies().getAll(),
23
+ },
24
+ });
25
+ return await response.json();
26
+ }
27
+ // export async function getItem(
28
+ // item: ItemDescriptor
29
+ // ): Promise<FullItem | undefined> {
30
+ // let url =
31
+ // "/alpaca/editor/item?itemId=" +
32
+ // item.id +
33
+ // "&language=" +
34
+ // item.language +
35
+ // "&version=" +
36
+ // item.version;
37
+ // const response = await fetch(url, {
38
+ // method: "GET",
39
+ // credentials: "include",
40
+ // headers: {
41
+ // "Content-Type": "application/json",
42
+ // Cookie: new Cookies().getAll(),
43
+ // },
44
+ // });
45
+ // if (response.ok) {
46
+ // const json = await response.json();
47
+ // return json;
48
+ // }
49
+ // return undefined;
50
+ // }
51
+ export async function fetchItems(itemDescriptors) {
52
+ let url = "/alpaca/editor/items";
53
+ const response = await post(url, itemDescriptors);
54
+ return response.data || [];
55
+ }
56
+ export async function getSites() {
57
+ return await get("/alpaca/editor/sites");
58
+ }
59
+ export async function resolvePageAndSite(itemId, language, version) {
60
+ const result = await post("/alpaca/editor/resolve", {
61
+ itemId,
62
+ language,
63
+ version,
64
+ mode: "edit",
65
+ });
66
+ if (result.data) {
67
+ return result.data;
68
+ }
69
+ }
70
+ export async function getLanguagesAndVersions(item) {
71
+ return await post("/alpaca/editor/getLanguagesAndVersions", item);
72
+ }
73
+ export async function getPageJson(page) {
74
+ const response = await post("/alpaca/headless/layout", {
75
+ itemId: page.id,
76
+ language: page.language,
77
+ version: page.version,
78
+ mode: "preview",
79
+ });
80
+ return response.data?.page;
81
+ }
82
+ export async function getDictionary(siteName, language) {
83
+ let response = await get("/alpaca/editor/dictionary/index?siteName=" +
84
+ siteName +
85
+ "&language=" +
86
+ language);
87
+ return response.data;
88
+ }
89
+ export async function getWorkbox(items) {
90
+ return await post("/alpaca/editor/workbox", items);
91
+ }
92
+ //# sourceMappingURL=contentService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contentService.js","sourceRoot":"","sources":["../../../src/editor/services/contentService.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,kBAAkB,CAAC;AAEvC,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AA4B5C,MAAM,CAAC,KAAK,UAAU,WAAW,CAC/B,MAAc,EACd,SAAiB,EACjB,cAAwB,EAAE,EAC1B,oBAA6B,EAC7B,QAAg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,sBAAsB,CAAC,CAAC;AACnD,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,kBAAkB,CACtC,MAAc,EACd,QAAgB,EAChB,OAAe;IAKf,MAAM,MAAM,GAAG,MAAM,IAAI,CAItB,wBAAwB,EAAE;QAC3B,MAAM;QACN,QAAQ;QACR,OAAO;QACP,IAAI,EAAE,MAAM;KACb,CAAC,CAAC;IAEH,IAAI,MAAM,CAAC,IAAI,EAAE,CAAC;QAChB,OAAO,MAAM,CAAC,IAAI,CAAC;IACrB,CAAC;AACH,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,uBAAuB,CAAC,IAAoB;IAChE,OAAO,MAAM,IAAI,CACf,wCAAwC,EACxC,IAAI,CACL,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,WAAW,CAAC,IAAoB;IACpD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,yBAAyB,EAAE;QACrD,MAAM,EAAE,IAAI,CAAC,EAAE;QACf,QAAQ,EAAE,IAAI,CAAC,QAAQ;QACvB,OAAO,EAAE,IAAI,CAAC,OAAO;QACrB,IAAI,EAAE,SAAS;KAChB,CAAC,CAAC;IACH,OAAQ,QAAQ,CAAC,IAAY,EAAE,IAAI,CAAC;AACtC,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,aAAa,CAAC,QAAgB,EAAE,QAAgB;IACpE,IAAI,QAAQ,GAAG,MAAM,GAAG,CACtB,2CAA2C;QACzC,QAAQ;QACR,YAAY;QACZ,QAAQ,CACX,CAAC;IACF,OAAO,QAAQ,CAAC,IAA0B,CAAC;AAC7C,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,UAAU,CAAC,KAAuB;IACtD,OAAO,MAAM,IAAI,CAAgB,wBAAwB,EAAE,KAAK,CAAC,CAAC;AACpE,CAAC"}
@@ -0,0 +1,34 @@
1
+ import { EditOperation, FieldDescriptor, FieldHistoryItem, InsertOption, User } from "../../types";
2
+ import { ItemTreeNodeData } from "./contentService";
3
+ import { ExecutionResult } from "./serviceHelper";
4
+ import { Field, FieldButton, ItemDescriptor, ItemIdAndName } from "../pageModel";
5
+ import { PictureRawValue } from "../fieldTypes";
6
+ export type PlaceholderInsertOptions = {
7
+ key: string;
8
+ insertOptions: InsertOption[];
9
+ };
10
+ export type { ExecutionResult } from "./serviceHelper";
11
+ export declare function connectSocket(sessionId: string): WebSocket;
12
+ export declare function getPictureValue(field: Field, pictureRawValue: PictureRawValue, site: string, sessionId: string): Promise<any>;
13
+ export declare function executeEditOperation(editOperation: EditOperation, sessionId: string): Promise<ExecutionResult<unknown>>;
14
+ export declare function executeUndo(sessionId: string, editOperationIds: string[]): Promise<ExecutionResult<any>>;
15
+ export declare function executeRedo(sessionId: string, editOperationId: string): Promise<ExecutionResult<any>>;
16
+ export declare function executeDeleteItems(items: ItemDescriptor[]): Promise<ExecutionResult<any>>;
17
+ export declare function lockItems(items: ItemDescriptor[]): Promise<ExecutionResult<any>>;
18
+ export declare function unlockItems(items: ItemDescriptor[]): Promise<ExecutionResult<any>>;
19
+ export declare function lockField(item: ItemDescriptor, fieldId: string, sessionId: string): Promise<ExecutionResult<any>>;
20
+ export declare function releaseFieldLocks(sessionId: string): Promise<ExecutionResult<any>>;
21
+ export declare function validateItems(items: ItemDescriptor[], sessionId: string): Promise<ExecutionResult<any>>;
22
+ export declare function executeWorkflowCommand(item: ItemDescriptor, commandId: string, comment: string): Promise<ExecutionResult<any>>;
23
+ export declare function executeFieldAction(item: ItemDescriptor, fieldId: string, pageItem: ItemDescriptor, action: string, sessionId: string, selectedText: string, callback: (data: any) => void): Promise<ExecutionResult<any>>;
24
+ export declare function createVersion(page: ItemDescriptor, sessionId: string): Promise<ExecutionResult<any>>;
25
+ export declare function deleteVersion(page: ItemDescriptor, sessionId: string): Promise<ExecutionResult<any>>;
26
+ export declare function loadInsertOptions(item: ItemDescriptor): Promise<ItemTreeNodeData[]>;
27
+ export declare function loadPlaceholderInsertOptions(pageItem: ItemDescriptor, placeholderKeys: string[]): Promise<PlaceholderInsertOptions[]>;
28
+ export declare function loadFieldButtons(field: FieldDescriptor): Promise<FieldButton[]>;
29
+ export declare function getLookupSources(field: Field, sessionId: string): Promise<ItemIdAndName[]>;
30
+ export declare function executeCreateItem(parent: ItemDescriptor, templateId: string, name: string): Promise<ExecutionResult<any>>;
31
+ export declare function getEditHistory(item: ItemDescriptor): Promise<ExecutionResult<EditOperation[]>>;
32
+ export declare function getFieldHistory(item: ItemDescriptor, fieldId: string): Promise<ExecutionResult<FieldHistoryItem[]>>;
33
+ export declare function getUserInfo(): Promise<User>;
34
+ export declare function executeMoveItems(items: ItemDescriptor[], target: ItemDescriptor, index: number): Promise<ExecutionResult<any>>;
@@ -0,0 +1,294 @@
1
+ import Cookies from "universal-cookie";
2
+ import { get, post } from "./serviceHelper";
3
+ export function connectSocket(sessionId) {
4
+ const host = window.location.hostname;
5
+ const protocol = window.location.protocol === "https:" ? "wss:" : "ws:";
6
+ const port = window.location.port ? `:${window.location.port}` : "";
7
+ const socketUrl = `${protocol}//${host}${port}/alpaca/editor/socket?sessionId=${sessionId}`;
8
+ console.log("Connect to socket: " + socketUrl);
9
+ return new WebSocket(socketUrl);
10
+ }
11
+ export async function getPictureValue(field, pictureRawValue, site, sessionId) {
12
+ const fieldItem = field.descriptor.item;
13
+ if (!fieldItem)
14
+ return;
15
+ const response = await fetch("/alpaca/editor/getPictureValue?sessionId=" + sessionId, {
16
+ method: "POST",
17
+ body: JSON.stringify({
18
+ site,
19
+ itemId: fieldItem.id,
20
+ itemLanguage: fieldItem.language,
21
+ itemVersion: fieldItem.version,
22
+ pictureFieldId: field.id,
23
+ pictureValue: JSON.stringify(pictureRawValue),
24
+ }),
25
+ credentials: "include",
26
+ headers: {
27
+ "Content-Type": "application/json",
28
+ Cookie: new Cookies().getAll(),
29
+ },
30
+ });
31
+ return await response.json();
32
+ }
33
+ export async function executeEditOperation(editOperation, sessionId) {
34
+ editOperation.sessionId = sessionId;
35
+ return post("/alpaca/editor/edit", editOperation, sessionId);
36
+ }
37
+ export async function executeUndo(sessionId, editOperationIds) {
38
+ return post("/alpaca/editor/undo", { editOperationIds }, sessionId);
39
+ }
40
+ export async function executeRedo(sessionId, editOperationId) {
41
+ return post("/alpaca/editor/redo", { editOperationIds: [editOperationId] }, sessionId);
42
+ }
43
+ export async function executeDeleteItems(items) {
44
+ return post("/alpaca/editor/deleteItems", items);
45
+ }
46
+ function getItemDescriptor(item) {
47
+ return {
48
+ id: item.id,
49
+ language: item.language,
50
+ version: item.version,
51
+ };
52
+ }
53
+ export async function lockItems(items) {
54
+ const response = await post("/alpaca/editor/lock", items.map(getItemDescriptor));
55
+ return response;
56
+ }
57
+ export async function unlockItems(items) {
58
+ const response = await post("/alpaca/editor/unlock", items.map(getItemDescriptor));
59
+ return response;
60
+ }
61
+ export async function lockField(item, fieldId, sessionId) {
62
+ const response = await post("/alpaca/editor/lockField", {
63
+ item,
64
+ fieldId: fieldId,
65
+ sessionId: sessionId,
66
+ });
67
+ return response;
68
+ }
69
+ export async function releaseFieldLocks(sessionId) {
70
+ const response = await post("/alpaca/editor/releaseFieldLocks", {
71
+ sessionId,
72
+ });
73
+ return response;
74
+ }
75
+ export async function validateItems(items, sessionId) {
76
+ const response = await post("/alpaca/editor/validate", items.map(getItemDescriptor), sessionId);
77
+ if (response.type !== "success")
78
+ return response;
79
+ return await response;
80
+ }
81
+ export async function executeWorkflowCommand(item, commandId, comment) {
82
+ const response = await post("/alpaca/editor/executeWorkflowCommand", {
83
+ item,
84
+ commandId,
85
+ comment,
86
+ });
87
+ return response;
88
+ }
89
+ export async function executeFieldAction(item, fieldId, pageItem, action, sessionId, selectedText, callback) {
90
+ const response = await fetch("/alpaca/editor/executeFieldAction?sessionId=" + sessionId, {
91
+ method: "POST",
92
+ body: JSON.stringify({
93
+ item,
94
+ pageItem,
95
+ fieldId,
96
+ action,
97
+ selectedText,
98
+ sessionId,
99
+ }),
100
+ credentials: "include",
101
+ headers: {
102
+ "Content-Type": "application/json",
103
+ Cookie: new Cookies().getAll(),
104
+ },
105
+ });
106
+ if (response.status === 500 || response.redirected) {
107
+ return {
108
+ type: "error",
109
+ summary: "Error",
110
+ details: "An error occured executing the field action.",
111
+ response,
112
+ };
113
+ }
114
+ if (response.status === 401) {
115
+ return {
116
+ type: "error",
117
+ summary: "Unauthorized",
118
+ details: "Not logged in anymore?",
119
+ response,
120
+ };
121
+ }
122
+ if (!response?.body)
123
+ return {
124
+ type: "error",
125
+ summary: "Error",
126
+ details: "An error occured.",
127
+ response,
128
+ };
129
+ const reader = response.body.getReader();
130
+ const decoder = new TextDecoder();
131
+ let buffer = "";
132
+ let result = null;
133
+ while (true) {
134
+ const { done, value } = await reader.read();
135
+ if (done) {
136
+ break;
137
+ }
138
+ buffer += decoder.decode(value, { stream: true }); // 'stream: true' ensures that any incomplete multi-byte characters aren't malformed.
139
+ // Split the buffer by newline and keep the last partial line for the next iteration.
140
+ const lines = buffer.split("\n");
141
+ if (lines.length > 0) {
142
+ buffer = lines.pop() || ""; // Incomplete line (if any) is kept for the next iteration.
143
+ for (let line of lines) {
144
+ if (line.trim() === "")
145
+ continue; // Skip empty lines if any.
146
+ try {
147
+ const jsonData = JSON.parse(line);
148
+ callback(jsonData);
149
+ result = jsonData;
150
+ }
151
+ catch (e) {
152
+ console.error("Error parsing line:" + line, e);
153
+ }
154
+ }
155
+ }
156
+ }
157
+ // If there's any remaining content in the buffer after processing all chunks, try to process it.
158
+ if (buffer.trim() !== "") {
159
+ try {
160
+ const jsonData = JSON.parse(buffer);
161
+ result = jsonData;
162
+ }
163
+ catch (e) {
164
+ console.error("Error parsing the final buffer content:", e);
165
+ }
166
+ }
167
+ callback(result);
168
+ return result;
169
+ }
170
+ export async function createVersion(page, sessionId) {
171
+ const response = await fetch(
172
+ // configuration.services.editorService.baseUrl +
173
+ "/alpaca/editor/createVersion?sessionId=" + sessionId, {
174
+ method: "POST",
175
+ body: JSON.stringify({
176
+ item: page,
177
+ }),
178
+ credentials: "include",
179
+ headers: {
180
+ "Content-Type": "application/json",
181
+ Cookie: new Cookies().getAll(),
182
+ },
183
+ });
184
+ if (response.ok)
185
+ return { type: "success", response };
186
+ else {
187
+ if (response.status === 401) {
188
+ return {
189
+ type: "error",
190
+ summary: "Unauthorized",
191
+ details: "Not logged in anymore?",
192
+ response,
193
+ };
194
+ }
195
+ return {
196
+ type: "error",
197
+ summary: "Error",
198
+ details: "An error occured while saving changes.",
199
+ response,
200
+ };
201
+ }
202
+ }
203
+ export async function deleteVersion(page, sessionId) {
204
+ const url = "/alpaca/editor/deleteVersion?sessionId=" + sessionId;
205
+ return await post(url, { item: getItemDescriptor(page) });
206
+ }
207
+ export async function loadInsertOptions(item) {
208
+ let url =
209
+ //configuration.services.editorService.baseUrl +
210
+ "/alpaca/editor/insertoptions";
211
+ const response = await fetch(url, {
212
+ method: "POST",
213
+ credentials: "include",
214
+ body: JSON.stringify(item),
215
+ headers: {
216
+ "Content-Type": "application/json",
217
+ Cookie: new Cookies().getAll(),
218
+ },
219
+ });
220
+ return await response.json();
221
+ }
222
+ export async function loadPlaceholderInsertOptions(pageItem, placeholderKeys) {
223
+ let url = "/alpaca/editor/placeholderinsertoptions";
224
+ const response = await fetch(url, {
225
+ method: "POST",
226
+ credentials: "include",
227
+ body: JSON.stringify({ pageItem, placeholderKeys }),
228
+ headers: {
229
+ "Content-Type": "application/json",
230
+ Cookie: new Cookies().getAll(),
231
+ },
232
+ });
233
+ return await response.json();
234
+ }
235
+ export async function loadFieldButtons(field) {
236
+ let url =
237
+ //configuration.services.editorService.baseUrl +
238
+ "/alpaca/editor/fieldbuttons";
239
+ const response = await fetch(url, {
240
+ method: "POST",
241
+ credentials: "include",
242
+ body: JSON.stringify(field),
243
+ headers: {
244
+ "Content-Type": "application/json",
245
+ Cookie: new Cookies().getAll(),
246
+ },
247
+ });
248
+ return await response.json();
249
+ }
250
+ export async function getLookupSources(field, sessionId) {
251
+ let url = "/alpaca/editor/getlookupsources";
252
+ const fieldItem = field.descriptor.item;
253
+ const response = await post(url, { item: fieldItem, fieldId: field.id }, sessionId);
254
+ return (await response.data) || [];
255
+ }
256
+ export async function executeCreateItem(parent, templateId, name) {
257
+ let url = "/alpaca/editor/createItem";
258
+ const resopnse = post(url, { parent, templateId, name });
259
+ return resopnse;
260
+ }
261
+ export async function getEditHistory(item) {
262
+ let url = "/alpaca/editor/editHistory?itemId=" +
263
+ item.id +
264
+ "&language=" +
265
+ item.language +
266
+ "&version=" +
267
+ item.version;
268
+ const result = get(url);
269
+ return result;
270
+ }
271
+ export async function getFieldHistory(item, fieldId) {
272
+ let url = "/alpaca/editor/fieldHistory?itemId=" +
273
+ item.id +
274
+ "&language=" +
275
+ item.language +
276
+ "&version=" +
277
+ item.version +
278
+ "&fieldId=" +
279
+ fieldId;
280
+ const result = get(url);
281
+ return result;
282
+ }
283
+ export async function getUserInfo() {
284
+ const response = await fetch("/alpaca/editor/userinfo");
285
+ return await response.json();
286
+ }
287
+ export async function executeMoveItems(items, target, index) {
288
+ return post("/alpaca/editor/moveItems", {
289
+ items: items.map(getItemDescriptor),
290
+ target: getItemDescriptor(target),
291
+ index,
292
+ });
293
+ }
294
+ //# sourceMappingURL=editService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"editService.js","sourceRoot":"","sources":["../../../src/editor/services/editService.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,kBAAkB,CAAC;AASvC,OAAO,EAAmB,GAAG,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAgB7D,MAAM,UAAU,aAAa,CAAC,SAAiB;IAC7C,MAAM,IAAI,GAAG,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC;IACtC,MAAM,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC,QAAQ,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC;IACxE,MAAM,IAAI,GAAG,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,MAAM,CA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Q,GAAG,IAAI,CAAiB,GAAG,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,QAAQ,CAAC;AAClB,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,cAAc,CAClC,IAAoB;IAEpB,IAAI,GAAG,GACL,oCAAoC;QACpC,IAAI,CAAC,EAAE;QACP,YAAY;QACZ,IAAI,CAAC,QAAQ;QACb,WAAW;QACX,IAAI,CAAC,OAAO,CAAC;IAEf,MAAM,MAAM,GAAG,GAAG,CAAkB,GAAG,CAAC,CAAC;IAEzC,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,eAAe,CACnC,IAAoB,EACpB,OAAe;IAEf,IAAI,GAAG,GACL,qCAAqC;QACrC,IAAI,CAAC,EAAE;QACP,YAAY;QACZ,IAAI,CAAC,QAAQ;QACb,WAAW;QACX,IAAI,CAAC,OAAO;QACZ,WAAW;QACX,OAAO,CAAC;IAEV,MAAM,MAAM,GAAG,GAAG,CAAqB,GAAG,CAAC,CAAC;IAE5C,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,WAAW;IAC/B,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,yBAAyB,CAAC,CAAC;IACxD,OAAO,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;AAC/B,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,gBAAgB,CACpC,KAAuB,EACvB,MAAsB,EACtB,KAAa;IAEb,OAAO,IAAI,CAAC,0BAA0B,EAAE;QACtC,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC;QACnC,MAAM,EAAE,iBAAiB,CAAC,MAAM,CAAC;QACjC,KAAK;KACN,CAAC,CAAC;AACL,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { IndexStatus } from "../../types";
2
+ export declare function getIndexStatus(index: string): Promise<IndexStatus | undefined>;
3
+ export declare function setupIndex(index: string): Promise<void>;
4
+ export declare function setupRebuildJob(index: string): Promise<void>;
5
+ export declare function rebuildIndex(index: string): Promise<void>;
6
+ export declare function getIndexes(): Promise<string[]>;
@@ -0,0 +1,19 @@
1
+ import { get, post } from "./serviceHelper";
2
+ export async function getIndexStatus(index) {
3
+ var result = await get("/alpaca/headless/editor/index/status?name=" + index);
4
+ return result.data;
5
+ }
6
+ export async function setupIndex(index) {
7
+ await post("/alpaca/headless/editor/index/setup?name=" + index, {});
8
+ }
9
+ export async function setupRebuildJob(index) {
10
+ await post("/alpaca/headless/editor/index/setuprebuildjob?name=" + index, {});
11
+ }
12
+ export async function rebuildIndex(index) {
13
+ await post("/alpaca/headless/editor/index/rebuild?name=" + index, {});
14
+ }
15
+ export async function getIndexes() {
16
+ var result = await get("/alpaca/headless/editor/index/list");
17
+ return result.data || [];
18
+ }
19
+ //# sourceMappingURL=indexService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"indexService.js","sourceRoot":"","sources":["../../../src/editor/services/indexService.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAE5C,MAAM,CAAC,KAAK,UAAU,cAAc,CAAC,KAAa;IAChD,IAAI,MAAM,GAAG,MAAM,GAAG,CAAc,4CAA4C,GAAG,KAAK,CAAC,CAAC;IAC1F,OAAO,MAAM,CAAC,IAAI,CAAC;AACrB,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,UAAU,CAAC,KAAa;IAC5C,MAAM,IAAI,CAAC,2CAA2C,GAAG,KAAK,EAAE,EAAE,CAAC,CAAC;AACtE,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,eAAe,CAAC,KAAa;IACjD,MAAM,IAAI,CAAC,qDAAqD,GAAG,KAAK,EAAE,EAAE,CAAC,CAAC;AAChF,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,YAAY,CAAC,KAAa;IAC9C,MAAM,IAAI,CAAC,6CAA6C,GAAG,KAAK,EAAE,EAAE,CAAC,CAAC;AACxE,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,UAAU;IAC9B,IAAI,MAAM,GAAG,MAAM,GAAG,CAAW,oCAAoC,CAAC,CAAC;IACvE,OAAO,MAAM,CAAC,IAAI,IAAI,EAAE,CAAC;AAC3B,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { Comment, Review, Reviewer } from "../../types";
2
+ import { ItemDescriptor } from "../pageModel";
3
+ export declare function createOrUpdateComment(comment: Comment): Promise<import("./serviceHelper").ExecutionResult<unknown>>;
4
+ export declare function getComments(itemId: string, language: string, version: number): Promise<import("./serviceHelper").ExecutionResult<Comment[]>>;
5
+ export declare function resolveComment(comment: Comment): Promise<import("./serviceHelper").ExecutionResult<unknown>>;
6
+ export declare function deleteComment(comment: Comment): Promise<import("./serviceHelper").ExecutionResult<unknown>>;
7
+ export declare function getReviewers(itemId: string, language: string): Promise<import("./serviceHelper").ExecutionResult<Reviewer[]>>;
8
+ export declare function getReviews(itemId: string, language: string, version: number): Promise<import("./serviceHelper").ExecutionResult<Review[]>>;
9
+ export declare function inviteReviewer(review: Review): Promise<import("./serviceHelper").ExecutionResult<unknown>>;
10
+ export declare function addReview(review: Review): Promise<import("./serviceHelper").ExecutionResult<unknown>>;
11
+ export declare function approveReview(itemDescriptor: ItemDescriptor): Promise<import("./serviceHelper").ExecutionResult<unknown>>;
12
+ export declare function rejectReview(itemDescriptor: ItemDescriptor): Promise<import("./serviceHelper").ExecutionResult<unknown>>;
@@ -0,0 +1,32 @@
1
+ import { get, post } from "./serviceHelper";
2
+ export function createOrUpdateComment(comment) {
3
+ return post("/alpaca/editor/comments/save", comment);
4
+ }
5
+ export function getComments(itemId, language, version) {
6
+ return get(`/alpaca/editor/comments/index?mainItemId=${itemId}&language=${language}&version=${version}`);
7
+ }
8
+ export function resolveComment(comment) {
9
+ return post(`/alpaca/editor/comments/resolve?commentId=${comment.id}`, {});
10
+ }
11
+ export function deleteComment(comment) {
12
+ return post(`/alpaca/editor/comments/delete?commentId=${comment.id}`, {});
13
+ }
14
+ export function getReviewers(itemId, language) {
15
+ return get(`/alpaca/editor/reviews/reviewers?itemId=${itemId}&language=${language}`);
16
+ }
17
+ export function getReviews(itemId, language, version) {
18
+ return get(`/alpaca/editor/reviews/index?itemId=${itemId}&language=${language}&version=${version}`);
19
+ }
20
+ export function inviteReviewer(review) {
21
+ return post(`/alpaca/editor/reviews/invite`, review);
22
+ }
23
+ export function addReview(review) {
24
+ return post(`/alpaca/editor/reviews/add`, review);
25
+ }
26
+ export function approveReview(itemDescriptor) {
27
+ return post(`/alpaca/editor/reviews/approve`, itemDescriptor);
28
+ }
29
+ export function rejectReview(itemDescriptor) {
30
+ return post(`/alpaca/editor/reviews/reject`, itemDescriptor);
31
+ }
32
+ //# sourceMappingURL=reviewsService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reviewsService.js","sourceRoot":"","sources":["../../../src/editor/services/reviewsService.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAI5C,MAAM,UAAU,qBAAqB,CAAC,OAAgB;IACpD,OAAO,IAAI,CAAC,8BAA8B,EAAE,OAAO,CAAC,CAAC;AACvD,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,MAAc,EAAE,QAAgB,EAAE,OAAe;IAC3E,OAAO,GAAG,CAAY,4CAA4C,MAAM,aAAa,QAAQ,YAAY,OAAO,EAAE,CAAC,CAAC;AACtH,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,OAAgB;IAC7C,OAAO,IAAI,CAAC,6CAA6C,OAAO,CAAC,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7E,CAAC;AAED,MAAM,UAAU,aAAa,CAAC,OAAgB;IAC5C,OAAO,IAAI,CAAC,4CAA4C,OAAO,CAAC,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;AAC5E,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,MAAc,EAAE,QAAgB;IAC3D,OAAO,GAAG,CAAa,2CAA2C,MAAM,aAAa,QAAQ,EAAE,CAAC,CAAC;AACnG,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,MAAc,EAAE,QAAgB,EAAE,OAAe;IAC1E,OAAO,GAAG,CAAW,uCAAuC,MAAM,aAAa,QAAQ,YAAY,OAAO,EAAE,CAAC,CAAC;AAChH,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,MAAc;IAC3C,OAAO,IAAI,CAAC,+BAA+B,EAAE,MAAM,CAAC,CAAC;AACvD,CAAC;AAED,MAAM,UAAU,SAAS,CAAC,MAAa;IACrC,OAAO,IAAI,CAAC,4BAA4B,EAAE,MAAM,CAAC,CAAC;AACpD,CAAC;AAED,MAAM,UAAU,aAAa,CAAC,cAA8B;IAC1D,OAAO,IAAI,CAAC,gCAAgC,EAAE,cAAc,CAAC,CAAC;AAChE,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,cAA8B;IACzD,OAAO,IAAI,CAAC,+BAA+B,EAAE,cAAc,CAAC,CAAC;AAC/D,CAAC"}
@@ -0,0 +1,9 @@
1
+ export type ExecutionResult<T> = {
2
+ type: "success" | "error" | "unauthorized";
3
+ summary?: string;
4
+ details?: string;
5
+ response: Response;
6
+ data?: T;
7
+ };
8
+ export declare function post<T>(url: string, body: any, session?: string): Promise<ExecutionResult<T>>;
9
+ export declare function get<T>(url: string, session?: string): Promise<ExecutionResult<T>>;
@@ -0,0 +1,64 @@
1
+ export async function post(url, body, session) {
2
+ if (session)
3
+ url += "?sessionId=" + session;
4
+ const response = await fetch(url, {
5
+ method: "POST",
6
+ body: JSON.stringify(body),
7
+ credentials: "include",
8
+ headers: {
9
+ "Content-Type": "application/json",
10
+ },
11
+ });
12
+ return handleResponse(response);
13
+ }
14
+ export async function get(url, session) {
15
+ if (session)
16
+ url += "?sessionId=" + session;
17
+ const response = await fetch(url, {
18
+ method: "GET",
19
+ credentials: "include",
20
+ headers: {
21
+ "Content-Type": "application/json",
22
+ },
23
+ });
24
+ return handleResponse(response);
25
+ }
26
+ async function handleResponse(response) {
27
+ if (response.status === 400) {
28
+ const data = await response.json();
29
+ return {
30
+ type: "error",
31
+ summary: data.summary,
32
+ details: data.details,
33
+ response,
34
+ };
35
+ }
36
+ if (response.status === 500 || response.redirected) {
37
+ return {
38
+ type: "error",
39
+ summary: "Error",
40
+ details: await response.text(),
41
+ response,
42
+ };
43
+ }
44
+ if (response.status === 401) {
45
+ return {
46
+ type: "unauthorized",
47
+ summary: "Unauthorized",
48
+ details: "Not logged in anymore?",
49
+ response,
50
+ };
51
+ }
52
+ if (response.status !== 200) {
53
+ return { type: "error", response, details: await response.text() };
54
+ }
55
+ if (!response.headers.get("content-type")?.includes("application/json")) {
56
+ return {
57
+ type: "success",
58
+ response,
59
+ };
60
+ }
61
+ const data = (await response.json());
62
+ return { type: "success", response, data };
63
+ }
64
+ //# sourceMappingURL=serviceHelper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serviceHelper.js","sourceRoot":"","sources":["../../../src/editor/services/serviceHelper.ts"],"names":[],"mappings":"AAQA,MAAM,CAAC,KAAK,UAAU,IAAI,CACxB,GAAW,EACX,IAAS,EACT,OAAgB;IAEhB,IAAI,OAAO;QAAE,GAAG,IAAI,aAAa,GAAG,OAAO,CAAC;IAE5C,MAAM,QAAQ,GAAG,MAAM,KAAK,CAC1B,GAAG,EACH;QACE,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;QAC1B,WAAW,EAAE,SAAS;QACtB,OAAO,EAAE;YACP,cAAc,EAAE,kBAAkB;SACnC;KACF,CACF,CAAC;IAEF,OAAO,cAAc,CAAI,QAAQ,CAAC,CAAC;AACrC,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,GAAG,CACvB,GAAW,EACX,OAAgB;IAEhB,IAAI,OAAO;QAAE,GAAG,IAAI,aAAa,GAAG,OAAO,CAAC;IAC5C,MAAM,QAAQ,GAAG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SACT,CAAC;IACJ,CAAC;IAED,MAAM,IAAI,GAAG,CAAC,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAM,CAAC;IAE1C,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AAC7C,CAAC"}
@@ -0,0 +1,2 @@
1
+ import { SystemStatus } from "../../types";
2
+ export declare function getSystemStatus(): Promise<import("./serviceHelper").ExecutionResult<SystemStatus>>;
@@ -0,0 +1,5 @@
1
+ import { get } from "./serviceHelper";
2
+ export function getSystemStatus() {
3
+ return get("/alpaca/editor/status");
4
+ }
5
+ //# sourceMappingURL=systemService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"systemService.js","sourceRoot":"","sources":["../../../src/editor/services/systemService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AAEtC,MAAM,UAAU,eAAe;IAC7B,OAAO,GAAG,CAAe,uBAAuB,CAAC,CAAC;AACpD,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { TranslationStatus } from "../../config/types";
2
+ import { LanguagesAndVersions } from "../../types";
3
+ export declare function requestTranslation({ itemId, targetLanguage, sourceLanguage, sessionId, provider }: {
4
+ itemId: string;
5
+ targetLanguage: string;
6
+ sourceLanguage: string;
7
+ sessionId: string;
8
+ provider: string;
9
+ }): Promise<import("./serviceHelper").ExecutionResult<LanguagesAndVersions>>;
10
+ export declare function getTranslationStatus(itemId: string): Promise<import("./serviceHelper").ExecutionResult<TranslationStatus[]>>;
11
+ export declare function getTranslationProviders(): Promise<import("./serviceHelper").ExecutionResult<string[]>>;
@@ -0,0 +1,11 @@
1
+ import { get, post } from "./serviceHelper";
2
+ export async function requestTranslation({ itemId, targetLanguage, sourceLanguage, sessionId, provider }) {
3
+ return await post("/alpaca/editor/translation/requestTranslation", { itemId, targetLanguage, sourceLanguage, sessionId, provider });
4
+ }
5
+ export async function getTranslationStatus(itemId) {
6
+ return await get(`/alpaca/editor/translation/getTranslations?itemId=${itemId}`);
7
+ }
8
+ export async function getTranslationProviders() {
9
+ return await get(`/alpaca/editor/translation/providers`);
10
+ }
11
+ //# sourceMappingURL=translationService.js.map