@contentstack/live-preview-utils 3.1.3 → 3.2.0
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.
- package/README.md +2 -2
- package/dist/legacy/configManager/config.default.cjs +15 -0
- package/dist/legacy/configManager/config.default.cjs.map +1 -1
- package/dist/legacy/configManager/config.default.d.cts +1 -0
- package/dist/legacy/configManager/config.default.d.ts +1 -0
- package/dist/legacy/configManager/config.default.js +15 -0
- package/dist/legacy/configManager/config.default.js.map +1 -1
- package/dist/legacy/configManager/configManager.d.cts +1 -0
- package/dist/legacy/configManager/configManager.d.ts +1 -0
- package/dist/legacy/configManager/handleUserConfig.d.cts +1 -0
- package/dist/legacy/configManager/handleUserConfig.d.ts +1 -0
- package/dist/legacy/configManager/index.d.cts +1 -0
- package/dist/legacy/configManager/index.d.ts +1 -0
- package/dist/legacy/index.cjs +45 -1
- package/dist/legacy/index.cjs.map +1 -1
- package/dist/legacy/index.d.cts +17 -2
- package/dist/legacy/index.d.ts +17 -2
- package/dist/legacy/index.js +45 -1
- package/dist/legacy/index.js.map +1 -1
- package/dist/legacy/livePreview/editButton/editButton.d.cts +1 -0
- package/dist/legacy/livePreview/editButton/editButton.d.ts +1 -0
- package/dist/legacy/livePreview/eventManager/postMessageEvent.hooks.cjs +1 -1
- package/dist/legacy/livePreview/eventManager/postMessageEvent.hooks.js +1 -1
- package/dist/legacy/livePreview/eventManager/types/livePreviewPostMessageEvent.type.d.cts +1 -0
- package/dist/legacy/livePreview/eventManager/types/livePreviewPostMessageEvent.type.d.ts +1 -0
- package/dist/legacy/preview/contentstack-live-preview-HOC.cjs +1 -1
- package/dist/legacy/preview/contentstack-live-preview-HOC.d.cts +1 -0
- package/dist/legacy/preview/contentstack-live-preview-HOC.d.ts +1 -0
- package/dist/legacy/preview/contentstack-live-preview-HOC.js +1 -1
- package/dist/legacy/types/types.cjs +1 -0
- package/dist/legacy/types/types.cjs.map +1 -1
- package/dist/legacy/types/types.d.cts +5 -0
- package/dist/legacy/types/types.d.ts +5 -0
- package/dist/legacy/types/types.js +1 -0
- package/dist/legacy/types/types.js.map +1 -1
- package/dist/legacy/visualBuilder/collab.style.cjs +660 -0
- package/dist/legacy/visualBuilder/collab.style.cjs.map +1 -0
- package/dist/legacy/visualBuilder/collab.style.d.cts +84 -0
- package/dist/legacy/visualBuilder/collab.style.d.ts +84 -0
- package/dist/legacy/visualBuilder/collab.style.js +635 -0
- package/dist/legacy/visualBuilder/collab.style.js.map +1 -0
- package/dist/legacy/visualBuilder/components/Collab/AsyncLoader/AsyncLoader.cjs +70 -0
- package/dist/legacy/visualBuilder/components/Collab/AsyncLoader/AsyncLoader.cjs.map +1 -0
- package/dist/legacy/visualBuilder/components/Collab/AsyncLoader/AsyncLoader.d.cts +12 -0
- package/dist/legacy/visualBuilder/components/Collab/AsyncLoader/AsyncLoader.d.ts +12 -0
- package/dist/legacy/visualBuilder/components/Collab/AsyncLoader/AsyncLoader.js +41 -0
- package/dist/legacy/visualBuilder/components/Collab/AsyncLoader/AsyncLoader.js.map +1 -0
- package/dist/legacy/visualBuilder/components/Collab/Avatar/Avatar.cjs +116 -0
- package/dist/legacy/visualBuilder/components/Collab/Avatar/Avatar.cjs.map +1 -0
- package/dist/legacy/visualBuilder/components/Collab/Avatar/Avatar.d.cts +18 -0
- package/dist/legacy/visualBuilder/components/Collab/Avatar/Avatar.d.ts +18 -0
- package/dist/legacy/visualBuilder/components/Collab/Avatar/Avatar.js +87 -0
- package/dist/legacy/visualBuilder/components/Collab/Avatar/Avatar.js.map +1 -0
- package/dist/legacy/visualBuilder/components/Collab/Button/Button.cjs +143 -0
- package/dist/legacy/visualBuilder/components/Collab/Button/Button.cjs.map +1 -0
- package/dist/legacy/visualBuilder/components/Collab/Button/Button.d.cts +29 -0
- package/dist/legacy/visualBuilder/components/Collab/Button/Button.d.ts +29 -0
- package/dist/legacy/visualBuilder/components/Collab/Button/Button.js +118 -0
- package/dist/legacy/visualBuilder/components/Collab/Button/Button.js.map +1 -0
- package/dist/legacy/visualBuilder/components/Collab/ButtonGroup/ButtonGroup.cjs +61 -0
- package/dist/legacy/visualBuilder/components/Collab/ButtonGroup/ButtonGroup.cjs.map +1 -0
- package/dist/legacy/visualBuilder/components/Collab/ButtonGroup/ButtonGroup.d.cts +28 -0
- package/dist/legacy/visualBuilder/components/Collab/ButtonGroup/ButtonGroup.d.ts +28 -0
- package/dist/legacy/visualBuilder/components/Collab/ButtonGroup/ButtonGroup.js +32 -0
- package/dist/legacy/visualBuilder/components/Collab/ButtonGroup/ButtonGroup.js.map +1 -0
- package/dist/legacy/visualBuilder/components/Collab/CollabIndicator.cjs +133 -0
- package/dist/legacy/visualBuilder/components/Collab/CollabIndicator.cjs.map +1 -0
- package/dist/legacy/visualBuilder/components/Collab/CollabIndicator.d.cts +10 -0
- package/dist/legacy/visualBuilder/components/Collab/CollabIndicator.d.ts +10 -0
- package/dist/legacy/visualBuilder/components/Collab/CollabIndicator.js +104 -0
- package/dist/legacy/visualBuilder/components/Collab/CollabIndicator.js.map +1 -0
- package/dist/legacy/visualBuilder/components/Collab/Icon/Icon.cjs +87 -0
- package/dist/legacy/visualBuilder/components/Collab/Icon/Icon.cjs.map +1 -0
- package/dist/legacy/visualBuilder/components/Collab/Icon/Icon.d.cts +19 -0
- package/dist/legacy/visualBuilder/components/Collab/Icon/Icon.d.ts +19 -0
- package/dist/legacy/visualBuilder/components/Collab/Icon/Icon.js +58 -0
- package/dist/legacy/visualBuilder/components/Collab/Icon/Icon.js.map +1 -0
- package/dist/legacy/visualBuilder/components/Collab/SkeletonTile/SkeletonTile.cjs +81 -0
- package/dist/legacy/visualBuilder/components/Collab/SkeletonTile/SkeletonTile.cjs.map +1 -0
- package/dist/legacy/visualBuilder/components/Collab/SkeletonTile/SkeletonTile.d.cts +17 -0
- package/dist/legacy/visualBuilder/components/Collab/SkeletonTile/SkeletonTile.d.ts +17 -0
- package/dist/legacy/visualBuilder/components/Collab/SkeletonTile/SkeletonTile.js +52 -0
- package/dist/legacy/visualBuilder/components/Collab/SkeletonTile/SkeletonTile.js.map +1 -0
- package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/CommentActionBar.cjs +150 -0
- package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/CommentActionBar.cjs.map +1 -0
- package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/CommentActionBar.d.cts +8 -0
- package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/CommentActionBar.d.ts +8 -0
- package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/CommentActionBar.js +121 -0
- package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/CommentActionBar.js.map +1 -0
- package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/CommentCard.cjs +159 -0
- package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/CommentCard.cjs.map +1 -0
- package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/CommentCard.d.cts +8 -0
- package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/CommentCard.d.ts +8 -0
- package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/CommentCard.js +130 -0
- package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/CommentCard.js.map +1 -0
- package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/CommentResolvedText.cjs +58 -0
- package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/CommentResolvedText.cjs.map +1 -0
- package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/CommentResolvedText.d.cts +6 -0
- package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/CommentResolvedText.d.ts +6 -0
- package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/CommentResolvedText.js +29 -0
- package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/CommentResolvedText.js.map +1 -0
- package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/CommentTextArea.cjs +229 -0
- package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/CommentTextArea.cjs.map +1 -0
- package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/CommentTextArea.d.cts +8 -0
- package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/CommentTextArea.d.ts +8 -0
- package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/CommentTextArea.js +200 -0
- package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/CommentTextArea.js.map +1 -0
- package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/ContextProvider/ThreadProvider.cjs +42 -0
- package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/ContextProvider/ThreadProvider.cjs.map +1 -0
- package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/ContextProvider/ThreadProvider.d.cts +8 -0
- package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/ContextProvider/ThreadProvider.d.ts +8 -0
- package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/ContextProvider/ThreadProvider.js +9 -0
- package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/ContextProvider/ThreadProvider.js.map +1 -0
- package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/ContextProvider/index.cjs +25 -0
- package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/ContextProvider/index.cjs.map +1 -0
- package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/ContextProvider/index.d.cts +3 -0
- package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/ContextProvider/index.d.ts +3 -0
- package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/ContextProvider/index.js +3 -0
- package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/ContextProvider/index.js.map +1 -0
- package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/ThreadActionBar.cjs +92 -0
- package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/ThreadActionBar.cjs.map +1 -0
- package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/ThreadActionBar.d.cts +13 -0
- package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/ThreadActionBar.d.ts +13 -0
- package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/ThreadActionBar.js +63 -0
- package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/ThreadActionBar.js.map +1 -0
- package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/ThreadBody.cjs +155 -0
- package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/ThreadBody.cjs.map +1 -0
- package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/ThreadBody.d.cts +8 -0
- package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/ThreadBody.d.ts +8 -0
- package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/ThreadBody.js +126 -0
- package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/ThreadBody.js.map +1 -0
- package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/ThreadFooter.cjs +93 -0
- package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/ThreadFooter.cjs.map +1 -0
- package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/ThreadFooter.d.cts +8 -0
- package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/ThreadFooter.d.ts +8 -0
- package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/ThreadFooter.js +64 -0
- package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/ThreadFooter.js.map +1 -0
- package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/ThreadHeader.cjs +93 -0
- package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/ThreadHeader.cjs.map +1 -0
- package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/ThreadHeader.d.cts +8 -0
- package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/ThreadHeader.d.ts +8 -0
- package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/ThreadHeader.js +64 -0
- package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/ThreadHeader.js.map +1 -0
- package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/index.cjs +242 -0
- package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/index.cjs.map +1 -0
- package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/index.d.cts +8 -0
- package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/index.d.ts +8 -0
- package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/index.js +213 -0
- package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/index.js.map +1 -0
- package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/loader/ThreadBody.cjs +101 -0
- package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/loader/ThreadBody.cjs.map +1 -0
- package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/loader/ThreadBody.d.cts +5 -0
- package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/loader/ThreadBody.d.ts +5 -0
- package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/loader/ThreadBody.js +72 -0
- package/dist/legacy/visualBuilder/components/Collab/ThreadPopup/loader/ThreadBody.js.map +1 -0
- package/dist/legacy/visualBuilder/components/Collab/Tooltip/Tooltip.cjs +110 -0
- package/dist/legacy/visualBuilder/components/Collab/Tooltip/Tooltip.cjs.map +1 -0
- package/dist/legacy/visualBuilder/components/Collab/Tooltip/Tooltip.d.cts +17 -0
- package/dist/legacy/visualBuilder/components/Collab/Tooltip/Tooltip.d.ts +17 -0
- package/dist/legacy/visualBuilder/components/Collab/Tooltip/Tooltip.js +81 -0
- package/dist/legacy/visualBuilder/components/Collab/Tooltip/Tooltip.js.map +1 -0
- package/dist/legacy/visualBuilder/components/HighlightedCommentIcon.cjs +6 -1
- package/dist/legacy/visualBuilder/components/HighlightedCommentIcon.cjs.map +1 -1
- package/dist/legacy/visualBuilder/components/HighlightedCommentIcon.js +6 -1
- package/dist/legacy/visualBuilder/components/HighlightedCommentIcon.js.map +1 -1
- package/dist/legacy/visualBuilder/components/icons/CollabIcons.cjs +220 -0
- package/dist/legacy/visualBuilder/components/icons/CollabIcons.cjs.map +1 -0
- package/dist/legacy/visualBuilder/components/icons/CollabIcons.d.cts +16 -0
- package/dist/legacy/visualBuilder/components/icons/CollabIcons.d.ts +16 -0
- package/dist/legacy/visualBuilder/components/icons/CollabIcons.js +197 -0
- package/dist/legacy/visualBuilder/components/icons/CollabIcons.js.map +1 -0
- package/dist/legacy/visualBuilder/components/icons/index.cjs +16 -16
- package/dist/legacy/visualBuilder/components/icons/index.cjs.map +1 -1
- package/dist/legacy/visualBuilder/components/icons/index.js +16 -16
- package/dist/legacy/visualBuilder/components/icons/index.js.map +1 -1
- package/dist/legacy/visualBuilder/components/startEditingButton.d.cts +1 -0
- package/dist/legacy/visualBuilder/components/startEditingButton.d.ts +1 -0
- package/dist/legacy/visualBuilder/eventManager/useCollab.cjs +180 -0
- package/dist/legacy/visualBuilder/eventManager/useCollab.cjs.map +1 -0
- package/dist/legacy/visualBuilder/eventManager/useCollab.d.cts +3 -0
- package/dist/legacy/visualBuilder/eventManager/useCollab.d.ts +3 -0
- package/dist/legacy/visualBuilder/eventManager/useCollab.js +156 -0
- package/dist/legacy/visualBuilder/eventManager/useCollab.js.map +1 -0
- package/dist/legacy/visualBuilder/eventManager/useHideFocusOverlayPostMessageEvent.cjs +7 -2
- package/dist/legacy/visualBuilder/eventManager/useHideFocusOverlayPostMessageEvent.cjs.map +1 -1
- package/dist/legacy/visualBuilder/eventManager/useHideFocusOverlayPostMessageEvent.js +7 -2
- package/dist/legacy/visualBuilder/eventManager/useHideFocusOverlayPostMessageEvent.js.map +1 -1
- package/dist/legacy/visualBuilder/generators/generateCustomCursor.cjs +2 -1
- package/dist/legacy/visualBuilder/generators/generateCustomCursor.cjs.map +1 -1
- package/dist/legacy/visualBuilder/generators/generateCustomCursor.d.cts +2 -2
- package/dist/legacy/visualBuilder/generators/generateCustomCursor.d.ts +2 -2
- package/dist/legacy/visualBuilder/generators/generateCustomCursor.js +2 -1
- package/dist/legacy/visualBuilder/generators/generateCustomCursor.js.map +1 -1
- package/dist/legacy/visualBuilder/generators/generateHighlightedComment.cjs +2 -2
- package/dist/legacy/visualBuilder/generators/generateHighlightedComment.cjs.map +1 -1
- package/dist/legacy/visualBuilder/generators/generateHighlightedComment.js +2 -2
- package/dist/legacy/visualBuilder/generators/generateHighlightedComment.js.map +1 -1
- package/dist/legacy/visualBuilder/generators/generateThread.cjs +496 -0
- package/dist/legacy/visualBuilder/generators/generateThread.cjs.map +1 -0
- package/dist/legacy/visualBuilder/generators/generateThread.d.cts +27 -0
- package/dist/legacy/visualBuilder/generators/generateThread.d.ts +27 -0
- package/dist/legacy/visualBuilder/generators/generateThread.js +445 -0
- package/dist/legacy/visualBuilder/generators/generateThread.js.map +1 -0
- package/dist/legacy/visualBuilder/hooks/use-infinite-scroll/useInfiniteScroll.cjs +63 -0
- package/dist/legacy/visualBuilder/hooks/use-infinite-scroll/useInfiniteScroll.cjs.map +1 -0
- package/dist/legacy/visualBuilder/hooks/use-infinite-scroll/useInfiniteScroll.d.cts +11 -0
- package/dist/legacy/visualBuilder/hooks/use-infinite-scroll/useInfiniteScroll.d.ts +11 -0
- package/dist/legacy/visualBuilder/hooks/use-infinite-scroll/useInfiniteScroll.js +44 -0
- package/dist/legacy/visualBuilder/hooks/use-infinite-scroll/useInfiniteScroll.js.map +1 -0
- package/dist/legacy/visualBuilder/hooks/useCollabIndicator.cjs +130 -0
- package/dist/legacy/visualBuilder/hooks/useCollabIndicator.cjs.map +1 -0
- package/dist/legacy/visualBuilder/hooks/useCollabIndicator.d.cts +20 -0
- package/dist/legacy/visualBuilder/hooks/useCollabIndicator.d.ts +20 -0
- package/dist/legacy/visualBuilder/hooks/useCollabIndicator.js +97 -0
- package/dist/legacy/visualBuilder/hooks/useCollabIndicator.js.map +1 -0
- package/dist/legacy/visualBuilder/hooks/useCollabOperations.cjs +147 -0
- package/dist/legacy/visualBuilder/hooks/useCollabOperations.cjs.map +1 -0
- package/dist/legacy/visualBuilder/hooks/useCollabOperations.d.cts +16 -0
- package/dist/legacy/visualBuilder/hooks/useCollabOperations.d.ts +16 -0
- package/dist/legacy/visualBuilder/hooks/useCollabOperations.js +114 -0
- package/dist/legacy/visualBuilder/hooks/useCollabOperations.js.map +1 -0
- package/dist/legacy/visualBuilder/hooks/useCommentTextArea.cjs +428 -0
- package/dist/legacy/visualBuilder/hooks/useCommentTextArea.cjs.map +1 -0
- package/dist/legacy/visualBuilder/hooks/useCommentTextArea.d.cts +27 -0
- package/dist/legacy/visualBuilder/hooks/useCommentTextArea.d.ts +27 -0
- package/dist/legacy/visualBuilder/hooks/useCommentTextArea.js +407 -0
- package/dist/legacy/visualBuilder/hooks/useCommentTextArea.js.map +1 -0
- package/dist/legacy/visualBuilder/hooks/useDynamicTextareaRows.cjs +42 -0
- package/dist/legacy/visualBuilder/hooks/useDynamicTextareaRows.cjs.map +1 -0
- package/dist/legacy/visualBuilder/hooks/useDynamicTextareaRows.d.cts +3 -0
- package/dist/legacy/visualBuilder/hooks/useDynamicTextareaRows.d.ts +3 -0
- package/dist/legacy/visualBuilder/hooks/useDynamicTextareaRows.js +23 -0
- package/dist/legacy/visualBuilder/hooks/useDynamicTextareaRows.js.map +1 -0
- package/dist/legacy/visualBuilder/index.cjs +80 -28
- package/dist/legacy/visualBuilder/index.cjs.map +1 -1
- package/dist/legacy/visualBuilder/index.d.cts +1 -0
- package/dist/legacy/visualBuilder/index.d.ts +1 -0
- package/dist/legacy/visualBuilder/index.js +89 -28
- package/dist/legacy/visualBuilder/index.js.map +1 -1
- package/dist/legacy/visualBuilder/listeners/mouseClick.cjs +34 -0
- package/dist/legacy/visualBuilder/listeners/mouseClick.cjs.map +1 -1
- package/dist/legacy/visualBuilder/listeners/mouseClick.js +34 -0
- package/dist/legacy/visualBuilder/listeners/mouseClick.js.map +1 -1
- package/dist/legacy/visualBuilder/listeners/mouseHover.cjs +49 -6
- package/dist/legacy/visualBuilder/listeners/mouseHover.cjs.map +1 -1
- package/dist/legacy/visualBuilder/listeners/mouseHover.js +39 -6
- package/dist/legacy/visualBuilder/listeners/mouseHover.js.map +1 -1
- package/dist/legacy/visualBuilder/types/collab.types.cjs +19 -0
- package/dist/legacy/visualBuilder/types/collab.types.cjs.map +1 -0
- package/dist/legacy/visualBuilder/types/collab.types.d.cts +253 -0
- package/dist/legacy/visualBuilder/types/collab.types.d.ts +253 -0
- package/dist/legacy/visualBuilder/types/collab.types.js +1 -0
- package/dist/legacy/visualBuilder/types/collab.types.js.map +1 -0
- package/dist/legacy/visualBuilder/utils/collabUtils.cjs +221 -0
- package/dist/legacy/visualBuilder/utils/collabUtils.cjs.map +1 -0
- package/dist/legacy/visualBuilder/utils/collabUtils.d.cts +76 -0
- package/dist/legacy/visualBuilder/utils/collabUtils.d.ts +76 -0
- package/dist/legacy/visualBuilder/utils/collabUtils.js +177 -0
- package/dist/legacy/visualBuilder/utils/collabUtils.js.map +1 -0
- package/dist/legacy/visualBuilder/utils/constants.cjs +6 -0
- package/dist/legacy/visualBuilder/utils/constants.cjs.map +1 -1
- package/dist/legacy/visualBuilder/utils/constants.d.cts +3 -1
- package/dist/legacy/visualBuilder/utils/constants.d.ts +3 -1
- package/dist/legacy/visualBuilder/utils/constants.js +4 -0
- package/dist/legacy/visualBuilder/utils/constants.js.map +1 -1
- package/dist/legacy/visualBuilder/utils/types/postMessage.types.cjs +14 -0
- package/dist/legacy/visualBuilder/utils/types/postMessage.types.cjs.map +1 -1
- package/dist/legacy/visualBuilder/utils/types/postMessage.types.d.cts +15 -1
- package/dist/legacy/visualBuilder/utils/types/postMessage.types.d.ts +15 -1
- package/dist/legacy/visualBuilder/utils/types/postMessage.types.js +14 -0
- package/dist/legacy/visualBuilder/utils/types/postMessage.types.js.map +1 -1
- package/dist/modern/configManager/config.default.cjs +15 -0
- package/dist/modern/configManager/config.default.cjs.map +1 -1
- package/dist/modern/configManager/config.default.d.cts +1 -0
- package/dist/modern/configManager/config.default.d.ts +1 -0
- package/dist/modern/configManager/config.default.js +15 -0
- package/dist/modern/configManager/config.default.js.map +1 -1
- package/dist/modern/configManager/configManager.d.cts +1 -0
- package/dist/modern/configManager/configManager.d.ts +1 -0
- package/dist/modern/configManager/handleUserConfig.d.cts +1 -0
- package/dist/modern/configManager/handleUserConfig.d.ts +1 -0
- package/dist/modern/configManager/index.d.cts +1 -0
- package/dist/modern/configManager/index.d.ts +1 -0
- package/dist/modern/index.cjs +45 -1
- package/dist/modern/index.cjs.map +1 -1
- package/dist/modern/index.d.cts +17 -2
- package/dist/modern/index.d.ts +17 -2
- package/dist/modern/index.js +45 -1
- package/dist/modern/index.js.map +1 -1
- package/dist/modern/livePreview/editButton/editButton.d.cts +1 -0
- package/dist/modern/livePreview/editButton/editButton.d.ts +1 -0
- package/dist/modern/livePreview/eventManager/postMessageEvent.hooks.cjs +1 -1
- package/dist/modern/livePreview/eventManager/postMessageEvent.hooks.js +1 -1
- package/dist/modern/livePreview/eventManager/types/livePreviewPostMessageEvent.type.d.cts +1 -0
- package/dist/modern/livePreview/eventManager/types/livePreviewPostMessageEvent.type.d.ts +1 -0
- package/dist/modern/preview/contentstack-live-preview-HOC.cjs +1 -1
- package/dist/modern/preview/contentstack-live-preview-HOC.d.cts +1 -0
- package/dist/modern/preview/contentstack-live-preview-HOC.d.ts +1 -0
- package/dist/modern/preview/contentstack-live-preview-HOC.js +1 -1
- package/dist/modern/types/types.cjs +1 -0
- package/dist/modern/types/types.cjs.map +1 -1
- package/dist/modern/types/types.d.cts +5 -0
- package/dist/modern/types/types.d.ts +5 -0
- package/dist/modern/types/types.js +1 -0
- package/dist/modern/types/types.js.map +1 -1
- package/dist/modern/visualBuilder/collab.style.cjs +660 -0
- package/dist/modern/visualBuilder/collab.style.cjs.map +1 -0
- package/dist/modern/visualBuilder/collab.style.d.cts +84 -0
- package/dist/modern/visualBuilder/collab.style.d.ts +84 -0
- package/dist/modern/visualBuilder/collab.style.js +635 -0
- package/dist/modern/visualBuilder/collab.style.js.map +1 -0
- package/dist/modern/visualBuilder/components/Collab/AsyncLoader/AsyncLoader.cjs +70 -0
- package/dist/modern/visualBuilder/components/Collab/AsyncLoader/AsyncLoader.cjs.map +1 -0
- package/dist/modern/visualBuilder/components/Collab/AsyncLoader/AsyncLoader.d.cts +12 -0
- package/dist/modern/visualBuilder/components/Collab/AsyncLoader/AsyncLoader.d.ts +12 -0
- package/dist/modern/visualBuilder/components/Collab/AsyncLoader/AsyncLoader.js +41 -0
- package/dist/modern/visualBuilder/components/Collab/AsyncLoader/AsyncLoader.js.map +1 -0
- package/dist/modern/visualBuilder/components/Collab/Avatar/Avatar.cjs +116 -0
- package/dist/modern/visualBuilder/components/Collab/Avatar/Avatar.cjs.map +1 -0
- package/dist/modern/visualBuilder/components/Collab/Avatar/Avatar.d.cts +18 -0
- package/dist/modern/visualBuilder/components/Collab/Avatar/Avatar.d.ts +18 -0
- package/dist/modern/visualBuilder/components/Collab/Avatar/Avatar.js +87 -0
- package/dist/modern/visualBuilder/components/Collab/Avatar/Avatar.js.map +1 -0
- package/dist/modern/visualBuilder/components/Collab/Button/Button.cjs +143 -0
- package/dist/modern/visualBuilder/components/Collab/Button/Button.cjs.map +1 -0
- package/dist/modern/visualBuilder/components/Collab/Button/Button.d.cts +29 -0
- package/dist/modern/visualBuilder/components/Collab/Button/Button.d.ts +29 -0
- package/dist/modern/visualBuilder/components/Collab/Button/Button.js +118 -0
- package/dist/modern/visualBuilder/components/Collab/Button/Button.js.map +1 -0
- package/dist/modern/visualBuilder/components/Collab/ButtonGroup/ButtonGroup.cjs +61 -0
- package/dist/modern/visualBuilder/components/Collab/ButtonGroup/ButtonGroup.cjs.map +1 -0
- package/dist/modern/visualBuilder/components/Collab/ButtonGroup/ButtonGroup.d.cts +28 -0
- package/dist/modern/visualBuilder/components/Collab/ButtonGroup/ButtonGroup.d.ts +28 -0
- package/dist/modern/visualBuilder/components/Collab/ButtonGroup/ButtonGroup.js +32 -0
- package/dist/modern/visualBuilder/components/Collab/ButtonGroup/ButtonGroup.js.map +1 -0
- package/dist/modern/visualBuilder/components/Collab/CollabIndicator.cjs +130 -0
- package/dist/modern/visualBuilder/components/Collab/CollabIndicator.cjs.map +1 -0
- package/dist/modern/visualBuilder/components/Collab/CollabIndicator.d.cts +10 -0
- package/dist/modern/visualBuilder/components/Collab/CollabIndicator.d.ts +10 -0
- package/dist/modern/visualBuilder/components/Collab/CollabIndicator.js +101 -0
- package/dist/modern/visualBuilder/components/Collab/CollabIndicator.js.map +1 -0
- package/dist/modern/visualBuilder/components/Collab/Icon/Icon.cjs +87 -0
- package/dist/modern/visualBuilder/components/Collab/Icon/Icon.cjs.map +1 -0
- package/dist/modern/visualBuilder/components/Collab/Icon/Icon.d.cts +19 -0
- package/dist/modern/visualBuilder/components/Collab/Icon/Icon.d.ts +19 -0
- package/dist/modern/visualBuilder/components/Collab/Icon/Icon.js +58 -0
- package/dist/modern/visualBuilder/components/Collab/Icon/Icon.js.map +1 -0
- package/dist/modern/visualBuilder/components/Collab/SkeletonTile/SkeletonTile.cjs +81 -0
- package/dist/modern/visualBuilder/components/Collab/SkeletonTile/SkeletonTile.cjs.map +1 -0
- package/dist/modern/visualBuilder/components/Collab/SkeletonTile/SkeletonTile.d.cts +17 -0
- package/dist/modern/visualBuilder/components/Collab/SkeletonTile/SkeletonTile.d.ts +17 -0
- package/dist/modern/visualBuilder/components/Collab/SkeletonTile/SkeletonTile.js +52 -0
- package/dist/modern/visualBuilder/components/Collab/SkeletonTile/SkeletonTile.js.map +1 -0
- package/dist/modern/visualBuilder/components/Collab/ThreadPopup/CommentActionBar.cjs +150 -0
- package/dist/modern/visualBuilder/components/Collab/ThreadPopup/CommentActionBar.cjs.map +1 -0
- package/dist/modern/visualBuilder/components/Collab/ThreadPopup/CommentActionBar.d.cts +8 -0
- package/dist/modern/visualBuilder/components/Collab/ThreadPopup/CommentActionBar.d.ts +8 -0
- package/dist/modern/visualBuilder/components/Collab/ThreadPopup/CommentActionBar.js +121 -0
- package/dist/modern/visualBuilder/components/Collab/ThreadPopup/CommentActionBar.js.map +1 -0
- package/dist/modern/visualBuilder/components/Collab/ThreadPopup/CommentCard.cjs +159 -0
- package/dist/modern/visualBuilder/components/Collab/ThreadPopup/CommentCard.cjs.map +1 -0
- package/dist/modern/visualBuilder/components/Collab/ThreadPopup/CommentCard.d.cts +8 -0
- package/dist/modern/visualBuilder/components/Collab/ThreadPopup/CommentCard.d.ts +8 -0
- package/dist/modern/visualBuilder/components/Collab/ThreadPopup/CommentCard.js +130 -0
- package/dist/modern/visualBuilder/components/Collab/ThreadPopup/CommentCard.js.map +1 -0
- package/dist/modern/visualBuilder/components/Collab/ThreadPopup/CommentResolvedText.cjs +58 -0
- package/dist/modern/visualBuilder/components/Collab/ThreadPopup/CommentResolvedText.cjs.map +1 -0
- package/dist/modern/visualBuilder/components/Collab/ThreadPopup/CommentResolvedText.d.cts +6 -0
- package/dist/modern/visualBuilder/components/Collab/ThreadPopup/CommentResolvedText.d.ts +6 -0
- package/dist/modern/visualBuilder/components/Collab/ThreadPopup/CommentResolvedText.js +29 -0
- package/dist/modern/visualBuilder/components/Collab/ThreadPopup/CommentResolvedText.js.map +1 -0
- package/dist/modern/visualBuilder/components/Collab/ThreadPopup/CommentTextArea.cjs +225 -0
- package/dist/modern/visualBuilder/components/Collab/ThreadPopup/CommentTextArea.cjs.map +1 -0
- package/dist/modern/visualBuilder/components/Collab/ThreadPopup/CommentTextArea.d.cts +8 -0
- package/dist/modern/visualBuilder/components/Collab/ThreadPopup/CommentTextArea.d.ts +8 -0
- package/dist/modern/visualBuilder/components/Collab/ThreadPopup/CommentTextArea.js +196 -0
- package/dist/modern/visualBuilder/components/Collab/ThreadPopup/CommentTextArea.js.map +1 -0
- package/dist/modern/visualBuilder/components/Collab/ThreadPopup/ContextProvider/ThreadProvider.cjs +42 -0
- package/dist/modern/visualBuilder/components/Collab/ThreadPopup/ContextProvider/ThreadProvider.cjs.map +1 -0
- package/dist/modern/visualBuilder/components/Collab/ThreadPopup/ContextProvider/ThreadProvider.d.cts +8 -0
- package/dist/modern/visualBuilder/components/Collab/ThreadPopup/ContextProvider/ThreadProvider.d.ts +8 -0
- package/dist/modern/visualBuilder/components/Collab/ThreadPopup/ContextProvider/ThreadProvider.js +9 -0
- package/dist/modern/visualBuilder/components/Collab/ThreadPopup/ContextProvider/ThreadProvider.js.map +1 -0
- package/dist/modern/visualBuilder/components/Collab/ThreadPopup/ContextProvider/index.cjs +25 -0
- package/dist/modern/visualBuilder/components/Collab/ThreadPopup/ContextProvider/index.cjs.map +1 -0
- package/dist/modern/visualBuilder/components/Collab/ThreadPopup/ContextProvider/index.d.cts +3 -0
- package/dist/modern/visualBuilder/components/Collab/ThreadPopup/ContextProvider/index.d.ts +3 -0
- package/dist/modern/visualBuilder/components/Collab/ThreadPopup/ContextProvider/index.js +3 -0
- package/dist/modern/visualBuilder/components/Collab/ThreadPopup/ContextProvider/index.js.map +1 -0
- package/dist/modern/visualBuilder/components/Collab/ThreadPopup/ThreadActionBar.cjs +92 -0
- package/dist/modern/visualBuilder/components/Collab/ThreadPopup/ThreadActionBar.cjs.map +1 -0
- package/dist/modern/visualBuilder/components/Collab/ThreadPopup/ThreadActionBar.d.cts +13 -0
- package/dist/modern/visualBuilder/components/Collab/ThreadPopup/ThreadActionBar.d.ts +13 -0
- package/dist/modern/visualBuilder/components/Collab/ThreadPopup/ThreadActionBar.js +63 -0
- package/dist/modern/visualBuilder/components/Collab/ThreadPopup/ThreadActionBar.js.map +1 -0
- package/dist/modern/visualBuilder/components/Collab/ThreadPopup/ThreadBody.cjs +155 -0
- package/dist/modern/visualBuilder/components/Collab/ThreadPopup/ThreadBody.cjs.map +1 -0
- package/dist/modern/visualBuilder/components/Collab/ThreadPopup/ThreadBody.d.cts +8 -0
- package/dist/modern/visualBuilder/components/Collab/ThreadPopup/ThreadBody.d.ts +8 -0
- package/dist/modern/visualBuilder/components/Collab/ThreadPopup/ThreadBody.js +126 -0
- package/dist/modern/visualBuilder/components/Collab/ThreadPopup/ThreadBody.js.map +1 -0
- package/dist/modern/visualBuilder/components/Collab/ThreadPopup/ThreadFooter.cjs +92 -0
- package/dist/modern/visualBuilder/components/Collab/ThreadPopup/ThreadFooter.cjs.map +1 -0
- package/dist/modern/visualBuilder/components/Collab/ThreadPopup/ThreadFooter.d.cts +8 -0
- package/dist/modern/visualBuilder/components/Collab/ThreadPopup/ThreadFooter.d.ts +8 -0
- package/dist/modern/visualBuilder/components/Collab/ThreadPopup/ThreadFooter.js +63 -0
- package/dist/modern/visualBuilder/components/Collab/ThreadPopup/ThreadFooter.js.map +1 -0
- package/dist/modern/visualBuilder/components/Collab/ThreadPopup/ThreadHeader.cjs +93 -0
- package/dist/modern/visualBuilder/components/Collab/ThreadPopup/ThreadHeader.cjs.map +1 -0
- package/dist/modern/visualBuilder/components/Collab/ThreadPopup/ThreadHeader.d.cts +8 -0
- package/dist/modern/visualBuilder/components/Collab/ThreadPopup/ThreadHeader.d.ts +8 -0
- package/dist/modern/visualBuilder/components/Collab/ThreadPopup/ThreadHeader.js +64 -0
- package/dist/modern/visualBuilder/components/Collab/ThreadPopup/ThreadHeader.js.map +1 -0
- package/dist/modern/visualBuilder/components/Collab/ThreadPopup/index.cjs +241 -0
- package/dist/modern/visualBuilder/components/Collab/ThreadPopup/index.cjs.map +1 -0
- package/dist/modern/visualBuilder/components/Collab/ThreadPopup/index.d.cts +8 -0
- package/dist/modern/visualBuilder/components/Collab/ThreadPopup/index.d.ts +8 -0
- package/dist/modern/visualBuilder/components/Collab/ThreadPopup/index.js +212 -0
- package/dist/modern/visualBuilder/components/Collab/ThreadPopup/index.js.map +1 -0
- package/dist/modern/visualBuilder/components/Collab/ThreadPopup/loader/ThreadBody.cjs +101 -0
- package/dist/modern/visualBuilder/components/Collab/ThreadPopup/loader/ThreadBody.cjs.map +1 -0
- package/dist/modern/visualBuilder/components/Collab/ThreadPopup/loader/ThreadBody.d.cts +5 -0
- package/dist/modern/visualBuilder/components/Collab/ThreadPopup/loader/ThreadBody.d.ts +5 -0
- package/dist/modern/visualBuilder/components/Collab/ThreadPopup/loader/ThreadBody.js +72 -0
- package/dist/modern/visualBuilder/components/Collab/ThreadPopup/loader/ThreadBody.js.map +1 -0
- package/dist/modern/visualBuilder/components/Collab/Tooltip/Tooltip.cjs +110 -0
- package/dist/modern/visualBuilder/components/Collab/Tooltip/Tooltip.cjs.map +1 -0
- package/dist/modern/visualBuilder/components/Collab/Tooltip/Tooltip.d.cts +17 -0
- package/dist/modern/visualBuilder/components/Collab/Tooltip/Tooltip.d.ts +17 -0
- package/dist/modern/visualBuilder/components/Collab/Tooltip/Tooltip.js +81 -0
- package/dist/modern/visualBuilder/components/Collab/Tooltip/Tooltip.js.map +1 -0
- package/dist/modern/visualBuilder/components/HighlightedCommentIcon.cjs +6 -1
- package/dist/modern/visualBuilder/components/HighlightedCommentIcon.cjs.map +1 -1
- package/dist/modern/visualBuilder/components/HighlightedCommentIcon.js +6 -1
- package/dist/modern/visualBuilder/components/HighlightedCommentIcon.js.map +1 -1
- package/dist/modern/visualBuilder/components/icons/CollabIcons.cjs +220 -0
- package/dist/modern/visualBuilder/components/icons/CollabIcons.cjs.map +1 -0
- package/dist/modern/visualBuilder/components/icons/CollabIcons.d.cts +16 -0
- package/dist/modern/visualBuilder/components/icons/CollabIcons.d.ts +16 -0
- package/dist/modern/visualBuilder/components/icons/CollabIcons.js +197 -0
- package/dist/modern/visualBuilder/components/icons/CollabIcons.js.map +1 -0
- package/dist/modern/visualBuilder/components/icons/index.cjs +16 -16
- package/dist/modern/visualBuilder/components/icons/index.cjs.map +1 -1
- package/dist/modern/visualBuilder/components/icons/index.js +16 -16
- package/dist/modern/visualBuilder/components/icons/index.js.map +1 -1
- package/dist/modern/visualBuilder/components/startEditingButton.d.cts +1 -0
- package/dist/modern/visualBuilder/components/startEditingButton.d.ts +1 -0
- package/dist/modern/visualBuilder/eventManager/useCollab.cjs +173 -0
- package/dist/modern/visualBuilder/eventManager/useCollab.cjs.map +1 -0
- package/dist/modern/visualBuilder/eventManager/useCollab.d.cts +3 -0
- package/dist/modern/visualBuilder/eventManager/useCollab.d.ts +3 -0
- package/dist/modern/visualBuilder/eventManager/useCollab.js +149 -0
- package/dist/modern/visualBuilder/eventManager/useCollab.js.map +1 -0
- package/dist/modern/visualBuilder/eventManager/useHideFocusOverlayPostMessageEvent.cjs +5 -0
- package/dist/modern/visualBuilder/eventManager/useHideFocusOverlayPostMessageEvent.cjs.map +1 -1
- package/dist/modern/visualBuilder/eventManager/useHideFocusOverlayPostMessageEvent.js +5 -0
- package/dist/modern/visualBuilder/eventManager/useHideFocusOverlayPostMessageEvent.js.map +1 -1
- package/dist/modern/visualBuilder/generators/generateCustomCursor.cjs +2 -1
- package/dist/modern/visualBuilder/generators/generateCustomCursor.cjs.map +1 -1
- package/dist/modern/visualBuilder/generators/generateCustomCursor.d.cts +2 -2
- package/dist/modern/visualBuilder/generators/generateCustomCursor.d.ts +2 -2
- package/dist/modern/visualBuilder/generators/generateCustomCursor.js +2 -1
- package/dist/modern/visualBuilder/generators/generateCustomCursor.js.map +1 -1
- package/dist/modern/visualBuilder/generators/generateHighlightedComment.cjs +2 -2
- package/dist/modern/visualBuilder/generators/generateHighlightedComment.cjs.map +1 -1
- package/dist/modern/visualBuilder/generators/generateHighlightedComment.js +2 -2
- package/dist/modern/visualBuilder/generators/generateHighlightedComment.js.map +1 -1
- package/dist/modern/visualBuilder/generators/generateThread.cjs +492 -0
- package/dist/modern/visualBuilder/generators/generateThread.cjs.map +1 -0
- package/dist/modern/visualBuilder/generators/generateThread.d.cts +27 -0
- package/dist/modern/visualBuilder/generators/generateThread.d.ts +27 -0
- package/dist/modern/visualBuilder/generators/generateThread.js +441 -0
- package/dist/modern/visualBuilder/generators/generateThread.js.map +1 -0
- package/dist/modern/visualBuilder/hooks/use-infinite-scroll/useInfiniteScroll.cjs +63 -0
- package/dist/modern/visualBuilder/hooks/use-infinite-scroll/useInfiniteScroll.cjs.map +1 -0
- package/dist/modern/visualBuilder/hooks/use-infinite-scroll/useInfiniteScroll.d.cts +11 -0
- package/dist/modern/visualBuilder/hooks/use-infinite-scroll/useInfiniteScroll.d.ts +11 -0
- package/dist/modern/visualBuilder/hooks/use-infinite-scroll/useInfiniteScroll.js +44 -0
- package/dist/modern/visualBuilder/hooks/use-infinite-scroll/useInfiniteScroll.js.map +1 -0
- package/dist/modern/visualBuilder/hooks/useCollabIndicator.cjs +128 -0
- package/dist/modern/visualBuilder/hooks/useCollabIndicator.cjs.map +1 -0
- package/dist/modern/visualBuilder/hooks/useCollabIndicator.d.cts +20 -0
- package/dist/modern/visualBuilder/hooks/useCollabIndicator.d.ts +20 -0
- package/dist/modern/visualBuilder/hooks/useCollabIndicator.js +95 -0
- package/dist/modern/visualBuilder/hooks/useCollabIndicator.js.map +1 -0
- package/dist/modern/visualBuilder/hooks/useCollabOperations.cjs +140 -0
- package/dist/modern/visualBuilder/hooks/useCollabOperations.cjs.map +1 -0
- package/dist/modern/visualBuilder/hooks/useCollabOperations.d.cts +16 -0
- package/dist/modern/visualBuilder/hooks/useCollabOperations.d.ts +16 -0
- package/dist/modern/visualBuilder/hooks/useCollabOperations.js +107 -0
- package/dist/modern/visualBuilder/hooks/useCollabOperations.js.map +1 -0
- package/dist/modern/visualBuilder/hooks/useCommentTextArea.cjs +423 -0
- package/dist/modern/visualBuilder/hooks/useCommentTextArea.cjs.map +1 -0
- package/dist/modern/visualBuilder/hooks/useCommentTextArea.d.cts +27 -0
- package/dist/modern/visualBuilder/hooks/useCommentTextArea.d.ts +27 -0
- package/dist/modern/visualBuilder/hooks/useCommentTextArea.js +402 -0
- package/dist/modern/visualBuilder/hooks/useCommentTextArea.js.map +1 -0
- package/dist/modern/visualBuilder/hooks/useDynamicTextareaRows.cjs +42 -0
- package/dist/modern/visualBuilder/hooks/useDynamicTextareaRows.cjs.map +1 -0
- package/dist/modern/visualBuilder/hooks/useDynamicTextareaRows.d.cts +3 -0
- package/dist/modern/visualBuilder/hooks/useDynamicTextareaRows.d.ts +3 -0
- package/dist/modern/visualBuilder/hooks/useDynamicTextareaRows.js +23 -0
- package/dist/modern/visualBuilder/hooks/useDynamicTextareaRows.js.map +1 -0
- package/dist/modern/visualBuilder/index.cjs +80 -28
- package/dist/modern/visualBuilder/index.cjs.map +1 -1
- package/dist/modern/visualBuilder/index.d.cts +1 -0
- package/dist/modern/visualBuilder/index.d.ts +1 -0
- package/dist/modern/visualBuilder/index.js +89 -28
- package/dist/modern/visualBuilder/index.js.map +1 -1
- package/dist/modern/visualBuilder/listeners/mouseClick.cjs +34 -0
- package/dist/modern/visualBuilder/listeners/mouseClick.cjs.map +1 -1
- package/dist/modern/visualBuilder/listeners/mouseClick.js +34 -0
- package/dist/modern/visualBuilder/listeners/mouseClick.js.map +1 -1
- package/dist/modern/visualBuilder/listeners/mouseHover.cjs +49 -6
- package/dist/modern/visualBuilder/listeners/mouseHover.cjs.map +1 -1
- package/dist/modern/visualBuilder/listeners/mouseHover.js +39 -6
- package/dist/modern/visualBuilder/listeners/mouseHover.js.map +1 -1
- package/dist/modern/visualBuilder/types/collab.types.cjs +19 -0
- package/dist/modern/visualBuilder/types/collab.types.cjs.map +1 -0
- package/dist/modern/visualBuilder/types/collab.types.d.cts +253 -0
- package/dist/modern/visualBuilder/types/collab.types.d.ts +253 -0
- package/dist/modern/visualBuilder/types/collab.types.js +1 -0
- package/dist/modern/visualBuilder/types/collab.types.js.map +1 -0
- package/dist/modern/visualBuilder/utils/collabUtils.cjs +219 -0
- package/dist/modern/visualBuilder/utils/collabUtils.cjs.map +1 -0
- package/dist/modern/visualBuilder/utils/collabUtils.d.cts +76 -0
- package/dist/modern/visualBuilder/utils/collabUtils.d.ts +76 -0
- package/dist/modern/visualBuilder/utils/collabUtils.js +175 -0
- package/dist/modern/visualBuilder/utils/collabUtils.js.map +1 -0
- package/dist/modern/visualBuilder/utils/constants.cjs +6 -0
- package/dist/modern/visualBuilder/utils/constants.cjs.map +1 -1
- package/dist/modern/visualBuilder/utils/constants.d.cts +3 -1
- package/dist/modern/visualBuilder/utils/constants.d.ts +3 -1
- package/dist/modern/visualBuilder/utils/constants.js +4 -0
- package/dist/modern/visualBuilder/utils/constants.js.map +1 -1
- package/dist/modern/visualBuilder/utils/types/postMessage.types.cjs +14 -0
- package/dist/modern/visualBuilder/utils/types/postMessage.types.cjs.map +1 -1
- package/dist/modern/visualBuilder/utils/types/postMessage.types.d.cts +15 -1
- package/dist/modern/visualBuilder/utils/types/postMessage.types.d.ts +15 -1
- package/dist/modern/visualBuilder/utils/types/postMessage.types.js +14 -0
- package/dist/modern/visualBuilder/utils/types/postMessage.types.js.map +1 -1
- package/package.json +5 -2
package/README.md
CHANGED
|
@@ -15,8 +15,8 @@ npm install @contentstack/live-preview-utils
|
|
|
15
15
|
Alternatively, if you want to include the package directly in your website HTML code, use the following command:
|
|
16
16
|
|
|
17
17
|
```html
|
|
18
|
-
<script type='module' integrity='sha384-
|
|
19
|
-
import ContentstackLivePreview from 'https://esm.sh/@contentstack/live-preview-utils@3.
|
|
18
|
+
<script type='module' integrity='sha384-Q1kNLAr9TbfZ9lsUUXH/vW79LERzfbYJc7aLNSYjKFLzBZQDp/Jk09+ADHo9mhEq' crossorigin="anonymous">
|
|
19
|
+
import ContentstackLivePreview from 'https://esm.sh/@contentstack/live-preview-utils@3.2.0';
|
|
20
20
|
|
|
21
21
|
ContentstackLivePreview.init({
|
|
22
22
|
stackDetails: {
|
|
@@ -106,6 +106,21 @@ function getDefaultConfig() {
|
|
|
106
106
|
},
|
|
107
107
|
elements: {
|
|
108
108
|
highlightedElement: null
|
|
109
|
+
},
|
|
110
|
+
collab: {
|
|
111
|
+
enable: false,
|
|
112
|
+
fromShare: false,
|
|
113
|
+
pauseFeedback: false,
|
|
114
|
+
isFeedbackMode: false,
|
|
115
|
+
inviteMetadata: {
|
|
116
|
+
currentUser: {
|
|
117
|
+
email: "",
|
|
118
|
+
uid: ""
|
|
119
|
+
},
|
|
120
|
+
users: [],
|
|
121
|
+
inviteUid: ""
|
|
122
|
+
},
|
|
123
|
+
payload: []
|
|
109
124
|
}
|
|
110
125
|
};
|
|
111
126
|
}
|
|
@@ -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 editInVisualBuilderButton: {\n enable: true,\n position: \"bottom-right\"\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 editInVisualBuilderButton: {\n enable: true,\n position: \"bottom-right\"\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,IACA,2BAA2B;AAAA,MACvB,QAAQ;AAAA,MACR,UAAU;AAAA,IACd;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,IACA,2BAA2B;AAAA,MACvB,QAAQ;AAAA,MACR,UAAU;AAAA,IACd;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 editInVisualBuilderButton: {\n enable: true,\n position: \"bottom-right\"\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 editInVisualBuilderButton: {\n enable: true,\n position: \"bottom-right\"\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 payload: [],\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,IACA,2BAA2B;AAAA,MACvB,QAAQ;AAAA,MACR,UAAU;AAAA,IACd;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,IACA,2BAA2B;AAAA,MACvB,QAAQ;AAAA,MACR,UAAU;AAAA,IACd;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,MACA,SAAS,CAAC;AAAA,IACd;AAAA,EACJ;AACJ;","names":[]}
|
|
@@ -85,6 +85,21 @@ function getDefaultConfig() {
|
|
|
85
85
|
},
|
|
86
86
|
elements: {
|
|
87
87
|
highlightedElement: null
|
|
88
|
+
},
|
|
89
|
+
collab: {
|
|
90
|
+
enable: false,
|
|
91
|
+
fromShare: false,
|
|
92
|
+
pauseFeedback: false,
|
|
93
|
+
isFeedbackMode: false,
|
|
94
|
+
inviteMetadata: {
|
|
95
|
+
currentUser: {
|
|
96
|
+
email: "",
|
|
97
|
+
uid: ""
|
|
98
|
+
},
|
|
99
|
+
users: [],
|
|
100
|
+
inviteUid: ""
|
|
101
|
+
},
|
|
102
|
+
payload: []
|
|
88
103
|
}
|
|
89
104
|
};
|
|
90
105
|
}
|
|
@@ -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 editInVisualBuilderButton: {\n enable: true,\n position: \"bottom-right\"\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 editInVisualBuilderButton: {\n enable: true,\n position: \"bottom-right\"\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,IACA,2BAA2B;AAAA,MACvB,QAAQ;AAAA,MACR,UAAU;AAAA,IACd;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,IACA,2BAA2B;AAAA,MACvB,QAAQ;AAAA,MACR,UAAU;AAAA,IACd;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 editInVisualBuilderButton: {\n enable: true,\n position: \"bottom-right\"\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 editInVisualBuilderButton: {\n enable: true,\n position: \"bottom-right\"\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 payload: [],\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,IACA,2BAA2B;AAAA,MACvB,QAAQ;AAAA,MACR,UAAU;AAAA,IACd;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,IACA,2BAA2B;AAAA,MACvB,QAAQ;AAAA,MACR,UAAU;AAAA,IACd;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,MACA,SAAS,CAAC;AAAA,IACd;AAAA,EACJ;AACJ;","names":[]}
|
package/dist/legacy/index.cjs
CHANGED
|
@@ -35,8 +35,52 @@ __export(index_exports, {
|
|
|
35
35
|
});
|
|
36
36
|
module.exports = __toCommonJS(index_exports);
|
|
37
37
|
var import_contentstack_live_preview_HOC = __toESM(require("./preview/contentstack-live-preview-HOC.cjs"), 1);
|
|
38
|
+
var _LightLivePreviewHoC = class _LightLivePreviewHoC {
|
|
39
|
+
static init() {
|
|
40
|
+
if (typeof window === "undefined") {
|
|
41
|
+
return Promise.resolve(_LightLivePreviewHoC.previewConstructors);
|
|
42
|
+
}
|
|
43
|
+
return _LightLivePreviewHoC.initializePreview();
|
|
44
|
+
}
|
|
45
|
+
static initializePreview() {
|
|
46
|
+
_LightLivePreviewHoC.previewConstructors = {
|
|
47
|
+
livePreview: {},
|
|
48
|
+
visualBuilder: {}
|
|
49
|
+
};
|
|
50
|
+
_LightLivePreviewHoC.onEntryChangeCallbacks = {};
|
|
51
|
+
return Promise.resolve(_LightLivePreviewHoC.previewConstructors);
|
|
52
|
+
}
|
|
53
|
+
static get hash() {
|
|
54
|
+
return "";
|
|
55
|
+
}
|
|
56
|
+
static get config() {
|
|
57
|
+
return {};
|
|
58
|
+
}
|
|
59
|
+
static isInitialized() {
|
|
60
|
+
return false;
|
|
61
|
+
}
|
|
62
|
+
static onEntryChange(callback, config = {}) {
|
|
63
|
+
const { skipInitialRender = false } = config;
|
|
64
|
+
if (!skipInitialRender) {
|
|
65
|
+
callback();
|
|
66
|
+
}
|
|
67
|
+
return "live-preview-id";
|
|
68
|
+
}
|
|
69
|
+
static onLiveEdit(callback) {
|
|
70
|
+
return "live-preview-id";
|
|
71
|
+
}
|
|
72
|
+
static unsubscribeOnEntryChange() {
|
|
73
|
+
}
|
|
74
|
+
static getSdkVersion() {
|
|
75
|
+
return "3.2.0";
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
_LightLivePreviewHoC.previewConstructors = {};
|
|
79
|
+
_LightLivePreviewHoC.onEntryChangeCallbacks = {};
|
|
80
|
+
var LightLivePreviewHoC = _LightLivePreviewHoC;
|
|
81
|
+
var ContentstackLivePreview = process.env.PURGE_PREVIEW_SDK || process.env.REACT_APP_PURGE_PREVIEW_SDK ? LightLivePreviewHoC : import_contentstack_live_preview_HOC.default;
|
|
38
82
|
var VB_EmptyBlockParentClass = "visual-builder__empty-block-parent";
|
|
39
|
-
var index_default =
|
|
83
|
+
var index_default = ContentstackLivePreview;
|
|
40
84
|
// Annotate the CommonJS export names for ESM import in node:
|
|
41
85
|
0 && (module.exports = {
|
|
42
86
|
VB_EmptyBlockParentClass
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["import ContentstackLivePreviewHOC from \"./preview/contentstack-live-preview-HOC\";\
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["import ContentstackLivePreviewHOC from \"./preview/contentstack-live-preview-HOC\";\nimport { IStackSdk as ExternalStackSdkType } from \"./types/types\";\n\nimport {\n OnEntryChangeCallback,\n OnEntryChangeCallbackUID,\n OnEntryChangeConfig,\n} from \"./livePreview/types/onEntryChangeCallback.type\";\n\nexport type IStackSdk = ExternalStackSdkType;\n\nclass LightLivePreviewHoC {\n private static previewConstructors = {};\n private static onEntryChangeCallbacks = {};\n\n static init() {\n if (typeof window === \"undefined\") {\n return Promise.resolve(LightLivePreviewHoC.previewConstructors);\n }\n\n return LightLivePreviewHoC.initializePreview();\n }\n\n private static initializePreview() {\n LightLivePreviewHoC.previewConstructors = {\n livePreview: {},\n visualBuilder: {},\n };\n\n LightLivePreviewHoC.onEntryChangeCallbacks = {};\n\n return Promise.resolve(LightLivePreviewHoC.previewConstructors);\n }\n\n static get hash() {\n return \"\";\n }\n\n static get config() {\n return {};\n }\n\n static isInitialized() {\n return false;\n }\n\n static onEntryChange(\n callback: OnEntryChangeCallback,\n config: OnEntryChangeConfig = {}\n ): OnEntryChangeCallbackUID {\n const { skipInitialRender = false } = config;\n\n if (!skipInitialRender) {\n callback();\n }\n\n return \"live-preview-id\";\n }\n\n static onLiveEdit(callback: OnEntryChangeCallback) {\n return \"live-preview-id\";\n }\n\n static unsubscribeOnEntryChange() {\n // intentionally empty\n }\n\n static getSdkVersion(): string {\n return process?.env?.PACKAGE_VERSION!;\n }\n}\n\nconst ContentstackLivePreview =\n process.env.PURGE_PREVIEW_SDK || process.env.REACT_APP_PURGE_PREVIEW_SDK\n ? LightLivePreviewHoC\n : ContentstackLivePreviewHOC;\n\nexport const VB_EmptyBlockParentClass = \"visual-builder__empty-block-parent\";\nexport default ContentstackLivePreview;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,2CAAuC;AAWvC,IAAM,uBAAN,MAAM,qBAAoB;AAAA,EAItB,OAAO,OAAO;AACV,QAAI,OAAO,WAAW,aAAa;AAC/B,aAAO,QAAQ,QAAQ,qBAAoB,mBAAmB;AAAA,IAClE;AAEA,WAAO,qBAAoB,kBAAkB;AAAA,EACjD;AAAA,EAEA,OAAe,oBAAoB;AAC/B,yBAAoB,sBAAsB;AAAA,MACtC,aAAa,CAAC;AAAA,MACd,eAAe,CAAC;AAAA,IACpB;AAEA,yBAAoB,yBAAyB,CAAC;AAE9C,WAAO,QAAQ,QAAQ,qBAAoB,mBAAmB;AAAA,EAClE;AAAA,EAEA,WAAW,OAAO;AACd,WAAO;AAAA,EACX;AAAA,EAEA,WAAW,SAAS;AAChB,WAAO,CAAC;AAAA,EACZ;AAAA,EAEA,OAAO,gBAAgB;AACnB,WAAO;AAAA,EACX;AAAA,EAEA,OAAO,cACH,UACA,SAA8B,CAAC,GACP;AACxB,UAAM,EAAE,oBAAoB,MAAM,IAAI;AAEtC,QAAI,CAAC,mBAAmB;AACpB,eAAS;AAAA,IACb;AAEA,WAAO;AAAA,EACX;AAAA,EAEA,OAAO,WAAW,UAAiC;AAC/C,WAAO;AAAA,EACX;AAAA,EAEA,OAAO,2BAA2B;AAAA,EAElC;AAAA,EAEA,OAAO,gBAAwB;AAC3B,WAAO;AAAA,EACX;AACJ;AA3DM,qBACa,sBAAsB,CAAC;AADpC,qBAEa,yBAAyB,CAAC;AAF7C,IAAM,sBAAN;AA6DA,IAAM,0BACF,iCAAiC,0CAC3B,sBACA,qCAAAA;AAEH,IAAM,2BAA2B;AACxC,IAAO,gBAAQ;","names":["ContentstackLivePreviewHOC"]}
|
package/dist/legacy/index.d.cts
CHANGED
|
@@ -1,8 +1,23 @@
|
|
|
1
|
-
import ContentstackLivePreview from './preview/contentstack-live-preview-HOC.cjs';
|
|
1
|
+
import ContentstackLivePreview$1 from './preview/contentstack-live-preview-HOC.cjs';
|
|
2
2
|
import { IStackSdk as IStackSdk$1 } from './types/types.cjs';
|
|
3
|
-
import './livePreview/types/onEntryChangeCallback.type.cjs';
|
|
3
|
+
import { OnEntryChangeCallback, OnEntryChangeConfig, OnEntryChangeCallbackUID } from './livePreview/types/onEntryChangeCallback.type.cjs';
|
|
4
|
+
import './visualBuilder/types/collab.types.cjs';
|
|
4
5
|
|
|
5
6
|
type IStackSdk = IStackSdk$1;
|
|
7
|
+
declare class LightLivePreviewHoC {
|
|
8
|
+
private static previewConstructors;
|
|
9
|
+
private static onEntryChangeCallbacks;
|
|
10
|
+
static init(): Promise<{}>;
|
|
11
|
+
private static initializePreview;
|
|
12
|
+
static get hash(): string;
|
|
13
|
+
static get config(): {};
|
|
14
|
+
static isInitialized(): boolean;
|
|
15
|
+
static onEntryChange(callback: OnEntryChangeCallback, config?: OnEntryChangeConfig): OnEntryChangeCallbackUID;
|
|
16
|
+
static onLiveEdit(callback: OnEntryChangeCallback): string;
|
|
17
|
+
static unsubscribeOnEntryChange(): void;
|
|
18
|
+
static getSdkVersion(): string;
|
|
19
|
+
}
|
|
20
|
+
declare const ContentstackLivePreview: typeof LightLivePreviewHoC | typeof ContentstackLivePreview$1;
|
|
6
21
|
declare const VB_EmptyBlockParentClass = "visual-builder__empty-block-parent";
|
|
7
22
|
|
|
8
23
|
export { type IStackSdk, VB_EmptyBlockParentClass, ContentstackLivePreview as default };
|
package/dist/legacy/index.d.ts
CHANGED
|
@@ -1,8 +1,23 @@
|
|
|
1
|
-
import ContentstackLivePreview from './preview/contentstack-live-preview-HOC.js';
|
|
1
|
+
import ContentstackLivePreview$1 from './preview/contentstack-live-preview-HOC.js';
|
|
2
2
|
import { IStackSdk as IStackSdk$1 } from './types/types.js';
|
|
3
|
-
import './livePreview/types/onEntryChangeCallback.type.js';
|
|
3
|
+
import { OnEntryChangeCallback, OnEntryChangeConfig, OnEntryChangeCallbackUID } from './livePreview/types/onEntryChangeCallback.type.js';
|
|
4
|
+
import './visualBuilder/types/collab.types.js';
|
|
4
5
|
|
|
5
6
|
type IStackSdk = IStackSdk$1;
|
|
7
|
+
declare class LightLivePreviewHoC {
|
|
8
|
+
private static previewConstructors;
|
|
9
|
+
private static onEntryChangeCallbacks;
|
|
10
|
+
static init(): Promise<{}>;
|
|
11
|
+
private static initializePreview;
|
|
12
|
+
static get hash(): string;
|
|
13
|
+
static get config(): {};
|
|
14
|
+
static isInitialized(): boolean;
|
|
15
|
+
static onEntryChange(callback: OnEntryChangeCallback, config?: OnEntryChangeConfig): OnEntryChangeCallbackUID;
|
|
16
|
+
static onLiveEdit(callback: OnEntryChangeCallback): string;
|
|
17
|
+
static unsubscribeOnEntryChange(): void;
|
|
18
|
+
static getSdkVersion(): string;
|
|
19
|
+
}
|
|
20
|
+
declare const ContentstackLivePreview: typeof LightLivePreviewHoC | typeof ContentstackLivePreview$1;
|
|
6
21
|
declare const VB_EmptyBlockParentClass = "visual-builder__empty-block-parent";
|
|
7
22
|
|
|
8
23
|
export { type IStackSdk, VB_EmptyBlockParentClass, ContentstackLivePreview as default };
|
package/dist/legacy/index.js
CHANGED
|
@@ -2,8 +2,52 @@ import "./chunk-5WRI5ZAA.js";
|
|
|
2
2
|
|
|
3
3
|
// src/index.ts
|
|
4
4
|
import ContentstackLivePreviewHOC from "./preview/contentstack-live-preview-HOC.js";
|
|
5
|
+
var _LightLivePreviewHoC = class _LightLivePreviewHoC {
|
|
6
|
+
static init() {
|
|
7
|
+
if (typeof window === "undefined") {
|
|
8
|
+
return Promise.resolve(_LightLivePreviewHoC.previewConstructors);
|
|
9
|
+
}
|
|
10
|
+
return _LightLivePreviewHoC.initializePreview();
|
|
11
|
+
}
|
|
12
|
+
static initializePreview() {
|
|
13
|
+
_LightLivePreviewHoC.previewConstructors = {
|
|
14
|
+
livePreview: {},
|
|
15
|
+
visualBuilder: {}
|
|
16
|
+
};
|
|
17
|
+
_LightLivePreviewHoC.onEntryChangeCallbacks = {};
|
|
18
|
+
return Promise.resolve(_LightLivePreviewHoC.previewConstructors);
|
|
19
|
+
}
|
|
20
|
+
static get hash() {
|
|
21
|
+
return "";
|
|
22
|
+
}
|
|
23
|
+
static get config() {
|
|
24
|
+
return {};
|
|
25
|
+
}
|
|
26
|
+
static isInitialized() {
|
|
27
|
+
return false;
|
|
28
|
+
}
|
|
29
|
+
static onEntryChange(callback, config = {}) {
|
|
30
|
+
const { skipInitialRender = false } = config;
|
|
31
|
+
if (!skipInitialRender) {
|
|
32
|
+
callback();
|
|
33
|
+
}
|
|
34
|
+
return "live-preview-id";
|
|
35
|
+
}
|
|
36
|
+
static onLiveEdit(callback) {
|
|
37
|
+
return "live-preview-id";
|
|
38
|
+
}
|
|
39
|
+
static unsubscribeOnEntryChange() {
|
|
40
|
+
}
|
|
41
|
+
static getSdkVersion() {
|
|
42
|
+
return "3.2.0";
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
_LightLivePreviewHoC.previewConstructors = {};
|
|
46
|
+
_LightLivePreviewHoC.onEntryChangeCallbacks = {};
|
|
47
|
+
var LightLivePreviewHoC = _LightLivePreviewHoC;
|
|
48
|
+
var ContentstackLivePreview = process.env.PURGE_PREVIEW_SDK || process.env.REACT_APP_PURGE_PREVIEW_SDK ? LightLivePreviewHoC : ContentstackLivePreviewHOC;
|
|
5
49
|
var VB_EmptyBlockParentClass = "visual-builder__empty-block-parent";
|
|
6
|
-
var index_default =
|
|
50
|
+
var index_default = ContentstackLivePreview;
|
|
7
51
|
export {
|
|
8
52
|
VB_EmptyBlockParentClass,
|
|
9
53
|
index_default as default
|
package/dist/legacy/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["import ContentstackLivePreviewHOC from \"./preview/contentstack-live-preview-HOC\";\
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["import ContentstackLivePreviewHOC from \"./preview/contentstack-live-preview-HOC\";\nimport { IStackSdk as ExternalStackSdkType } from \"./types/types\";\n\nimport {\n OnEntryChangeCallback,\n OnEntryChangeCallbackUID,\n OnEntryChangeConfig,\n} from \"./livePreview/types/onEntryChangeCallback.type\";\n\nexport type IStackSdk = ExternalStackSdkType;\n\nclass LightLivePreviewHoC {\n private static previewConstructors = {};\n private static onEntryChangeCallbacks = {};\n\n static init() {\n if (typeof window === \"undefined\") {\n return Promise.resolve(LightLivePreviewHoC.previewConstructors);\n }\n\n return LightLivePreviewHoC.initializePreview();\n }\n\n private static initializePreview() {\n LightLivePreviewHoC.previewConstructors = {\n livePreview: {},\n visualBuilder: {},\n };\n\n LightLivePreviewHoC.onEntryChangeCallbacks = {};\n\n return Promise.resolve(LightLivePreviewHoC.previewConstructors);\n }\n\n static get hash() {\n return \"\";\n }\n\n static get config() {\n return {};\n }\n\n static isInitialized() {\n return false;\n }\n\n static onEntryChange(\n callback: OnEntryChangeCallback,\n config: OnEntryChangeConfig = {}\n ): OnEntryChangeCallbackUID {\n const { skipInitialRender = false } = config;\n\n if (!skipInitialRender) {\n callback();\n }\n\n return \"live-preview-id\";\n }\n\n static onLiveEdit(callback: OnEntryChangeCallback) {\n return \"live-preview-id\";\n }\n\n static unsubscribeOnEntryChange() {\n // intentionally empty\n }\n\n static getSdkVersion(): string {\n return process?.env?.PACKAGE_VERSION!;\n }\n}\n\nconst ContentstackLivePreview =\n process.env.PURGE_PREVIEW_SDK || process.env.REACT_APP_PURGE_PREVIEW_SDK\n ? LightLivePreviewHoC\n : ContentstackLivePreviewHOC;\n\nexport const VB_EmptyBlockParentClass = \"visual-builder__empty-block-parent\";\nexport default ContentstackLivePreview;\n"],"mappings":";;;AAAA,OAAO,gCAAgC;AAWvC,IAAM,uBAAN,MAAM,qBAAoB;AAAA,EAItB,OAAO,OAAO;AACV,QAAI,OAAO,WAAW,aAAa;AAC/B,aAAO,QAAQ,QAAQ,qBAAoB,mBAAmB;AAAA,IAClE;AAEA,WAAO,qBAAoB,kBAAkB;AAAA,EACjD;AAAA,EAEA,OAAe,oBAAoB;AAC/B,yBAAoB,sBAAsB;AAAA,MACtC,aAAa,CAAC;AAAA,MACd,eAAe,CAAC;AAAA,IACpB;AAEA,yBAAoB,yBAAyB,CAAC;AAE9C,WAAO,QAAQ,QAAQ,qBAAoB,mBAAmB;AAAA,EAClE;AAAA,EAEA,WAAW,OAAO;AACd,WAAO;AAAA,EACX;AAAA,EAEA,WAAW,SAAS;AAChB,WAAO,CAAC;AAAA,EACZ;AAAA,EAEA,OAAO,gBAAgB;AACnB,WAAO;AAAA,EACX;AAAA,EAEA,OAAO,cACH,UACA,SAA8B,CAAC,GACP;AACxB,UAAM,EAAE,oBAAoB,MAAM,IAAI;AAEtC,QAAI,CAAC,mBAAmB;AACpB,eAAS;AAAA,IACb;AAEA,WAAO;AAAA,EACX;AAAA,EAEA,OAAO,WAAW,UAAiC;AAC/C,WAAO;AAAA,EACX;AAAA,EAEA,OAAO,2BAA2B;AAAA,EAElC;AAAA,EAEA,OAAO,gBAAwB;AAC3B,WAAO;AAAA,EACX;AACJ;AA3DM,qBACa,sBAAsB,CAAC;AADpC,qBAEa,yBAAyB,CAAC;AAF7C,IAAM,sBAAN;AA6DA,IAAM,0BACF,iCAAiC,0CAC3B,sBACA;AAEH,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.
|
|
92
|
+
sdkVersion: "3.2.0",
|
|
93
93
|
mode: import_configManager.default.get().mode
|
|
94
94
|
}
|
|
95
95
|
}
|
|
@@ -227,7 +227,7 @@ var _ContentstackLivePreview = class _ContentstackLivePreview {
|
|
|
227
227
|
* @returns The version of the SDK as a string.
|
|
228
228
|
*/
|
|
229
229
|
static getSdkVersion() {
|
|
230
|
-
return "3.
|
|
230
|
+
return "3.2.0";
|
|
231
231
|
}
|
|
232
232
|
};
|
|
233
233
|
_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;
|
|
@@ -195,7 +195,7 @@ var _ContentstackLivePreview = class _ContentstackLivePreview {
|
|
|
195
195
|
* @returns The version of the SDK as a string.
|
|
196
196
|
*/
|
|
197
197
|
static getSdkVersion() {
|
|
198
|
-
return "3.
|
|
198
|
+
return "3.2.0";
|
|
199
199
|
}
|
|
200
200
|
};
|
|
201
201
|
_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":["
|
|
1
|
+
{"version":3,"sources":["../../../src/types/types.ts"],"sourcesContent":["import { ICollabConfig } 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 editInVisualBuilderButton: IConfigEditInVisualBuilderButton;\n mode: ILivePreviewModeConfig;\n elements: {\n highlightedElement: HTMLElement | null;\n };\n collab: ICollabConfig[\"collab\"];\n}\n\n\nexport declare interface IConfigEditInVisualBuilderButton {\n enable: boolean;\n position?:\n | \"top-left\"\n | \"top-right\"\n | \"bottom-left\"\n | \"bottom-right\"\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 editInVisualBuilderButton: IConfigEditInVisualBuilderButton;\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?: ICollabConfig[\"collab\"];\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;AAuDO,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 { ICollabConfig } 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
|
}
|
|
@@ -76,6 +79,7 @@ declare interface IConfig {
|
|
|
76
79
|
elements: {
|
|
77
80
|
highlightedElement: HTMLElement | null;
|
|
78
81
|
};
|
|
82
|
+
collab: ICollabConfig["collab"];
|
|
79
83
|
}
|
|
80
84
|
declare interface IConfigEditInVisualBuilderButton {
|
|
81
85
|
enable: boolean;
|
|
@@ -115,6 +119,7 @@ interface IVisualBuilderInitEvent {
|
|
|
115
119
|
stackDetails: {
|
|
116
120
|
masterLocale: string;
|
|
117
121
|
};
|
|
122
|
+
collab?: ICollabConfig["collab"];
|
|
118
123
|
}
|
|
119
124
|
type IExportedConfig = Pick<IConfig, "ssr" | "enable" | "cleanCslpOnProduction" | "stackDetails" | "clientUrlParams" | "windowType" | "hash" | "editButton" | "mode">;
|
|
120
125
|
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { ICollabConfig } 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
|
}
|
|
@@ -76,6 +79,7 @@ declare interface IConfig {
|
|
|
76
79
|
elements: {
|
|
77
80
|
highlightedElement: HTMLElement | null;
|
|
78
81
|
};
|
|
82
|
+
collab: ICollabConfig["collab"];
|
|
79
83
|
}
|
|
80
84
|
declare interface IConfigEditInVisualBuilderButton {
|
|
81
85
|
enable: boolean;
|
|
@@ -115,6 +119,7 @@ interface IVisualBuilderInitEvent {
|
|
|
115
119
|
stackDetails: {
|
|
116
120
|
masterLocale: string;
|
|
117
121
|
};
|
|
122
|
+
collab?: ICollabConfig["collab"];
|
|
118
123
|
}
|
|
119
124
|
type IExportedConfig = Pick<IConfig, "ssr" | "enable" | "cleanCslpOnProduction" | "stackDetails" | "clientUrlParams" | "windowType" | "hash" | "editButton" | "mode">;
|
|
120
125
|
|
|
@@ -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":["
|
|
1
|
+
{"version":3,"sources":["../../../src/types/types.ts"],"sourcesContent":["import { ICollabConfig } 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 editInVisualBuilderButton: IConfigEditInVisualBuilderButton;\n mode: ILivePreviewModeConfig;\n elements: {\n highlightedElement: HTMLElement | null;\n };\n collab: ICollabConfig[\"collab\"];\n}\n\n\nexport declare interface IConfigEditInVisualBuilderButton {\n enable: boolean;\n position?:\n | \"top-left\"\n | \"top-right\"\n | \"bottom-left\"\n | \"bottom-right\"\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 editInVisualBuilderButton: IConfigEditInVisualBuilderButton;\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?: ICollabConfig[\"collab\"];\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":";;;AAuDO,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"]}
|