@gxpl/sdk 0.0.7 → 0.0.9
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 +4 -8
- package/lib/index.js +1 -4
- package/{dist → lib}/sdk/Client/Client.d.ts +0 -2
- package/{dist → lib}/sdk/Client/Client.js +0 -11
- 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 +52 -57
- package/{dist → lib}/sdk/schemas/article/Article.schema.js +1 -1
- package/{dist → lib}/sdk/schemas/article/Item.schema.js +64 -84
- package/{dist → lib}/sdk/schemas/article/ItemBase.schema.d.ts +25 -28
- package/{dist → lib}/sdk/schemas/article/ItemBase.schema.js +3 -4
- package/{dist → lib}/sdk/schemas/article/RichTextItem.schema.d.ts +102 -110
- package/{dist → lib}/sdk/schemas/article/RichTextItem.schema.js +9 -11
- package/{dist → lib}/sdk/schemas/article/Section.schema.d.ts +23 -26
- package/{dist → lib}/sdk/schemas/article/Section.schema.js +4 -5
- package/{dist → lib}/sdk/schemas/keyframe/Keyframes.schema.d.ts +0 -90
- package/{dist → lib}/sdk/schemas/keyframe/Keyframes.schema.js +0 -1
- package/{dist → lib}/sdk/schemas/project/Project.schema.d.ts +3 -28
- package/{dist → lib}/sdk/schemas/project/Project.schema.js +1 -2
- package/{dist → lib}/sdk/types/article/Article.d.ts +1 -1
- package/{dist → lib}/sdk/types/article/Item.d.ts +75 -114
- package/{dist → lib}/sdk/types/article/Section.d.ts +4 -5
- package/{dist → lib}/sdk/types/keyframe/Keyframe.d.ts +1 -2
- package/{dist → lib}/sdk/types/project/Project.d.ts +1 -2
- package/lib/sdk/types/project/Project.js +2 -0
- package/lib/sdk-nextjs/common/useExemplary.js +9 -0
- package/lib/sdk-nextjs/common/useItemFXData.js +36 -0
- package/{dist → lib}/sdk-nextjs/common/useKeyframeValue.d.ts +1 -1
- package/lib/sdk-nextjs/common/useKeyframeValue.js +72 -0
- package/lib/sdk-nextjs/common/useLayoutDeviation.d.ts +5 -0
- package/lib/sdk-nextjs/common/useLayoutDeviation.js +20 -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 +11 -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 +66 -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.d.ts +1 -0
- package/lib/sdk-nextjs/components/Section/useSectionHeightMap.js +12 -0
- package/lib/sdk-nextjs/components/items/CodeEmbedItem/CodeEmbedItem.js +101 -0
- package/lib/sdk-nextjs/components/items/CodeEmbedItem/useCodeEmbedItem.d.ts +5 -0
- package/lib/sdk-nextjs/components/items/CodeEmbedItem/useCodeEmbedItem.js +10 -0
- package/lib/sdk-nextjs/components/items/ComponentItem/ComponentItem.js +41 -0
- package/{dist → lib}/sdk-nextjs/components/items/ComponentItem/useComponentItem.d.ts +2 -2
- package/lib/sdk-nextjs/components/items/ComponentItem/useComponentItem.js +13 -0
- package/lib/sdk-nextjs/components/items/CompoundItem/CompoundChild.js +96 -0
- package/lib/sdk-nextjs/components/items/CompoundItem/CompoundItem.js +47 -0
- package/{dist → lib}/sdk-nextjs/components/items/CompoundItem/useCompoundItem.d.ts +1 -1
- package/lib/sdk-nextjs/components/items/CompoundItem/useCompoundItem.js +9 -0
- package/lib/sdk-nextjs/components/items/CustomItem/CustomItem.js +35 -0
- package/{dist → lib}/sdk-nextjs/components/items/EmbedVideoItem/VimeoEmbed.d.ts +2 -2
- package/lib/sdk-nextjs/components/items/EmbedVideoItem/VimeoEmbed.js +161 -0
- package/lib/sdk-nextjs/components/items/EmbedVideoItem/YoutubeEmbed.js +154 -0
- package/{dist → lib}/sdk-nextjs/components/items/EmbedVideoItem/useEmbedVideoItem.d.ts +3 -3
- package/lib/sdk-nextjs/components/items/EmbedVideoItem/useEmbedVideoItem.js +12 -0
- package/lib/sdk-nextjs/components/items/FileItem/ImageItem.js +134 -0
- package/lib/sdk-nextjs/components/items/FileItem/VideoItem.js +216 -0
- package/lib/sdk-nextjs/components/items/FileItem/useFileItem.d.ts +8 -0
- package/lib/sdk-nextjs/components/items/FileItem/useFileItem.js +21 -0
- package/lib/sdk-nextjs/components/items/GroupItem/GroupItem.js +45 -0
- package/{dist → lib}/sdk-nextjs/components/items/GroupItem/useGroupItem.d.ts +2 -2
- package/lib/sdk-nextjs/components/items/GroupItem/useGroupItem.js +10 -0
- package/lib/sdk-nextjs/components/items/Item.js +150 -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 +120 -0
- package/lib/sdk-nextjs/components/items/RectangleItem/useRectangleItem.d.ts +9 -0
- package/lib/sdk-nextjs/components/items/RectangleItem/useRectangleItem.js +22 -0
- package/lib/sdk-nextjs/components/items/RichTextItem/RichTextItem.js +75 -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/{dist → lib}/sdk-nextjs/components/items/useItemAngle.d.ts +1 -1
- package/lib/sdk-nextjs/components/items/useItemAngle.js +10 -0
- package/{dist → lib}/sdk-nextjs/components/items/useItemArea.d.ts +4 -4
- package/lib/sdk-nextjs/components/items/useItemArea.js +15 -0
- package/lib/sdk-nextjs/components/items/useItemPointerEvents.js +23 -0
- package/{dist → lib}/sdk-nextjs/components/items/useItemScale.d.ts +1 -1
- package/lib/sdk-nextjs/components/items/useItemScale.js +10 -0
- package/lib/sdk-nextjs/components/items/useItemTriggers.js +16 -0
- package/lib/sdk-nextjs/components/items/useRichTextItemValues.d.ts +9 -0
- package/lib/sdk-nextjs/components/items/useRichTextItemValues.js +16 -0
- package/lib/sdk-nextjs/components/items/useSizing.js +20 -0
- package/lib/sdk-nextjs/components/items/useStickyItemTop.js +11 -0
- package/{dist → lib}/sdk-nextjs/interactions/CSSPropertyNameMap.d.ts +2 -2
- package/lib/sdk-nextjs/interactions/CSSPropertyNameMap.js +38 -0
- package/{dist → lib}/sdk-nextjs/interactions/InteractionsRegistry.d.ts +1 -1
- 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/{dist → lib}/sdk-nextjs/provider/CntrlSdkContext.d.ts +5 -6
- 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 +48 -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/{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/{dist → lib}/sdk-nextjs/utils/RichTextConverter/RichTextConverter.d.ts +1 -2
- package/lib/sdk-nextjs/utils/RichTextConverter/RichTextConverter.js +263 -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.d.ts +1 -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/package.json +3 -3
- package/dist/cli.d.ts +0 -10
- 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/project/Layout.schema.d.ts +0 -17
- package/dist/sdk/schemas/project/Layout.schema.js +0 -10
- package/dist/sdk/schemas/shared/FillLayer.schema.d.ts +0 -186
- package/dist/sdk/types/component/Component.d.ts +0 -15
- package/dist/sdk/types/project/Layout.d.ts +0 -6
- package/dist/sdk-nextjs/common/useCurrentLayout.d.ts +0 -6
- 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/components/Section/useSectionHeightMap.d.ts +0 -3
- package/dist/sdk-nextjs/components/items/CodeEmbedItem/useCodeEmbedItem.d.ts +0 -7
- package/dist/sdk-nextjs/components/items/FileItem/useFileItem.d.ts +0 -8
- package/dist/sdk-nextjs/components/items/RectangleItem/useRectangleItem.d.ts +0 -9
- package/dist/sdk-nextjs/components/items/useRichTextItemValues.d.ts +0 -9
- package/dist/sdk-nextjs/components/useLayoutContext.d.ts +0 -1
- 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-nextjs/utils/getStyleFromItemStateAndParams.d.ts +0 -1
- package/dist/sdk.css +0 -1
- package/dist/utils.d.ts +0 -3
- package/lib/cli.js +0 -64
- 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/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/ItemArea.schema.d.ts +0 -0
- package/{dist → lib}/sdk/schemas/article/ItemArea.schema.js +0 -0
- package/{dist → lib}/sdk/schemas/article/ItemState.schema.d.ts +76 -76
- /package/{dist → lib}/sdk/schemas/article/ItemState.schema.js +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.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.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/Meta.d.ts +0 -0
- /package/{dist/sdk/types/project/Page.js → lib/sdk/types/project/Meta.js} +0 -0
- /package/{dist → lib}/sdk/types/project/Page.d.ts +0 -0
- /package/{dist/sdk/types/project/Project.js → lib/sdk/types/project/Page.js} +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/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/items/CodeEmbedItem/CodeEmbedItem.d.ts +0 -0
- /package/{dist → lib}/sdk-nextjs/components/items/ComponentItem/ComponentItem.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/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/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/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/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/useItemPointerEvents.d.ts +0 -0
- /package/{dist → lib}/sdk-nextjs/components/items/useItemTriggers.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/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/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/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/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
|
@@ -2,7 +2,6 @@ import { KeyframeType } from '../../types/keyframe/Keyframe';
|
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
export declare const KeyframeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
4
4
|
id: z.ZodString;
|
|
5
|
-
layoutId: z.ZodString;
|
|
6
5
|
itemId: z.ZodString;
|
|
7
6
|
position: z.ZodNumber;
|
|
8
7
|
} & {
|
|
@@ -26,7 +25,6 @@ export declare const KeyframeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
26
25
|
};
|
|
27
26
|
type: KeyframeType.Dimensions;
|
|
28
27
|
itemId: string;
|
|
29
|
-
layoutId: string;
|
|
30
28
|
}, {
|
|
31
29
|
position: number;
|
|
32
30
|
id: string;
|
|
@@ -36,10 +34,8 @@ export declare const KeyframeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
36
34
|
};
|
|
37
35
|
type: KeyframeType.Dimensions;
|
|
38
36
|
itemId: string;
|
|
39
|
-
layoutId: string;
|
|
40
37
|
}>, z.ZodObject<{
|
|
41
38
|
id: z.ZodString;
|
|
42
|
-
layoutId: z.ZodString;
|
|
43
39
|
itemId: z.ZodString;
|
|
44
40
|
position: z.ZodNumber;
|
|
45
41
|
} & {
|
|
@@ -63,7 +59,6 @@ export declare const KeyframeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
63
59
|
};
|
|
64
60
|
type: KeyframeType.Position;
|
|
65
61
|
itemId: string;
|
|
66
|
-
layoutId: string;
|
|
67
62
|
}, {
|
|
68
63
|
position: number;
|
|
69
64
|
id: string;
|
|
@@ -73,10 +68,8 @@ export declare const KeyframeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
73
68
|
};
|
|
74
69
|
type: KeyframeType.Position;
|
|
75
70
|
itemId: string;
|
|
76
|
-
layoutId: string;
|
|
77
71
|
}>, z.ZodObject<{
|
|
78
72
|
id: z.ZodString;
|
|
79
|
-
layoutId: z.ZodString;
|
|
80
73
|
itemId: z.ZodString;
|
|
81
74
|
position: z.ZodNumber;
|
|
82
75
|
} & {
|
|
@@ -96,7 +89,6 @@ export declare const KeyframeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
96
89
|
};
|
|
97
90
|
type: KeyframeType.Rotation;
|
|
98
91
|
itemId: string;
|
|
99
|
-
layoutId: string;
|
|
100
92
|
}, {
|
|
101
93
|
position: number;
|
|
102
94
|
id: string;
|
|
@@ -105,10 +97,8 @@ export declare const KeyframeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
105
97
|
};
|
|
106
98
|
type: KeyframeType.Rotation;
|
|
107
99
|
itemId: string;
|
|
108
|
-
layoutId: string;
|
|
109
100
|
}>, z.ZodObject<{
|
|
110
101
|
id: z.ZodString;
|
|
111
|
-
layoutId: z.ZodString;
|
|
112
102
|
itemId: z.ZodString;
|
|
113
103
|
position: z.ZodNumber;
|
|
114
104
|
} & {
|
|
@@ -128,7 +118,6 @@ export declare const KeyframeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
128
118
|
};
|
|
129
119
|
type: KeyframeType.BorderRadius;
|
|
130
120
|
itemId: string;
|
|
131
|
-
layoutId: string;
|
|
132
121
|
}, {
|
|
133
122
|
position: number;
|
|
134
123
|
id: string;
|
|
@@ -137,10 +126,8 @@ export declare const KeyframeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
137
126
|
};
|
|
138
127
|
type: KeyframeType.BorderRadius;
|
|
139
128
|
itemId: string;
|
|
140
|
-
layoutId: string;
|
|
141
129
|
}>, z.ZodObject<{
|
|
142
130
|
id: z.ZodString;
|
|
143
|
-
layoutId: z.ZodString;
|
|
144
131
|
itemId: z.ZodString;
|
|
145
132
|
position: z.ZodNumber;
|
|
146
133
|
} & {
|
|
@@ -160,7 +147,6 @@ export declare const KeyframeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
160
147
|
};
|
|
161
148
|
type: KeyframeType.BorderWidth;
|
|
162
149
|
itemId: string;
|
|
163
|
-
layoutId: string;
|
|
164
150
|
}, {
|
|
165
151
|
position: number;
|
|
166
152
|
id: string;
|
|
@@ -169,10 +155,8 @@ export declare const KeyframeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
169
155
|
};
|
|
170
156
|
type: KeyframeType.BorderWidth;
|
|
171
157
|
itemId: string;
|
|
172
|
-
layoutId: string;
|
|
173
158
|
}>, z.ZodObject<{
|
|
174
159
|
id: z.ZodString;
|
|
175
|
-
layoutId: z.ZodString;
|
|
176
160
|
itemId: z.ZodString;
|
|
177
161
|
position: z.ZodNumber;
|
|
178
162
|
} & {
|
|
@@ -404,7 +388,6 @@ export declare const KeyframeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
404
388
|
})[];
|
|
405
389
|
type: KeyframeType.BorderFill;
|
|
406
390
|
itemId: string;
|
|
407
|
-
layoutId: string;
|
|
408
391
|
}, {
|
|
409
392
|
position: number;
|
|
410
393
|
id: string;
|
|
@@ -460,10 +443,8 @@ export declare const KeyframeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
460
443
|
})[];
|
|
461
444
|
type: KeyframeType.BorderFill;
|
|
462
445
|
itemId: string;
|
|
463
|
-
layoutId: string;
|
|
464
446
|
}>, z.ZodObject<{
|
|
465
447
|
id: z.ZodString;
|
|
466
|
-
layoutId: z.ZodString;
|
|
467
448
|
itemId: z.ZodString;
|
|
468
449
|
position: z.ZodNumber;
|
|
469
450
|
} & {
|
|
@@ -483,7 +464,6 @@ export declare const KeyframeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
483
464
|
};
|
|
484
465
|
type: KeyframeType.Opacity;
|
|
485
466
|
itemId: string;
|
|
486
|
-
layoutId: string;
|
|
487
467
|
}, {
|
|
488
468
|
position: number;
|
|
489
469
|
id: string;
|
|
@@ -492,10 +472,8 @@ export declare const KeyframeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
492
472
|
};
|
|
493
473
|
type: KeyframeType.Opacity;
|
|
494
474
|
itemId: string;
|
|
495
|
-
layoutId: string;
|
|
496
475
|
}>, z.ZodObject<{
|
|
497
476
|
id: z.ZodString;
|
|
498
|
-
layoutId: z.ZodString;
|
|
499
477
|
itemId: z.ZodString;
|
|
500
478
|
position: z.ZodNumber;
|
|
501
479
|
} & {
|
|
@@ -515,7 +493,6 @@ export declare const KeyframeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
515
493
|
};
|
|
516
494
|
type: KeyframeType.Scale;
|
|
517
495
|
itemId: string;
|
|
518
|
-
layoutId: string;
|
|
519
496
|
}, {
|
|
520
497
|
position: number;
|
|
521
498
|
id: string;
|
|
@@ -524,10 +501,8 @@ export declare const KeyframeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
524
501
|
};
|
|
525
502
|
type: KeyframeType.Scale;
|
|
526
503
|
itemId: string;
|
|
527
|
-
layoutId: string;
|
|
528
504
|
}>, z.ZodObject<{
|
|
529
505
|
id: z.ZodString;
|
|
530
|
-
layoutId: z.ZodString;
|
|
531
506
|
itemId: z.ZodString;
|
|
532
507
|
position: z.ZodNumber;
|
|
533
508
|
} & {
|
|
@@ -547,7 +522,6 @@ export declare const KeyframeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
547
522
|
};
|
|
548
523
|
type: KeyframeType.Blur;
|
|
549
524
|
itemId: string;
|
|
550
|
-
layoutId: string;
|
|
551
525
|
}, {
|
|
552
526
|
position: number;
|
|
553
527
|
id: string;
|
|
@@ -556,10 +530,8 @@ export declare const KeyframeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
556
530
|
};
|
|
557
531
|
type: KeyframeType.Blur;
|
|
558
532
|
itemId: string;
|
|
559
|
-
layoutId: string;
|
|
560
533
|
}>, z.ZodObject<{
|
|
561
534
|
id: z.ZodString;
|
|
562
|
-
layoutId: z.ZodString;
|
|
563
535
|
itemId: z.ZodString;
|
|
564
536
|
position: z.ZodNumber;
|
|
565
537
|
} & {
|
|
@@ -579,7 +551,6 @@ export declare const KeyframeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
579
551
|
};
|
|
580
552
|
type: KeyframeType.BackdropBlur;
|
|
581
553
|
itemId: string;
|
|
582
|
-
layoutId: string;
|
|
583
554
|
}, {
|
|
584
555
|
position: number;
|
|
585
556
|
id: string;
|
|
@@ -588,10 +559,8 @@ export declare const KeyframeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
588
559
|
};
|
|
589
560
|
type: KeyframeType.BackdropBlur;
|
|
590
561
|
itemId: string;
|
|
591
|
-
layoutId: string;
|
|
592
562
|
}>, z.ZodObject<{
|
|
593
563
|
id: z.ZodString;
|
|
594
|
-
layoutId: z.ZodString;
|
|
595
564
|
itemId: z.ZodString;
|
|
596
565
|
position: z.ZodNumber;
|
|
597
566
|
} & {
|
|
@@ -611,7 +580,6 @@ export declare const KeyframeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
611
580
|
};
|
|
612
581
|
type: KeyframeType.TextColor;
|
|
613
582
|
itemId: string;
|
|
614
|
-
layoutId: string;
|
|
615
583
|
}, {
|
|
616
584
|
position: number;
|
|
617
585
|
id: string;
|
|
@@ -620,10 +588,8 @@ export declare const KeyframeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
620
588
|
};
|
|
621
589
|
type: KeyframeType.TextColor;
|
|
622
590
|
itemId: string;
|
|
623
|
-
layoutId: string;
|
|
624
591
|
}>, z.ZodObject<{
|
|
625
592
|
id: z.ZodString;
|
|
626
|
-
layoutId: z.ZodString;
|
|
627
593
|
itemId: z.ZodString;
|
|
628
594
|
position: z.ZodNumber;
|
|
629
595
|
} & {
|
|
@@ -643,7 +609,6 @@ export declare const KeyframeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
643
609
|
};
|
|
644
610
|
type: KeyframeType.LetterSpacing;
|
|
645
611
|
itemId: string;
|
|
646
|
-
layoutId: string;
|
|
647
612
|
}, {
|
|
648
613
|
position: number;
|
|
649
614
|
id: string;
|
|
@@ -652,10 +617,8 @@ export declare const KeyframeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
652
617
|
};
|
|
653
618
|
type: KeyframeType.LetterSpacing;
|
|
654
619
|
itemId: string;
|
|
655
|
-
layoutId: string;
|
|
656
620
|
}>, z.ZodObject<{
|
|
657
621
|
id: z.ZodString;
|
|
658
|
-
layoutId: z.ZodString;
|
|
659
622
|
itemId: z.ZodString;
|
|
660
623
|
position: z.ZodNumber;
|
|
661
624
|
} & {
|
|
@@ -675,7 +638,6 @@ export declare const KeyframeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
675
638
|
};
|
|
676
639
|
type: KeyframeType.WordSpacing;
|
|
677
640
|
itemId: string;
|
|
678
|
-
layoutId: string;
|
|
679
641
|
}, {
|
|
680
642
|
position: number;
|
|
681
643
|
id: string;
|
|
@@ -684,10 +646,8 @@ export declare const KeyframeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
684
646
|
};
|
|
685
647
|
type: KeyframeType.WordSpacing;
|
|
686
648
|
itemId: string;
|
|
687
|
-
layoutId: string;
|
|
688
649
|
}>, z.ZodObject<{
|
|
689
650
|
id: z.ZodString;
|
|
690
|
-
layoutId: z.ZodString;
|
|
691
651
|
itemId: z.ZodString;
|
|
692
652
|
position: z.ZodNumber;
|
|
693
653
|
} & {
|
|
@@ -699,17 +659,14 @@ export declare const KeyframeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
699
659
|
value: Record<string, number>;
|
|
700
660
|
type: KeyframeType.FXParams;
|
|
701
661
|
itemId: string;
|
|
702
|
-
layoutId: string;
|
|
703
662
|
}, {
|
|
704
663
|
position: number;
|
|
705
664
|
id: string;
|
|
706
665
|
value: Record<string, number>;
|
|
707
666
|
type: KeyframeType.FXParams;
|
|
708
667
|
itemId: string;
|
|
709
|
-
layoutId: string;
|
|
710
668
|
}>, z.ZodObject<{
|
|
711
669
|
id: z.ZodString;
|
|
712
|
-
layoutId: z.ZodString;
|
|
713
670
|
itemId: z.ZodString;
|
|
714
671
|
position: z.ZodNumber;
|
|
715
672
|
} & {
|
|
@@ -941,7 +898,6 @@ export declare const KeyframeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
941
898
|
})[];
|
|
942
899
|
type: KeyframeType.Fill;
|
|
943
900
|
itemId: string;
|
|
944
|
-
layoutId: string;
|
|
945
901
|
}, {
|
|
946
902
|
position: number;
|
|
947
903
|
id: string;
|
|
@@ -997,11 +953,9 @@ export declare const KeyframeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
997
953
|
})[];
|
|
998
954
|
type: KeyframeType.Fill;
|
|
999
955
|
itemId: string;
|
|
1000
|
-
layoutId: string;
|
|
1001
956
|
}>]>;
|
|
1002
957
|
export declare const KeyframesSchema: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
1003
958
|
id: z.ZodString;
|
|
1004
|
-
layoutId: z.ZodString;
|
|
1005
959
|
itemId: z.ZodString;
|
|
1006
960
|
position: z.ZodNumber;
|
|
1007
961
|
} & {
|
|
@@ -1025,7 +979,6 @@ export declare const KeyframesSchema: z.ZodArray<z.ZodDiscriminatedUnion<"type",
|
|
|
1025
979
|
};
|
|
1026
980
|
type: KeyframeType.Dimensions;
|
|
1027
981
|
itemId: string;
|
|
1028
|
-
layoutId: string;
|
|
1029
982
|
}, {
|
|
1030
983
|
position: number;
|
|
1031
984
|
id: string;
|
|
@@ -1035,10 +988,8 @@ export declare const KeyframesSchema: z.ZodArray<z.ZodDiscriminatedUnion<"type",
|
|
|
1035
988
|
};
|
|
1036
989
|
type: KeyframeType.Dimensions;
|
|
1037
990
|
itemId: string;
|
|
1038
|
-
layoutId: string;
|
|
1039
991
|
}>, z.ZodObject<{
|
|
1040
992
|
id: z.ZodString;
|
|
1041
|
-
layoutId: z.ZodString;
|
|
1042
993
|
itemId: z.ZodString;
|
|
1043
994
|
position: z.ZodNumber;
|
|
1044
995
|
} & {
|
|
@@ -1062,7 +1013,6 @@ export declare const KeyframesSchema: z.ZodArray<z.ZodDiscriminatedUnion<"type",
|
|
|
1062
1013
|
};
|
|
1063
1014
|
type: KeyframeType.Position;
|
|
1064
1015
|
itemId: string;
|
|
1065
|
-
layoutId: string;
|
|
1066
1016
|
}, {
|
|
1067
1017
|
position: number;
|
|
1068
1018
|
id: string;
|
|
@@ -1072,10 +1022,8 @@ export declare const KeyframesSchema: z.ZodArray<z.ZodDiscriminatedUnion<"type",
|
|
|
1072
1022
|
};
|
|
1073
1023
|
type: KeyframeType.Position;
|
|
1074
1024
|
itemId: string;
|
|
1075
|
-
layoutId: string;
|
|
1076
1025
|
}>, z.ZodObject<{
|
|
1077
1026
|
id: z.ZodString;
|
|
1078
|
-
layoutId: z.ZodString;
|
|
1079
1027
|
itemId: z.ZodString;
|
|
1080
1028
|
position: z.ZodNumber;
|
|
1081
1029
|
} & {
|
|
@@ -1095,7 +1043,6 @@ export declare const KeyframesSchema: z.ZodArray<z.ZodDiscriminatedUnion<"type",
|
|
|
1095
1043
|
};
|
|
1096
1044
|
type: KeyframeType.Rotation;
|
|
1097
1045
|
itemId: string;
|
|
1098
|
-
layoutId: string;
|
|
1099
1046
|
}, {
|
|
1100
1047
|
position: number;
|
|
1101
1048
|
id: string;
|
|
@@ -1104,10 +1051,8 @@ export declare const KeyframesSchema: z.ZodArray<z.ZodDiscriminatedUnion<"type",
|
|
|
1104
1051
|
};
|
|
1105
1052
|
type: KeyframeType.Rotation;
|
|
1106
1053
|
itemId: string;
|
|
1107
|
-
layoutId: string;
|
|
1108
1054
|
}>, z.ZodObject<{
|
|
1109
1055
|
id: z.ZodString;
|
|
1110
|
-
layoutId: z.ZodString;
|
|
1111
1056
|
itemId: z.ZodString;
|
|
1112
1057
|
position: z.ZodNumber;
|
|
1113
1058
|
} & {
|
|
@@ -1127,7 +1072,6 @@ export declare const KeyframesSchema: z.ZodArray<z.ZodDiscriminatedUnion<"type",
|
|
|
1127
1072
|
};
|
|
1128
1073
|
type: KeyframeType.BorderRadius;
|
|
1129
1074
|
itemId: string;
|
|
1130
|
-
layoutId: string;
|
|
1131
1075
|
}, {
|
|
1132
1076
|
position: number;
|
|
1133
1077
|
id: string;
|
|
@@ -1136,10 +1080,8 @@ export declare const KeyframesSchema: z.ZodArray<z.ZodDiscriminatedUnion<"type",
|
|
|
1136
1080
|
};
|
|
1137
1081
|
type: KeyframeType.BorderRadius;
|
|
1138
1082
|
itemId: string;
|
|
1139
|
-
layoutId: string;
|
|
1140
1083
|
}>, z.ZodObject<{
|
|
1141
1084
|
id: z.ZodString;
|
|
1142
|
-
layoutId: z.ZodString;
|
|
1143
1085
|
itemId: z.ZodString;
|
|
1144
1086
|
position: z.ZodNumber;
|
|
1145
1087
|
} & {
|
|
@@ -1159,7 +1101,6 @@ export declare const KeyframesSchema: z.ZodArray<z.ZodDiscriminatedUnion<"type",
|
|
|
1159
1101
|
};
|
|
1160
1102
|
type: KeyframeType.BorderWidth;
|
|
1161
1103
|
itemId: string;
|
|
1162
|
-
layoutId: string;
|
|
1163
1104
|
}, {
|
|
1164
1105
|
position: number;
|
|
1165
1106
|
id: string;
|
|
@@ -1168,10 +1109,8 @@ export declare const KeyframesSchema: z.ZodArray<z.ZodDiscriminatedUnion<"type",
|
|
|
1168
1109
|
};
|
|
1169
1110
|
type: KeyframeType.BorderWidth;
|
|
1170
1111
|
itemId: string;
|
|
1171
|
-
layoutId: string;
|
|
1172
1112
|
}>, z.ZodObject<{
|
|
1173
1113
|
id: z.ZodString;
|
|
1174
|
-
layoutId: z.ZodString;
|
|
1175
1114
|
itemId: z.ZodString;
|
|
1176
1115
|
position: z.ZodNumber;
|
|
1177
1116
|
} & {
|
|
@@ -1403,7 +1342,6 @@ export declare const KeyframesSchema: z.ZodArray<z.ZodDiscriminatedUnion<"type",
|
|
|
1403
1342
|
})[];
|
|
1404
1343
|
type: KeyframeType.BorderFill;
|
|
1405
1344
|
itemId: string;
|
|
1406
|
-
layoutId: string;
|
|
1407
1345
|
}, {
|
|
1408
1346
|
position: number;
|
|
1409
1347
|
id: string;
|
|
@@ -1459,10 +1397,8 @@ export declare const KeyframesSchema: z.ZodArray<z.ZodDiscriminatedUnion<"type",
|
|
|
1459
1397
|
})[];
|
|
1460
1398
|
type: KeyframeType.BorderFill;
|
|
1461
1399
|
itemId: string;
|
|
1462
|
-
layoutId: string;
|
|
1463
1400
|
}>, z.ZodObject<{
|
|
1464
1401
|
id: z.ZodString;
|
|
1465
|
-
layoutId: z.ZodString;
|
|
1466
1402
|
itemId: z.ZodString;
|
|
1467
1403
|
position: z.ZodNumber;
|
|
1468
1404
|
} & {
|
|
@@ -1482,7 +1418,6 @@ export declare const KeyframesSchema: z.ZodArray<z.ZodDiscriminatedUnion<"type",
|
|
|
1482
1418
|
};
|
|
1483
1419
|
type: KeyframeType.Opacity;
|
|
1484
1420
|
itemId: string;
|
|
1485
|
-
layoutId: string;
|
|
1486
1421
|
}, {
|
|
1487
1422
|
position: number;
|
|
1488
1423
|
id: string;
|
|
@@ -1491,10 +1426,8 @@ export declare const KeyframesSchema: z.ZodArray<z.ZodDiscriminatedUnion<"type",
|
|
|
1491
1426
|
};
|
|
1492
1427
|
type: KeyframeType.Opacity;
|
|
1493
1428
|
itemId: string;
|
|
1494
|
-
layoutId: string;
|
|
1495
1429
|
}>, z.ZodObject<{
|
|
1496
1430
|
id: z.ZodString;
|
|
1497
|
-
layoutId: z.ZodString;
|
|
1498
1431
|
itemId: z.ZodString;
|
|
1499
1432
|
position: z.ZodNumber;
|
|
1500
1433
|
} & {
|
|
@@ -1514,7 +1447,6 @@ export declare const KeyframesSchema: z.ZodArray<z.ZodDiscriminatedUnion<"type",
|
|
|
1514
1447
|
};
|
|
1515
1448
|
type: KeyframeType.Scale;
|
|
1516
1449
|
itemId: string;
|
|
1517
|
-
layoutId: string;
|
|
1518
1450
|
}, {
|
|
1519
1451
|
position: number;
|
|
1520
1452
|
id: string;
|
|
@@ -1523,10 +1455,8 @@ export declare const KeyframesSchema: z.ZodArray<z.ZodDiscriminatedUnion<"type",
|
|
|
1523
1455
|
};
|
|
1524
1456
|
type: KeyframeType.Scale;
|
|
1525
1457
|
itemId: string;
|
|
1526
|
-
layoutId: string;
|
|
1527
1458
|
}>, z.ZodObject<{
|
|
1528
1459
|
id: z.ZodString;
|
|
1529
|
-
layoutId: z.ZodString;
|
|
1530
1460
|
itemId: z.ZodString;
|
|
1531
1461
|
position: z.ZodNumber;
|
|
1532
1462
|
} & {
|
|
@@ -1546,7 +1476,6 @@ export declare const KeyframesSchema: z.ZodArray<z.ZodDiscriminatedUnion<"type",
|
|
|
1546
1476
|
};
|
|
1547
1477
|
type: KeyframeType.Blur;
|
|
1548
1478
|
itemId: string;
|
|
1549
|
-
layoutId: string;
|
|
1550
1479
|
}, {
|
|
1551
1480
|
position: number;
|
|
1552
1481
|
id: string;
|
|
@@ -1555,10 +1484,8 @@ export declare const KeyframesSchema: z.ZodArray<z.ZodDiscriminatedUnion<"type",
|
|
|
1555
1484
|
};
|
|
1556
1485
|
type: KeyframeType.Blur;
|
|
1557
1486
|
itemId: string;
|
|
1558
|
-
layoutId: string;
|
|
1559
1487
|
}>, z.ZodObject<{
|
|
1560
1488
|
id: z.ZodString;
|
|
1561
|
-
layoutId: z.ZodString;
|
|
1562
1489
|
itemId: z.ZodString;
|
|
1563
1490
|
position: z.ZodNumber;
|
|
1564
1491
|
} & {
|
|
@@ -1578,7 +1505,6 @@ export declare const KeyframesSchema: z.ZodArray<z.ZodDiscriminatedUnion<"type",
|
|
|
1578
1505
|
};
|
|
1579
1506
|
type: KeyframeType.BackdropBlur;
|
|
1580
1507
|
itemId: string;
|
|
1581
|
-
layoutId: string;
|
|
1582
1508
|
}, {
|
|
1583
1509
|
position: number;
|
|
1584
1510
|
id: string;
|
|
@@ -1587,10 +1513,8 @@ export declare const KeyframesSchema: z.ZodArray<z.ZodDiscriminatedUnion<"type",
|
|
|
1587
1513
|
};
|
|
1588
1514
|
type: KeyframeType.BackdropBlur;
|
|
1589
1515
|
itemId: string;
|
|
1590
|
-
layoutId: string;
|
|
1591
1516
|
}>, z.ZodObject<{
|
|
1592
1517
|
id: z.ZodString;
|
|
1593
|
-
layoutId: z.ZodString;
|
|
1594
1518
|
itemId: z.ZodString;
|
|
1595
1519
|
position: z.ZodNumber;
|
|
1596
1520
|
} & {
|
|
@@ -1610,7 +1534,6 @@ export declare const KeyframesSchema: z.ZodArray<z.ZodDiscriminatedUnion<"type",
|
|
|
1610
1534
|
};
|
|
1611
1535
|
type: KeyframeType.TextColor;
|
|
1612
1536
|
itemId: string;
|
|
1613
|
-
layoutId: string;
|
|
1614
1537
|
}, {
|
|
1615
1538
|
position: number;
|
|
1616
1539
|
id: string;
|
|
@@ -1619,10 +1542,8 @@ export declare const KeyframesSchema: z.ZodArray<z.ZodDiscriminatedUnion<"type",
|
|
|
1619
1542
|
};
|
|
1620
1543
|
type: KeyframeType.TextColor;
|
|
1621
1544
|
itemId: string;
|
|
1622
|
-
layoutId: string;
|
|
1623
1545
|
}>, z.ZodObject<{
|
|
1624
1546
|
id: z.ZodString;
|
|
1625
|
-
layoutId: z.ZodString;
|
|
1626
1547
|
itemId: z.ZodString;
|
|
1627
1548
|
position: z.ZodNumber;
|
|
1628
1549
|
} & {
|
|
@@ -1642,7 +1563,6 @@ export declare const KeyframesSchema: z.ZodArray<z.ZodDiscriminatedUnion<"type",
|
|
|
1642
1563
|
};
|
|
1643
1564
|
type: KeyframeType.LetterSpacing;
|
|
1644
1565
|
itemId: string;
|
|
1645
|
-
layoutId: string;
|
|
1646
1566
|
}, {
|
|
1647
1567
|
position: number;
|
|
1648
1568
|
id: string;
|
|
@@ -1651,10 +1571,8 @@ export declare const KeyframesSchema: z.ZodArray<z.ZodDiscriminatedUnion<"type",
|
|
|
1651
1571
|
};
|
|
1652
1572
|
type: KeyframeType.LetterSpacing;
|
|
1653
1573
|
itemId: string;
|
|
1654
|
-
layoutId: string;
|
|
1655
1574
|
}>, z.ZodObject<{
|
|
1656
1575
|
id: z.ZodString;
|
|
1657
|
-
layoutId: z.ZodString;
|
|
1658
1576
|
itemId: z.ZodString;
|
|
1659
1577
|
position: z.ZodNumber;
|
|
1660
1578
|
} & {
|
|
@@ -1674,7 +1592,6 @@ export declare const KeyframesSchema: z.ZodArray<z.ZodDiscriminatedUnion<"type",
|
|
|
1674
1592
|
};
|
|
1675
1593
|
type: KeyframeType.WordSpacing;
|
|
1676
1594
|
itemId: string;
|
|
1677
|
-
layoutId: string;
|
|
1678
1595
|
}, {
|
|
1679
1596
|
position: number;
|
|
1680
1597
|
id: string;
|
|
@@ -1683,10 +1600,8 @@ export declare const KeyframesSchema: z.ZodArray<z.ZodDiscriminatedUnion<"type",
|
|
|
1683
1600
|
};
|
|
1684
1601
|
type: KeyframeType.WordSpacing;
|
|
1685
1602
|
itemId: string;
|
|
1686
|
-
layoutId: string;
|
|
1687
1603
|
}>, z.ZodObject<{
|
|
1688
1604
|
id: z.ZodString;
|
|
1689
|
-
layoutId: z.ZodString;
|
|
1690
1605
|
itemId: z.ZodString;
|
|
1691
1606
|
position: z.ZodNumber;
|
|
1692
1607
|
} & {
|
|
@@ -1698,17 +1613,14 @@ export declare const KeyframesSchema: z.ZodArray<z.ZodDiscriminatedUnion<"type",
|
|
|
1698
1613
|
value: Record<string, number>;
|
|
1699
1614
|
type: KeyframeType.FXParams;
|
|
1700
1615
|
itemId: string;
|
|
1701
|
-
layoutId: string;
|
|
1702
1616
|
}, {
|
|
1703
1617
|
position: number;
|
|
1704
1618
|
id: string;
|
|
1705
1619
|
value: Record<string, number>;
|
|
1706
1620
|
type: KeyframeType.FXParams;
|
|
1707
1621
|
itemId: string;
|
|
1708
|
-
layoutId: string;
|
|
1709
1622
|
}>, z.ZodObject<{
|
|
1710
1623
|
id: z.ZodString;
|
|
1711
|
-
layoutId: z.ZodString;
|
|
1712
1624
|
itemId: z.ZodString;
|
|
1713
1625
|
position: z.ZodNumber;
|
|
1714
1626
|
} & {
|
|
@@ -1940,7 +1852,6 @@ export declare const KeyframesSchema: z.ZodArray<z.ZodDiscriminatedUnion<"type",
|
|
|
1940
1852
|
})[];
|
|
1941
1853
|
type: KeyframeType.Fill;
|
|
1942
1854
|
itemId: string;
|
|
1943
|
-
layoutId: string;
|
|
1944
1855
|
}, {
|
|
1945
1856
|
position: number;
|
|
1946
1857
|
id: string;
|
|
@@ -1996,5 +1907,4 @@ export declare const KeyframesSchema: z.ZodArray<z.ZodDiscriminatedUnion<"type",
|
|
|
1996
1907
|
})[];
|
|
1997
1908
|
type: KeyframeType.Fill;
|
|
1998
1909
|
itemId: string;
|
|
1999
|
-
layoutId: string;
|
|
2000
1910
|
}>]>, "many">;
|
|
@@ -6,7 +6,6 @@ const zod_1 = require("zod");
|
|
|
6
6
|
const FillLayer_schema_1 = require("../article/FillLayer.schema");
|
|
7
7
|
const KeyframesBaseSchema = zod_1.z.object({
|
|
8
8
|
id: zod_1.z.string().min(1),
|
|
9
|
-
layoutId: zod_1.z.string().min(1),
|
|
10
9
|
itemId: zod_1.z.string().min(1),
|
|
11
10
|
position: zod_1.z.number()
|
|
12
11
|
});
|
|
@@ -34,22 +34,7 @@ export declare const ProjectSchema: z.ZodObject<{
|
|
|
34
34
|
opengraphThumbnail?: string | undefined;
|
|
35
35
|
keywords?: string | undefined;
|
|
36
36
|
}>;
|
|
37
|
-
|
|
38
|
-
id: z.ZodString;
|
|
39
|
-
title: z.ZodString;
|
|
40
|
-
startsWith: z.ZodNumber;
|
|
41
|
-
exemplary: z.ZodNumber;
|
|
42
|
-
}, "strip", z.ZodTypeAny, {
|
|
43
|
-
id: string;
|
|
44
|
-
title: string;
|
|
45
|
-
startsWith: number;
|
|
46
|
-
exemplary: number;
|
|
47
|
-
}, {
|
|
48
|
-
id: string;
|
|
49
|
-
title: string;
|
|
50
|
-
startsWith: number;
|
|
51
|
-
exemplary: number;
|
|
52
|
-
}>, "many">;
|
|
37
|
+
exemplary: z.ZodNumber;
|
|
53
38
|
pages: z.ZodArray<z.ZodObject<{
|
|
54
39
|
title: z.ZodString;
|
|
55
40
|
articleId: z.ZodString;
|
|
@@ -172,12 +157,7 @@ export declare const ProjectSchema: z.ZodObject<{
|
|
|
172
157
|
opengraphThumbnail?: string | undefined;
|
|
173
158
|
keywords?: string | undefined;
|
|
174
159
|
};
|
|
175
|
-
|
|
176
|
-
id: string;
|
|
177
|
-
title: string;
|
|
178
|
-
startsWith: number;
|
|
179
|
-
exemplary: number;
|
|
180
|
-
}[];
|
|
160
|
+
exemplary: number;
|
|
181
161
|
pages: {
|
|
182
162
|
id: string;
|
|
183
163
|
title: string;
|
|
@@ -218,12 +198,7 @@ export declare const ProjectSchema: z.ZodObject<{
|
|
|
218
198
|
opengraphThumbnail?: string | undefined;
|
|
219
199
|
keywords?: string | undefined;
|
|
220
200
|
};
|
|
221
|
-
|
|
222
|
-
id: string;
|
|
223
|
-
title: string;
|
|
224
|
-
startsWith: number;
|
|
225
|
-
exemplary: number;
|
|
226
|
-
}[];
|
|
201
|
+
exemplary: number;
|
|
227
202
|
pages: {
|
|
228
203
|
id: string;
|
|
229
204
|
title: string;
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ProjectSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
const Layout_schema_1 = require("./Layout.schema");
|
|
6
5
|
const Fonts_1 = require("../../types/project/Fonts");
|
|
7
6
|
exports.ProjectSchema = zod_1.z.object({
|
|
8
7
|
id: zod_1.z.string().min(1),
|
|
@@ -18,7 +17,7 @@ exports.ProjectSchema = zod_1.z.object({
|
|
|
18
17
|
keywords: zod_1.z.string().optional(),
|
|
19
18
|
favicon: zod_1.z.string().optional()
|
|
20
19
|
}),
|
|
21
|
-
|
|
20
|
+
exemplary: zod_1.z.number().positive(),
|
|
22
21
|
pages: zod_1.z.array(zod_1.z.object({
|
|
23
22
|
title: zod_1.z.string(),
|
|
24
23
|
articleId: zod_1.z.string().min(1),
|