@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,67 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import "allotment/dist/style.css";
3
+ import { Allotment } from "allotment";
4
+ import { useEffect, useRef, useState } from "react";
5
+ import { classNames } from "primereact/utils";
6
+ export function StackedPanels({ panels }) {
7
+ const splitter = useRef(null);
8
+ const [sizes, setSizes] = useState([]);
9
+ const [preferredSizes, setPreferredSizes] = useState(undefined);
10
+ const [panelsExpanded, setPanelsExpanded] = useState([]);
11
+ const [sizeToSet, setSizeToSet] = useState();
12
+ const panelHeaderSize = 30;
13
+ const toggle = (panelIndex) => {
14
+ const newSize = panelsExpanded[panelIndex]
15
+ ? panelHeaderSize
16
+ : (preferredSizes || sizes)[panelIndex];
17
+ resizePanel(panelIndex, newSize);
18
+ setPanelsExpanded((x) => {
19
+ const newState = [...x];
20
+ newState[panelIndex] = !newState[panelIndex];
21
+ return newState;
22
+ });
23
+ };
24
+ useEffect(() => {
25
+ setPanelsExpanded(panels.map(() => true));
26
+ setPreferredSizes(() => panels.map((x) => x.initialSize));
27
+ }, [panels]);
28
+ const resizePanel = (panelIndex, newSize) => {
29
+ const totalSize = sizes.reduce((a, b) => a + b, 0);
30
+ const totalOther = totalSize - sizes[panelIndex];
31
+ const tmpSizes = [...sizes];
32
+ tmpSizes[panelIndex] = newSize;
33
+ const percentages = tmpSizes.map((x) => x / totalOther);
34
+ percentages[panelIndex] = 0;
35
+ const remaining = totalSize - newSize;
36
+ const newSizes = percentages.map((x) => x * remaining);
37
+ newSizes[panelIndex] = newSize;
38
+ setSizes(newSizes);
39
+ setSizeToSet(newSizes);
40
+ };
41
+ useEffect(() => {
42
+ if (sizeToSet)
43
+ splitter.current?.resize(sizeToSet);
44
+ }, [sizeToSet]);
45
+ const getHeader = (panel, index) => {
46
+ if (panel.header)
47
+ return panel.header({ panel, index });
48
+ return (_jsxs("div", { className: classNames("p-1.5 bg-gray-50 uppercase text-gray-500 text-xs flex justify items-center cursor-pointer", panelsExpanded[index] ? "border-b" : ""), onClick: () => toggle(index), children: [panel.icon &&
49
+ (typeof panel.icon === "string" ? (_jsx("i", { className: classNames(panel.icon, "pi mr-1.5") })) : (_jsx("div", { className: "w-4 h-4 mr-1.5", children: panel.icon }))), _jsx("div", { className: "mr-auto", children: panel.title }), _jsx("i", { className: classNames(panelsExpanded[index] ? "pi-chevron-up" : "pi-chevron-down", "pi text-sm") })] }));
50
+ };
51
+ const initalSizes = panels.map((x) => x.initialSize);
52
+ return (_jsx(Allotment, { vertical: true, snap: true, ref: splitter, defaultSizes: initalSizes, onChange: (s) => {
53
+ if (sizes.join(",") != s.join(","))
54
+ setSizes(s);
55
+ const newPreferred = [...(preferredSizes || s)];
56
+ s.forEach((x, i) => {
57
+ if (x > panelHeaderSize)
58
+ newPreferred[i] = x;
59
+ });
60
+ setPreferredSizes(newPreferred);
61
+ }, children: panels.map((panel, index) => (_jsx(Allotment.Pane, {
62
+ // preferredSize={(preferredSizes || initalSizes)[index] + "%"}
63
+ maxSize: panelsExpanded.length <= index || panelsExpanded[index]
64
+ ? 10000
65
+ : panelHeaderSize, children: _jsxs("div", { className: "flex flex-col h-full", children: [getHeader(panel, index), panelsExpanded[index] && (_jsx("div", { className: "overflow-hidden relative flex-1", children: _jsx("div", { className: classNames("inset-0 absolute", panel.noOverflow ? "" : "overflow-y-auto"), children: panel.content }) }))] }) }, index))) }));
66
+ }
67
+ //# sourceMappingURL=StackedPanels.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StackedPanels.js","sourceRoot":"","sources":["../../../src/editor/ui/StackedPanels.tsx"],"names":[],"mappings":";AAAA,OAAO,0BAA0B,CAAC;AAClC,OAAO,EAAE,SAAS,EAAmB,MAAM,WAAW,CAAC;AAEvD,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEpD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAG9C,MAAM,UAAU,aAAa,CAAC,EAAE,MAAM,EAAuB;IAC3D,MAAM,QAAQ,GAAG,MAAM,CAAkB,IAAI,CAAC,CAAC;IAE/C,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAW,EAAE,CAAC,CAAC;IACjD,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAG,QAAQ,CAClD,SAAS,CACV,CAAC;IACF,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAG,QAAQ,CAAY,EAAE,CAAC,CAAC;IACpE,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,EAAwB,CAAC;IAEnE,MAAM,eAAe,GAAG,EAAE,CAAC;IAC3B,MAAM,MAAM,GAAG,CAAC,UAAkB,EAAE,EAAE;QACpC,MAAM,OAAO,GAAG,cAAc,CAAC,UAAU,CAAC;YACxC,CAAC,CAAC,eAAe;YACjB,CAAC,CAAC,CAAC,cAAc,IAAI,KAAK,CAAC,CAAC,UAAU,CAAC,CAAC;QAE1C,WAAW,CAAC,UAAU,EAAE,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CAAC,GACQ,CACb,CAAC;AACJ,CAAC"}
@@ -0,0 +1,3 @@
1
+ export declare function Toolbar({ children }: {
2
+ children: React.ReactNode;
3
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ export function Toolbar({ children }) {
3
+ return (_jsx("div", { className: "bg-gray-50 flex gap-1 p-0.5 border-b items-center", children: children }));
4
+ }
5
+ //# sourceMappingURL=Toolbar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Toolbar.js","sourceRoot":"","sources":["../../../src/editor/ui/Toolbar.tsx"],"names":[],"mappings":";AAAA,MAAM,UAAU,OAAO,CAAC,EAAE,QAAQ,EAAiC;IACjE,OAAO,CACL,cAAK,SAAS,EAAC,mDAAmD,YAC/D,QAAQ,GACL,CACP,CAAC;AACJ,CAAC"}
@@ -0,0 +1 @@
1
+ export declare function cleanId(id?: string): string | undefined;
@@ -0,0 +1,5 @@
1
+ export function cleanId(id) {
2
+ if (id)
3
+ return id.replace(/[^a-zA-Z0-9_-]/g, "").toLowerCase();
4
+ }
5
+ //# sourceMappingURL=id-helper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"id-helper.js","sourceRoot":"","sources":["../../../src/editor/utils/id-helper.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,OAAO,CAAC,EAAW;IACjC,IAAI,EAAE;QAAE,OAAO,EAAE,CAAC,OAAO,CAAC,iBAAiB,EAAE,EAAE,CAAC,CAAC,WAAW,EAAE,CAAC;AACjE,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { InsertOption } from "../../types";
2
+ import { EditContextType } from "../client/editContext";
3
+ export declare function getInsertOptionsForCurrentSelection(editContext: EditContextType): InsertOption[];
@@ -0,0 +1,43 @@
1
+ import { getComponentById } from "../componentTreeHelper";
2
+ export function getInsertOptionsForCurrentSelection(editContext) {
3
+ const page = editContext.page;
4
+ if (!page)
5
+ return [];
6
+ const insertingPlaceholderKeys = [editContext.selectedForInsertion]
7
+ .map((x) => getComponentById(x, editContext.page))
8
+ .filter((x) => x)
9
+ .reduce((a, x) => a.concat(x.placeholders?.map((y) => y.key) || []), []);
10
+ const selectedPlaceholderKeys = [
11
+ //...selection.filter((x) => x.indexOf("_") > 0),
12
+ ...insertingPlaceholderKeys,
13
+ ];
14
+ function collectInsertOptions(page, placeholderKeys) {
15
+ const insertOptionsMap = new Map();
16
+ function traverse(placeholders) {
17
+ for (const placeholder of placeholders) {
18
+ if (placeholder &&
19
+ (placeholderKeys.length === 0 ||
20
+ placeholderKeys.includes(placeholder.key))) {
21
+ for (const option of placeholder.insertOptions) {
22
+ insertOptionsMap.set(option.typeId, option);
23
+ }
24
+ }
25
+ for (const component of placeholder.components) {
26
+ if (component.placeholders)
27
+ traverse(component.placeholders);
28
+ }
29
+ }
30
+ }
31
+ traverse(page.rootComponent.placeholders);
32
+ // Convert the map back into an array of objects
33
+ const insertOptionsArray = Array.from(insertOptionsMap.values());
34
+ insertOptionsArray.sort((a, b) => a.name.localeCompare(b.name));
35
+ return insertOptionsArray;
36
+ }
37
+ const currentInsertOptions = page
38
+ ? collectInsertOptions(page, selectedPlaceholderKeys)
39
+ : [];
40
+ // console.log(currentInsertOptions, selectedPlaceholderKeys, page);
41
+ return currentInsertOptions;
42
+ }
43
+ //# sourceMappingURL=insertOptions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"insertOptions.js","sourceRoot":"","sources":["../../../src/editor/utils/insertOptions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAG1D,MAAM,UAAU,mCAAmC,CACjD,WAA4B;IAE5B,MAAM,IAAI,GAAG,WAAW,CAAC,IAAI,CAAC;IAE9B,IAAI,CAAC,IAAI;QAAE,OAAO,EAAE,CAAC;IAErB,MAAM,wBAAwB,GAAG,CAAC,WAAW,CAAC,oBAAoB,CAAC;SAChE,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,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C1B,CAAC;QAEF,kBAAkB,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;QAEhE,OAAO,kBAAkB,CAAC;IAC5B,CAAC;IAED,MAAM,oBAAoB,GAAG,IAAI;QAC/B,CAAC,CAAC,oBAAoB,CAAC,IAAI,EAAE,uBAAuB,CAAC;QACrD,CAAC,CAAC,EAAE,CAAC;IAGR,sEAAsE;IAErE,OAAO,oBAAoB,CAAC;AAC9B,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Language } from "../pageModel";
2
+ import { EditContextType } from "../client/editContext";
3
+ export declare const confirmCreateVersion: (editContext: EditContextType, language: Language) => void;
@@ -0,0 +1,22 @@
1
+ import { getCreateAndSwitchToNewVersionCommand } from "../commands/createVersionCommand";
2
+ export const confirmCreateVersion = (editContext, language) => {
3
+ editContext.confirm({
4
+ message: "This page has no version in language " +
5
+ language.name +
6
+ " (" +
7
+ language.languageCode +
8
+ "). Do you want to create a new version?",
9
+ header: "Create Language Version?",
10
+ icon: "pi pi-exclamation-triangle",
11
+ acceptLabel: "Yes, create version",
12
+ rejectLabel: "No",
13
+ accept: async () => {
14
+ await editContext?.executeCommand({
15
+ command: getCreateAndSwitchToNewVersionCommand({
16
+ language: language.languageCode,
17
+ }),
18
+ });
19
+ },
20
+ });
21
+ };
22
+ //# sourceMappingURL=itemutils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"itemutils.js","sourceRoot":"","sources":["../../../src/editor/utils/itemutils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qCAAqC,EAAE,MAAM,kCAAkC,CAAC;AAIzF,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAClC,WAA4B,EAC5B,QAAkB,EAClB,EAAE;IACA,WAAW,CAAC,OAAO,CAAC;QAChB,OAAO,EACL,uCAAuC;YACvC,QAAQ,CAAC,IAAI;YACb,IAAI;YACJ,QAAQ,CAAC,YAAY;YACrB,yCAAyC;QAC3C,MAAM,EAAE,0BAA0B;QAClC,IAAI,EAAE,4BAA4B;QACtC,WAAW,EAAE,qBAAqB;QAClC,WAAW,EAAE,IAAI;QACjB,MAAM,EAAE,KAAK,IAAI,EAAE;YACjB,MAAM,WAAW,EAAE,cAAc,CAAC;gBAChC,OAAO,EAAE,qCAAqC,CAAC;oBAC7C,QAAQ,EAAE,QAAQ,CAAC,YAAY;iBAChC,CAAC;aACH,CAAC,CAAC;QACH,CAAC;KACF,CACF,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ export declare function useMemoWithDebug<T>(factory: () => T, dependencies: any[]): T;
@@ -0,0 +1,18 @@
1
+ import { useMemo, useRef } from "react";
2
+ // Generic type for the return value of the memoized factory
3
+ export function useMemoWithDebug(factory, dependencies) {
4
+ const previousDependenciesRef = useRef([]);
5
+ const hasChanged = dependencies.some((dep, index) => {
6
+ return dep !== previousDependenciesRef.current[index];
7
+ });
8
+ if (hasChanged) {
9
+ dependencies.forEach((dep, index) => {
10
+ if (dep !== previousDependenciesRef.current[index]) {
11
+ console.log(`Dependency at index ${index} changed:`, "\nPrevious:", previousDependenciesRef.current[index], "\nCurrent:", dep);
12
+ }
13
+ });
14
+ }
15
+ previousDependenciesRef.current = dependencies;
16
+ return useMemo(factory, dependencies);
17
+ }
18
+ //# sourceMappingURL=useMemoDebug.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useMemoDebug.js","sourceRoot":"","sources":["../../../src/editor/utils/useMemoDebug.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAExC,4DAA4D;AAC5D,MAAM,UAAU,gBAAgB,CAAI,OAAgB,EAAE,YAAmB;IACvE,MAAM,uBAAuB,GAAG,MAAM,CAAQ,EAAE,CAAC,CAAC;IAElD,MAAM,UAAU,GAAG,YAAY,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE;QAClD,OAAO,GAAG,KAAK,uBAAuB,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IACxD,CAAC,CAAC,CAAC;IAEH,IAAI,UAAU,EAAE,CAAC;QACf,YAAY,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE;YAClC,IAAI,GAAG,KAAK,uBAAuB,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;gBACnD,OAAO,CAAC,GAAG,CACT,uBAAuB,KAAK,WAAW,EACvC,aAAa,EACb,uBAAuB,CAAC,OAAO,CAAC,KAAK,CAAC,EACtC,YAAY,EACZ,GAAG,CACJ,CAAC;YACJ,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC;IAED,uBAAuB,CAAC,OAAO,GAAG,YAAY,CAAC;IAE/C,OAAO,OAAO,CAAC,OAAO,EAAE,YAAY,CAAC,CAAC;AACxC,CAAC"}
@@ -0,0 +1,44 @@
1
+ import React from "react";
2
+ import { EditContextType } from "./client/editContext";
3
+ import { FieldDescriptor } from "../types";
4
+ import { Field, FullItem, ItemDescriptor } from "./pageModel";
5
+ export type Rect = {
6
+ x: number;
7
+ y: number;
8
+ width: number;
9
+ height: number;
10
+ };
11
+ export declare function useEventListenerExt(eventName: string, handler: any, element: HTMLElement | Window, capture?: boolean): void;
12
+ export declare const useLocalStorage: <T>(storageKey: string, fallbackState: T) => [T, React.Dispatch<React.SetStateAction<T>>];
13
+ export declare function isFieldActionExecuting(field: Field, editContext: EditContextType): boolean;
14
+ export declare function getItemDescriptor(item: FullItem | ItemDescriptor): ItemDescriptor;
15
+ export declare function getAbsoluteIconUrl(url: string): string;
16
+ export declare function findParentWithAttribute(element: HTMLElement, attr: string): HTMLElement | null;
17
+ export declare function parsePlaceholderKey(key: string): {
18
+ name: string;
19
+ componentId: string | undefined;
20
+ };
21
+ export declare function hasFieldLock(field: FieldDescriptor, editContext: EditContextType): boolean;
22
+ export declare function getSessionWithFieldLock(field: FieldDescriptor, editContext: EditContextType): import("..").EditSession | undefined;
23
+ export declare function getFieldDescriptorFromElement(element: Element): FieldDescriptor;
24
+ export declare function findNearestComponentId(startElement: Element): string | undefined;
25
+ export declare function findFieldElement(iframe: HTMLIFrameElement, fieldDescriptor: FieldDescriptor): Element | null | undefined;
26
+ export declare function findComponentRect(iframe: HTMLIFrameElement, componentId: string, takeScrollPositionIntoAccount?: boolean): {
27
+ rect: {
28
+ x: number;
29
+ y: number;
30
+ width: number;
31
+ height: number;
32
+ };
33
+ elements: Element[];
34
+ } | null | undefined;
35
+ export declare const getAbsolutePosition: (element: HTMLElement, iframe: HTMLIFrameElement) => {
36
+ x: number;
37
+ y: number;
38
+ width: number;
39
+ height: number;
40
+ };
41
+ export declare function findParentComponentId(element: HTMLElement): string | null;
42
+ export declare function normalizeGuid(id: string): string;
43
+ export declare function formatDate(date: Date): string;
44
+ export declare function findClosestFieldElement(node: Node | null): HTMLElement | null;
@@ -0,0 +1,309 @@
1
+ import { useState } from "react";
2
+ import { useEffect, useRef } from "react";
3
+ // Hook
4
+ export function useEventListenerExt(eventName, handler, element, capture = false) {
5
+ // Create a ref that stores handler
6
+ const savedHandler = useRef(undefined);
7
+ // Update ref.current value if handler changes.
8
+ // This allows our effect below to always get latest handler ...
9
+ // ... without us needing to pass it in effect deps array ...
10
+ // ... and potentially cause effect to re-run every render.
11
+ useEffect(() => {
12
+ savedHandler.current = handler;
13
+ }, [handler]);
14
+ useEffect(() => {
15
+ // Make sure element supports addEventListener
16
+ // On
17
+ const isSupported = element && element.addEventListener;
18
+ if (!isSupported)
19
+ return;
20
+ // Create event listener that calls handler function stored in ref
21
+ const eventListener = (event) => savedHandler.current(event);
22
+ // Add event listener
23
+ element.addEventListener(eventName, eventListener, { capture: capture });
24
+ // Remove event listener on cleanup
25
+ return () => {
26
+ element.removeEventListener(eventName, eventListener);
27
+ };
28
+ }, [eventName, element]);
29
+ }
30
+ export const useLocalStorage = (storageKey, fallbackState) => {
31
+ const [value, setValue] = useState(JSON.parse(typeof window !== "undefined"
32
+ ? (localStorage.getItem(storageKey) ?? JSON.stringify(fallbackState))
33
+ : JSON.stringify(fallbackState)));
34
+ useEffect(() => {
35
+ if (typeof window !== "undefined")
36
+ localStorage.setItem(storageKey, JSON.stringify(value));
37
+ }, [value, storageKey]);
38
+ return [value, setValue];
39
+ };
40
+ export function isFieldActionExecuting(field, editContext) {
41
+ const fieldItem = field.descriptor.item;
42
+ if (!fieldItem) {
43
+ return false;
44
+ }
45
+ var action = editContext.activeFieldActions.find((x) => x.field.fieldId == field.id &&
46
+ x.field.item?.id == fieldItem.id &&
47
+ x.field.item?.language == fieldItem.language &&
48
+ x.field.item?.version == fieldItem.version);
49
+ return action?.state == "running";
50
+ }
51
+ export function getItemDescriptor(item) {
52
+ if (!item)
53
+ throw new Error("Item is null");
54
+ if ("descriptor" in item) {
55
+ return item.descriptor;
56
+ }
57
+ return {
58
+ id: item.id,
59
+ language: item.language,
60
+ version: item.version,
61
+ name: item.name,
62
+ };
63
+ }
64
+ export function getAbsoluteIconUrl(url) {
65
+ //return configuration.services.editorService.baseUrl + url;
66
+ return url;
67
+ }
68
+ export function findParentWithAttribute(element, attr) {
69
+ while (element && element !== document.documentElement) {
70
+ if (element.hasAttribute(attr)) {
71
+ return element;
72
+ }
73
+ element = element.parentElement;
74
+ }
75
+ return null;
76
+ }
77
+ export function parsePlaceholderKey(key) {
78
+ const placeholderKeyComponents = key.split("_");
79
+ const placeholderName = placeholderKeyComponents.length === 1
80
+ ? placeholderKeyComponents[0]
81
+ : placeholderKeyComponents[1];
82
+ const parentId = placeholderKeyComponents.length === 1
83
+ ? undefined
84
+ : placeholderKeyComponents[0];
85
+ return {
86
+ name: placeholderName,
87
+ componentId: parentId,
88
+ };
89
+ }
90
+ // export function getFieldRawValue(field: Field, editContext: EditContextType) {
91
+ // return (
92
+ // getModifiedField(field.descriptor, editContext)?.rawValue ??
93
+ // field.rawValue ??
94
+ // field.value
95
+ // );
96
+ // }
97
+ // export function getFieldValue(field: Field, editContext: EditContextType) {
98
+ // return getModifiedField(field.descriptor, editContext)?.value ?? field.value;
99
+ // }
100
+ // export function getModifiedField(
101
+ // field: FieldDescriptor,
102
+ // editContext: EditContextType
103
+ // ) {
104
+ // const modifiedField = editContext.modifiedFields.find(
105
+ // (x) =>
106
+ // x.field.fieldId === field.fieldId &&
107
+ // x.field.item.id === field.item.id &&
108
+ // x.field.item.language === field.item.language &&
109
+ // x.field.item.version === field.item.version
110
+ // );
111
+ // return modifiedField;
112
+ // }
113
+ // export function getModifiedFieldValue(
114
+ // field: FieldDescriptor,
115
+ // editContext: EditContextType
116
+ // ) {
117
+ // return getModifiedField(field, editContext)?.value;
118
+ // }
119
+ // export function setModifiedFieldValue(
120
+ // field: FieldDescriptor,
121
+ // value: string,
122
+ // editContext: EditContextType
123
+ // ) {
124
+ // const modifiedValue = editContext.modifiedFields.find(
125
+ // (x) =>
126
+ // x.field.fieldId === field.fieldId &&
127
+ // x.field.item.id === field.item.id &&
128
+ // x.field.item.language === field.item.language &&
129
+ // x.field.item.version === field.item.version
130
+ // );
131
+ // if (modifiedValue) {
132
+ // modifiedValue.value = value;
133
+ // } else {
134
+ // editContext.modifiedFields.push({
135
+ // field: field,
136
+ // value: value,
137
+ // });
138
+ // }
139
+ // editContext.setModifiedFields([...editContext.modifiedFields]);
140
+ // }
141
+ export function hasFieldLock(field, editContext) {
142
+ if (!editContext.lockedField) {
143
+ return false;
144
+ }
145
+ return (editContext.lockedField.fieldId === field.fieldId &&
146
+ editContext.lockedField.item.id === field.item.id &&
147
+ editContext.lockedField.item.language === field.item.language &&
148
+ editContext.lockedField.item.version === field.item.version);
149
+ }
150
+ export function getSessionWithFieldLock(field, editContext) {
151
+ return editContext.activeSessions.find((s) => s.fieldLock?.fieldId === field.fieldId &&
152
+ s.fieldLock?.fieldId === field.fieldId &&
153
+ s.fieldLock?.item.id === field.item.id &&
154
+ s.fieldLock?.item.language === field.item.language &&
155
+ s.fieldLock?.item.version === field.item.version);
156
+ }
157
+ export function getFieldDescriptorFromElement(element) {
158
+ return {
159
+ item: {
160
+ id: element.getAttribute("data-itemid"),
161
+ version: parseInt(element.getAttribute("data-version")),
162
+ language: element.getAttribute("data-language"),
163
+ },
164
+ fieldId: element.getAttribute("data-fieldid"),
165
+ };
166
+ }
167
+ export function findNearestComponentId(startElement) {
168
+ let element = startElement;
169
+ while (element) {
170
+ if (element.hasAttribute("data-component-start")) {
171
+ return element.getAttribute("data-component-start") ?? undefined;
172
+ }
173
+ const prev = element.previousElementSibling;
174
+ if (!prev) {
175
+ element = element.parentElement;
176
+ }
177
+ else
178
+ element = prev;
179
+ }
180
+ return;
181
+ }
182
+ export function findFieldElement(iframe, fieldDescriptor) {
183
+ if (!iframe.contentWindow?.document.body)
184
+ return undefined;
185
+ const fieldElement = iframe.contentWindow?.document.body.querySelector("[data-itemid='" +
186
+ fieldDescriptor.item.id +
187
+ "'][data-language='" +
188
+ fieldDescriptor.item.language +
189
+ "'][data-version='" +
190
+ fieldDescriptor.item.version +
191
+ "'][data-fieldid='" +
192
+ fieldDescriptor.fieldId +
193
+ "']");
194
+ return fieldElement;
195
+ }
196
+ export function findComponentRect(iframe, componentId, takeScrollPositionIntoAccount = false) {
197
+ if (!iframe.contentWindow?.document.body)
198
+ return undefined;
199
+ const componentStart = iframe.contentWindow?.document.body.querySelector("[data-component-start='" + componentId + "']");
200
+ const componentEnd = iframe?.contentWindow?.document.body.querySelector("[data-component-end='" + componentId + "']");
201
+ if (!componentStart || !componentEnd) {
202
+ return null;
203
+ }
204
+ let startElement = componentStart.nextElementSibling;
205
+ while (startElement && startElement.tagName === "SCRIPT") {
206
+ startElement = startElement.nextElementSibling;
207
+ }
208
+ if (!startElement) {
209
+ console.error("No start element found for component " + componentId);
210
+ return null;
211
+ }
212
+ const startRect = takeScrollPositionIntoAccount
213
+ ? getAbsolutePosition(startElement, iframe)
214
+ : startElement.getBoundingClientRect();
215
+ let endElement = componentEnd.previousElementSibling;
216
+ while (endElement && endElement.tagName === "SCRIPT") {
217
+ endElement = endElement.previousElementSibling;
218
+ }
219
+ if (!endElement)
220
+ return null;
221
+ const endRect = takeScrollPositionIntoAccount
222
+ ? getAbsolutePosition(endElement, iframe)
223
+ : endElement.getBoundingClientRect();
224
+ const elements = startElement === endElement ? [startElement] : [startElement, endElement];
225
+ // console.log(
226
+ // "start rect",
227
+ // startRect,
228
+ // startElement,
229
+ // iframe.contentWindow?.scrollY,
230
+ // takeScrollPositionIntoAccount
231
+ // );
232
+ return {
233
+ rect: {
234
+ x: startRect.x,
235
+ y: startRect.y,
236
+ width: endRect.x + endRect.width - startRect.x,
237
+ height: endRect.y + endRect.height - startRect.y,
238
+ },
239
+ elements: elements,
240
+ };
241
+ }
242
+ export const getAbsolutePosition = (element, iframe) => {
243
+ const rect = element.getBoundingClientRect();
244
+ const scrollLeft = iframe.contentWindow?.scrollX ||
245
+ iframe.contentDocument?.documentElement.scrollLeft ||
246
+ 0;
247
+ const scrollTop = iframe.contentWindow?.scrollY ||
248
+ iframe.contentDocument?.documentElement.scrollTop ||
249
+ 0;
250
+ return {
251
+ x: rect.left + scrollLeft,
252
+ y: rect.top + scrollTop,
253
+ width: rect.width,
254
+ height: rect.height,
255
+ };
256
+ };
257
+ export function findParentComponentId(element) {
258
+ while (element && element !== document.documentElement) {
259
+ const startElement = findStartElement(element);
260
+ if (startElement) {
261
+ return startElement.getAttribute("data-component-start");
262
+ }
263
+ element = element.parentElement;
264
+ }
265
+ return null;
266
+ }
267
+ function findStartElement(element) {
268
+ let prev = element;
269
+ while (prev) {
270
+ prev = prev.previousElementSibling;
271
+ if (prev?.getAttribute("data-component-start")) {
272
+ return prev;
273
+ }
274
+ }
275
+ return null;
276
+ }
277
+ export function normalizeGuid(id) {
278
+ id = id.toUpperCase();
279
+ if (id.length && id[0] === "{")
280
+ return id;
281
+ return "{" + id + "}";
282
+ }
283
+ const dateOptions = {
284
+ year: "numeric",
285
+ month: "numeric",
286
+ day: "numeric",
287
+ hour: "numeric",
288
+ minute: "numeric",
289
+ second: "numeric",
290
+ hour12: false,
291
+ };
292
+ const dateFormat = Intl.DateTimeFormat(typeof navigator !== "undefined" ? navigator.language : "en", dateOptions);
293
+ export function formatDate(date) {
294
+ return dateFormat.format(date);
295
+ }
296
+ export function findClosestFieldElement(node) {
297
+ let current = node;
298
+ while (current) {
299
+ if (current.nodeType === Node.ELEMENT_NODE) {
300
+ const element = current;
301
+ if (element.hasAttribute("data-fieldid")) {
302
+ return element;
303
+ }
304
+ }
305
+ current = current.parentNode;
306
+ }
307
+ return null;
308
+ }
309
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/editor/utils.ts"],"names":[],"mappings":"AAAA,OAAc,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAc1C,OAAO;AACP,MAAM,UAAU,mBAAmB,CACjC,SAAiB,EACjB,OAAY,EACZ,OAA6B,EAC7B,OAAO,GAAG,KAAK;IAEf,mCAAmC;IACnC,MAAM,YAAY,GAAG,MAAM,CAAM,SAAS,CAAC,CAAC;IAE5C,+CAA+C;IAC/C,gEAAgE;IAChE,6DAA6D;IAC7D,2DAA2D;IAC3D,SAAS,CAAC,GAAG,EAAE;QACb,YAAY,CAAC,OAAO,GAAG,OAAO,CAAC;IACjC,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;IAEd,SAAS,CACP,GAAG,EAAE;QACH,8CAA8C;QAC9C,KAAK;QACL,MAAM,WAAW,GAAG,OAAO,IAAI,OAAO,CAAC,gBAAgB,CAAC;QACxD,IAAI,CAAC,WAAW;YAAE,OAAO;QAEzB,kEAAkE;QAClE,MAAM,aAAa,GAAG,CAAC,KAAY,EAAE,EAAE,CAAC,YAAY,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QAEpE,qBAAqB;QACrB,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