@contentstack/live-preview-utils 3.1.0 → 3.2.0-alpha.1

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 (514) hide show
  1. package/README.md +1 -1
  2. package/dist/legacy/configManager/config.default.cjs +14 -0
  3. package/dist/legacy/configManager/config.default.cjs.map +1 -1
  4. package/dist/legacy/configManager/config.default.d.cts +1 -0
  5. package/dist/legacy/configManager/config.default.d.ts +1 -0
  6. package/dist/legacy/configManager/config.default.js +14 -0
  7. package/dist/legacy/configManager/config.default.js.map +1 -1
  8. package/dist/legacy/configManager/configManager.d.cts +1 -0
  9. package/dist/legacy/configManager/configManager.d.ts +1 -0
  10. package/dist/legacy/configManager/handleUserConfig.d.cts +1 -0
  11. package/dist/legacy/configManager/handleUserConfig.d.ts +1 -0
  12. package/dist/legacy/configManager/index.d.cts +1 -0
  13. package/dist/legacy/configManager/index.d.ts +1 -0
  14. package/dist/legacy/index.cjs +5 -5
  15. package/dist/legacy/index.cjs.map +1 -1
  16. package/dist/legacy/index.d.cts +1 -0
  17. package/dist/legacy/index.d.ts +1 -0
  18. package/dist/legacy/index.js +2 -2
  19. package/dist/legacy/index.js.map +1 -1
  20. package/dist/legacy/livePreview/editButton/editButton.d.cts +1 -0
  21. package/dist/legacy/livePreview/editButton/editButton.d.ts +1 -0
  22. package/dist/legacy/livePreview/eventManager/postMessageEvent.hooks.cjs +1 -1
  23. package/dist/legacy/livePreview/eventManager/postMessageEvent.hooks.js +1 -1
  24. package/dist/legacy/livePreview/eventManager/types/livePreviewPostMessageEvent.type.d.cts +1 -0
  25. package/dist/legacy/livePreview/eventManager/types/livePreviewPostMessageEvent.type.d.ts +1 -0
  26. package/dist/legacy/preview/contentstack-live-preview-HOC.cjs +1 -1
  27. package/dist/legacy/preview/contentstack-live-preview-HOC.d.cts +1 -0
  28. package/dist/legacy/preview/contentstack-live-preview-HOC.d.ts +1 -0
  29. package/dist/legacy/preview/contentstack-live-preview-HOC.js +1 -1
  30. package/dist/legacy/types/types.cjs +1 -0
  31. package/dist/legacy/types/types.cjs.map +1 -1
  32. package/dist/legacy/types/types.d.cts +16 -0
  33. package/dist/legacy/types/types.d.ts +16 -0
  34. package/dist/legacy/types/types.js +1 -0
  35. package/dist/legacy/types/types.js.map +1 -1
  36. package/dist/legacy/visualBuilder/collab.style.cjs +530 -0
  37. package/dist/legacy/visualBuilder/collab.style.cjs.map +1 -0
  38. package/dist/legacy/visualBuilder/collab.style.d.cts +67 -0
  39. package/dist/legacy/visualBuilder/collab.style.d.ts +67 -0
  40. package/dist/legacy/visualBuilder/collab.style.js +505 -0
  41. package/dist/legacy/visualBuilder/collab.style.js.map +1 -0
  42. package/dist/legacy/visualBuilder/components/Collab/Avatar/Avatar.cjs +116 -0
  43. package/dist/legacy/visualBuilder/components/Collab/Avatar/Avatar.cjs.map +1 -0
  44. package/dist/legacy/visualBuilder/components/Collab/Avatar/Avatar.d.cts +18 -0
  45. package/dist/legacy/visualBuilder/components/Collab/Avatar/Avatar.d.ts +18 -0
  46. package/dist/legacy/visualBuilder/components/Collab/Avatar/Avatar.js +87 -0
  47. package/dist/legacy/visualBuilder/components/Collab/Avatar/Avatar.js.map +1 -0
  48. package/dist/legacy/visualBuilder/components/Collab/Button/Button.cjs +121 -0
  49. package/dist/legacy/visualBuilder/components/Collab/Button/Button.cjs.map +1 -0
  50. package/dist/legacy/visualBuilder/components/Collab/Button/Button.d.cts +27 -0
  51. package/dist/legacy/visualBuilder/components/Collab/Button/Button.d.ts +27 -0
  52. package/dist/legacy/visualBuilder/components/Collab/Button/Button.js +96 -0
  53. package/dist/legacy/visualBuilder/components/Collab/Button/Button.js.map +1 -0
  54. package/dist/legacy/visualBuilder/components/Collab/ButtonGroup/ButtonGroup.cjs +61 -0
  55. package/dist/legacy/visualBuilder/components/Collab/ButtonGroup/ButtonGroup.cjs.map +1 -0
  56. package/dist/legacy/visualBuilder/components/Collab/ButtonGroup/ButtonGroup.d.cts +28 -0
  57. package/dist/legacy/visualBuilder/components/Collab/ButtonGroup/ButtonGroup.d.ts +28 -0
  58. package/dist/legacy/visualBuilder/components/Collab/ButtonGroup/ButtonGroup.js +32 -0
  59. package/dist/legacy/visualBuilder/components/Collab/ButtonGroup/ButtonGroup.js.map +1 -0
  60. package/dist/legacy/visualBuilder/components/Collab/CollabIndicator.cjs +126 -0
  61. package/dist/legacy/visualBuilder/components/Collab/CollabIndicator.cjs.map +1 -0
  62. package/dist/legacy/visualBuilder/components/Collab/CollabIndicator.d.cts +10 -0
  63. package/dist/legacy/visualBuilder/components/Collab/CollabIndicator.d.ts +10 -0
  64. package/dist/legacy/visualBuilder/components/Collab/CollabIndicator.js +97 -0
  65. package/dist/legacy/visualBuilder/components/Collab/CollabIndicator.js.map +1 -0
  66. package/dist/legacy/visualBuilder/components/Collab/Icon/Icon.cjs +82 -0
  67. package/dist/legacy/visualBuilder/components/Collab/Icon/Icon.cjs.map +1 -0
  68. package/dist/legacy/visualBuilder/components/Collab/Icon/Icon.d.cts +18 -0
  69. package/dist/legacy/visualBuilder/components/Collab/Icon/Icon.d.ts +18 -0
  70. package/dist/legacy/visualBuilder/components/Collab/Icon/Icon.js +53 -0
  71. package/dist/legacy/visualBuilder/components/Collab/Icon/Icon.js.map +1 -0
  72. package/dist/legacy/visualBuilder/components/Collab/SkeletonTile/SkeletonTile.cjs +81 -0
  73. package/dist/legacy/visualBuilder/components/Collab/SkeletonTile/SkeletonTile.cjs.map +1 -0
  74. package/dist/legacy/visualBuilder/components/Collab/SkeletonTile/SkeletonTile.d.cts +17 -0
  75. package/dist/legacy/visualBuilder/components/Collab/SkeletonTile/SkeletonTile.d.ts +17 -0
  76. package/dist/legacy/visualBuilder/components/Collab/SkeletonTile/SkeletonTile.js +52 -0
  77. package/dist/legacy/visualBuilder/components/Collab/SkeletonTile/SkeletonTile.js.map +1 -0
  78. package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/CommentActionBar.cjs +145 -0
  79. package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/CommentActionBar.cjs.map +1 -0
  80. package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/CommentActionBar.d.cts +8 -0
  81. package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/CommentActionBar.d.ts +8 -0
  82. package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/CommentActionBar.js +116 -0
  83. package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/CommentActionBar.js.map +1 -0
  84. package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/CommentCard.cjs +160 -0
  85. package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/CommentCard.cjs.map +1 -0
  86. package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/CommentCard.d.cts +8 -0
  87. package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/CommentCard.d.ts +8 -0
  88. package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/CommentCard.js +131 -0
  89. package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/CommentCard.js.map +1 -0
  90. package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/CommentResolvedText.cjs +61 -0
  91. package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/CommentResolvedText.cjs.map +1 -0
  92. package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/CommentResolvedText.d.cts +6 -0
  93. package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/CommentResolvedText.d.ts +6 -0
  94. package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/CommentResolvedText.js +35 -0
  95. package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/CommentResolvedText.js.map +1 -0
  96. package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/CommentTextArea.cjs +188 -0
  97. package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/CommentTextArea.cjs.map +1 -0
  98. package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/CommentTextArea.d.cts +8 -0
  99. package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/CommentTextArea.d.ts +8 -0
  100. package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/CommentTextArea.js +159 -0
  101. package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/CommentTextArea.js.map +1 -0
  102. package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/ContextProvider/ThreadProvider.cjs +42 -0
  103. package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/ContextProvider/ThreadProvider.cjs.map +1 -0
  104. package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/ContextProvider/ThreadProvider.d.cts +8 -0
  105. package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/ContextProvider/ThreadProvider.d.ts +8 -0
  106. package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/ContextProvider/ThreadProvider.js +9 -0
  107. package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/ContextProvider/ThreadProvider.js.map +1 -0
  108. package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/ContextProvider/index.cjs +25 -0
  109. package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/ContextProvider/index.cjs.map +1 -0
  110. package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/ContextProvider/index.d.cts +3 -0
  111. package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/ContextProvider/index.d.ts +3 -0
  112. package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/ContextProvider/index.js +3 -0
  113. package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/ContextProvider/index.js.map +1 -0
  114. package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/ThreadBody.cjs +155 -0
  115. package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/ThreadBody.cjs.map +1 -0
  116. package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/ThreadBody.d.cts +8 -0
  117. package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/ThreadBody.d.ts +8 -0
  118. package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/ThreadBody.js +126 -0
  119. package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/ThreadBody.js.map +1 -0
  120. package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/ThreadFooter.cjs +92 -0
  121. package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/ThreadFooter.cjs.map +1 -0
  122. package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/ThreadFooter.d.cts +8 -0
  123. package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/ThreadFooter.d.ts +8 -0
  124. package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/ThreadFooter.js +63 -0
  125. package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/ThreadFooter.js.map +1 -0
  126. package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/ThreadHeader.cjs +124 -0
  127. package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/ThreadHeader.cjs.map +1 -0
  128. package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/ThreadHeader.d.cts +8 -0
  129. package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/ThreadHeader.d.ts +8 -0
  130. package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/ThreadHeader.js +95 -0
  131. package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/ThreadHeader.js.map +1 -0
  132. package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/index.cjs +231 -0
  133. package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/index.cjs.map +1 -0
  134. package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/index.d.cts +8 -0
  135. package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/index.d.ts +8 -0
  136. package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/index.js +202 -0
  137. package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/index.js.map +1 -0
  138. package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/loader/ThreadBody.cjs +101 -0
  139. package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/loader/ThreadBody.cjs.map +1 -0
  140. package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/loader/ThreadBody.d.cts +5 -0
  141. package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/loader/ThreadBody.d.ts +5 -0
  142. package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/loader/ThreadBody.js +72 -0
  143. package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/loader/ThreadBody.js.map +1 -0
  144. package/dist/legacy/visualBuilder/components/Collab/Tooltip/Tooltip.cjs +126 -0
  145. package/dist/legacy/visualBuilder/components/Collab/Tooltip/Tooltip.cjs.map +1 -0
  146. package/dist/legacy/visualBuilder/components/Collab/Tooltip/Tooltip.d.cts +17 -0
  147. package/dist/legacy/visualBuilder/components/Collab/Tooltip/Tooltip.d.ts +17 -0
  148. package/dist/legacy/visualBuilder/components/Collab/Tooltip/Tooltip.js +97 -0
  149. package/dist/legacy/visualBuilder/components/Collab/Tooltip/Tooltip.js.map +1 -0
  150. package/dist/legacy/visualBuilder/components/HighlightedCommentIcon.cjs +6 -1
  151. package/dist/legacy/visualBuilder/components/HighlightedCommentIcon.cjs.map +1 -1
  152. package/dist/legacy/visualBuilder/components/HighlightedCommentIcon.js +6 -1
  153. package/dist/legacy/visualBuilder/components/HighlightedCommentIcon.js.map +1 -1
  154. package/dist/legacy/visualBuilder/components/emptyBlock.cjs +1 -0
  155. package/dist/legacy/visualBuilder/components/emptyBlock.cjs.map +1 -1
  156. package/dist/legacy/visualBuilder/components/emptyBlock.js +1 -0
  157. package/dist/legacy/visualBuilder/components/emptyBlock.js.map +1 -1
  158. package/dist/legacy/visualBuilder/components/icons/CollabIcons.cjs +220 -0
  159. package/dist/legacy/visualBuilder/components/icons/CollabIcons.cjs.map +1 -0
  160. package/dist/legacy/visualBuilder/components/icons/CollabIcons.d.cts +16 -0
  161. package/dist/legacy/visualBuilder/components/icons/CollabIcons.d.ts +16 -0
  162. package/dist/legacy/visualBuilder/components/icons/CollabIcons.js +197 -0
  163. package/dist/legacy/visualBuilder/components/icons/CollabIcons.js.map +1 -0
  164. package/dist/legacy/visualBuilder/components/icons/index.cjs +16 -16
  165. package/dist/legacy/visualBuilder/components/icons/index.cjs.map +1 -1
  166. package/dist/legacy/visualBuilder/components/icons/index.js +16 -16
  167. package/dist/legacy/visualBuilder/components/icons/index.js.map +1 -1
  168. package/dist/legacy/visualBuilder/eventManager/useCollab.cjs +142 -0
  169. package/dist/legacy/visualBuilder/eventManager/useCollab.cjs.map +1 -0
  170. package/dist/legacy/visualBuilder/eventManager/useCollab.d.cts +3 -0
  171. package/dist/legacy/visualBuilder/eventManager/useCollab.d.ts +3 -0
  172. package/dist/legacy/visualBuilder/eventManager/useCollab.js +118 -0
  173. package/dist/legacy/visualBuilder/eventManager/useCollab.js.map +1 -0
  174. package/dist/legacy/visualBuilder/generators/generateCustomCursor.cjs +2 -1
  175. package/dist/legacy/visualBuilder/generators/generateCustomCursor.cjs.map +1 -1
  176. package/dist/legacy/visualBuilder/generators/generateCustomCursor.d.cts +2 -2
  177. package/dist/legacy/visualBuilder/generators/generateCustomCursor.d.ts +2 -2
  178. package/dist/legacy/visualBuilder/generators/generateCustomCursor.js +2 -1
  179. package/dist/legacy/visualBuilder/generators/generateCustomCursor.js.map +1 -1
  180. package/dist/legacy/visualBuilder/generators/generateHighlightedComment.cjs +2 -2
  181. package/dist/legacy/visualBuilder/generators/generateHighlightedComment.cjs.map +1 -1
  182. package/dist/legacy/visualBuilder/generators/generateHighlightedComment.js +2 -2
  183. package/dist/legacy/visualBuilder/generators/generateHighlightedComment.js.map +1 -1
  184. package/dist/legacy/visualBuilder/generators/generateThread.cjs +411 -0
  185. package/dist/legacy/visualBuilder/generators/generateThread.cjs.map +1 -0
  186. package/dist/legacy/visualBuilder/generators/generateThread.d.cts +25 -0
  187. package/dist/legacy/visualBuilder/generators/generateThread.d.ts +25 -0
  188. package/dist/legacy/visualBuilder/generators/generateThread.js +361 -0
  189. package/dist/legacy/visualBuilder/generators/generateThread.js.map +1 -0
  190. package/dist/legacy/visualBuilder/hooks/use-infinite-scroll/useInfiniteScroll.cjs +63 -0
  191. package/dist/legacy/visualBuilder/hooks/use-infinite-scroll/useInfiniteScroll.cjs.map +1 -0
  192. package/dist/legacy/visualBuilder/hooks/use-infinite-scroll/useInfiniteScroll.d.cts +11 -0
  193. package/dist/legacy/visualBuilder/hooks/use-infinite-scroll/useInfiniteScroll.d.ts +11 -0
  194. package/dist/legacy/visualBuilder/hooks/use-infinite-scroll/useInfiniteScroll.js +44 -0
  195. package/dist/legacy/visualBuilder/hooks/use-infinite-scroll/useInfiniteScroll.js.map +1 -0
  196. package/dist/legacy/visualBuilder/hooks/useCollabIndicator.cjs +130 -0
  197. package/dist/legacy/visualBuilder/hooks/useCollabIndicator.cjs.map +1 -0
  198. package/dist/legacy/visualBuilder/hooks/useCollabIndicator.d.cts +20 -0
  199. package/dist/legacy/visualBuilder/hooks/useCollabIndicator.d.ts +20 -0
  200. package/dist/legacy/visualBuilder/hooks/useCollabIndicator.js +97 -0
  201. package/dist/legacy/visualBuilder/hooks/useCollabIndicator.js.map +1 -0
  202. package/dist/legacy/visualBuilder/hooks/useCollabOperations.cjs +146 -0
  203. package/dist/legacy/visualBuilder/hooks/useCollabOperations.cjs.map +1 -0
  204. package/dist/legacy/visualBuilder/hooks/useCollabOperations.d.cts +16 -0
  205. package/dist/legacy/visualBuilder/hooks/useCollabOperations.d.ts +16 -0
  206. package/dist/legacy/visualBuilder/hooks/useCollabOperations.js +113 -0
  207. package/dist/legacy/visualBuilder/hooks/useCollabOperations.js.map +1 -0
  208. package/dist/legacy/visualBuilder/hooks/useCommentTextArea.cjs +410 -0
  209. package/dist/legacy/visualBuilder/hooks/useCommentTextArea.cjs.map +1 -0
  210. package/dist/legacy/visualBuilder/hooks/useCommentTextArea.d.cts +26 -0
  211. package/dist/legacy/visualBuilder/hooks/useCommentTextArea.d.ts +26 -0
  212. package/dist/legacy/visualBuilder/hooks/useCommentTextArea.js +389 -0
  213. package/dist/legacy/visualBuilder/hooks/useCommentTextArea.js.map +1 -0
  214. package/dist/legacy/visualBuilder/hooks/useDynamicTextareaRows.cjs +42 -0
  215. package/dist/legacy/visualBuilder/hooks/useDynamicTextareaRows.cjs.map +1 -0
  216. package/dist/legacy/visualBuilder/hooks/useDynamicTextareaRows.d.cts +3 -0
  217. package/dist/legacy/visualBuilder/hooks/useDynamicTextareaRows.d.ts +3 -0
  218. package/dist/legacy/visualBuilder/hooks/useDynamicTextareaRows.js +23 -0
  219. package/dist/legacy/visualBuilder/hooks/useDynamicTextareaRows.js.map +1 -0
  220. package/dist/legacy/visualBuilder/index.cjs +81 -31
  221. package/dist/legacy/visualBuilder/index.cjs.map +1 -1
  222. package/dist/legacy/visualBuilder/index.d.cts +1 -0
  223. package/dist/legacy/visualBuilder/index.d.ts +1 -0
  224. package/dist/legacy/visualBuilder/index.js +86 -31
  225. package/dist/legacy/visualBuilder/index.js.map +1 -1
  226. package/dist/legacy/visualBuilder/listeners/mouseClick.cjs +36 -4
  227. package/dist/legacy/visualBuilder/listeners/mouseClick.cjs.map +1 -1
  228. package/dist/legacy/visualBuilder/listeners/mouseClick.js +36 -4
  229. package/dist/legacy/visualBuilder/listeners/mouseClick.js.map +1 -1
  230. package/dist/legacy/visualBuilder/listeners/mouseHover.cjs +48 -6
  231. package/dist/legacy/visualBuilder/listeners/mouseHover.cjs.map +1 -1
  232. package/dist/legacy/visualBuilder/listeners/mouseHover.js +38 -6
  233. package/dist/legacy/visualBuilder/listeners/mouseHover.js.map +1 -1
  234. package/dist/legacy/visualBuilder/types/collab.types.cjs +19 -0
  235. package/dist/legacy/visualBuilder/types/collab.types.cjs.map +1 -0
  236. package/dist/legacy/visualBuilder/types/collab.types.d.cts +232 -0
  237. package/dist/legacy/visualBuilder/types/collab.types.d.ts +232 -0
  238. package/dist/legacy/visualBuilder/types/collab.types.js +1 -0
  239. package/dist/legacy/visualBuilder/types/collab.types.js.map +1 -0
  240. package/dist/legacy/visualBuilder/utils/collabUtils.cjs +118 -0
  241. package/dist/legacy/visualBuilder/utils/collabUtils.cjs.map +1 -0
  242. package/dist/legacy/visualBuilder/utils/collabUtils.d.cts +52 -0
  243. package/dist/legacy/visualBuilder/utils/collabUtils.d.ts +52 -0
  244. package/dist/legacy/visualBuilder/utils/collabUtils.js +79 -0
  245. package/dist/legacy/visualBuilder/utils/collabUtils.js.map +1 -0
  246. package/dist/legacy/visualBuilder/utils/constants.cjs +6 -0
  247. package/dist/legacy/visualBuilder/utils/constants.cjs.map +1 -1
  248. package/dist/legacy/visualBuilder/utils/constants.d.cts +3 -1
  249. package/dist/legacy/visualBuilder/utils/constants.d.ts +3 -1
  250. package/dist/legacy/visualBuilder/utils/constants.js +4 -0
  251. package/dist/legacy/visualBuilder/utils/constants.js.map +1 -1
  252. package/dist/legacy/visualBuilder/utils/types/postMessage.types.cjs +13 -0
  253. package/dist/legacy/visualBuilder/utils/types/postMessage.types.cjs.map +1 -1
  254. package/dist/legacy/visualBuilder/utils/types/postMessage.types.d.cts +14 -1
  255. package/dist/legacy/visualBuilder/utils/types/postMessage.types.d.ts +14 -1
  256. package/dist/legacy/visualBuilder/utils/types/postMessage.types.js +13 -0
  257. package/dist/legacy/visualBuilder/utils/types/postMessage.types.js.map +1 -1
  258. package/dist/modern/configManager/config.default.cjs +14 -0
  259. package/dist/modern/configManager/config.default.cjs.map +1 -1
  260. package/dist/modern/configManager/config.default.d.cts +1 -0
  261. package/dist/modern/configManager/config.default.d.ts +1 -0
  262. package/dist/modern/configManager/config.default.js +14 -0
  263. package/dist/modern/configManager/config.default.js.map +1 -1
  264. package/dist/modern/configManager/configManager.d.cts +1 -0
  265. package/dist/modern/configManager/configManager.d.ts +1 -0
  266. package/dist/modern/configManager/handleUserConfig.d.cts +1 -0
  267. package/dist/modern/configManager/handleUserConfig.d.ts +1 -0
  268. package/dist/modern/configManager/index.d.cts +1 -0
  269. package/dist/modern/configManager/index.d.ts +1 -0
  270. package/dist/modern/index.cjs +5 -5
  271. package/dist/modern/index.cjs.map +1 -1
  272. package/dist/modern/index.d.cts +1 -0
  273. package/dist/modern/index.d.ts +1 -0
  274. package/dist/modern/index.js +2 -2
  275. package/dist/modern/index.js.map +1 -1
  276. package/dist/modern/livePreview/editButton/editButton.d.cts +1 -0
  277. package/dist/modern/livePreview/editButton/editButton.d.ts +1 -0
  278. package/dist/modern/livePreview/eventManager/postMessageEvent.hooks.cjs +1 -1
  279. package/dist/modern/livePreview/eventManager/postMessageEvent.hooks.js +1 -1
  280. package/dist/modern/livePreview/eventManager/types/livePreviewPostMessageEvent.type.d.cts +1 -0
  281. package/dist/modern/livePreview/eventManager/types/livePreviewPostMessageEvent.type.d.ts +1 -0
  282. package/dist/modern/preview/contentstack-live-preview-HOC.cjs +1 -1
  283. package/dist/modern/preview/contentstack-live-preview-HOC.d.cts +1 -0
  284. package/dist/modern/preview/contentstack-live-preview-HOC.d.ts +1 -0
  285. package/dist/modern/preview/contentstack-live-preview-HOC.js +1 -1
  286. package/dist/modern/types/types.cjs +1 -0
  287. package/dist/modern/types/types.cjs.map +1 -1
  288. package/dist/modern/types/types.d.cts +16 -0
  289. package/dist/modern/types/types.d.ts +16 -0
  290. package/dist/modern/types/types.js +1 -0
  291. package/dist/modern/types/types.js.map +1 -1
  292. package/dist/modern/visualBuilder/collab.style.cjs +530 -0
  293. package/dist/modern/visualBuilder/collab.style.cjs.map +1 -0
  294. package/dist/modern/visualBuilder/collab.style.d.cts +67 -0
  295. package/dist/modern/visualBuilder/collab.style.d.ts +67 -0
  296. package/dist/modern/visualBuilder/collab.style.js +505 -0
  297. package/dist/modern/visualBuilder/collab.style.js.map +1 -0
  298. package/dist/modern/visualBuilder/components/Collab/Avatar/Avatar.cjs +116 -0
  299. package/dist/modern/visualBuilder/components/Collab/Avatar/Avatar.cjs.map +1 -0
  300. package/dist/modern/visualBuilder/components/Collab/Avatar/Avatar.d.cts +18 -0
  301. package/dist/modern/visualBuilder/components/Collab/Avatar/Avatar.d.ts +18 -0
  302. package/dist/modern/visualBuilder/components/Collab/Avatar/Avatar.js +87 -0
  303. package/dist/modern/visualBuilder/components/Collab/Avatar/Avatar.js.map +1 -0
  304. package/dist/modern/visualBuilder/components/Collab/Button/Button.cjs +121 -0
  305. package/dist/modern/visualBuilder/components/Collab/Button/Button.cjs.map +1 -0
  306. package/dist/modern/visualBuilder/components/Collab/Button/Button.d.cts +27 -0
  307. package/dist/modern/visualBuilder/components/Collab/Button/Button.d.ts +27 -0
  308. package/dist/modern/visualBuilder/components/Collab/Button/Button.js +96 -0
  309. package/dist/modern/visualBuilder/components/Collab/Button/Button.js.map +1 -0
  310. package/dist/modern/visualBuilder/components/Collab/ButtonGroup/ButtonGroup.cjs +61 -0
  311. package/dist/modern/visualBuilder/components/Collab/ButtonGroup/ButtonGroup.cjs.map +1 -0
  312. package/dist/modern/visualBuilder/components/Collab/ButtonGroup/ButtonGroup.d.cts +28 -0
  313. package/dist/modern/visualBuilder/components/Collab/ButtonGroup/ButtonGroup.d.ts +28 -0
  314. package/dist/modern/visualBuilder/components/Collab/ButtonGroup/ButtonGroup.js +32 -0
  315. package/dist/modern/visualBuilder/components/Collab/ButtonGroup/ButtonGroup.js.map +1 -0
  316. package/dist/modern/visualBuilder/components/Collab/CollabIndicator.cjs +124 -0
  317. package/dist/modern/visualBuilder/components/Collab/CollabIndicator.cjs.map +1 -0
  318. package/dist/modern/visualBuilder/components/Collab/CollabIndicator.d.cts +10 -0
  319. package/dist/modern/visualBuilder/components/Collab/CollabIndicator.d.ts +10 -0
  320. package/dist/modern/visualBuilder/components/Collab/CollabIndicator.js +95 -0
  321. package/dist/modern/visualBuilder/components/Collab/CollabIndicator.js.map +1 -0
  322. package/dist/modern/visualBuilder/components/Collab/Icon/Icon.cjs +82 -0
  323. package/dist/modern/visualBuilder/components/Collab/Icon/Icon.cjs.map +1 -0
  324. package/dist/modern/visualBuilder/components/Collab/Icon/Icon.d.cts +18 -0
  325. package/dist/modern/visualBuilder/components/Collab/Icon/Icon.d.ts +18 -0
  326. package/dist/modern/visualBuilder/components/Collab/Icon/Icon.js +53 -0
  327. package/dist/modern/visualBuilder/components/Collab/Icon/Icon.js.map +1 -0
  328. package/dist/modern/visualBuilder/components/Collab/SkeletonTile/SkeletonTile.cjs +81 -0
  329. package/dist/modern/visualBuilder/components/Collab/SkeletonTile/SkeletonTile.cjs.map +1 -0
  330. package/dist/modern/visualBuilder/components/Collab/SkeletonTile/SkeletonTile.d.cts +17 -0
  331. package/dist/modern/visualBuilder/components/Collab/SkeletonTile/SkeletonTile.d.ts +17 -0
  332. package/dist/modern/visualBuilder/components/Collab/SkeletonTile/SkeletonTile.js +52 -0
  333. package/dist/modern/visualBuilder/components/Collab/SkeletonTile/SkeletonTile.js.map +1 -0
  334. package/dist/modern/visualBuilder/components/Collab/ThreadPopup/CommentActionBar.cjs +145 -0
  335. package/dist/modern/visualBuilder/components/Collab/ThreadPopup/CommentActionBar.cjs.map +1 -0
  336. package/dist/modern/visualBuilder/components/Collab/ThreadPopup/CommentActionBar.d.cts +8 -0
  337. package/dist/modern/visualBuilder/components/Collab/ThreadPopup/CommentActionBar.d.ts +8 -0
  338. package/dist/modern/visualBuilder/components/Collab/ThreadPopup/CommentActionBar.js +116 -0
  339. package/dist/modern/visualBuilder/components/Collab/ThreadPopup/CommentActionBar.js.map +1 -0
  340. package/dist/modern/visualBuilder/components/Collab/ThreadPopup/CommentCard.cjs +160 -0
  341. package/dist/modern/visualBuilder/components/Collab/ThreadPopup/CommentCard.cjs.map +1 -0
  342. package/dist/modern/visualBuilder/components/Collab/ThreadPopup/CommentCard.d.cts +8 -0
  343. package/dist/modern/visualBuilder/components/Collab/ThreadPopup/CommentCard.d.ts +8 -0
  344. package/dist/modern/visualBuilder/components/Collab/ThreadPopup/CommentCard.js +131 -0
  345. package/dist/modern/visualBuilder/components/Collab/ThreadPopup/CommentCard.js.map +1 -0
  346. package/dist/modern/visualBuilder/components/Collab/ThreadPopup/CommentResolvedText.cjs +61 -0
  347. package/dist/modern/visualBuilder/components/Collab/ThreadPopup/CommentResolvedText.cjs.map +1 -0
  348. package/dist/modern/visualBuilder/components/Collab/ThreadPopup/CommentResolvedText.d.cts +6 -0
  349. package/dist/modern/visualBuilder/components/Collab/ThreadPopup/CommentResolvedText.d.ts +6 -0
  350. package/dist/modern/visualBuilder/components/Collab/ThreadPopup/CommentResolvedText.js +35 -0
  351. package/dist/modern/visualBuilder/components/Collab/ThreadPopup/CommentResolvedText.js.map +1 -0
  352. package/dist/modern/visualBuilder/components/Collab/ThreadPopup/CommentTextArea.cjs +188 -0
  353. package/dist/modern/visualBuilder/components/Collab/ThreadPopup/CommentTextArea.cjs.map +1 -0
  354. package/dist/modern/visualBuilder/components/Collab/ThreadPopup/CommentTextArea.d.cts +8 -0
  355. package/dist/modern/visualBuilder/components/Collab/ThreadPopup/CommentTextArea.d.ts +8 -0
  356. package/dist/modern/visualBuilder/components/Collab/ThreadPopup/CommentTextArea.js +159 -0
  357. package/dist/modern/visualBuilder/components/Collab/ThreadPopup/CommentTextArea.js.map +1 -0
  358. package/dist/modern/visualBuilder/components/Collab/ThreadPopup/ContextProvider/ThreadProvider.cjs +42 -0
  359. package/dist/modern/visualBuilder/components/Collab/ThreadPopup/ContextProvider/ThreadProvider.cjs.map +1 -0
  360. package/dist/modern/visualBuilder/components/Collab/ThreadPopup/ContextProvider/ThreadProvider.d.cts +8 -0
  361. package/dist/modern/visualBuilder/components/Collab/ThreadPopup/ContextProvider/ThreadProvider.d.ts +8 -0
  362. package/dist/modern/visualBuilder/components/Collab/ThreadPopup/ContextProvider/ThreadProvider.js +9 -0
  363. package/dist/modern/visualBuilder/components/Collab/ThreadPopup/ContextProvider/ThreadProvider.js.map +1 -0
  364. package/dist/modern/visualBuilder/components/Collab/ThreadPopup/ContextProvider/index.cjs +25 -0
  365. package/dist/modern/visualBuilder/components/Collab/ThreadPopup/ContextProvider/index.cjs.map +1 -0
  366. package/dist/modern/visualBuilder/components/Collab/ThreadPopup/ContextProvider/index.d.cts +3 -0
  367. package/dist/modern/visualBuilder/components/Collab/ThreadPopup/ContextProvider/index.d.ts +3 -0
  368. package/dist/modern/visualBuilder/components/Collab/ThreadPopup/ContextProvider/index.js +3 -0
  369. package/dist/modern/visualBuilder/components/Collab/ThreadPopup/ContextProvider/index.js.map +1 -0
  370. package/dist/modern/visualBuilder/components/Collab/ThreadPopup/ThreadBody.cjs +155 -0
  371. package/dist/modern/visualBuilder/components/Collab/ThreadPopup/ThreadBody.cjs.map +1 -0
  372. package/dist/modern/visualBuilder/components/Collab/ThreadPopup/ThreadBody.d.cts +8 -0
  373. package/dist/modern/visualBuilder/components/Collab/ThreadPopup/ThreadBody.d.ts +8 -0
  374. package/dist/modern/visualBuilder/components/Collab/ThreadPopup/ThreadBody.js +126 -0
  375. package/dist/modern/visualBuilder/components/Collab/ThreadPopup/ThreadBody.js.map +1 -0
  376. package/dist/modern/visualBuilder/components/Collab/ThreadPopup/ThreadFooter.cjs +91 -0
  377. package/dist/modern/visualBuilder/components/Collab/ThreadPopup/ThreadFooter.cjs.map +1 -0
  378. package/dist/modern/visualBuilder/components/Collab/ThreadPopup/ThreadFooter.d.cts +8 -0
  379. package/dist/modern/visualBuilder/components/Collab/ThreadPopup/ThreadFooter.d.ts +8 -0
  380. package/dist/modern/visualBuilder/components/Collab/ThreadPopup/ThreadFooter.js +62 -0
  381. package/dist/modern/visualBuilder/components/Collab/ThreadPopup/ThreadFooter.js.map +1 -0
  382. package/dist/modern/visualBuilder/components/Collab/ThreadPopup/ThreadHeader.cjs +124 -0
  383. package/dist/modern/visualBuilder/components/Collab/ThreadPopup/ThreadHeader.cjs.map +1 -0
  384. package/dist/modern/visualBuilder/components/Collab/ThreadPopup/ThreadHeader.d.cts +8 -0
  385. package/dist/modern/visualBuilder/components/Collab/ThreadPopup/ThreadHeader.d.ts +8 -0
  386. package/dist/modern/visualBuilder/components/Collab/ThreadPopup/ThreadHeader.js +95 -0
  387. package/dist/modern/visualBuilder/components/Collab/ThreadPopup/ThreadHeader.js.map +1 -0
  388. package/dist/modern/visualBuilder/components/Collab/ThreadPopup/index.cjs +230 -0
  389. package/dist/modern/visualBuilder/components/Collab/ThreadPopup/index.cjs.map +1 -0
  390. package/dist/modern/visualBuilder/components/Collab/ThreadPopup/index.d.cts +8 -0
  391. package/dist/modern/visualBuilder/components/Collab/ThreadPopup/index.d.ts +8 -0
  392. package/dist/modern/visualBuilder/components/Collab/ThreadPopup/index.js +201 -0
  393. package/dist/modern/visualBuilder/components/Collab/ThreadPopup/index.js.map +1 -0
  394. package/dist/modern/visualBuilder/components/Collab/ThreadPopup/loader/ThreadBody.cjs +101 -0
  395. package/dist/modern/visualBuilder/components/Collab/ThreadPopup/loader/ThreadBody.cjs.map +1 -0
  396. package/dist/modern/visualBuilder/components/Collab/ThreadPopup/loader/ThreadBody.d.cts +5 -0
  397. package/dist/modern/visualBuilder/components/Collab/ThreadPopup/loader/ThreadBody.d.ts +5 -0
  398. package/dist/modern/visualBuilder/components/Collab/ThreadPopup/loader/ThreadBody.js +72 -0
  399. package/dist/modern/visualBuilder/components/Collab/ThreadPopup/loader/ThreadBody.js.map +1 -0
  400. package/dist/modern/visualBuilder/components/Collab/Tooltip/Tooltip.cjs +126 -0
  401. package/dist/modern/visualBuilder/components/Collab/Tooltip/Tooltip.cjs.map +1 -0
  402. package/dist/modern/visualBuilder/components/Collab/Tooltip/Tooltip.d.cts +17 -0
  403. package/dist/modern/visualBuilder/components/Collab/Tooltip/Tooltip.d.ts +17 -0
  404. package/dist/modern/visualBuilder/components/Collab/Tooltip/Tooltip.js +97 -0
  405. package/dist/modern/visualBuilder/components/Collab/Tooltip/Tooltip.js.map +1 -0
  406. package/dist/modern/visualBuilder/components/HighlightedCommentIcon.cjs +6 -1
  407. package/dist/modern/visualBuilder/components/HighlightedCommentIcon.cjs.map +1 -1
  408. package/dist/modern/visualBuilder/components/HighlightedCommentIcon.js +6 -1
  409. package/dist/modern/visualBuilder/components/HighlightedCommentIcon.js.map +1 -1
  410. package/dist/modern/visualBuilder/components/emptyBlock.cjs +1 -0
  411. package/dist/modern/visualBuilder/components/emptyBlock.cjs.map +1 -1
  412. package/dist/modern/visualBuilder/components/emptyBlock.js +1 -0
  413. package/dist/modern/visualBuilder/components/emptyBlock.js.map +1 -1
  414. package/dist/modern/visualBuilder/components/icons/CollabIcons.cjs +220 -0
  415. package/dist/modern/visualBuilder/components/icons/CollabIcons.cjs.map +1 -0
  416. package/dist/modern/visualBuilder/components/icons/CollabIcons.d.cts +16 -0
  417. package/dist/modern/visualBuilder/components/icons/CollabIcons.d.ts +16 -0
  418. package/dist/modern/visualBuilder/components/icons/CollabIcons.js +197 -0
  419. package/dist/modern/visualBuilder/components/icons/CollabIcons.js.map +1 -0
  420. package/dist/modern/visualBuilder/components/icons/index.cjs +16 -16
  421. package/dist/modern/visualBuilder/components/icons/index.cjs.map +1 -1
  422. package/dist/modern/visualBuilder/components/icons/index.js +16 -16
  423. package/dist/modern/visualBuilder/components/icons/index.js.map +1 -1
  424. package/dist/modern/visualBuilder/eventManager/useCollab.cjs +139 -0
  425. package/dist/modern/visualBuilder/eventManager/useCollab.cjs.map +1 -0
  426. package/dist/modern/visualBuilder/eventManager/useCollab.d.cts +3 -0
  427. package/dist/modern/visualBuilder/eventManager/useCollab.d.ts +3 -0
  428. package/dist/modern/visualBuilder/eventManager/useCollab.js +115 -0
  429. package/dist/modern/visualBuilder/eventManager/useCollab.js.map +1 -0
  430. package/dist/modern/visualBuilder/generators/generateCustomCursor.cjs +2 -1
  431. package/dist/modern/visualBuilder/generators/generateCustomCursor.cjs.map +1 -1
  432. package/dist/modern/visualBuilder/generators/generateCustomCursor.d.cts +2 -2
  433. package/dist/modern/visualBuilder/generators/generateCustomCursor.d.ts +2 -2
  434. package/dist/modern/visualBuilder/generators/generateCustomCursor.js +2 -1
  435. package/dist/modern/visualBuilder/generators/generateCustomCursor.js.map +1 -1
  436. package/dist/modern/visualBuilder/generators/generateHighlightedComment.cjs +2 -2
  437. package/dist/modern/visualBuilder/generators/generateHighlightedComment.cjs.map +1 -1
  438. package/dist/modern/visualBuilder/generators/generateHighlightedComment.js +2 -2
  439. package/dist/modern/visualBuilder/generators/generateHighlightedComment.js.map +1 -1
  440. package/dist/modern/visualBuilder/generators/generateThread.cjs +406 -0
  441. package/dist/modern/visualBuilder/generators/generateThread.cjs.map +1 -0
  442. package/dist/modern/visualBuilder/generators/generateThread.d.cts +25 -0
  443. package/dist/modern/visualBuilder/generators/generateThread.d.ts +25 -0
  444. package/dist/modern/visualBuilder/generators/generateThread.js +356 -0
  445. package/dist/modern/visualBuilder/generators/generateThread.js.map +1 -0
  446. package/dist/modern/visualBuilder/hooks/use-infinite-scroll/useInfiniteScroll.cjs +63 -0
  447. package/dist/modern/visualBuilder/hooks/use-infinite-scroll/useInfiniteScroll.cjs.map +1 -0
  448. package/dist/modern/visualBuilder/hooks/use-infinite-scroll/useInfiniteScroll.d.cts +11 -0
  449. package/dist/modern/visualBuilder/hooks/use-infinite-scroll/useInfiniteScroll.d.ts +11 -0
  450. package/dist/modern/visualBuilder/hooks/use-infinite-scroll/useInfiniteScroll.js +44 -0
  451. package/dist/modern/visualBuilder/hooks/use-infinite-scroll/useInfiniteScroll.js.map +1 -0
  452. package/dist/modern/visualBuilder/hooks/useCollabIndicator.cjs +128 -0
  453. package/dist/modern/visualBuilder/hooks/useCollabIndicator.cjs.map +1 -0
  454. package/dist/modern/visualBuilder/hooks/useCollabIndicator.d.cts +20 -0
  455. package/dist/modern/visualBuilder/hooks/useCollabIndicator.d.ts +20 -0
  456. package/dist/modern/visualBuilder/hooks/useCollabIndicator.js +95 -0
  457. package/dist/modern/visualBuilder/hooks/useCollabIndicator.js.map +1 -0
  458. package/dist/modern/visualBuilder/hooks/useCollabOperations.cjs +139 -0
  459. package/dist/modern/visualBuilder/hooks/useCollabOperations.cjs.map +1 -0
  460. package/dist/modern/visualBuilder/hooks/useCollabOperations.d.cts +16 -0
  461. package/dist/modern/visualBuilder/hooks/useCollabOperations.d.ts +16 -0
  462. package/dist/modern/visualBuilder/hooks/useCollabOperations.js +106 -0
  463. package/dist/modern/visualBuilder/hooks/useCollabOperations.js.map +1 -0
  464. package/dist/modern/visualBuilder/hooks/useCommentTextArea.cjs +406 -0
  465. package/dist/modern/visualBuilder/hooks/useCommentTextArea.cjs.map +1 -0
  466. package/dist/modern/visualBuilder/hooks/useCommentTextArea.d.cts +26 -0
  467. package/dist/modern/visualBuilder/hooks/useCommentTextArea.d.ts +26 -0
  468. package/dist/modern/visualBuilder/hooks/useCommentTextArea.js +385 -0
  469. package/dist/modern/visualBuilder/hooks/useCommentTextArea.js.map +1 -0
  470. package/dist/modern/visualBuilder/hooks/useDynamicTextareaRows.cjs +42 -0
  471. package/dist/modern/visualBuilder/hooks/useDynamicTextareaRows.cjs.map +1 -0
  472. package/dist/modern/visualBuilder/hooks/useDynamicTextareaRows.d.cts +3 -0
  473. package/dist/modern/visualBuilder/hooks/useDynamicTextareaRows.d.ts +3 -0
  474. package/dist/modern/visualBuilder/hooks/useDynamicTextareaRows.js +23 -0
  475. package/dist/modern/visualBuilder/hooks/useDynamicTextareaRows.js.map +1 -0
  476. package/dist/modern/visualBuilder/index.cjs +81 -31
  477. package/dist/modern/visualBuilder/index.cjs.map +1 -1
  478. package/dist/modern/visualBuilder/index.d.cts +1 -0
  479. package/dist/modern/visualBuilder/index.d.ts +1 -0
  480. package/dist/modern/visualBuilder/index.js +86 -31
  481. package/dist/modern/visualBuilder/index.js.map +1 -1
  482. package/dist/modern/visualBuilder/listeners/mouseClick.cjs +36 -4
  483. package/dist/modern/visualBuilder/listeners/mouseClick.cjs.map +1 -1
  484. package/dist/modern/visualBuilder/listeners/mouseClick.js +36 -4
  485. package/dist/modern/visualBuilder/listeners/mouseClick.js.map +1 -1
  486. package/dist/modern/visualBuilder/listeners/mouseHover.cjs +48 -6
  487. package/dist/modern/visualBuilder/listeners/mouseHover.cjs.map +1 -1
  488. package/dist/modern/visualBuilder/listeners/mouseHover.js +38 -6
  489. package/dist/modern/visualBuilder/listeners/mouseHover.js.map +1 -1
  490. package/dist/modern/visualBuilder/types/collab.types.cjs +19 -0
  491. package/dist/modern/visualBuilder/types/collab.types.cjs.map +1 -0
  492. package/dist/modern/visualBuilder/types/collab.types.d.cts +232 -0
  493. package/dist/modern/visualBuilder/types/collab.types.d.ts +232 -0
  494. package/dist/modern/visualBuilder/types/collab.types.js +1 -0
  495. package/dist/modern/visualBuilder/types/collab.types.js.map +1 -0
  496. package/dist/modern/visualBuilder/utils/collabUtils.cjs +116 -0
  497. package/dist/modern/visualBuilder/utils/collabUtils.cjs.map +1 -0
  498. package/dist/modern/visualBuilder/utils/collabUtils.d.cts +52 -0
  499. package/dist/modern/visualBuilder/utils/collabUtils.d.ts +52 -0
  500. package/dist/modern/visualBuilder/utils/collabUtils.js +77 -0
  501. package/dist/modern/visualBuilder/utils/collabUtils.js.map +1 -0
  502. package/dist/modern/visualBuilder/utils/constants.cjs +6 -0
  503. package/dist/modern/visualBuilder/utils/constants.cjs.map +1 -1
  504. package/dist/modern/visualBuilder/utils/constants.d.cts +3 -1
  505. package/dist/modern/visualBuilder/utils/constants.d.ts +3 -1
  506. package/dist/modern/visualBuilder/utils/constants.js +4 -0
  507. package/dist/modern/visualBuilder/utils/constants.js.map +1 -1
  508. package/dist/modern/visualBuilder/utils/types/postMessage.types.cjs +13 -0
  509. package/dist/modern/visualBuilder/utils/types/postMessage.types.cjs.map +1 -1
  510. package/dist/modern/visualBuilder/utils/types/postMessage.types.d.cts +14 -1
  511. package/dist/modern/visualBuilder/utils/types/postMessage.types.d.ts +14 -1
  512. package/dist/modern/visualBuilder/utils/types/postMessage.types.js +13 -0
  513. package/dist/modern/visualBuilder/utils/types/postMessage.types.js.map +1 -1
  514. package/package.json +8 -5
package/README.md CHANGED
@@ -16,7 +16,7 @@ Alternatively, if you want to include the package directly in your website HTML
16
16
 
17
17
  ```html
18
18
  <script type='module' integrity='sha384-9M4o9H23Ax5ZTzsMRLgdlFBYk2hy+ub6XDiZhHWJjfebQ+MZ9iZw+GNep9ac0uFV' crossorigin="anonymous">
19
- import ContentstackLivePreview from 'https://esm.sh/@contentstack/live-preview-utils@3.1.0';
19
+ import ContentstackLivePreview from 'https://esm.sh/@contentstack/live-preview-utils@3.1.1';
20
20
 
21
21
  ContentstackLivePreview.init({
22
22
  stackDetails: {
@@ -98,6 +98,20 @@ function getDefaultConfig() {
98
98
  },
99
99
  elements: {
100
100
  highlightedElement: null
101
+ },
102
+ collab: {
103
+ enable: false,
104
+ fromShare: false,
105
+ pauseFeedback: false,
106
+ isFeedbackMode: false,
107
+ inviteMetadata: {
108
+ currentUser: {
109
+ email: "",
110
+ uid: ""
111
+ },
112
+ users: [],
113
+ inviteUid: ""
114
+ }
101
115
  }
102
116
  };
103
117
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/configManager/config.default.ts"],"sourcesContent":["import {\n ILivePreviewWindowType,\n type IConfig,\n type IInitData,\n} from \"../types/types\";\n\nexport function getUserInitData(): IInitData {\n return {\n ssr: true,\n enable: true,\n debug: false,\n cleanCslpOnProduction: true,\n editButton: {\n enable: true,\n exclude: [],\n position: \"top\",\n includeByQueryParameter: true,\n },\n\n mode: \"preview\",\n\n stackDetails: {\n apiKey: \"\",\n environment: \"\",\n branch: \"\",\n },\n\n clientUrlParams: {\n protocol: \"https\",\n host: \"app.contentstack.com\",\n port: 443,\n },\n stackSdk: {\n live_preview: {},\n environment: \"\",\n },\n runScriptsOnUpdate: false,\n };\n}\n\nexport function getDefaultConfig(): IConfig {\n return {\n ssr: true,\n enable: true,\n debug: false,\n cleanCslpOnProduction: true,\n editButton: {\n enable: true,\n exclude: [],\n position: \"top\",\n includeByQueryParameter: true,\n },\n\n hash: \"\",\n mode: 1,\n windowType: ILivePreviewWindowType.INDEPENDENT,\n\n stackDetails: {\n apiKey: \"\",\n environment: \"\",\n contentTypeUid: \"\",\n entryUid: \"\",\n locale: \"en-us\",\n branch: \"main\",\n masterLocale: \"en-us\",\n },\n\n clientUrlParams: {\n protocol: \"https\",\n host: \"app.contentstack.com\",\n port: 443,\n url: \"https://app.contentstack.com:443\",\n },\n stackSdk: {\n live_preview: {},\n headers: {\n api_key: \"\",\n },\n environment: \"\",\n },\n runScriptsOnUpdate: false,\n\n onChange() {\n return;\n },\n\n elements: {\n highlightedElement: null,\n },\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAIO;AAEA,SAAS,kBAA6B;AACzC,SAAO;AAAA,IACH,KAAK;AAAA,IACL,QAAQ;AAAA,IACR,OAAO;AAAA,IACP,uBAAuB;AAAA,IACvB,YAAY;AAAA,MACR,QAAQ;AAAA,MACR,SAAS,CAAC;AAAA,MACV,UAAU;AAAA,MACV,yBAAyB;AAAA,IAC7B;AAAA,IAEA,MAAM;AAAA,IAEN,cAAc;AAAA,MACV,QAAQ;AAAA,MACR,aAAa;AAAA,MACb,QAAQ;AAAA,IACZ;AAAA,IAEA,iBAAiB;AAAA,MACb,UAAU;AAAA,MACV,MAAM;AAAA,MACN,MAAM;AAAA,IACV;AAAA,IACA,UAAU;AAAA,MACN,cAAc,CAAC;AAAA,MACf,aAAa;AAAA,IACjB;AAAA,IACA,oBAAoB;AAAA,EACxB;AACJ;AAEO,SAAS,mBAA4B;AACxC,SAAO;AAAA,IACH,KAAK;AAAA,IACL,QAAQ;AAAA,IACR,OAAO;AAAA,IACP,uBAAuB;AAAA,IACvB,YAAY;AAAA,MACR,QAAQ;AAAA,MACR,SAAS,CAAC;AAAA,MACV,UAAU;AAAA,MACV,yBAAyB;AAAA,IAC7B;AAAA,IAEA,MAAM;AAAA,IACN,MAAM;AAAA,IACN,YAAY,oCAAuB;AAAA,IAEnC,cAAc;AAAA,MACV,QAAQ;AAAA,MACR,aAAa;AAAA,MACb,gBAAgB;AAAA,MAChB,UAAU;AAAA,MACV,QAAQ;AAAA,MACR,QAAQ;AAAA,MACR,cAAc;AAAA,IAClB;AAAA,IAEA,iBAAiB;AAAA,MACb,UAAU;AAAA,MACV,MAAM;AAAA,MACN,MAAM;AAAA,MACN,KAAK;AAAA,IACT;AAAA,IACA,UAAU;AAAA,MACN,cAAc,CAAC;AAAA,MACf,SAAS;AAAA,QACL,SAAS;AAAA,MACb;AAAA,MACA,aAAa;AAAA,IACjB;AAAA,IACA,oBAAoB;AAAA,IAEpB,WAAW;AACP;AAAA,IACJ;AAAA,IAEA,UAAU;AAAA,MACN,oBAAoB;AAAA,IACxB;AAAA,EACJ;AACJ;","names":[]}
1
+ {"version":3,"sources":["../../../src/configManager/config.default.ts"],"sourcesContent":["import {\n ILivePreviewWindowType,\n type IConfig,\n type IInitData,\n} from \"../types/types\";\n\nexport function getUserInitData(): IInitData {\n return {\n ssr: true,\n enable: true,\n debug: false,\n cleanCslpOnProduction: true,\n editButton: {\n enable: true,\n exclude: [],\n position: \"top\",\n includeByQueryParameter: true,\n },\n\n mode: \"preview\",\n\n stackDetails: {\n apiKey: \"\",\n environment: \"\",\n branch: \"\",\n },\n\n clientUrlParams: {\n protocol: \"https\",\n host: \"app.contentstack.com\",\n port: 443,\n },\n stackSdk: {\n live_preview: {},\n environment: \"\",\n },\n runScriptsOnUpdate: false,\n };\n}\n\nexport function getDefaultConfig(): IConfig {\n return {\n ssr: true,\n enable: true,\n debug: false,\n cleanCslpOnProduction: true,\n editButton: {\n enable: true,\n exclude: [],\n position: \"top\",\n includeByQueryParameter: true,\n },\n\n hash: \"\",\n mode: 1,\n windowType: ILivePreviewWindowType.INDEPENDENT,\n\n stackDetails: {\n apiKey: \"\",\n environment: \"\",\n contentTypeUid: \"\",\n entryUid: \"\",\n locale: \"en-us\",\n branch: \"main\",\n masterLocale: \"en-us\",\n },\n\n clientUrlParams: {\n protocol: \"https\",\n host: \"app.contentstack.com\",\n port: 443,\n url: \"https://app.contentstack.com:443\",\n },\n stackSdk: {\n live_preview: {},\n headers: {\n api_key: \"\",\n },\n environment: \"\",\n },\n runScriptsOnUpdate: false,\n\n onChange() {\n return;\n },\n\n elements: {\n highlightedElement: null,\n },\n collab: {\n enable: false,\n fromShare: false,\n pauseFeedback: false,\n isFeedbackMode: false,\n inviteMetadata: {\n currentUser: {\n email: \"\",\n uid: \"\",\n },\n users: [],\n inviteUid: \"\",\n },\n },\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAIO;AAEA,SAAS,kBAA6B;AACzC,SAAO;AAAA,IACH,KAAK;AAAA,IACL,QAAQ;AAAA,IACR,OAAO;AAAA,IACP,uBAAuB;AAAA,IACvB,YAAY;AAAA,MACR,QAAQ;AAAA,MACR,SAAS,CAAC;AAAA,MACV,UAAU;AAAA,MACV,yBAAyB;AAAA,IAC7B;AAAA,IAEA,MAAM;AAAA,IAEN,cAAc;AAAA,MACV,QAAQ;AAAA,MACR,aAAa;AAAA,MACb,QAAQ;AAAA,IACZ;AAAA,IAEA,iBAAiB;AAAA,MACb,UAAU;AAAA,MACV,MAAM;AAAA,MACN,MAAM;AAAA,IACV;AAAA,IACA,UAAU;AAAA,MACN,cAAc,CAAC;AAAA,MACf,aAAa;AAAA,IACjB;AAAA,IACA,oBAAoB;AAAA,EACxB;AACJ;AAEO,SAAS,mBAA4B;AACxC,SAAO;AAAA,IACH,KAAK;AAAA,IACL,QAAQ;AAAA,IACR,OAAO;AAAA,IACP,uBAAuB;AAAA,IACvB,YAAY;AAAA,MACR,QAAQ;AAAA,MACR,SAAS,CAAC;AAAA,MACV,UAAU;AAAA,MACV,yBAAyB;AAAA,IAC7B;AAAA,IAEA,MAAM;AAAA,IACN,MAAM;AAAA,IACN,YAAY,oCAAuB;AAAA,IAEnC,cAAc;AAAA,MACV,QAAQ;AAAA,MACR,aAAa;AAAA,MACb,gBAAgB;AAAA,MAChB,UAAU;AAAA,MACV,QAAQ;AAAA,MACR,QAAQ;AAAA,MACR,cAAc;AAAA,IAClB;AAAA,IAEA,iBAAiB;AAAA,MACb,UAAU;AAAA,MACV,MAAM;AAAA,MACN,MAAM;AAAA,MACN,KAAK;AAAA,IACT;AAAA,IACA,UAAU;AAAA,MACN,cAAc,CAAC;AAAA,MACf,SAAS;AAAA,QACL,SAAS;AAAA,MACb;AAAA,MACA,aAAa;AAAA,IACjB;AAAA,IACA,oBAAoB;AAAA,IAEpB,WAAW;AACP;AAAA,IACJ;AAAA,IAEA,UAAU;AAAA,MACN,oBAAoB;AAAA,IACxB;AAAA,IACA,QAAQ;AAAA,MACJ,QAAQ;AAAA,MACR,WAAW;AAAA,MACX,eAAe;AAAA,MACf,gBAAgB;AAAA,MAChB,gBAAgB;AAAA,QACZ,aAAa;AAAA,UACT,OAAO;AAAA,UACP,KAAK;AAAA,QACT;AAAA,QACA,OAAO,CAAC;AAAA,QACR,WAAW;AAAA,MACf;AAAA,IACJ;AAAA,EACJ;AACJ;","names":[]}
@@ -1,4 +1,5 @@
1
1
  import { IInitData, IConfig } from '../types/types.cjs';
2
+ import '../visualBuilder/types/collab.types.cjs';
2
3
 
3
4
  declare function getUserInitData(): IInitData;
4
5
  declare function getDefaultConfig(): IConfig;
@@ -1,4 +1,5 @@
1
1
  import { IInitData, IConfig } from '../types/types.js';
2
+ import '../visualBuilder/types/collab.types.js';
2
3
 
3
4
  declare function getUserInitData(): IInitData;
4
5
  declare function getDefaultConfig(): IConfig;
@@ -77,6 +77,20 @@ function getDefaultConfig() {
77
77
  },
78
78
  elements: {
79
79
  highlightedElement: null
80
+ },
81
+ collab: {
82
+ enable: false,
83
+ fromShare: false,
84
+ pauseFeedback: false,
85
+ isFeedbackMode: false,
86
+ inviteMetadata: {
87
+ currentUser: {
88
+ email: "",
89
+ uid: ""
90
+ },
91
+ users: [],
92
+ inviteUid: ""
93
+ }
80
94
  }
81
95
  };
82
96
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/configManager/config.default.ts"],"sourcesContent":["import {\n ILivePreviewWindowType,\n type IConfig,\n type IInitData,\n} from \"../types/types\";\n\nexport function getUserInitData(): IInitData {\n return {\n ssr: true,\n enable: true,\n debug: false,\n cleanCslpOnProduction: true,\n editButton: {\n enable: true,\n exclude: [],\n position: \"top\",\n includeByQueryParameter: true,\n },\n\n mode: \"preview\",\n\n stackDetails: {\n apiKey: \"\",\n environment: \"\",\n branch: \"\",\n },\n\n clientUrlParams: {\n protocol: \"https\",\n host: \"app.contentstack.com\",\n port: 443,\n },\n stackSdk: {\n live_preview: {},\n environment: \"\",\n },\n runScriptsOnUpdate: false,\n };\n}\n\nexport function getDefaultConfig(): IConfig {\n return {\n ssr: true,\n enable: true,\n debug: false,\n cleanCslpOnProduction: true,\n editButton: {\n enable: true,\n exclude: [],\n position: \"top\",\n includeByQueryParameter: true,\n },\n\n hash: \"\",\n mode: 1,\n windowType: ILivePreviewWindowType.INDEPENDENT,\n\n stackDetails: {\n apiKey: \"\",\n environment: \"\",\n contentTypeUid: \"\",\n entryUid: \"\",\n locale: \"en-us\",\n branch: \"main\",\n masterLocale: \"en-us\",\n },\n\n clientUrlParams: {\n protocol: \"https\",\n host: \"app.contentstack.com\",\n port: 443,\n url: \"https://app.contentstack.com:443\",\n },\n stackSdk: {\n live_preview: {},\n headers: {\n api_key: \"\",\n },\n environment: \"\",\n },\n runScriptsOnUpdate: false,\n\n onChange() {\n return;\n },\n\n elements: {\n highlightedElement: null,\n },\n };\n}\n"],"mappings":";;;AAAA;AAAA,EACI;AAAA,OAGG;AAEA,SAAS,kBAA6B;AACzC,SAAO;AAAA,IACH,KAAK;AAAA,IACL,QAAQ;AAAA,IACR,OAAO;AAAA,IACP,uBAAuB;AAAA,IACvB,YAAY;AAAA,MACR,QAAQ;AAAA,MACR,SAAS,CAAC;AAAA,MACV,UAAU;AAAA,MACV,yBAAyB;AAAA,IAC7B;AAAA,IAEA,MAAM;AAAA,IAEN,cAAc;AAAA,MACV,QAAQ;AAAA,MACR,aAAa;AAAA,MACb,QAAQ;AAAA,IACZ;AAAA,IAEA,iBAAiB;AAAA,MACb,UAAU;AAAA,MACV,MAAM;AAAA,MACN,MAAM;AAAA,IACV;AAAA,IACA,UAAU;AAAA,MACN,cAAc,CAAC;AAAA,MACf,aAAa;AAAA,IACjB;AAAA,IACA,oBAAoB;AAAA,EACxB;AACJ;AAEO,SAAS,mBAA4B;AACxC,SAAO;AAAA,IACH,KAAK;AAAA,IACL,QAAQ;AAAA,IACR,OAAO;AAAA,IACP,uBAAuB;AAAA,IACvB,YAAY;AAAA,MACR,QAAQ;AAAA,MACR,SAAS,CAAC;AAAA,MACV,UAAU;AAAA,MACV,yBAAyB;AAAA,IAC7B;AAAA,IAEA,MAAM;AAAA,IACN,MAAM;AAAA,IACN,YAAY,uBAAuB;AAAA,IAEnC,cAAc;AAAA,MACV,QAAQ;AAAA,MACR,aAAa;AAAA,MACb,gBAAgB;AAAA,MAChB,UAAU;AAAA,MACV,QAAQ;AAAA,MACR,QAAQ;AAAA,MACR,cAAc;AAAA,IAClB;AAAA,IAEA,iBAAiB;AAAA,MACb,UAAU;AAAA,MACV,MAAM;AAAA,MACN,MAAM;AAAA,MACN,KAAK;AAAA,IACT;AAAA,IACA,UAAU;AAAA,MACN,cAAc,CAAC;AAAA,MACf,SAAS;AAAA,QACL,SAAS;AAAA,MACb;AAAA,MACA,aAAa;AAAA,IACjB;AAAA,IACA,oBAAoB;AAAA,IAEpB,WAAW;AACP;AAAA,IACJ;AAAA,IAEA,UAAU;AAAA,MACN,oBAAoB;AAAA,IACxB;AAAA,EACJ;AACJ;","names":[]}
1
+ {"version":3,"sources":["../../../src/configManager/config.default.ts"],"sourcesContent":["import {\n ILivePreviewWindowType,\n type IConfig,\n type IInitData,\n} from \"../types/types\";\n\nexport function getUserInitData(): IInitData {\n return {\n ssr: true,\n enable: true,\n debug: false,\n cleanCslpOnProduction: true,\n editButton: {\n enable: true,\n exclude: [],\n position: \"top\",\n includeByQueryParameter: true,\n },\n\n mode: \"preview\",\n\n stackDetails: {\n apiKey: \"\",\n environment: \"\",\n branch: \"\",\n },\n\n clientUrlParams: {\n protocol: \"https\",\n host: \"app.contentstack.com\",\n port: 443,\n },\n stackSdk: {\n live_preview: {},\n environment: \"\",\n },\n runScriptsOnUpdate: false,\n };\n}\n\nexport function getDefaultConfig(): IConfig {\n return {\n ssr: true,\n enable: true,\n debug: false,\n cleanCslpOnProduction: true,\n editButton: {\n enable: true,\n exclude: [],\n position: \"top\",\n includeByQueryParameter: true,\n },\n\n hash: \"\",\n mode: 1,\n windowType: ILivePreviewWindowType.INDEPENDENT,\n\n stackDetails: {\n apiKey: \"\",\n environment: \"\",\n contentTypeUid: \"\",\n entryUid: \"\",\n locale: \"en-us\",\n branch: \"main\",\n masterLocale: \"en-us\",\n },\n\n clientUrlParams: {\n protocol: \"https\",\n host: \"app.contentstack.com\",\n port: 443,\n url: \"https://app.contentstack.com:443\",\n },\n stackSdk: {\n live_preview: {},\n headers: {\n api_key: \"\",\n },\n environment: \"\",\n },\n runScriptsOnUpdate: false,\n\n onChange() {\n return;\n },\n\n elements: {\n highlightedElement: null,\n },\n collab: {\n enable: false,\n fromShare: false,\n pauseFeedback: false,\n isFeedbackMode: false,\n inviteMetadata: {\n currentUser: {\n email: \"\",\n uid: \"\",\n },\n users: [],\n inviteUid: \"\",\n },\n },\n };\n}\n"],"mappings":";;;AAAA;AAAA,EACI;AAAA,OAGG;AAEA,SAAS,kBAA6B;AACzC,SAAO;AAAA,IACH,KAAK;AAAA,IACL,QAAQ;AAAA,IACR,OAAO;AAAA,IACP,uBAAuB;AAAA,IACvB,YAAY;AAAA,MACR,QAAQ;AAAA,MACR,SAAS,CAAC;AAAA,MACV,UAAU;AAAA,MACV,yBAAyB;AAAA,IAC7B;AAAA,IAEA,MAAM;AAAA,IAEN,cAAc;AAAA,MACV,QAAQ;AAAA,MACR,aAAa;AAAA,MACb,QAAQ;AAAA,IACZ;AAAA,IAEA,iBAAiB;AAAA,MACb,UAAU;AAAA,MACV,MAAM;AAAA,MACN,MAAM;AAAA,IACV;AAAA,IACA,UAAU;AAAA,MACN,cAAc,CAAC;AAAA,MACf,aAAa;AAAA,IACjB;AAAA,IACA,oBAAoB;AAAA,EACxB;AACJ;AAEO,SAAS,mBAA4B;AACxC,SAAO;AAAA,IACH,KAAK;AAAA,IACL,QAAQ;AAAA,IACR,OAAO;AAAA,IACP,uBAAuB;AAAA,IACvB,YAAY;AAAA,MACR,QAAQ;AAAA,MACR,SAAS,CAAC;AAAA,MACV,UAAU;AAAA,MACV,yBAAyB;AAAA,IAC7B;AAAA,IAEA,MAAM;AAAA,IACN,MAAM;AAAA,IACN,YAAY,uBAAuB;AAAA,IAEnC,cAAc;AAAA,MACV,QAAQ;AAAA,MACR,aAAa;AAAA,MACb,gBAAgB;AAAA,MAChB,UAAU;AAAA,MACV,QAAQ;AAAA,MACR,QAAQ;AAAA,MACR,cAAc;AAAA,IAClB;AAAA,IAEA,iBAAiB;AAAA,MACb,UAAU;AAAA,MACV,MAAM;AAAA,MACN,MAAM;AAAA,MACN,KAAK;AAAA,IACT;AAAA,IACA,UAAU;AAAA,MACN,cAAc,CAAC;AAAA,MACf,SAAS;AAAA,QACL,SAAS;AAAA,MACb;AAAA,MACA,aAAa;AAAA,IACjB;AAAA,IACA,oBAAoB;AAAA,IAEpB,WAAW;AACP;AAAA,IACJ;AAAA,IAEA,UAAU;AAAA,MACN,oBAAoB;AAAA,IACxB;AAAA,IACA,QAAQ;AAAA,MACJ,QAAQ;AAAA,MACR,WAAW;AAAA,MACX,eAAe;AAAA,MACf,gBAAgB;AAAA,MAChB,gBAAgB;AAAA,QACZ,aAAa;AAAA,UACT,OAAO;AAAA,UACP,KAAK;AAAA,QACT;AAAA,QACA,OAAO,CAAC;AAAA,QACR,WAAW;AAAA,MACf;AAAA,IACJ;AAAA,EACJ;AACJ;","names":[]}
@@ -1,5 +1,6 @@
1
1
  import { DeepSignal } from 'deepsignal';
2
2
  import { IConfig, IInitData } from '../types/types.cjs';
3
+ import '../visualBuilder/types/collab.types.cjs';
3
4
 
4
5
  declare class Config {
5
6
  static config: {
@@ -1,5 +1,6 @@
1
1
  import { DeepSignal } from 'deepsignal';
2
2
  import { IConfig, IInitData } from '../types/types.js';
3
+ import '../visualBuilder/types/collab.types.js';
3
4
 
4
5
  declare class Config {
5
6
  static config: {
@@ -1,4 +1,5 @@
1
1
  import { IInitData, IClientUrlParams } from '../types/types.cjs';
2
+ import '../visualBuilder/types/collab.types.cjs';
2
3
 
3
4
  declare const handleInitData: (initData: Partial<IInitData>) => void;
4
5
  declare const handleUserConfig: {
@@ -1,4 +1,5 @@
1
1
  import { IInitData, IClientUrlParams } from '../types/types.js';
2
+ import '../visualBuilder/types/collab.types.js';
2
3
 
3
4
  declare const handleInitData: (initData: Partial<IInitData>) => void;
4
5
  declare const handleUserConfig: {
@@ -1,3 +1,4 @@
1
1
  export { setConfigFromParams, updateConfigFromUrl } from './configManager.cjs';
2
2
  import 'deepsignal';
3
3
  import '../types/types.cjs';
4
+ import '../visualBuilder/types/collab.types.cjs';
@@ -1,3 +1,4 @@
1
1
  export { setConfigFromParams, updateConfigFromUrl } from './configManager.js';
2
2
  import 'deepsignal';
3
3
  import '../types/types.js';
4
+ import '../visualBuilder/types/collab.types.js';
@@ -28,15 +28,15 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
29
 
30
30
  // src/index.ts
31
- var src_exports = {};
32
- __export(src_exports, {
31
+ var index_exports = {};
32
+ __export(index_exports, {
33
33
  VB_EmptyBlockParentClass: () => VB_EmptyBlockParentClass,
34
- default: () => src_default
34
+ default: () => index_default
35
35
  });
36
- module.exports = __toCommonJS(src_exports);
36
+ module.exports = __toCommonJS(index_exports);
37
37
  var import_contentstack_live_preview_HOC = __toESM(require("./preview/contentstack-live-preview-HOC.cjs"), 1);
38
38
  var VB_EmptyBlockParentClass = "visual-builder__empty-block-parent";
39
- var src_default = import_contentstack_live_preview_HOC.default;
39
+ var index_default = import_contentstack_live_preview_HOC.default;
40
40
  // Annotate the CommonJS export names for ESM import in node:
41
41
  0 && (module.exports = {
42
42
  VB_EmptyBlockParentClass
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/index.ts"],"sourcesContent":["import ContentstackLivePreviewHOC from \"./preview/contentstack-live-preview-HOC\";\n\nimport { IStackSdk as ExternalStackSdkType } from \"./types/types\";\nexport type IStackSdk = ExternalStackSdkType;\nclass LightLivePreviewHoC implements ContentstackLivePreviewHOC {\n static init() {}\n\n get hash() {\n return \"\";\n }\n\n static onEntryChange(callback: (...args: any[]) => void) {\n return callback();\n }\n\n static onLiveEdit() {\n // intentionally empty\n }\n\n static unsubscribeOnEntryChange() {\n // intentionally empty\n }\n\n static getSdkVersion(): string {\n return process?.env?.PACKAGE_VERSION!;\n }\n}\n\n// export const ContentstackLivePreview: ContentstackLivePreviewHOC =\n// ContentstackLivePreviewHOC;\n\nexport const VB_EmptyBlockParentClass = \"visual-builder__empty-block-parent\";\nexport default ContentstackLivePreviewHOC;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,2CAAuC;AA+BhC,IAAM,2BAA2B;AACxC,IAAO,cAAQ,qCAAAA;","names":["ContentstackLivePreviewHOC"]}
1
+ {"version":3,"sources":["../../src/index.ts"],"sourcesContent":["import ContentstackLivePreviewHOC from \"./preview/contentstack-live-preview-HOC\";\n\nimport { IStackSdk as ExternalStackSdkType } from \"./types/types\";\nexport type IStackSdk = ExternalStackSdkType;\nclass LightLivePreviewHoC implements ContentstackLivePreviewHOC {\n static init() {}\n\n get hash() {\n return \"\";\n }\n\n static onEntryChange(callback: (...args: any[]) => void) {\n return callback();\n }\n\n static onLiveEdit() {\n // intentionally empty\n }\n\n static unsubscribeOnEntryChange() {\n // intentionally empty\n }\n\n static getSdkVersion(): string {\n return process?.env?.PACKAGE_VERSION!;\n }\n}\n\n// export const ContentstackLivePreview: ContentstackLivePreviewHOC =\n// ContentstackLivePreviewHOC;\n\nexport const VB_EmptyBlockParentClass = \"visual-builder__empty-block-parent\";\nexport default ContentstackLivePreviewHOC;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,2CAAuC;AA+BhC,IAAM,2BAA2B;AACxC,IAAO,gBAAQ,qCAAAA;","names":["ContentstackLivePreviewHOC"]}
@@ -1,6 +1,7 @@
1
1
  import ContentstackLivePreview from './preview/contentstack-live-preview-HOC.cjs';
2
2
  import { IStackSdk as IStackSdk$1 } from './types/types.cjs';
3
3
  import './livePreview/types/onEntryChangeCallback.type.cjs';
4
+ import './visualBuilder/types/collab.types.cjs';
4
5
 
5
6
  type IStackSdk = IStackSdk$1;
6
7
  declare const VB_EmptyBlockParentClass = "visual-builder__empty-block-parent";
@@ -1,6 +1,7 @@
1
1
  import ContentstackLivePreview from './preview/contentstack-live-preview-HOC.js';
2
2
  import { IStackSdk as IStackSdk$1 } from './types/types.js';
3
3
  import './livePreview/types/onEntryChangeCallback.type.js';
4
+ import './visualBuilder/types/collab.types.js';
4
5
 
5
6
  type IStackSdk = IStackSdk$1;
6
7
  declare const VB_EmptyBlockParentClass = "visual-builder__empty-block-parent";
@@ -3,9 +3,9 @@ import "./chunk-5WRI5ZAA.js";
3
3
  // src/index.ts
4
4
  import ContentstackLivePreviewHOC from "./preview/contentstack-live-preview-HOC.js";
5
5
  var VB_EmptyBlockParentClass = "visual-builder__empty-block-parent";
6
- var src_default = ContentstackLivePreviewHOC;
6
+ var index_default = ContentstackLivePreviewHOC;
7
7
  export {
8
8
  VB_EmptyBlockParentClass,
9
- src_default as default
9
+ index_default as default
10
10
  };
11
11
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/index.ts"],"sourcesContent":["import ContentstackLivePreviewHOC from \"./preview/contentstack-live-preview-HOC\";\n\nimport { IStackSdk as ExternalStackSdkType } from \"./types/types\";\nexport type IStackSdk = ExternalStackSdkType;\nclass LightLivePreviewHoC implements ContentstackLivePreviewHOC {\n static init() {}\n\n get hash() {\n return \"\";\n }\n\n static onEntryChange(callback: (...args: any[]) => void) {\n return callback();\n }\n\n static onLiveEdit() {\n // intentionally empty\n }\n\n static unsubscribeOnEntryChange() {\n // intentionally empty\n }\n\n static getSdkVersion(): string {\n return process?.env?.PACKAGE_VERSION!;\n }\n}\n\n// export const ContentstackLivePreview: ContentstackLivePreviewHOC =\n// ContentstackLivePreviewHOC;\n\nexport const VB_EmptyBlockParentClass = \"visual-builder__empty-block-parent\";\nexport default ContentstackLivePreviewHOC;\n"],"mappings":";;;AAAA,OAAO,gCAAgC;AA+BhC,IAAM,2BAA2B;AACxC,IAAO,cAAQ;","names":[]}
1
+ {"version":3,"sources":["../../src/index.ts"],"sourcesContent":["import ContentstackLivePreviewHOC from \"./preview/contentstack-live-preview-HOC\";\n\nimport { IStackSdk as ExternalStackSdkType } from \"./types/types\";\nexport type IStackSdk = ExternalStackSdkType;\nclass LightLivePreviewHoC implements ContentstackLivePreviewHOC {\n static init() {}\n\n get hash() {\n return \"\";\n }\n\n static onEntryChange(callback: (...args: any[]) => void) {\n return callback();\n }\n\n static onLiveEdit() {\n // intentionally empty\n }\n\n static unsubscribeOnEntryChange() {\n // intentionally empty\n }\n\n static getSdkVersion(): string {\n return process?.env?.PACKAGE_VERSION!;\n }\n}\n\n// export const ContentstackLivePreview: ContentstackLivePreviewHOC =\n// ContentstackLivePreviewHOC;\n\nexport const VB_EmptyBlockParentClass = \"visual-builder__empty-block-parent\";\nexport default ContentstackLivePreviewHOC;\n"],"mappings":";;;AAAA,OAAO,gCAAgC;AA+BhC,IAAM,2BAA2B;AACxC,IAAO,gBAAQ;","names":[]}
@@ -1,4 +1,5 @@
1
1
  import { IEditButtonPosition } from '../../types/types.cjs';
2
+ import '../../visualBuilder/types/collab.types.cjs';
2
3
 
3
4
  declare const createSingularEditButton: (editCallback: (e: MouseEvent) => void) => HTMLDivElement;
4
5
  declare const createMultipleEditButton: (editCallback: (e: MouseEvent) => void, linkCallback: (e: MouseEvent) => void) => HTMLDivElement;
@@ -1,4 +1,5 @@
1
1
  import { IEditButtonPosition } from '../../types/types.js';
2
+ import '../../visualBuilder/types/collab.types.js';
2
3
 
3
4
  declare const createSingularEditButton: (editCallback: (e: MouseEvent) => void) => HTMLDivElement;
4
5
  declare const createMultipleEditButton: (editCallback: (e: MouseEvent) => void, linkCallback: (e: MouseEvent) => void) => HTMLDivElement;
@@ -89,7 +89,7 @@ function sendInitializeLivePreviewPostMessageEvent() {
89
89
  config: {
90
90
  shouldReload: import_configManager.default.get().ssr,
91
91
  href: window.location.href,
92
- sdkVersion: "3.1.0",
92
+ sdkVersion: "3.2.0-alpha.1",
93
93
  mode: import_configManager.default.get().mode
94
94
  }
95
95
  }
@@ -55,7 +55,7 @@ function sendInitializeLivePreviewPostMessageEvent() {
55
55
  config: {
56
56
  shouldReload: Config.get().ssr,
57
57
  href: window.location.href,
58
- sdkVersion: "3.1.0",
58
+ sdkVersion: "3.2.0-alpha.1",
59
59
  mode: Config.get().mode
60
60
  }
61
61
  }
@@ -1,4 +1,5 @@
1
1
  import { ILivePreviewWindowType } from '../../../types/types.cjs';
2
+ import '../../../visualBuilder/types/collab.types.cjs';
2
3
 
3
4
  interface HistoryLivePreviewPostMessageEventData {
4
5
  type: "forward" | "backward" | "reload";
@@ -1,4 +1,5 @@
1
1
  import { ILivePreviewWindowType } from '../../../types/types.js';
2
+ import '../../../visualBuilder/types/collab.types.js';
2
3
 
3
4
  interface HistoryLivePreviewPostMessageEventData {
4
5
  type: "forward" | "backward" | "reload";
@@ -223,7 +223,7 @@ var _ContentstackLivePreview = class _ContentstackLivePreview {
223
223
  * @returns The version of the SDK as a string.
224
224
  */
225
225
  static getSdkVersion() {
226
- return "3.1.0";
226
+ return "3.2.0-alpha.1";
227
227
  }
228
228
  };
229
229
  _ContentstackLivePreview.previewConstructors = {};
@@ -1,5 +1,6 @@
1
1
  import { OnEntryChangeCallback, OnEntryChangeConfig, OnEntryChangeCallbackUID, OnEntryChangeUnsubscribeParameters } from '../livePreview/types/onEntryChangeCallback.type.cjs';
2
2
  import { IInitData, IExportedConfig } from '../types/types.cjs';
3
+ import '../visualBuilder/types/collab.types.cjs';
3
4
 
4
5
  declare class ContentstackLivePreview {
5
6
  private static previewConstructors;
@@ -1,5 +1,6 @@
1
1
  import { OnEntryChangeCallback, OnEntryChangeConfig, OnEntryChangeCallbackUID, OnEntryChangeUnsubscribeParameters } from '../livePreview/types/onEntryChangeCallback.type.js';
2
2
  import { IInitData, IExportedConfig } from '../types/types.js';
3
+ import '../visualBuilder/types/collab.types.js';
3
4
 
4
5
  declare class ContentstackLivePreview {
5
6
  private static previewConstructors;
@@ -191,7 +191,7 @@ var _ContentstackLivePreview = class _ContentstackLivePreview {
191
191
  * @returns The version of the SDK as a string.
192
192
  */
193
193
  static getSdkVersion() {
194
- return "3.1.0";
194
+ return "3.2.0-alpha.1";
195
195
  }
196
196
  };
197
197
  _ContentstackLivePreview.previewConstructors = {};
@@ -31,6 +31,7 @@ var ILivePreviewModeConfig = /* @__PURE__ */ ((ILivePreviewModeConfig2) => {
31
31
  })(ILivePreviewModeConfig || {});
32
32
  var ILivePreviewWindowType = /* @__PURE__ */ ((ILivePreviewWindowType2) => {
33
33
  ILivePreviewWindowType2["PREVIEW"] = "preview";
34
+ ILivePreviewWindowType2["PREVIEW_SHARE"] = "preview-share";
34
35
  ILivePreviewWindowType2["BUILDER"] = "builder";
35
36
  ILivePreviewWindowType2["INDEPENDENT"] = "independent";
36
37
  return ILivePreviewWindowType2;
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/types/types.ts"],"sourcesContent":["export declare interface IEditEntrySearchParams {\n hash?: string;\n entry_uid?: string;\n content_type_uid?: string;\n /**\n * @deprecated pass this value as hash instead\n */\n live_preview?: string;\n}\n\nexport declare interface IClientUrlParams {\n protocol: \"http\" | \"https\";\n host: string;\n port: string | number;\n url: string;\n}\n\nexport declare interface IStackSdk {\n live_preview: { [key: string]: any } & Partial<IConfig>;\n [key: string]: any;\n environment: string;\n}\n\nexport declare interface IStackDetails {\n apiKey: string;\n environment: string;\n contentTypeUid: string;\n entryUid: string;\n branch: string;\n /**\n * This locale is currently used by the visual builder to\n * redirect to the correct locale if the no data-cslp tag\n * is present in the HTML to extract the locale.\n */\n locale: string;\n masterLocale: string;\n}\n\nexport declare interface IInitStackDetails {\n apiKey: string;\n environment: string;\n branch: string;\n /**\n * This locale is currently used by the visual builder to\n * redirect to the correct locale if the no data-cslp tag\n * is present in the HTML to extract the locale.\n */\n locale: string;\n}\n\nexport declare type ILivePreviewMode = \"builder\" | \"preview\";\n\n//? We kept it as number so that we could disable only the unrequired features,\n//? since the \"Builder\" mode will contain all the features of the \"Preview\" mode.\nexport enum ILivePreviewModeConfig {\n PREVIEW = 1,\n BUILDER = 2,\n}\n\nexport enum ILivePreviewWindowType {\n PREVIEW = \"preview\",\n BUILDER = \"builder\",\n INDEPENDENT = \"independent\",\n}\n\nexport declare interface IConfig {\n ssr: boolean;\n enable: boolean;\n /**\n * @default false\n */\n debug: boolean;\n cleanCslpOnProduction: boolean;\n stackDetails: IStackDetails;\n clientUrlParams: IClientUrlParams;\n stackSdk: IStackSdk;\n onChange: () => void;\n runScriptsOnUpdate: boolean;\n windowType: ILivePreviewWindowType;\n hash: string;\n editButton: IConfigEditButton;\n mode: ILivePreviewModeConfig;\n elements: {\n highlightedElement: HTMLElement | null;\n };\n}\n\nexport declare interface IConfigEditButton {\n enable: boolean;\n exclude?: (\"insideLivePreviewPortal\" | \"outsideLivePreviewPortal\")[];\n includeByQueryParameter?: boolean;\n position?:\n | \"top\"\n | \"bottom\"\n | \"left\"\n | \"right\"\n | \"top-left\"\n | \"top-right\"\n | \"top-center\"\n | \"bottom-left\"\n | \"bottom-right\"\n | \"bottom-center\";\n}\n\nexport declare interface IInitData {\n ssr: boolean;\n runScriptsOnUpdate: boolean;\n enable: boolean;\n /**\n * @default false\n */\n debug: boolean;\n cleanCslpOnProduction: boolean;\n stackDetails: Partial<IInitStackDetails>;\n clientUrlParams: Partial<Omit<IClientUrlParams, \"url\">>;\n stackSdk: IStackSdk;\n editButton: IConfigEditButton;\n mode: ILivePreviewMode;\n}\n\n// type PickPartial<T, K extends keyof T> = Partial<Pick<T, K>> & Omit<T, K>;\n\n// export type IInitData =\n// | {\n// ssr?: true;\n// stackSdk?: IStackSdk;\n// runScriptsOnUpdate?: boolean;\n// enable?: boolean;\n// cleanCslpOnProduction?: boolean;\n// stackDetails?: Partial<IInitStackDetails>;\n// clientUrlParams?: Partial<Omit<IClientUrlParams, \"url\">>;\n// editButton?: IConfigEditButton;\n// mode?: \"preview\";\n// }\n// | {\n// ssr?: true;\n// stackSdk?: IStackSdk;\n// runScriptsOnUpdate?: boolean;\n// enable?: boolean;\n// cleanCslpOnProduction?: boolean;\n// stackDetails: PickPartial<IInitStackDetails, \"branch\">;\n// clientUrlParams: PickPartial<\n// Omit<IClientUrlParams, \"url\">,\n// \"port\" | \"protocol\"\n// >;\n// editButton?: IConfigEditButton;\n// mode: \"builder\";\n// }\n// | {\n// ssr: false;\n// runScriptsOnUpdate?: boolean;\n// enable?: boolean;\n// cleanCslpOnProduction?: boolean;\n// stackDetails?: Partial<IInitStackDetails>;\n// clientUrlParams?: Partial<Omit<IClientUrlParams, \"url\">>;\n// stackSdk: IStackSdk;\n// editButton?: IConfigEditButton;\n// mode?: \"preview\";\n// }\n// | {\n// ssr: false;\n// runScriptsOnUpdate?: boolean;\n// enable?: boolean;\n// cleanCslpOnProduction?: boolean;\n// stackDetails: PickPartial<IInitStackDetails, \"branch\">;\n// clientUrlParams: PickPartial<\n// Omit<IClientUrlParams, \"url\">,\n// \"port\" | \"protocol\"\n// >;\n// stackSdk: IStackSdk;\n// editButton?: IConfigEditButton;\n// mode: \"builder\";\n// };\n\n// Post message types\n\nexport declare interface ILivePreviewMessageCommon {\n from: \"live-preview\";\n}\n\nexport declare interface IEditButtonPosition {\n upperBoundOfTooltip: number;\n leftBoundOfTooltip: number;\n}\n\n// end of Post message types\n\nexport interface IVisualBuilderInitEvent {\n windowType: ILivePreviewWindowType;\n stackDetails: {\n masterLocale: string;\n };\n}\n\nexport type IExportedConfig = Pick<\n IConfig,\n | \"ssr\"\n | \"enable\"\n | \"cleanCslpOnProduction\"\n | \"stackDetails\"\n | \"clientUrlParams\"\n | \"windowType\"\n | \"hash\"\n | \"editButton\"\n | \"mode\"\n>;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAsDO,IAAK,yBAAL,kBAAKA,4BAAL;AACH,EAAAA,gDAAA,aAAU,KAAV;AACA,EAAAA,gDAAA,aAAU,KAAV;AAFQ,SAAAA;AAAA,GAAA;AAKL,IAAK,yBAAL,kBAAKC,4BAAL;AACH,EAAAA,wBAAA,aAAU;AACV,EAAAA,wBAAA,aAAU;AACV,EAAAA,wBAAA,iBAAc;AAHN,SAAAA;AAAA,GAAA;","names":["ILivePreviewModeConfig","ILivePreviewWindowType"]}
1
+ {"version":3,"sources":["../../../src/types/types.ts"],"sourcesContent":["import {\n IInviteMetadata,\n IThreadDTO,\n} from \"../visualBuilder/types/collab.types\";\nexport declare interface IEditEntrySearchParams {\n hash?: string;\n entry_uid?: string;\n content_type_uid?: string;\n /**\n * @deprecated pass this value as hash instead\n */\n live_preview?: string;\n}\n\nexport declare interface IClientUrlParams {\n protocol: \"http\" | \"https\";\n host: string;\n port: string | number;\n url: string;\n}\n\nexport declare interface IStackSdk {\n live_preview: { [key: string]: any } & Partial<IConfig>;\n [key: string]: any;\n environment: string;\n}\n\nexport declare interface IStackDetails {\n apiKey: string;\n environment: string;\n contentTypeUid: string;\n entryUid: string;\n branch: string;\n /**\n * This locale is currently used by the visual builder to\n * redirect to the correct locale if the no data-cslp tag\n * is present in the HTML to extract the locale.\n */\n locale: string;\n masterLocale: string;\n}\n\nexport declare interface IInitStackDetails {\n apiKey: string;\n environment: string;\n branch: string;\n /**\n * This locale is currently used by the visual builder to\n * redirect to the correct locale if the no data-cslp tag\n * is present in the HTML to extract the locale.\n */\n locale: string;\n}\n\nexport declare type ILivePreviewMode = \"builder\" | \"preview\";\n\n//? We kept it as number so that we could disable only the unrequired features,\n//? since the \"Builder\" mode will contain all the features of the \"Preview\" mode.\nexport enum ILivePreviewModeConfig {\n PREVIEW = 1,\n BUILDER = 2,\n}\n\nexport enum ILivePreviewWindowType {\n PREVIEW = \"preview\",\n PREVIEW_SHARE = \"preview-share\",\n BUILDER = \"builder\",\n INDEPENDENT = \"independent\",\n}\n\nexport declare interface IConfig {\n ssr: boolean;\n enable: boolean;\n /**\n * @default false\n */\n debug: boolean;\n cleanCslpOnProduction: boolean;\n stackDetails: IStackDetails;\n clientUrlParams: IClientUrlParams;\n stackSdk: IStackSdk;\n onChange: () => void;\n runScriptsOnUpdate: boolean;\n windowType: ILivePreviewWindowType;\n hash: string;\n editButton: IConfigEditButton;\n mode: ILivePreviewModeConfig;\n elements: {\n highlightedElement: HTMLElement | null;\n };\n collab: {\n enable: boolean;\n fromShare: boolean;\n pauseFeedback: boolean;\n isFeedbackMode: boolean;\n inviteMetadata: IInviteMetadata;\n };\n}\n\nexport declare interface IConfigEditButton {\n enable: boolean;\n exclude?: (\"insideLivePreviewPortal\" | \"outsideLivePreviewPortal\")[];\n includeByQueryParameter?: boolean;\n position?:\n | \"top\"\n | \"bottom\"\n | \"left\"\n | \"right\"\n | \"top-left\"\n | \"top-right\"\n | \"top-center\"\n | \"bottom-left\"\n | \"bottom-right\"\n | \"bottom-center\";\n}\n\nexport declare interface IInitData {\n ssr: boolean;\n runScriptsOnUpdate: boolean;\n enable: boolean;\n /**\n * @default false\n */\n debug: boolean;\n cleanCslpOnProduction: boolean;\n stackDetails: Partial<IInitStackDetails>;\n clientUrlParams: Partial<Omit<IClientUrlParams, \"url\">>;\n stackSdk: IStackSdk;\n editButton: IConfigEditButton;\n mode: ILivePreviewMode;\n}\n\n// type PickPartial<T, K extends keyof T> = Partial<Pick<T, K>> & Omit<T, K>;\n\n// export type IInitData =\n// | {\n// ssr?: true;\n// stackSdk?: IStackSdk;\n// runScriptsOnUpdate?: boolean;\n// enable?: boolean;\n// cleanCslpOnProduction?: boolean;\n// stackDetails?: Partial<IInitStackDetails>;\n// clientUrlParams?: Partial<Omit<IClientUrlParams, \"url\">>;\n// editButton?: IConfigEditButton;\n// mode?: \"preview\";\n// }\n// | {\n// ssr?: true;\n// stackSdk?: IStackSdk;\n// runScriptsOnUpdate?: boolean;\n// enable?: boolean;\n// cleanCslpOnProduction?: boolean;\n// stackDetails: PickPartial<IInitStackDetails, \"branch\">;\n// clientUrlParams: PickPartial<\n// Omit<IClientUrlParams, \"url\">,\n// \"port\" | \"protocol\"\n// >;\n// editButton?: IConfigEditButton;\n// mode: \"builder\";\n// }\n// | {\n// ssr: false;\n// runScriptsOnUpdate?: boolean;\n// enable?: boolean;\n// cleanCslpOnProduction?: boolean;\n// stackDetails?: Partial<IInitStackDetails>;\n// clientUrlParams?: Partial<Omit<IClientUrlParams, \"url\">>;\n// stackSdk: IStackSdk;\n// editButton?: IConfigEditButton;\n// mode?: \"preview\";\n// }\n// | {\n// ssr: false;\n// runScriptsOnUpdate?: boolean;\n// enable?: boolean;\n// cleanCslpOnProduction?: boolean;\n// stackDetails: PickPartial<IInitStackDetails, \"branch\">;\n// clientUrlParams: PickPartial<\n// Omit<IClientUrlParams, \"url\">,\n// \"port\" | \"protocol\"\n// >;\n// stackSdk: IStackSdk;\n// editButton?: IConfigEditButton;\n// mode: \"builder\";\n// };\n\n// Post message types\n\nexport declare interface ILivePreviewMessageCommon {\n from: \"live-preview\";\n}\n\nexport declare interface IEditButtonPosition {\n upperBoundOfTooltip: number;\n leftBoundOfTooltip: number;\n}\n\n// end of Post message types\n\nexport interface IVisualBuilderInitEvent {\n windowType: ILivePreviewWindowType;\n stackDetails: {\n masterLocale: string;\n };\n collab?: {\n enable: boolean;\n isFeedbackMode: boolean;\n inviteMetadata: IInviteMetadata;\n payload: IThreadDTO[];\n };\n}\n\nexport type IExportedConfig = Pick<\n IConfig,\n | \"ssr\"\n | \"enable\"\n | \"cleanCslpOnProduction\"\n | \"stackDetails\"\n | \"clientUrlParams\"\n | \"windowType\"\n | \"hash\"\n | \"editButton\"\n | \"mode\"\n>;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA0DO,IAAK,yBAAL,kBAAKA,4BAAL;AACH,EAAAA,gDAAA,aAAU,KAAV;AACA,EAAAA,gDAAA,aAAU,KAAV;AAFQ,SAAAA;AAAA,GAAA;AAKL,IAAK,yBAAL,kBAAKC,4BAAL;AACH,EAAAA,wBAAA,aAAU;AACV,EAAAA,wBAAA,mBAAgB;AAChB,EAAAA,wBAAA,aAAU;AACV,EAAAA,wBAAA,iBAAc;AAJN,SAAAA;AAAA,GAAA;","names":["ILivePreviewModeConfig","ILivePreviewWindowType"]}
@@ -1,3 +1,5 @@
1
+ import { IInviteMetadata, IThreadDTO } from '../visualBuilder/types/collab.types.cjs';
2
+
1
3
  declare interface IEditEntrySearchParams {
2
4
  hash?: string;
3
5
  entry_uid?: string;
@@ -52,6 +54,7 @@ declare enum ILivePreviewModeConfig {
52
54
  }
53
55
  declare enum ILivePreviewWindowType {
54
56
  PREVIEW = "preview",
57
+ PREVIEW_SHARE = "preview-share",
55
58
  BUILDER = "builder",
56
59
  INDEPENDENT = "independent"
57
60
  }
@@ -75,6 +78,13 @@ declare interface IConfig {
75
78
  elements: {
76
79
  highlightedElement: HTMLElement | null;
77
80
  };
81
+ collab: {
82
+ enable: boolean;
83
+ fromShare: boolean;
84
+ pauseFeedback: boolean;
85
+ isFeedbackMode: boolean;
86
+ inviteMetadata: IInviteMetadata;
87
+ };
78
88
  }
79
89
  declare interface IConfigEditButton {
80
90
  enable: boolean;
@@ -109,6 +119,12 @@ interface IVisualBuilderInitEvent {
109
119
  stackDetails: {
110
120
  masterLocale: string;
111
121
  };
122
+ collab?: {
123
+ enable: boolean;
124
+ isFeedbackMode: boolean;
125
+ inviteMetadata: IInviteMetadata;
126
+ payload: IThreadDTO[];
127
+ };
112
128
  }
113
129
  type IExportedConfig = Pick<IConfig, "ssr" | "enable" | "cleanCslpOnProduction" | "stackDetails" | "clientUrlParams" | "windowType" | "hash" | "editButton" | "mode">;
114
130
 
@@ -1,3 +1,5 @@
1
+ import { IInviteMetadata, IThreadDTO } from '../visualBuilder/types/collab.types.js';
2
+
1
3
  declare interface IEditEntrySearchParams {
2
4
  hash?: string;
3
5
  entry_uid?: string;
@@ -52,6 +54,7 @@ declare enum ILivePreviewModeConfig {
52
54
  }
53
55
  declare enum ILivePreviewWindowType {
54
56
  PREVIEW = "preview",
57
+ PREVIEW_SHARE = "preview-share",
55
58
  BUILDER = "builder",
56
59
  INDEPENDENT = "independent"
57
60
  }
@@ -75,6 +78,13 @@ declare interface IConfig {
75
78
  elements: {
76
79
  highlightedElement: HTMLElement | null;
77
80
  };
81
+ collab: {
82
+ enable: boolean;
83
+ fromShare: boolean;
84
+ pauseFeedback: boolean;
85
+ isFeedbackMode: boolean;
86
+ inviteMetadata: IInviteMetadata;
87
+ };
78
88
  }
79
89
  declare interface IConfigEditButton {
80
90
  enable: boolean;
@@ -109,6 +119,12 @@ interface IVisualBuilderInitEvent {
109
119
  stackDetails: {
110
120
  masterLocale: string;
111
121
  };
122
+ collab?: {
123
+ enable: boolean;
124
+ isFeedbackMode: boolean;
125
+ inviteMetadata: IInviteMetadata;
126
+ payload: IThreadDTO[];
127
+ };
112
128
  }
113
129
  type IExportedConfig = Pick<IConfig, "ssr" | "enable" | "cleanCslpOnProduction" | "stackDetails" | "clientUrlParams" | "windowType" | "hash" | "editButton" | "mode">;
114
130
 
@@ -8,6 +8,7 @@ var ILivePreviewModeConfig = /* @__PURE__ */ ((ILivePreviewModeConfig2) => {
8
8
  })(ILivePreviewModeConfig || {});
9
9
  var ILivePreviewWindowType = /* @__PURE__ */ ((ILivePreviewWindowType2) => {
10
10
  ILivePreviewWindowType2["PREVIEW"] = "preview";
11
+ ILivePreviewWindowType2["PREVIEW_SHARE"] = "preview-share";
11
12
  ILivePreviewWindowType2["BUILDER"] = "builder";
12
13
  ILivePreviewWindowType2["INDEPENDENT"] = "independent";
13
14
  return ILivePreviewWindowType2;
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/types/types.ts"],"sourcesContent":["export declare interface IEditEntrySearchParams {\n hash?: string;\n entry_uid?: string;\n content_type_uid?: string;\n /**\n * @deprecated pass this value as hash instead\n */\n live_preview?: string;\n}\n\nexport declare interface IClientUrlParams {\n protocol: \"http\" | \"https\";\n host: string;\n port: string | number;\n url: string;\n}\n\nexport declare interface IStackSdk {\n live_preview: { [key: string]: any } & Partial<IConfig>;\n [key: string]: any;\n environment: string;\n}\n\nexport declare interface IStackDetails {\n apiKey: string;\n environment: string;\n contentTypeUid: string;\n entryUid: string;\n branch: string;\n /**\n * This locale is currently used by the visual builder to\n * redirect to the correct locale if the no data-cslp tag\n * is present in the HTML to extract the locale.\n */\n locale: string;\n masterLocale: string;\n}\n\nexport declare interface IInitStackDetails {\n apiKey: string;\n environment: string;\n branch: string;\n /**\n * This locale is currently used by the visual builder to\n * redirect to the correct locale if the no data-cslp tag\n * is present in the HTML to extract the locale.\n */\n locale: string;\n}\n\nexport declare type ILivePreviewMode = \"builder\" | \"preview\";\n\n//? We kept it as number so that we could disable only the unrequired features,\n//? since the \"Builder\" mode will contain all the features of the \"Preview\" mode.\nexport enum ILivePreviewModeConfig {\n PREVIEW = 1,\n BUILDER = 2,\n}\n\nexport enum ILivePreviewWindowType {\n PREVIEW = \"preview\",\n BUILDER = \"builder\",\n INDEPENDENT = \"independent\",\n}\n\nexport declare interface IConfig {\n ssr: boolean;\n enable: boolean;\n /**\n * @default false\n */\n debug: boolean;\n cleanCslpOnProduction: boolean;\n stackDetails: IStackDetails;\n clientUrlParams: IClientUrlParams;\n stackSdk: IStackSdk;\n onChange: () => void;\n runScriptsOnUpdate: boolean;\n windowType: ILivePreviewWindowType;\n hash: string;\n editButton: IConfigEditButton;\n mode: ILivePreviewModeConfig;\n elements: {\n highlightedElement: HTMLElement | null;\n };\n}\n\nexport declare interface IConfigEditButton {\n enable: boolean;\n exclude?: (\"insideLivePreviewPortal\" | \"outsideLivePreviewPortal\")[];\n includeByQueryParameter?: boolean;\n position?:\n | \"top\"\n | \"bottom\"\n | \"left\"\n | \"right\"\n | \"top-left\"\n | \"top-right\"\n | \"top-center\"\n | \"bottom-left\"\n | \"bottom-right\"\n | \"bottom-center\";\n}\n\nexport declare interface IInitData {\n ssr: boolean;\n runScriptsOnUpdate: boolean;\n enable: boolean;\n /**\n * @default false\n */\n debug: boolean;\n cleanCslpOnProduction: boolean;\n stackDetails: Partial<IInitStackDetails>;\n clientUrlParams: Partial<Omit<IClientUrlParams, \"url\">>;\n stackSdk: IStackSdk;\n editButton: IConfigEditButton;\n mode: ILivePreviewMode;\n}\n\n// type PickPartial<T, K extends keyof T> = Partial<Pick<T, K>> & Omit<T, K>;\n\n// export type IInitData =\n// | {\n// ssr?: true;\n// stackSdk?: IStackSdk;\n// runScriptsOnUpdate?: boolean;\n// enable?: boolean;\n// cleanCslpOnProduction?: boolean;\n// stackDetails?: Partial<IInitStackDetails>;\n// clientUrlParams?: Partial<Omit<IClientUrlParams, \"url\">>;\n// editButton?: IConfigEditButton;\n// mode?: \"preview\";\n// }\n// | {\n// ssr?: true;\n// stackSdk?: IStackSdk;\n// runScriptsOnUpdate?: boolean;\n// enable?: boolean;\n// cleanCslpOnProduction?: boolean;\n// stackDetails: PickPartial<IInitStackDetails, \"branch\">;\n// clientUrlParams: PickPartial<\n// Omit<IClientUrlParams, \"url\">,\n// \"port\" | \"protocol\"\n// >;\n// editButton?: IConfigEditButton;\n// mode: \"builder\";\n// }\n// | {\n// ssr: false;\n// runScriptsOnUpdate?: boolean;\n// enable?: boolean;\n// cleanCslpOnProduction?: boolean;\n// stackDetails?: Partial<IInitStackDetails>;\n// clientUrlParams?: Partial<Omit<IClientUrlParams, \"url\">>;\n// stackSdk: IStackSdk;\n// editButton?: IConfigEditButton;\n// mode?: \"preview\";\n// }\n// | {\n// ssr: false;\n// runScriptsOnUpdate?: boolean;\n// enable?: boolean;\n// cleanCslpOnProduction?: boolean;\n// stackDetails: PickPartial<IInitStackDetails, \"branch\">;\n// clientUrlParams: PickPartial<\n// Omit<IClientUrlParams, \"url\">,\n// \"port\" | \"protocol\"\n// >;\n// stackSdk: IStackSdk;\n// editButton?: IConfigEditButton;\n// mode: \"builder\";\n// };\n\n// Post message types\n\nexport declare interface ILivePreviewMessageCommon {\n from: \"live-preview\";\n}\n\nexport declare interface IEditButtonPosition {\n upperBoundOfTooltip: number;\n leftBoundOfTooltip: number;\n}\n\n// end of Post message types\n\nexport interface IVisualBuilderInitEvent {\n windowType: ILivePreviewWindowType;\n stackDetails: {\n masterLocale: string;\n };\n}\n\nexport type IExportedConfig = Pick<\n IConfig,\n | \"ssr\"\n | \"enable\"\n | \"cleanCslpOnProduction\"\n | \"stackDetails\"\n | \"clientUrlParams\"\n | \"windowType\"\n | \"hash\"\n | \"editButton\"\n | \"mode\"\n>;\n"],"mappings":";;;AAsDO,IAAK,yBAAL,kBAAKA,4BAAL;AACH,EAAAA,gDAAA,aAAU,KAAV;AACA,EAAAA,gDAAA,aAAU,KAAV;AAFQ,SAAAA;AAAA,GAAA;AAKL,IAAK,yBAAL,kBAAKC,4BAAL;AACH,EAAAA,wBAAA,aAAU;AACV,EAAAA,wBAAA,aAAU;AACV,EAAAA,wBAAA,iBAAc;AAHN,SAAAA;AAAA,GAAA;","names":["ILivePreviewModeConfig","ILivePreviewWindowType"]}
1
+ {"version":3,"sources":["../../../src/types/types.ts"],"sourcesContent":["import {\n IInviteMetadata,\n IThreadDTO,\n} from \"../visualBuilder/types/collab.types\";\nexport declare interface IEditEntrySearchParams {\n hash?: string;\n entry_uid?: string;\n content_type_uid?: string;\n /**\n * @deprecated pass this value as hash instead\n */\n live_preview?: string;\n}\n\nexport declare interface IClientUrlParams {\n protocol: \"http\" | \"https\";\n host: string;\n port: string | number;\n url: string;\n}\n\nexport declare interface IStackSdk {\n live_preview: { [key: string]: any } & Partial<IConfig>;\n [key: string]: any;\n environment: string;\n}\n\nexport declare interface IStackDetails {\n apiKey: string;\n environment: string;\n contentTypeUid: string;\n entryUid: string;\n branch: string;\n /**\n * This locale is currently used by the visual builder to\n * redirect to the correct locale if the no data-cslp tag\n * is present in the HTML to extract the locale.\n */\n locale: string;\n masterLocale: string;\n}\n\nexport declare interface IInitStackDetails {\n apiKey: string;\n environment: string;\n branch: string;\n /**\n * This locale is currently used by the visual builder to\n * redirect to the correct locale if the no data-cslp tag\n * is present in the HTML to extract the locale.\n */\n locale: string;\n}\n\nexport declare type ILivePreviewMode = \"builder\" | \"preview\";\n\n//? We kept it as number so that we could disable only the unrequired features,\n//? since the \"Builder\" mode will contain all the features of the \"Preview\" mode.\nexport enum ILivePreviewModeConfig {\n PREVIEW = 1,\n BUILDER = 2,\n}\n\nexport enum ILivePreviewWindowType {\n PREVIEW = \"preview\",\n PREVIEW_SHARE = \"preview-share\",\n BUILDER = \"builder\",\n INDEPENDENT = \"independent\",\n}\n\nexport declare interface IConfig {\n ssr: boolean;\n enable: boolean;\n /**\n * @default false\n */\n debug: boolean;\n cleanCslpOnProduction: boolean;\n stackDetails: IStackDetails;\n clientUrlParams: IClientUrlParams;\n stackSdk: IStackSdk;\n onChange: () => void;\n runScriptsOnUpdate: boolean;\n windowType: ILivePreviewWindowType;\n hash: string;\n editButton: IConfigEditButton;\n mode: ILivePreviewModeConfig;\n elements: {\n highlightedElement: HTMLElement | null;\n };\n collab: {\n enable: boolean;\n fromShare: boolean;\n pauseFeedback: boolean;\n isFeedbackMode: boolean;\n inviteMetadata: IInviteMetadata;\n };\n}\n\nexport declare interface IConfigEditButton {\n enable: boolean;\n exclude?: (\"insideLivePreviewPortal\" | \"outsideLivePreviewPortal\")[];\n includeByQueryParameter?: boolean;\n position?:\n | \"top\"\n | \"bottom\"\n | \"left\"\n | \"right\"\n | \"top-left\"\n | \"top-right\"\n | \"top-center\"\n | \"bottom-left\"\n | \"bottom-right\"\n | \"bottom-center\";\n}\n\nexport declare interface IInitData {\n ssr: boolean;\n runScriptsOnUpdate: boolean;\n enable: boolean;\n /**\n * @default false\n */\n debug: boolean;\n cleanCslpOnProduction: boolean;\n stackDetails: Partial<IInitStackDetails>;\n clientUrlParams: Partial<Omit<IClientUrlParams, \"url\">>;\n stackSdk: IStackSdk;\n editButton: IConfigEditButton;\n mode: ILivePreviewMode;\n}\n\n// type PickPartial<T, K extends keyof T> = Partial<Pick<T, K>> & Omit<T, K>;\n\n// export type IInitData =\n// | {\n// ssr?: true;\n// stackSdk?: IStackSdk;\n// runScriptsOnUpdate?: boolean;\n// enable?: boolean;\n// cleanCslpOnProduction?: boolean;\n// stackDetails?: Partial<IInitStackDetails>;\n// clientUrlParams?: Partial<Omit<IClientUrlParams, \"url\">>;\n// editButton?: IConfigEditButton;\n// mode?: \"preview\";\n// }\n// | {\n// ssr?: true;\n// stackSdk?: IStackSdk;\n// runScriptsOnUpdate?: boolean;\n// enable?: boolean;\n// cleanCslpOnProduction?: boolean;\n// stackDetails: PickPartial<IInitStackDetails, \"branch\">;\n// clientUrlParams: PickPartial<\n// Omit<IClientUrlParams, \"url\">,\n// \"port\" | \"protocol\"\n// >;\n// editButton?: IConfigEditButton;\n// mode: \"builder\";\n// }\n// | {\n// ssr: false;\n// runScriptsOnUpdate?: boolean;\n// enable?: boolean;\n// cleanCslpOnProduction?: boolean;\n// stackDetails?: Partial<IInitStackDetails>;\n// clientUrlParams?: Partial<Omit<IClientUrlParams, \"url\">>;\n// stackSdk: IStackSdk;\n// editButton?: IConfigEditButton;\n// mode?: \"preview\";\n// }\n// | {\n// ssr: false;\n// runScriptsOnUpdate?: boolean;\n// enable?: boolean;\n// cleanCslpOnProduction?: boolean;\n// stackDetails: PickPartial<IInitStackDetails, \"branch\">;\n// clientUrlParams: PickPartial<\n// Omit<IClientUrlParams, \"url\">,\n// \"port\" | \"protocol\"\n// >;\n// stackSdk: IStackSdk;\n// editButton?: IConfigEditButton;\n// mode: \"builder\";\n// };\n\n// Post message types\n\nexport declare interface ILivePreviewMessageCommon {\n from: \"live-preview\";\n}\n\nexport declare interface IEditButtonPosition {\n upperBoundOfTooltip: number;\n leftBoundOfTooltip: number;\n}\n\n// end of Post message types\n\nexport interface IVisualBuilderInitEvent {\n windowType: ILivePreviewWindowType;\n stackDetails: {\n masterLocale: string;\n };\n collab?: {\n enable: boolean;\n isFeedbackMode: boolean;\n inviteMetadata: IInviteMetadata;\n payload: IThreadDTO[];\n };\n}\n\nexport type IExportedConfig = Pick<\n IConfig,\n | \"ssr\"\n | \"enable\"\n | \"cleanCslpOnProduction\"\n | \"stackDetails\"\n | \"clientUrlParams\"\n | \"windowType\"\n | \"hash\"\n | \"editButton\"\n | \"mode\"\n>;\n"],"mappings":";;;AA0DO,IAAK,yBAAL,kBAAKA,4BAAL;AACH,EAAAA,gDAAA,aAAU,KAAV;AACA,EAAAA,gDAAA,aAAU,KAAV;AAFQ,SAAAA;AAAA,GAAA;AAKL,IAAK,yBAAL,kBAAKC,4BAAL;AACH,EAAAA,wBAAA,aAAU;AACV,EAAAA,wBAAA,mBAAgB;AAChB,EAAAA,wBAAA,aAAU;AACV,EAAAA,wBAAA,iBAAc;AAJN,SAAAA;AAAA,GAAA;","names":["ILivePreviewModeConfig","ILivePreviewWindowType"]}