@gxpl/sdk 0.0.7 → 0.0.8
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/{dist → lib}/index.d.ts +3 -4
- package/lib/sdk/FontFaceGenerator/FontFaceGenerator.js +28 -0
- package/lib/sdk/ScrollPlaybackVideoManager/ScrollPlaybackVideoManager.js +221 -0
- package/lib/sdk/VideoDecoder/VideoDecoder.js +184 -0
- package/{dist → lib}/sdk/schemas/article/Article.schema.d.ts +12 -12
- package/{dist → lib}/sdk/schemas/article/ItemBase.schema.d.ts +10 -10
- package/{dist → lib}/sdk/schemas/article/RichTextItem.schema.d.ts +30 -30
- package/{dist → lib}/sdk/schemas/article/Section.schema.d.ts +3 -3
- package/{dist → lib}/sdk/types/component/Component.d.ts +1 -1
- package/{dist → lib}/sdk/types/keyframe/Keyframe.d.ts +1 -1
- package/lib/sdk/types/project/Meta.js +2 -0
- package/lib/sdk/types/project/Page.js +2 -0
- package/lib/sdk/types/project/Project.js +2 -0
- package/lib/sdk-nextjs/common/useCurrentLayout.js +42 -0
- package/lib/sdk-nextjs/common/useExemplary.js +13 -0
- package/lib/sdk-nextjs/common/useItemFXData.js +36 -0
- package/lib/sdk-nextjs/common/useKeyframeValue.js +75 -0
- package/lib/sdk-nextjs/common/useRegisterResize.js +22 -0
- package/lib/sdk-nextjs/components/Article.js +41 -0
- package/lib/sdk-nextjs/components/ArticleWrapper.js +12 -0
- package/lib/sdk-nextjs/components/Head.js +32 -0
- package/lib/sdk-nextjs/components/Page.js +20 -0
- package/{dist → lib}/sdk-nextjs/components/ScrollPlaybackVideo.d.ts +1 -1
- package/lib/sdk-nextjs/components/ScrollPlaybackVideo.js +46 -0
- package/lib/sdk-nextjs/components/Section/Section.js +85 -0
- package/lib/sdk-nextjs/components/Section/SectionImage.js +24 -0
- package/lib/sdk-nextjs/components/Section/SectionVideo.js +91 -0
- package/lib/sdk-nextjs/components/Section/useSectionHeightMap.js +20 -0
- package/lib/sdk-nextjs/components/items/CodeEmbedItem/CodeEmbedItem.js +120 -0
- package/lib/sdk-nextjs/components/items/CodeEmbedItem/useCodeEmbedItem.js +24 -0
- package/lib/sdk-nextjs/components/items/ComponentItem/ComponentItem.js +51 -0
- package/lib/sdk-nextjs/components/items/ComponentItem/useComponentItem.js +25 -0
- package/lib/sdk-nextjs/components/items/CompoundItem/CompoundChild.js +102 -0
- package/lib/sdk-nextjs/components/items/CompoundItem/CompoundItem.js +53 -0
- package/lib/sdk-nextjs/components/items/CompoundItem/useCompoundItem.js +16 -0
- package/lib/sdk-nextjs/components/items/CustomItem/CustomItem.js +40 -0
- package/{dist → lib}/sdk-nextjs/components/items/EmbedVideoItem/VimeoEmbed.d.ts +2 -2
- package/lib/sdk-nextjs/components/items/EmbedVideoItem/VimeoEmbed.js +170 -0
- package/lib/sdk-nextjs/components/items/EmbedVideoItem/YoutubeEmbed.js +166 -0
- package/lib/sdk-nextjs/components/items/EmbedVideoItem/useEmbedVideoItem.js +29 -0
- package/lib/sdk-nextjs/components/items/FileItem/ImageItem.js +140 -0
- package/lib/sdk-nextjs/components/items/FileItem/VideoItem.js +227 -0
- package/{dist → lib}/sdk-nextjs/components/items/FileItem/useFileItem.d.ts +1 -1
- package/lib/sdk-nextjs/components/items/FileItem/useFileItem.js +48 -0
- package/lib/sdk-nextjs/components/items/GroupItem/GroupItem.js +55 -0
- package/lib/sdk-nextjs/components/items/GroupItem/useGroupItem.js +22 -0
- package/lib/sdk-nextjs/components/items/Item.js +175 -0
- package/{dist → lib}/sdk-nextjs/components/items/LinkWrapper.d.ts +1 -1
- package/lib/sdk-nextjs/components/items/LinkWrapper.js +27 -0
- package/lib/sdk-nextjs/components/items/RectangleItem/RectangleItem.js +130 -0
- package/lib/sdk-nextjs/components/items/RectangleItem/useRectangleItem.js +54 -0
- package/lib/sdk-nextjs/components/items/RichTextItem/RichTextItem.js +83 -0
- package/lib/sdk-nextjs/components/items/RichTextItem/useRichTextItem.js +12 -0
- package/lib/sdk-nextjs/components/items/RichTextWrapper.js +10 -0
- package/lib/sdk-nextjs/components/items/itemsMap.js +28 -0
- package/lib/sdk-nextjs/components/items/useDraggable.js +177 -0
- package/lib/sdk-nextjs/components/items/useItemAngle.js +10 -0
- package/lib/sdk-nextjs/components/items/useItemArea.js +21 -0
- package/lib/sdk-nextjs/components/items/useItemPointerEvents.js +23 -0
- package/lib/sdk-nextjs/components/items/useItemScale.js +12 -0
- package/lib/sdk-nextjs/components/items/useItemTriggers.js +16 -0
- package/lib/sdk-nextjs/components/items/useRichTextItemValues.js +38 -0
- package/lib/sdk-nextjs/components/items/useSizing.js +22 -0
- package/lib/sdk-nextjs/components/items/useStickyItemTop.js +17 -0
- package/lib/sdk-nextjs/components/useLayoutContext.js +9 -0
- package/{dist → lib}/sdk-nextjs/interactions/CSSPropertyNameMap.d.ts +2 -2
- package/lib/sdk-nextjs/interactions/CSSPropertyNameMap.js +38 -0
- package/lib/sdk-nextjs/interactions/InteractionsRegistry.js +355 -0
- package/lib/sdk-nextjs/interactions/ItemInteractionCtrl.js +72 -0
- package/lib/sdk-nextjs/interactions/getTransition.js +20 -0
- package/{dist → lib}/sdk-nextjs/interactions/types.d.ts +3 -3
- package/lib/sdk-nextjs/interactions/useItemInteractionCtrl.js +16 -0
- package/{dist → lib}/sdk-nextjs/provider/ArticleRectContext.d.ts +1 -1
- package/lib/sdk-nextjs/provider/ArticleRectContext.js +5 -0
- package/{dist → lib}/sdk-nextjs/provider/CntrlContext.d.ts +1 -1
- package/lib/sdk-nextjs/provider/CntrlContext.js +6 -0
- package/lib/sdk-nextjs/provider/CntrlProvider.js +10 -0
- package/lib/sdk-nextjs/provider/CntrlSdkContext.js +76 -0
- package/lib/sdk-nextjs/provider/CustomItemRegistry.js +16 -0
- package/{dist → lib}/sdk-nextjs/provider/CustomSectionRegistry.d.ts +1 -1
- package/lib/sdk-nextjs/provider/CustomSectionRegistry.js +21 -0
- package/{dist → lib}/sdk-nextjs/provider/InteractionsContext.d.ts +1 -1
- package/lib/sdk-nextjs/provider/InteractionsContext.js +52 -0
- package/{dist → lib}/sdk-nextjs/provider/Keyframes.d.ts +1 -1
- package/lib/sdk-nextjs/provider/Keyframes.js +12 -0
- package/lib/sdk-nextjs/provider/KeyframesContext.d.ts +2 -0
- package/lib/sdk-nextjs/provider/KeyframesContext.js +6 -0
- package/lib/sdk-nextjs/provider/LayoutContext.d.ts +1 -0
- package/lib/sdk-nextjs/provider/LayoutContext.js +5 -0
- package/{dist → lib}/sdk-nextjs/provider/WebGLContextManagerContext.d.ts +1 -1
- package/lib/sdk-nextjs/provider/WebGLContextManagerContext.js +6 -0
- package/lib/sdk-nextjs/provider/defaultContext.js +9 -0
- package/lib/sdk-nextjs/provider/useCntrlContext.js +9 -0
- package/lib/sdk-nextjs/utils/Animator/Animator.js +443 -0
- package/lib/sdk-nextjs/utils/ArticleRectManager/ArticleRectObserver.js +88 -0
- package/lib/sdk-nextjs/utils/ArticleRectManager/useArticleRectObserver.js +18 -0
- package/lib/sdk-nextjs/utils/ArticleRectManager/useSectionRegistry.js +14 -0
- package/lib/sdk-nextjs/utils/EventEmitter.js +37 -0
- package/lib/sdk-nextjs/utils/RichTextConverter/RichTextConverter.js +288 -0
- package/lib/sdk-nextjs/utils/ScaleAnchorMap.js +15 -0
- package/lib/sdk-nextjs/utils/Youtube/YouTubeIframeApiLoader.js +64 -0
- package/lib/sdk-nextjs/utils/Youtube/YoutubeIframeApi.js +12 -0
- package/lib/sdk-nextjs/utils/Youtube/useYouTubeIframeApi.js +13 -0
- package/lib/sdk-nextjs/utils/areFillsVisible/areFillsVisible.js +22 -0
- package/lib/sdk-nextjs/utils/binSearchInsertAt.js +35 -0
- package/lib/sdk-nextjs/utils/checkOverflowClipSupport.js +18 -0
- package/lib/sdk-nextjs/utils/effects/useImageFx.js +114 -0
- package/lib/sdk-nextjs/utils/effects/useVideoFx.js +117 -0
- package/lib/sdk-nextjs/utils/getAnchoredItemTop.js +14 -0
- package/lib/sdk-nextjs/utils/getCompoundBoundaryStyles.js +60 -0
- package/lib/sdk-nextjs/utils/getFill.js +42 -0
- package/lib/sdk-nextjs/utils/getFontFamilyValue.js +6 -0
- package/lib/sdk-nextjs/utils/getItemTopStyle.js +17 -0
- package/lib/sdk-nextjs/utils/getStyleFromItemStateAndParams.js +8 -0
- package/lib/sdk-nextjs/utils/getValidYoutubeUrl.js +33 -0
- package/lib/sdk-nextjs/utils/isItemType.js +6 -0
- package/lib/sdk-nextjs/utils/rangeMap.js +11 -0
- package/lib/sdk-nextjs/utils/useElementRect.js +24 -0
- package/lib/utils.js +30 -0
- package/package.json +3 -3
- package/dist/cli.js +0 -64
- package/dist/index.js +0 -7765
- package/dist/index.mjs +0 -7748
- package/dist/sdk/Client/Client.test.d.ts +0 -1
- package/dist/sdk/Client/__mock__/articleMock.d.ts +0 -2
- package/dist/sdk/Client/__mock__/keyframesMock.d.ts +0 -2
- package/dist/sdk/Client/__mock__/projectMock.d.ts +0 -2
- package/dist/sdk/Components/ControlSlider/ControlSlider.d.ts +0 -90
- package/dist/sdk/Components/ControlSlider/ControlSliderComponent.d.ts +0 -519
- package/dist/sdk/Components/ImageRevealSlider/ControlImageRevealSliderComponent.d.ts +0 -209
- package/dist/sdk/Components/ImageRevealSlider/ImageRevealSlider.d.ts +0 -38
- package/dist/sdk/Components/components.d.ts +0 -2
- package/dist/sdk/Components/helpers/RichTextRenderer/RichTextRenderer.d.ts +0 -6
- package/dist/sdk/Components/helpers/SvgImage/SvgImage.d.ts +0 -9
- package/dist/sdk/Components/utils/scalingValue.d.ts +0 -1
- package/dist/sdk/FontFaceGenerator/FontFaceGenerator.test.d.ts +0 -1
- package/dist/sdk/schemas/shared/FillLayer.schema.d.ts +0 -186
- package/dist/sdk-nextjs/components/LayoutStyle.d.ts +0 -9
- package/dist/sdk-nextjs/components/Section/useSectionColor.d.ts +0 -4
- package/dist/sdk-nextjs/provider/KeyframesContext.d.ts +0 -2
- package/dist/sdk-nextjs/provider/LayoutContext.d.ts +0 -1
- package/dist/sdk-nextjs/utils/StickyManager/StickyManager.d.ts +0 -10
- package/dist/sdk-nextjs/utils/areFillsVisible/areFillsVisible.test.d.ts +0 -1
- package/dist/sdk-nextjs/utils/castObject.d.ts +0 -5
- package/dist/sdk-nextjs/utils/getInvertedRanges.d.ts +0 -10
- package/dist/sdk.css +0 -1
- /package/{dist → lib}/cli.d.ts +0 -0
- /package/{dist → lib}/sdk/Client/Client.d.ts +0 -0
- /package/{dist → lib}/sdk/Client/Client.js +0 -0
- /package/{dist → lib}/sdk/FontFaceGenerator/FontFaceGenerator.d.ts +0 -0
- /package/{dist → lib}/sdk/ScrollPlaybackVideoManager/ScrollPlaybackVideoManager.d.ts +0 -0
- /package/{dist → lib}/sdk/VideoDecoder/VideoDecoder.d.ts +0 -0
- /package/{dist → lib}/sdk/schemas/article/Article.schema.js +0 -0
- /package/{dist → lib}/sdk/schemas/article/FillLayer.schema.d.ts +0 -0
- /package/{dist → lib}/sdk/schemas/article/FillLayer.schema.js +0 -0
- /package/{dist → lib}/sdk/schemas/article/Interaction.schema.d.ts +0 -0
- /package/{dist → lib}/sdk/schemas/article/Interaction.schema.js +0 -0
- /package/{dist → lib}/sdk/schemas/article/Item.schema.d.ts +0 -0
- /package/{dist → lib}/sdk/schemas/article/Item.schema.js +0 -0
- /package/{dist → lib}/sdk/schemas/article/ItemArea.schema.d.ts +0 -0
- /package/{dist → lib}/sdk/schemas/article/ItemArea.schema.js +0 -0
- /package/{dist → lib}/sdk/schemas/article/ItemBase.schema.js +0 -0
- /package/{dist → lib}/sdk/schemas/article/ItemState.schema.d.ts +0 -0
- /package/{dist → lib}/sdk/schemas/article/ItemState.schema.js +0 -0
- /package/{dist → lib}/sdk/schemas/article/RichTextItem.schema.js +0 -0
- /package/{dist → lib}/sdk/schemas/article/Section.schema.js +0 -0
- /package/{dist → lib}/sdk/schemas/keyframe/Keyframes.schema.d.ts +0 -0
- /package/{dist → lib}/sdk/schemas/keyframe/Keyframes.schema.js +0 -0
- /package/{dist → lib}/sdk/schemas/project/Layout.schema.d.ts +0 -0
- /package/{dist → lib}/sdk/schemas/project/Layout.schema.js +0 -0
- /package/{dist → lib}/sdk/schemas/project/Project.schema.d.ts +0 -0
- /package/{dist → lib}/sdk/schemas/project/Project.schema.js +0 -0
- /package/{dist → lib}/sdk/types/article/Article.d.ts +0 -0
- /package/{dist/sdk/types/article/FX.js → lib/sdk/types/article/Article.js} +0 -0
- /package/{dist → lib}/sdk/types/article/ArticleItemType.d.ts +0 -0
- /package/{dist → lib}/sdk/types/article/ArticleItemType.js +0 -0
- /package/{dist → lib}/sdk/types/article/CompoundSettings.d.ts +0 -0
- /package/{dist/sdk/types/article/Interaction.js → lib/sdk/types/article/CompoundSettings.js} +0 -0
- /package/{dist → lib}/sdk/types/article/FX.d.ts +0 -0
- /package/{dist/sdk/types/project/Layout.js → lib/sdk/types/article/FX.js} +0 -0
- /package/{dist → lib}/sdk/types/article/Interaction.d.ts +0 -0
- /package/{dist/sdk/types/project/Meta.js → lib/sdk/types/article/Interaction.js} +0 -0
- /package/{dist → lib}/sdk/types/article/Item.d.ts +0 -0
- /package/{dist → lib}/sdk/types/article/Item.js +0 -0
- /package/{dist → lib}/sdk/types/article/ItemArea.d.ts +0 -0
- /package/{dist → lib}/sdk/types/article/ItemArea.js +0 -0
- /package/{dist → lib}/sdk/types/article/ItemState.d.ts +0 -0
- /package/{dist → lib}/sdk/types/article/ItemState.js +0 -0
- /package/{dist → lib}/sdk/types/article/RichText.d.ts +0 -0
- /package/{dist → lib}/sdk/types/article/RichText.js +0 -0
- /package/{dist → lib}/sdk/types/article/Section.d.ts +0 -0
- /package/{dist → lib}/sdk/types/article/Section.js +0 -0
- /package/{dist/sdk/types/project/Page.js → lib/sdk/types/component/Component.js} +0 -0
- /package/{dist → lib}/sdk/types/keyframe/Keyframe.js +0 -0
- /package/{dist → lib}/sdk/types/project/Fonts.d.ts +0 -0
- /package/{dist → lib}/sdk/types/project/Fonts.js +0 -0
- /package/{dist → lib}/sdk/types/project/Layout.d.ts +0 -0
- /package/{dist/sdk/types/project/Project.js → lib/sdk/types/project/Layout.js} +0 -0
- /package/{dist → lib}/sdk/types/project/Meta.d.ts +0 -0
- /package/{dist → lib}/sdk/types/project/Page.d.ts +0 -0
- /package/{dist → lib}/sdk/types/project/Project.d.ts +0 -0
- /package/{dist → lib}/sdk-nextjs/common/useCurrentLayout.d.ts +0 -0
- /package/{dist → lib}/sdk-nextjs/common/useExemplary.d.ts +0 -0
- /package/{dist → lib}/sdk-nextjs/common/useItemFXData.d.ts +0 -0
- /package/{dist → lib}/sdk-nextjs/common/useKeyframeValue.d.ts +0 -0
- /package/{dist → lib}/sdk-nextjs/common/useRegisterResize.d.ts +0 -0
- /package/{dist → lib}/sdk-nextjs/components/Article.d.ts +0 -0
- /package/{dist → lib}/sdk-nextjs/components/ArticleWrapper.d.ts +0 -0
- /package/{dist → lib}/sdk-nextjs/components/Head.d.ts +0 -0
- /package/{dist → lib}/sdk-nextjs/components/Page.d.ts +0 -0
- /package/{dist → lib}/sdk-nextjs/components/Section/Section.d.ts +0 -0
- /package/{dist → lib}/sdk-nextjs/components/Section/SectionImage.d.ts +0 -0
- /package/{dist → lib}/sdk-nextjs/components/Section/SectionVideo.d.ts +0 -0
- /package/{dist → lib}/sdk-nextjs/components/Section/useSectionHeightMap.d.ts +0 -0
- /package/{dist → lib}/sdk-nextjs/components/items/CodeEmbedItem/CodeEmbedItem.d.ts +0 -0
- /package/{dist → lib}/sdk-nextjs/components/items/CodeEmbedItem/useCodeEmbedItem.d.ts +0 -0
- /package/{dist → lib}/sdk-nextjs/components/items/ComponentItem/ComponentItem.d.ts +0 -0
- /package/{dist → lib}/sdk-nextjs/components/items/ComponentItem/useComponentItem.d.ts +0 -0
- /package/{dist → lib}/sdk-nextjs/components/items/CompoundItem/CompoundChild.d.ts +0 -0
- /package/{dist → lib}/sdk-nextjs/components/items/CompoundItem/CompoundItem.d.ts +0 -0
- /package/{dist → lib}/sdk-nextjs/components/items/CompoundItem/useCompoundItem.d.ts +0 -0
- /package/{dist → lib}/sdk-nextjs/components/items/CustomItem/CustomItem.d.ts +0 -0
- /package/{dist → lib}/sdk-nextjs/components/items/EmbedVideoItem/YoutubeEmbed.d.ts +0 -0
- /package/{dist → lib}/sdk-nextjs/components/items/EmbedVideoItem/useEmbedVideoItem.d.ts +0 -0
- /package/{dist → lib}/sdk-nextjs/components/items/FileItem/ImageItem.d.ts +0 -0
- /package/{dist → lib}/sdk-nextjs/components/items/FileItem/VideoItem.d.ts +0 -0
- /package/{dist → lib}/sdk-nextjs/components/items/GroupItem/GroupItem.d.ts +0 -0
- /package/{dist → lib}/sdk-nextjs/components/items/GroupItem/useGroupItem.d.ts +0 -0
- /package/{dist → lib}/sdk-nextjs/components/items/Item.d.ts +0 -0
- /package/{dist → lib}/sdk-nextjs/components/items/RectangleItem/RectangleItem.d.ts +0 -0
- /package/{dist → lib}/sdk-nextjs/components/items/RectangleItem/useRectangleItem.d.ts +0 -0
- /package/{dist → lib}/sdk-nextjs/components/items/RichTextItem/RichTextItem.d.ts +0 -0
- /package/{dist → lib}/sdk-nextjs/components/items/RichTextItem/useRichTextItem.d.ts +0 -0
- /package/{dist → lib}/sdk-nextjs/components/items/RichTextWrapper.d.ts +0 -0
- /package/{dist → lib}/sdk-nextjs/components/items/itemsMap.d.ts +0 -0
- /package/{dist → lib}/sdk-nextjs/components/items/useDraggable.d.ts +0 -0
- /package/{dist → lib}/sdk-nextjs/components/items/useItemAngle.d.ts +0 -0
- /package/{dist → lib}/sdk-nextjs/components/items/useItemArea.d.ts +0 -0
- /package/{dist → lib}/sdk-nextjs/components/items/useItemPointerEvents.d.ts +0 -0
- /package/{dist → lib}/sdk-nextjs/components/items/useItemScale.d.ts +0 -0
- /package/{dist → lib}/sdk-nextjs/components/items/useItemTriggers.d.ts +0 -0
- /package/{dist → lib}/sdk-nextjs/components/items/useRichTextItemValues.d.ts +0 -0
- /package/{dist → lib}/sdk-nextjs/components/items/useSizing.d.ts +0 -0
- /package/{dist → lib}/sdk-nextjs/components/items/useStickyItemTop.d.ts +0 -0
- /package/{dist → lib}/sdk-nextjs/components/useLayoutContext.d.ts +0 -0
- /package/{dist → lib}/sdk-nextjs/interactions/InteractionsRegistry.d.ts +0 -0
- /package/{dist → lib}/sdk-nextjs/interactions/ItemInteractionCtrl.d.ts +0 -0
- /package/{dist → lib}/sdk-nextjs/interactions/getTransition.d.ts +0 -0
- /package/{dist/sdk/types/article/Article.js → lib/sdk-nextjs/interactions/types.js} +0 -0
- /package/{dist → lib}/sdk-nextjs/interactions/useItemInteractionCtrl.d.ts +0 -0
- /package/{dist → lib}/sdk-nextjs/provider/CntrlProvider.d.ts +0 -0
- /package/{dist → lib}/sdk-nextjs/provider/CntrlSdkContext.d.ts +0 -0
- /package/{dist → lib}/sdk-nextjs/provider/CustomItemRegistry.d.ts +0 -0
- /package/{dist → lib}/sdk-nextjs/provider/CustomItemTypes.d.ts +0 -0
- /package/{dist/sdk/types/article/CompoundSettings.js → lib/sdk-nextjs/provider/CustomItemTypes.js} +0 -0
- /package/{dist → lib}/sdk-nextjs/provider/defaultContext.d.ts +0 -0
- /package/{dist → lib}/sdk-nextjs/provider/useCntrlContext.d.ts +0 -0
- /package/{dist → lib}/sdk-nextjs/utils/Animator/Animator.d.ts +0 -0
- /package/{dist → lib}/sdk-nextjs/utils/ArticleRectManager/ArticleRectObserver.d.ts +0 -0
- /package/{dist → lib}/sdk-nextjs/utils/ArticleRectManager/useArticleRectObserver.d.ts +0 -0
- /package/{dist → lib}/sdk-nextjs/utils/ArticleRectManager/useSectionRegistry.d.ts +0 -0
- /package/{dist → lib}/sdk-nextjs/utils/EventEmitter.d.ts +0 -0
- /package/{dist → lib}/sdk-nextjs/utils/RichTextConverter/RichTextConverter.d.ts +0 -0
- /package/{dist → lib}/sdk-nextjs/utils/ScaleAnchorMap.d.ts +0 -0
- /package/{dist → lib}/sdk-nextjs/utils/Youtube/YouTubeIframeApiLoader.d.ts +0 -0
- /package/{dist → lib}/sdk-nextjs/utils/Youtube/YoutubeIframeApi.d.ts +0 -0
- /package/{dist → lib}/sdk-nextjs/utils/Youtube/useYouTubeIframeApi.d.ts +0 -0
- /package/{dist → lib}/sdk-nextjs/utils/areFillsVisible/areFillsVisible.d.ts +0 -0
- /package/{dist → lib}/sdk-nextjs/utils/binSearchInsertAt.d.ts +0 -0
- /package/{dist → lib}/sdk-nextjs/utils/checkOverflowClipSupport.d.ts +0 -0
- /package/{dist → lib}/sdk-nextjs/utils/effects/useImageFx.d.ts +0 -0
- /package/{dist → lib}/sdk-nextjs/utils/effects/useVideoFx.d.ts +0 -0
- /package/{dist → lib}/sdk-nextjs/utils/getAnchoredItemTop.d.ts +0 -0
- /package/{dist → lib}/sdk-nextjs/utils/getCompoundBoundaryStyles.d.ts +0 -0
- /package/{dist → lib}/sdk-nextjs/utils/getFill.d.ts +0 -0
- /package/{dist → lib}/sdk-nextjs/utils/getFontFamilyValue.d.ts +0 -0
- /package/{dist → lib}/sdk-nextjs/utils/getItemTopStyle.d.ts +0 -0
- /package/{dist → lib}/sdk-nextjs/utils/getStyleFromItemStateAndParams.d.ts +0 -0
- /package/{dist → lib}/sdk-nextjs/utils/getValidYoutubeUrl.d.ts +0 -0
- /package/{dist → lib}/sdk-nextjs/utils/isItemType.d.ts +0 -0
- /package/{dist → lib}/sdk-nextjs/utils/rangeMap.d.ts +0 -0
- /package/{dist → lib}/sdk-nextjs/utils/useElementRect.d.ts +0 -0
- /package/{dist → lib}/utils.d.ts +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
interface SliderProps {
|
|
2
|
-
settings: SliderSettings;
|
|
3
|
-
content: SliderItem[];
|
|
4
|
-
styles: SliderStyles;
|
|
5
|
-
isEditor?: boolean;
|
|
6
|
-
}
|
|
7
|
-
export declare function ControlSlider({ settings, content, styles: sliderStyles, isEditor }: SliderProps): JSX.Element;
|
|
8
|
-
type SliderItem = {
|
|
9
|
-
image: {
|
|
10
|
-
url: string;
|
|
11
|
-
name?: string;
|
|
12
|
-
objectFit?: 'cover' | 'contain';
|
|
13
|
-
};
|
|
14
|
-
imageCaption: any[];
|
|
15
|
-
};
|
|
16
|
-
type Offset = {
|
|
17
|
-
x: number;
|
|
18
|
-
y: number;
|
|
19
|
-
};
|
|
20
|
-
type SliderControls = {
|
|
21
|
-
arrowsImgUrl: string | null;
|
|
22
|
-
isActive: boolean;
|
|
23
|
-
color: string;
|
|
24
|
-
hover: string;
|
|
25
|
-
offset: Offset;
|
|
26
|
-
scale: number;
|
|
27
|
-
};
|
|
28
|
-
type SliderPagination = {
|
|
29
|
-
position: 'outside-1' | 'outside-2' | 'inside-1' | 'inside-2';
|
|
30
|
-
isActive: boolean;
|
|
31
|
-
scale: number;
|
|
32
|
-
offset: Offset;
|
|
33
|
-
colors: string[];
|
|
34
|
-
hover: string;
|
|
35
|
-
};
|
|
36
|
-
type Alignment = 'top-left' | 'top-center' | 'top-right' | 'middle-left' | 'middle-center' | 'middle-right' | 'bottom-left' | 'bottom-center' | 'bottom-right';
|
|
37
|
-
type SliderCaption = {
|
|
38
|
-
alignment: Alignment;
|
|
39
|
-
isActive: boolean;
|
|
40
|
-
color: string;
|
|
41
|
-
offset: Offset;
|
|
42
|
-
hover: string;
|
|
43
|
-
};
|
|
44
|
-
type Triggers = {
|
|
45
|
-
triggersList: {
|
|
46
|
-
click: boolean;
|
|
47
|
-
drag: boolean;
|
|
48
|
-
};
|
|
49
|
-
autoPlay: string | null;
|
|
50
|
-
};
|
|
51
|
-
type SliderSettings = {
|
|
52
|
-
controls: SliderControls;
|
|
53
|
-
pagination: SliderPagination;
|
|
54
|
-
direction: 'horiz' | 'vert';
|
|
55
|
-
transition: {
|
|
56
|
-
type: 'slide' | 'fade in';
|
|
57
|
-
duration: string;
|
|
58
|
-
backgroundColor: string | null;
|
|
59
|
-
};
|
|
60
|
-
caption: SliderCaption;
|
|
61
|
-
triggers: Triggers;
|
|
62
|
-
};
|
|
63
|
-
type CaptionStyles = {
|
|
64
|
-
fontSettings: {
|
|
65
|
-
fontFamily: string;
|
|
66
|
-
fontWeight: number;
|
|
67
|
-
fontStyle: string;
|
|
68
|
-
};
|
|
69
|
-
widthSettings: {
|
|
70
|
-
width: number;
|
|
71
|
-
sizing: 'auto' | 'manual';
|
|
72
|
-
};
|
|
73
|
-
letterSpacing: number;
|
|
74
|
-
textAlign: 'left' | 'center' | 'right';
|
|
75
|
-
wordSpacing: number;
|
|
76
|
-
fontSizeLineHeight: {
|
|
77
|
-
fontSize: number;
|
|
78
|
-
lineHeight: number;
|
|
79
|
-
};
|
|
80
|
-
textAppearance: {
|
|
81
|
-
textTransform: 'none' | 'uppercase' | 'lowercase';
|
|
82
|
-
textDecoration: 'none' | 'underline';
|
|
83
|
-
fontVariant: 'normal' | 'small-caps';
|
|
84
|
-
};
|
|
85
|
-
color: string;
|
|
86
|
-
};
|
|
87
|
-
type SliderStyles = {
|
|
88
|
-
caption: CaptionStyles;
|
|
89
|
-
};
|
|
90
|
-
export {};
|
|
@@ -1,519 +0,0 @@
|
|
|
1
|
-
import { ControlSlider } from './ControlSlider';
|
|
2
|
-
export declare const ControlSliderComponent: {
|
|
3
|
-
element: typeof ControlSlider;
|
|
4
|
-
id: string;
|
|
5
|
-
name: string;
|
|
6
|
-
preview: {
|
|
7
|
-
type: "video";
|
|
8
|
-
url: string;
|
|
9
|
-
};
|
|
10
|
-
defaultSize: {
|
|
11
|
-
width: number;
|
|
12
|
-
height: number;
|
|
13
|
-
};
|
|
14
|
-
schema: {
|
|
15
|
-
type: string;
|
|
16
|
-
properties: {
|
|
17
|
-
settings: {
|
|
18
|
-
layoutBased: boolean;
|
|
19
|
-
type: string;
|
|
20
|
-
properties: {
|
|
21
|
-
triggers: {
|
|
22
|
-
name: string;
|
|
23
|
-
icon: string;
|
|
24
|
-
tooltip: string;
|
|
25
|
-
type: string;
|
|
26
|
-
properties: {
|
|
27
|
-
triggersList: {
|
|
28
|
-
type: string;
|
|
29
|
-
display: {
|
|
30
|
-
type: string;
|
|
31
|
-
};
|
|
32
|
-
properties: {
|
|
33
|
-
click: {
|
|
34
|
-
type: string;
|
|
35
|
-
};
|
|
36
|
-
drag: {
|
|
37
|
-
type: string;
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
autoPlay: {
|
|
42
|
-
type: string[];
|
|
43
|
-
label: string;
|
|
44
|
-
display: {
|
|
45
|
-
type: string;
|
|
46
|
-
};
|
|
47
|
-
enum: (string | null)[];
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
|
-
};
|
|
51
|
-
direction: {
|
|
52
|
-
name: string;
|
|
53
|
-
icon: string;
|
|
54
|
-
tooltip: string;
|
|
55
|
-
type: string;
|
|
56
|
-
display: {
|
|
57
|
-
type: string;
|
|
58
|
-
};
|
|
59
|
-
enum: string[];
|
|
60
|
-
};
|
|
61
|
-
transition: {
|
|
62
|
-
name: string;
|
|
63
|
-
icon: string;
|
|
64
|
-
tooltip: string;
|
|
65
|
-
type: string;
|
|
66
|
-
properties: {
|
|
67
|
-
type: {
|
|
68
|
-
type: string;
|
|
69
|
-
display: {
|
|
70
|
-
type: string;
|
|
71
|
-
};
|
|
72
|
-
enum: string[];
|
|
73
|
-
};
|
|
74
|
-
backgroundColor: {
|
|
75
|
-
type: string[];
|
|
76
|
-
name: string;
|
|
77
|
-
display: {
|
|
78
|
-
visible: boolean;
|
|
79
|
-
type: string;
|
|
80
|
-
format: string;
|
|
81
|
-
};
|
|
82
|
-
};
|
|
83
|
-
duration: {
|
|
84
|
-
type: string;
|
|
85
|
-
label: string;
|
|
86
|
-
display: {
|
|
87
|
-
type: string;
|
|
88
|
-
};
|
|
89
|
-
enum: string[];
|
|
90
|
-
};
|
|
91
|
-
};
|
|
92
|
-
};
|
|
93
|
-
controls: {
|
|
94
|
-
name: string;
|
|
95
|
-
icon: string;
|
|
96
|
-
tooltip: string;
|
|
97
|
-
type: string;
|
|
98
|
-
properties: {
|
|
99
|
-
isActive: {
|
|
100
|
-
type: string;
|
|
101
|
-
display: {
|
|
102
|
-
type: string;
|
|
103
|
-
};
|
|
104
|
-
};
|
|
105
|
-
arrowsImgUrl: {
|
|
106
|
-
type: string[];
|
|
107
|
-
display: {
|
|
108
|
-
type: string;
|
|
109
|
-
};
|
|
110
|
-
};
|
|
111
|
-
offset: {
|
|
112
|
-
type: string;
|
|
113
|
-
display: {
|
|
114
|
-
type: string;
|
|
115
|
-
};
|
|
116
|
-
properties: {
|
|
117
|
-
x: {
|
|
118
|
-
type: string;
|
|
119
|
-
};
|
|
120
|
-
y: {
|
|
121
|
-
type: string;
|
|
122
|
-
};
|
|
123
|
-
};
|
|
124
|
-
};
|
|
125
|
-
scale: {
|
|
126
|
-
type: string;
|
|
127
|
-
name: string;
|
|
128
|
-
min: number;
|
|
129
|
-
max: number;
|
|
130
|
-
display: {
|
|
131
|
-
type: string;
|
|
132
|
-
};
|
|
133
|
-
};
|
|
134
|
-
color: {
|
|
135
|
-
name: string;
|
|
136
|
-
type: string;
|
|
137
|
-
display: {
|
|
138
|
-
type: string;
|
|
139
|
-
format: string;
|
|
140
|
-
};
|
|
141
|
-
};
|
|
142
|
-
hover: {
|
|
143
|
-
name: string;
|
|
144
|
-
type: string;
|
|
145
|
-
display: {
|
|
146
|
-
type: string;
|
|
147
|
-
format: string;
|
|
148
|
-
};
|
|
149
|
-
};
|
|
150
|
-
};
|
|
151
|
-
};
|
|
152
|
-
pagination: {
|
|
153
|
-
name: string;
|
|
154
|
-
icon: string;
|
|
155
|
-
tooltip: string;
|
|
156
|
-
type: string;
|
|
157
|
-
properties: {
|
|
158
|
-
isActive: {
|
|
159
|
-
type: string;
|
|
160
|
-
display: {
|
|
161
|
-
type: string;
|
|
162
|
-
};
|
|
163
|
-
};
|
|
164
|
-
position: {
|
|
165
|
-
name: string;
|
|
166
|
-
display: {
|
|
167
|
-
type: string;
|
|
168
|
-
direction: string;
|
|
169
|
-
};
|
|
170
|
-
type: string;
|
|
171
|
-
enum: string[];
|
|
172
|
-
};
|
|
173
|
-
offset: {
|
|
174
|
-
type: string;
|
|
175
|
-
display: {
|
|
176
|
-
type: string;
|
|
177
|
-
};
|
|
178
|
-
properties: {
|
|
179
|
-
x: {
|
|
180
|
-
type: string;
|
|
181
|
-
};
|
|
182
|
-
y: {
|
|
183
|
-
type: string;
|
|
184
|
-
};
|
|
185
|
-
};
|
|
186
|
-
};
|
|
187
|
-
scale: {
|
|
188
|
-
type: string;
|
|
189
|
-
name: string;
|
|
190
|
-
min: number;
|
|
191
|
-
max: number;
|
|
192
|
-
display: {
|
|
193
|
-
type: string;
|
|
194
|
-
};
|
|
195
|
-
};
|
|
196
|
-
colors: {
|
|
197
|
-
display: {
|
|
198
|
-
type: string;
|
|
199
|
-
format: string;
|
|
200
|
-
};
|
|
201
|
-
name: string;
|
|
202
|
-
type: string;
|
|
203
|
-
items: {
|
|
204
|
-
type: string;
|
|
205
|
-
};
|
|
206
|
-
};
|
|
207
|
-
hover: {
|
|
208
|
-
name: string;
|
|
209
|
-
type: string;
|
|
210
|
-
display: {
|
|
211
|
-
type: string;
|
|
212
|
-
format: string;
|
|
213
|
-
};
|
|
214
|
-
};
|
|
215
|
-
};
|
|
216
|
-
};
|
|
217
|
-
caption: {
|
|
218
|
-
name: string;
|
|
219
|
-
icon: string;
|
|
220
|
-
tooltip: string;
|
|
221
|
-
type: string;
|
|
222
|
-
properties: {
|
|
223
|
-
isActive: {
|
|
224
|
-
type: string;
|
|
225
|
-
display: {
|
|
226
|
-
type: string;
|
|
227
|
-
};
|
|
228
|
-
};
|
|
229
|
-
alignment: {
|
|
230
|
-
name: string;
|
|
231
|
-
type: string;
|
|
232
|
-
display: {
|
|
233
|
-
type: string;
|
|
234
|
-
};
|
|
235
|
-
enum: string[];
|
|
236
|
-
};
|
|
237
|
-
offset: {
|
|
238
|
-
type: string;
|
|
239
|
-
display: {
|
|
240
|
-
type: string;
|
|
241
|
-
};
|
|
242
|
-
properties: {
|
|
243
|
-
x: {
|
|
244
|
-
type: string;
|
|
245
|
-
};
|
|
246
|
-
y: {
|
|
247
|
-
type: string;
|
|
248
|
-
};
|
|
249
|
-
};
|
|
250
|
-
};
|
|
251
|
-
hover: {
|
|
252
|
-
name: string;
|
|
253
|
-
type: string;
|
|
254
|
-
display: {
|
|
255
|
-
type: string;
|
|
256
|
-
format: string;
|
|
257
|
-
};
|
|
258
|
-
};
|
|
259
|
-
};
|
|
260
|
-
};
|
|
261
|
-
};
|
|
262
|
-
default: {
|
|
263
|
-
triggers: {
|
|
264
|
-
triggersList: {
|
|
265
|
-
click: boolean;
|
|
266
|
-
drag: boolean;
|
|
267
|
-
};
|
|
268
|
-
autoPlay: null;
|
|
269
|
-
};
|
|
270
|
-
controls: {
|
|
271
|
-
isActive: boolean;
|
|
272
|
-
arrowsImgUrl: null;
|
|
273
|
-
offset: {
|
|
274
|
-
x: number;
|
|
275
|
-
y: number;
|
|
276
|
-
};
|
|
277
|
-
scale: number;
|
|
278
|
-
color: string;
|
|
279
|
-
hover: string;
|
|
280
|
-
};
|
|
281
|
-
transition: {
|
|
282
|
-
type: string;
|
|
283
|
-
duration: string;
|
|
284
|
-
backgroundColor: null;
|
|
285
|
-
};
|
|
286
|
-
pagination: {
|
|
287
|
-
isActive: boolean;
|
|
288
|
-
scale: number;
|
|
289
|
-
position: string;
|
|
290
|
-
offset: {
|
|
291
|
-
x: number;
|
|
292
|
-
y: number;
|
|
293
|
-
};
|
|
294
|
-
colors: string[];
|
|
295
|
-
hover: string;
|
|
296
|
-
};
|
|
297
|
-
direction: string;
|
|
298
|
-
caption: {
|
|
299
|
-
offset: {
|
|
300
|
-
x: number;
|
|
301
|
-
y: number;
|
|
302
|
-
};
|
|
303
|
-
isActive: boolean;
|
|
304
|
-
alignment: string;
|
|
305
|
-
hover: string;
|
|
306
|
-
};
|
|
307
|
-
};
|
|
308
|
-
displayRules: ({
|
|
309
|
-
if: {
|
|
310
|
-
name: string;
|
|
311
|
-
value: string;
|
|
312
|
-
};
|
|
313
|
-
then: {
|
|
314
|
-
name: string;
|
|
315
|
-
value: string;
|
|
316
|
-
};
|
|
317
|
-
} | {
|
|
318
|
-
if: {
|
|
319
|
-
name: string;
|
|
320
|
-
value: string;
|
|
321
|
-
};
|
|
322
|
-
then: {
|
|
323
|
-
name: string;
|
|
324
|
-
value: boolean;
|
|
325
|
-
};
|
|
326
|
-
})[];
|
|
327
|
-
};
|
|
328
|
-
content: {
|
|
329
|
-
layoutBased: boolean;
|
|
330
|
-
type: string;
|
|
331
|
-
items: {
|
|
332
|
-
type: string;
|
|
333
|
-
properties: {
|
|
334
|
-
image: {
|
|
335
|
-
type: string;
|
|
336
|
-
display: {
|
|
337
|
-
type: string;
|
|
338
|
-
};
|
|
339
|
-
properties: {
|
|
340
|
-
url: {
|
|
341
|
-
type: string;
|
|
342
|
-
};
|
|
343
|
-
name: {
|
|
344
|
-
type: string;
|
|
345
|
-
};
|
|
346
|
-
objectFit: {
|
|
347
|
-
type: string;
|
|
348
|
-
enum: string[];
|
|
349
|
-
};
|
|
350
|
-
};
|
|
351
|
-
required: string[];
|
|
352
|
-
};
|
|
353
|
-
imageCaption: {
|
|
354
|
-
display: {
|
|
355
|
-
type: string;
|
|
356
|
-
placeholder: string;
|
|
357
|
-
};
|
|
358
|
-
};
|
|
359
|
-
link: {
|
|
360
|
-
type: string;
|
|
361
|
-
display: {
|
|
362
|
-
type: string;
|
|
363
|
-
placeholder: string;
|
|
364
|
-
};
|
|
365
|
-
properties: {
|
|
366
|
-
text: {
|
|
367
|
-
type: string;
|
|
368
|
-
};
|
|
369
|
-
};
|
|
370
|
-
};
|
|
371
|
-
};
|
|
372
|
-
required: string[];
|
|
373
|
-
};
|
|
374
|
-
default: {
|
|
375
|
-
image: {
|
|
376
|
-
objectFit: string;
|
|
377
|
-
url: string;
|
|
378
|
-
name: string;
|
|
379
|
-
};
|
|
380
|
-
imageCaption: {
|
|
381
|
-
type: string;
|
|
382
|
-
children: {
|
|
383
|
-
text: string;
|
|
384
|
-
}[];
|
|
385
|
-
}[];
|
|
386
|
-
}[];
|
|
387
|
-
};
|
|
388
|
-
styles: {
|
|
389
|
-
layoutBased: boolean;
|
|
390
|
-
type: string;
|
|
391
|
-
properties: {
|
|
392
|
-
caption: {
|
|
393
|
-
dataName: string;
|
|
394
|
-
type: string;
|
|
395
|
-
properties: {
|
|
396
|
-
fontSettings: {
|
|
397
|
-
type: string;
|
|
398
|
-
display: {
|
|
399
|
-
type: string;
|
|
400
|
-
};
|
|
401
|
-
properties: {
|
|
402
|
-
fontFamily: {
|
|
403
|
-
type: string;
|
|
404
|
-
};
|
|
405
|
-
fontWeight: {
|
|
406
|
-
type: string;
|
|
407
|
-
};
|
|
408
|
-
fontStyle: {
|
|
409
|
-
type: string;
|
|
410
|
-
};
|
|
411
|
-
};
|
|
412
|
-
};
|
|
413
|
-
widthSettings: {
|
|
414
|
-
display: {
|
|
415
|
-
type: string;
|
|
416
|
-
};
|
|
417
|
-
type: string;
|
|
418
|
-
properties: {
|
|
419
|
-
width: {
|
|
420
|
-
type: string;
|
|
421
|
-
};
|
|
422
|
-
sizing: {
|
|
423
|
-
type: string;
|
|
424
|
-
enum: string[];
|
|
425
|
-
};
|
|
426
|
-
};
|
|
427
|
-
};
|
|
428
|
-
fontSizeLineHeight: {
|
|
429
|
-
type: string;
|
|
430
|
-
display: {
|
|
431
|
-
type: string;
|
|
432
|
-
};
|
|
433
|
-
properties: {
|
|
434
|
-
fontSize: {
|
|
435
|
-
type: string;
|
|
436
|
-
};
|
|
437
|
-
lineHeight: {
|
|
438
|
-
type: string;
|
|
439
|
-
};
|
|
440
|
-
};
|
|
441
|
-
};
|
|
442
|
-
letterSpacing: {
|
|
443
|
-
display: {
|
|
444
|
-
type: string;
|
|
445
|
-
};
|
|
446
|
-
type: string;
|
|
447
|
-
};
|
|
448
|
-
wordSpacing: {
|
|
449
|
-
display: {
|
|
450
|
-
type: string;
|
|
451
|
-
};
|
|
452
|
-
type: string;
|
|
453
|
-
};
|
|
454
|
-
textAlign: {
|
|
455
|
-
display: {
|
|
456
|
-
type: string;
|
|
457
|
-
};
|
|
458
|
-
type: string;
|
|
459
|
-
enum: string[];
|
|
460
|
-
};
|
|
461
|
-
textAppearance: {
|
|
462
|
-
display: {
|
|
463
|
-
type: string;
|
|
464
|
-
};
|
|
465
|
-
properties: {
|
|
466
|
-
textTransform: {
|
|
467
|
-
type: string;
|
|
468
|
-
enum: string[];
|
|
469
|
-
};
|
|
470
|
-
textDecoration: {
|
|
471
|
-
type: string;
|
|
472
|
-
enum: string[];
|
|
473
|
-
};
|
|
474
|
-
fontVariant: {
|
|
475
|
-
type: string;
|
|
476
|
-
enum: string[];
|
|
477
|
-
};
|
|
478
|
-
};
|
|
479
|
-
};
|
|
480
|
-
color: {
|
|
481
|
-
display: {
|
|
482
|
-
type: string;
|
|
483
|
-
};
|
|
484
|
-
type: string;
|
|
485
|
-
};
|
|
486
|
-
};
|
|
487
|
-
};
|
|
488
|
-
};
|
|
489
|
-
default: {
|
|
490
|
-
caption: {
|
|
491
|
-
widthSettings: {
|
|
492
|
-
width: number;
|
|
493
|
-
sizing: string;
|
|
494
|
-
};
|
|
495
|
-
fontSettings: {
|
|
496
|
-
fontFamily: string;
|
|
497
|
-
fontWeight: number;
|
|
498
|
-
fontStyle: string;
|
|
499
|
-
};
|
|
500
|
-
fontSizeLineHeight: {
|
|
501
|
-
fontSize: number;
|
|
502
|
-
lineHeight: number;
|
|
503
|
-
};
|
|
504
|
-
letterSpacing: number;
|
|
505
|
-
wordSpacing: number;
|
|
506
|
-
textAlign: string;
|
|
507
|
-
textAppearance: {
|
|
508
|
-
textTransform: string;
|
|
509
|
-
textDecoration: string;
|
|
510
|
-
fontVariant: string;
|
|
511
|
-
};
|
|
512
|
-
color: string;
|
|
513
|
-
};
|
|
514
|
-
};
|
|
515
|
-
};
|
|
516
|
-
};
|
|
517
|
-
required: string[];
|
|
518
|
-
};
|
|
519
|
-
};
|